Files
cheatsheet-tldr/tldr/ollama
2026-03-03 00:28:02 +00:00

43 lines
785 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ollama
> A large language model runner.
> For a list of available models, see <https://ollama.com/library>.
> More information: <https://docs.ollama.com/cli>.
- 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 and thinking turned off:
`ollama run {{model}} --think=false "{{prompt}}"`
- List downloaded models:
`ollama {{[ls|list]}}`
- Pull a specific model:
`ollama pull {{model}}`
- List running models:
`ollama ps`
- Delete a model:
`ollama rm {{model}}`
- Create a model from a `Modelfile`:
`ollama create {{new_model_name}} {{[-f|--file]}} {{path/to/Modelfile}}`