snippetbashTip
ollama — A large language model runner. For a list of available models, see <https://ollama.com/library>. Mor
Viewed 0 times
commandlargelanguageclimodelollamarunnerfor
Problem
How to use the
ollama command: A large language model runner. For a list of available models, see <https://ollama.com/library>. More information: <https://docs.ollama.com/cli>.Solution
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 serveRun 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 psDelete a model:
ollama rm {{model}}Create a model from a
Modelfile:ollama create {{new_model_name}} {{[-f|--file]}} {{path/to/Modelfile}}Code Snippets
Start the daemon required to run other commands
ollama serveRun 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}}Context
tldr-pages: common/ollama
Revisions (0)
No revisions yet.