remove empty examples
This commit is contained in:
parent
2e20110e50
commit
6041abb5b2
2 changed files with 0 additions and 44 deletions
|
@ -1,23 +0,0 @@
|
||||||
# Example Modelfile - Tweetwriter
|
|
||||||
|
|
||||||
This simple examples shows what you can do without any code, simply relying on a Modelfile. The file has two instructions:
|
|
||||||
|
|
||||||
1. FROM - The From instructions defines the parent model to use for this one. If you choose a model from the library, you can enter just the model name. For all other models, you need to specify the namespace as well. You could also use a local file. Just include the relative path to the converted, quantized model weights file. To learn more about creating that file, see the `import.md` file in the docs folder of this repository.
|
|
||||||
2. SYSTEM - This defines the system prompt for the model and overrides the system prompt from the parent model.
|
|
||||||
|
|
||||||
## Running the Example
|
|
||||||
|
|
||||||
1. Create the model:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
ollama create tweetwriter
|
|
||||||
```
|
|
||||||
|
|
||||||
2. Enter a topic to generate a tweet about.
|
|
||||||
3. Show the Modelfile in the REPL.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
/show modelfile
|
|
||||||
```
|
|
||||||
|
|
||||||
Notice that the FROM and SYSTEM match what was in the file. But there is also a TEMPLATE and PARAMETER. These are inherited from the parent model.
|
|
|
@ -1,21 +0,0 @@
|
||||||
# Ollama Chat App
|
|
||||||
|
|
||||||
Build a Llama2 chat app using Streamlit and Ollama.
|
|
||||||
|
|
||||||
## Running the Example
|
|
||||||
|
|
||||||
1. Ensure you have the `llama2` model installed:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
ollama pull llama2
|
|
||||||
```
|
|
||||||
2. Install the Python Requirements.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
pip install -r requirements.txt
|
|
||||||
```
|
|
||||||
3. Run the example:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
python main.py
|
|
||||||
```
|
|
Loading…
Reference in a new issue