1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/ollama.md

38 lines
648 B
Markdown
Raw Normal View History

# ollama
> A large language model runner.
> For a list of available models, see <https://ollama.com/library>.
> More information: <https://github.com/ollama/ollama>.
- Start the daemon required to run other commands:
`ollama serve`
- Run a model and chat with it:
`ollama run {{model}}`
- Run a model with a single prompt:
`ollama run {{model}} {{prompt}}`
- List downloaded models:
`ollama list`
- Pull/Update a specific model:
`ollama pull {{model}}`
2024-10-04 01:41:44 +10:00
- List running models:
2024-10-04 01:41:44 +10:00
`ollama ps`
- Delete a model:
`ollama rm {{model}}`
- Create a model from a `Modelfile` ([f]):
`ollama create {{new_model_name}} -f {{path/to/Modelfile}}`