1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-12 17:55:40 +02:00
tldr/pages/common/ollama.md
SeWook Oh 0e339e6d5d
ollama: add examples (#12623)
* ollama: add examples

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-04-12 05:23:54 +05:30

36 lines
617 B
Markdown

# ollama
> A large language model runner.
> More information: <https://github.com/jmorganca/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}}`
- Upgrade Ollama on Linux:
`curl -fsSL https://ollama.com/install.sh | sh`
- Delete a model:
`ollama rm {{model}}`
- Create a model from a `Modelfile`:
`ollama create {{new_model_name}} -f {{path/to/Modelfile}}`