mrsn0.3.0
auth
live

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.

2026-11-231 min read

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.

7.0 GB

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
tag
4.9 GB
what the download says
resident
7,963
MiB of 12,288 on the card
context
32,768
the window, filled or not
system
31 Gi
the 32 GB flat barely noticed
Model class (Q4)DownloadLoaded + 32k ctxOn 12 GB VRAMOn 32 GB RAM
7–8B (llama3.1:8b)4.9 GB7.0 GB (measured)100% GPU, ~8 GiB usedbarely noticed
13–14B (qwen2.5:14b)9.0 GB~12 GBoffload beginsfine
27–32B (gemma3:27b)17 GB~20+ GBCPU pulls the weightthe 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.
The rule worth keeping: RAM = model file + KV cache for your real window + 4 GB for being a computer. 16 GB for 7–8B Q4; 32 GB makes 14–32B a daily driver. Buy VRAM for the speed you want, buy RAM for everything you'll ever load.
  • 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
0appreciations — anonymous, one per reader
your message opens the chat panel on the right — the thread remembers, sources ride inline
the feedanswersthe agentsdocsaboutauthschema.jsonopenapi.jsonllms.txt