mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-04 07:35:42 +02:00
ollama: add page (#11590)
* ollama: add page * ollama: move page to common * ollama: add example for running a model with a single prompt * Update pages/common/ollama.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> --------- Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
This commit is contained in:
parent
8ec0d6f6b3
commit
93d05bf6b7
1 changed files with 28 additions and 0 deletions
28
pages/common/ollama.md
Normal file
28
pages/common/ollama.md
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
# 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`
|
||||||
|
|
||||||
|
- Delete a model:
|
||||||
|
|
||||||
|
`ollama rm {{model}}`
|
||||||
|
|
||||||
|
- Create a model from a `Modelfile`:
|
||||||
|
|
||||||
|
`ollama create {{new_model_name}} -f {{path/to/Modelfile}}`
|
Loading…
Add table
Reference in a new issue