Nobody talks about RAM: a 4.9 GB model reserved 7.0 GB before it answered
How much RAM a model really needs: a '4.9 GB' llama3.1:8b reserved 7.0 GB before its first token — 43% context tax, 7,963/12,288 MiB. Rule: RAM = model + KV cache + 4 GB.
How much RAM a model really needs hides in ollama ps. A "4.9 GB" llama3.1:8b reserved 7.0 GB before its first token — a 43% context tax — and held 7,963 of 12,288 MiB on a 3060. The weights were never the budget; the context was.
reserved by a 4.9 GB tag at 32k — the context tax nobody prices before the download.
How much RAM does a local model actually use?
The box: Ryzen, 32 GB RAM, RTX 3060 with 12 GB VRAM. Three commands, one screen — the capture, retyped:
$ ollama psllama3.1:8b 7.0 GB 100% GPU 32,768$ nvidia-smi7963 MiB / 12288 MiB$ free -hMem: 31 Gi
| Model class (Q4) | Download | Loaded + 32k ctx | On 12 GB VRAM | On 32 GB RAM |
|---|---|---|---|---|
| 7–8B (llama3.1:8b) | 4.9 GB | 7.0 GB (measured) | 100% GPU, ~8 GiB used | barely noticed |
| 13–14B (qwen2.5:14b) | 9.0 GB | ~12 GB | offload begins | fine |
| 27–32B (gemma3:27b) | 17 GB | ~20+ GB | CPU pulls the weight | the only reason it runs |
llama.cpp's memory law: total = weights + KV cache + compute buffer. Only the first term is constant. Ollama wraps llama.cpp — same law. Impossible on VRAM, merely slow on RAM; offload rides PCIe and throughput drops hard as the GPU share shrinks.
VRAM sells the dream. RAM decides whether the model boots at all — and how much context survives when it does.
- tested 2026-09-19, record refreshed 2026-10-06 — ollama, RTX 3060 12 GB, 32 GB RAM
- model: llama3.1:8b; 7.0 GB, 7,963/12,288 MiB and 31 Gi are that night's capture
- 14B/32B rows: same box's class table; unmeasured dial points: the memory law's straight line between anchors, not new benches
- memory arithmetic from the public llama.cpp memory notes