Ollama on a VPS without GPU, measured
See Contabo 4 vCPU / 8 GB VPS (closest to our test) →
Articles about Ollama on a VPS give ranges like "5 to 15 tokens per second" without saying on what machine. We downloaded the official Ollama binary, pinned it to 4 and then 8 CPU cores, ran the same prompt three times per model and read the speed Ollama reports and the memory of its processes. Every number below comes from that run.
Speed and memory per model
| Model (quantization, size) | 4 vCPU: tok/s (3 runs) | 8 vCPU: tok/s (3 runs) | RAM used | Cold load |
|---|---|---|---|---|
| Llama 3.2 1B (Q8_0, 1.23 GB) | 27.7 (27.0 / 27.7 / 29.5) | 39.3 (37.0 / 39.3 / 39.4) | 1.5 GB | 3.1 to 3.2 s |
| Llama 3.2 3B (Q4_K_M, 1.88 GB) | 21.1 (17.7 / 21.1 / 21.8) | 20.8 (17.7 / 20.8 / 27.1) | 2.5 GB | 6.0 s |
| Llama 3.1 8B (Q4_K_M, 4.58 GB) | 9.0 (8.6 / 9.0 / 9.3) | 10.2 (8.2 / 10.2 / 12.5) | 5.3 to 5.4 GB | 11.9 to 12.4 s |
Bold = median of 3 runs. Speed = generation tokens per second reported by Ollama (eval_count / eval_duration), about 190 tokens generated per run. RAM = resident memory (RSS) of the Ollama server and its runner with the model loaded. Cold load = first request after start, model already on disk.
What 4 more vCPU buy you
Doubling the cores raised the 1B model by 42 % and the 8B model by 13 %, and gave nothing on the 3B model. On a CPU, each generated token means reading the whole model from RAM, so memory bandwidth caps the speed long before the core count does. For a VPS budget, that means: pay for the RAM the model needs first, extra vCPU second.
Which VPS for which model
Add about 0.5 to 1 GB for the operating system, and the RAM of whatever else runs next to Ollama (Open WebUI, n8n, a database). From our numbers:
| You want to run | RAM to buy | Expected speed (our 4 vCPU test) | Example plan (price read on the provider site) |
|---|---|---|---|
| Llama 3.2 1B (classification, short replies) | 4 GB | about 28 tok/s | Hostinger KVM 1: 1 vCPU, 4 GB, $6.49/mo on 24 months, renews $11.99/mo (read 20 Nov 2026). Only 1 vCPU: expect less than our 4-core figure. |
| Llama 3.2 3B (chat, summaries) | 4 GB, 8 GB with Open WebUI | about 21 tok/s | Contabo Cloud VPS 4: 4 vCPU, 8 GB, 4.40 EUR/mo for 24 months (read 21 Nov 2026), same CPU family as our test. |
| Llama 3.1 8B (better answers, slower) | 8 GB minimum | about 9 tok/s | Contabo Cloud VPS 4 (8 GB) as above, or Hostinger KVM 2: 2 vCPU, 8 GB, $8.79/mo on 24 months, renews $14.99/mo (read 20 Nov 2026). |
Contabo Cloud VPS plans → Hostinger KVM VPS prices →
Limits of this test
- The test server (Contabo Cloud VPS, 8 AMD EPYC vCPU, 23.5 GB RAM) also runs other services. Its 1-minute load average was 4.8 to 6.5 during the 4-core runs and climbed to 16.9 during the 8-core runs, which partly explains why 8 cores helped so little. Ollama ran at top CPU priority (nice -19) to reduce that effect. A quiet server of the same size should do as well or better.
- One prompt (a 150-word technical answer, 45 to 60 prompt tokens, 200 tokens max, temperature 0). Long prompts and long contexts are slower and use more RAM.
- Smaller VPS plans have fewer and sometimes slower cores than our test: treat the speeds as a ceiling for a 1 or 2 vCPU plan.
- CPU only, no GPU. Ollama 0.40.17 official Linux binary, installed without Docker, models removed after the test.
Reproduce it
curl -sL -o ollama.tar.zst https://ollama.com/download/ollama-linux-amd64.tar.zst
mkdir dist && tar --zstd -xf ollama.tar.zst -C dist
OLLAMA_HOST=127.0.0.1:11499 taskset -c 0-3 dist/bin/ollama serve &
OLLAMA_HOST=127.0.0.1:11499 dist/bin/ollama pull llama3.1:8b
curl -s 127.0.0.1:11499/api/generate -d '{"model":"llama3.1:8b","prompt":"...","stream":false,
"options":{"num_predict":200,"temperature":0,"seed":42,"num_thread":4}}' | jq '.eval_count/.eval_duration*1e9'
Going further: if you plan to run n8n next to Ollama, add its 555 to 850 MB to the RAM above.
Some links on this page are affiliate links: we may earn a commission if you buy, at no extra cost to you. Measurements are never changed for a sponsor.