Hardware
The servers have no GPU: the model computes on the CPU and loads into RAM in full. If memory runs out, the OOM-killer kills the process.- 1B–3B (
llama3.2,gemma3:1b) – CPU and a few GB of RAM, answers, but not instantly. - 7B–8B – CPU and lots of RAM, noticeably slower, fine for experiments.
- 13B and up – needs a GPU, not an option on a VPS.
Installation
Connect over SSH asroot: Connection. The syntax and the model list change, check ollama.com and github.com/ollama/ollama.
-
Ollama – the official script installs the engine and a background service:
-
Model – it downloads and opens a chat right away:
Without a tag it pulls the 3B variant, about 2 GB. On 2–4 GB of RAM (VPS-1, VPS-2) take the light one explicitly:The
:1band:3btags set the model size. The first run downloads the model, from hundreds of MB to several GB, after that it loads from disk. To leave the chat:/bye.
Models
ollama pull gemma3– download a model ahead of time. Models and their sizes: ollama.com/library.ollama list– downloaded models.ollama rm gemma3– remove a model and free up disk space.
API
Ollama listens on a local API athttp://localhost:11434. A request from your code:
Do not expose port
11434 to the internet: anyone can load an open API at your server’s expense. By default the API is reachable only locally. Need outside access – close the port with the firewall and let traffic in only through a proxy with authentication.