Ollama – explained simply
Ollama is a program that lets you download language models with a few commands and use them locally as a chat or through an API.
Also: ollama run, ollama pull, ollama ps
In the background, Ollama handles loading the model onto the GPU or CPU and provides an API that chat interfaces can connect to. With ollama run and a model name, you can start a chat directly in the command line.
By default, the service is available on localhost on port 11434. On Windows, the models are stored in C:\Users\<Name>\.ollama\models. With ollama ps, you can see which models are loaded and whether they are running on the GPU, the CPU, or distributed.
You create your own variants of a model, for example with a fixed system prompt or a larger context length, using a Modelfile.
Related terms
Errors where that matters
- Ollama: could not connect to ollama app, is it running? (Ollama server is not running or can’t be reached)
- Ollama: digest mismatch, file must be downloaded again (downloaded model file does not match the checksum)
- Ollama: llama runner process has terminated: exit status 0xc0000409 (model process crashed)
- Ollama: max retries exceeded during download (ollama pull aborts)
- Ollama: model "…" not found, try pulling it first (model missing on this server)
- Ollama: POST predict … /completion: EOF / wsarecv: An existing connection was forcibly closed by the remote host (model process crashed in the middle of the response)
- Ollama: pull model manifest: file does not exist (model name or tag does not exist)
- Ollama: registry.ollama.ai/library/… does not support tools (model cannot do tool/function calling)
- Ollama: something went wrong, please see the ollama server logs for details (command doesn't get a usable response from the server)
- Open WebUI: Ollama: 500, message='Internal Server Error' (Ollama reached, but model cannot respond)