mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-01 23:42:42 +00:00
42 lines
713 B
Plaintext
42 lines
713 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# ollama
|
|
|
|
> A large language model runner.
|
|
> 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}}`
|
|
|
|
- Upgrade Ollama on Linux:
|
|
|
|
`curl -fsSL https://ollama.com/install.sh | sh`
|
|
|
|
- Delete a model:
|
|
|
|
`ollama rm {{model}}`
|
|
|
|
- Create a model from a `Modelfile` ([f]):
|
|
|
|
`ollama create {{new_model_name}} -f {{path/to/Modelfile}}`
|