Compare commits

...

4 Commits

Author SHA1 Message Date
hoyyeva
83f6db367d
Update docs/modelfile.md
Co-authored-by: Jeffrey Morgan <jmorganca@gmail.com>
2024-04-01 15:45:39 -07:00
hoyyeva
c7294265f1
Update docs/modelfile.md
Co-authored-by: Jeffrey Morgan <jmorganca@gmail.com>
2024-04-01 15:45:34 -07:00
Eva Ho
af4ed1d401 update modelfile readme 2024-03-27 10:36:18 -04:00
Eva Ho
186a4a0b65 update modelfile readme 2024-03-27 10:28:45 -04:00

View File

@ -71,12 +71,9 @@ More examples are available in the [examples directory](../examples).
There are two ways to view `Modelfile`s underlying the models in [ollama.com/library][1]:
- Option 1: view a details page from a model's tags page:
1. Go to a particular model's tags (e.g. https://ollama.com/library/llama2/tags)
2. Click on a tag (e.g. https://ollama.com/library/llama2:13b)
3. Scroll down to "Layers"
- Note: if the [`FROM` instruction](#from-required) is not present,
it means the model was created from a local file
- Option 1: view a model's data:
1. Go to a particular model page (e.g. https://ollama.com/library/llama2)
2. There is a table that displays the model's different components
- Option 2: use `ollama show` to print the `Modelfile` for any local models like so:
```bash
@ -215,7 +212,6 @@ MESSAGE <role> <message>
| user | An example message of what the user could have asked. |
| assistant | An example message of how the model should respond. |
#### Example conversation
```modelfile
@ -227,7 +223,6 @@ MESSAGE user Is Ontario in Canada?
MESSAGE assistant yes
```
## Notes
- the **`Modelfile` is not case sensitive**. In the examples, uppercase instructions are used to make it easier to distinguish it from arguments.