LinuxCommandLibrary

ollama

A large language model runner.

TLDR

Start the daemon required to run other commands

$ ollama serve
copy


Run a model and chat with it
$ ollama run [model]
copy


Run a model with a single prompt
$ ollama run [model] [prompt]
copy


List downloaded models
$ ollama list
copy


Pull/Update a specific model
$ ollama pull [model]
copy


Upgrade Ollama on Linux
$ curl -fsSL https://ollama.com/install.sh | sh
copy


Delete a model
$ ollama rm [model]
copy


Create a model from a Modelfile ([f])
$ ollama create [new_model_name] -f [path/to/Modelfile]
copy

Copied to clipboard