The 8GB VRAM fit table is lying by 7 percent
Best Ollama model for 8GB VRAM: qwen2.5:7b at 5.40 GiB all-in at 8k. An 8 GB card is 8 binary GiB (8.59 decimal GB), ~7.3 usable; GiB = GB ÷ 1.074, a 7.4% gap.
The best Ollama model for 8GB VRAM is qwen2.5:7b (Q4_K_M): 5.40 GiB at 8k. An "8 GB" card is 8 binary GiB = 8.59 decimal GB, ~7.3 usable after desktop and driver.
Context is the second model. Every fit verdict is judgment against the 7.3 GiB line — not the "8" on the box.
the seven-percent ghost — the gap between "8 GB" and a model's decimal GB
What does 8GB VRAM actually hold?
Two rulers: card in binary GiB, model in decimal GB.
Why do VRAM tables disagree by 7 percent?
Gemma2:9b lists 5.76 GB decimal — a naive table says 72% full. The honest 4k stack: 5.37 + 1.31 KV + 0.6 overhead = 7.28 of 7.3 GiB, or 99.7%. Same row.
curl -s https://huggingface.co/api/models/bartowski/Meta-Llama-3.1-8B-Instruct-GGUF/tree/main \
| jq '.[] | select(.path | test("Q4_K_M"))'Best Ollama model for 8GB VRAM: the verdict table
| model | file, decimal GB | ÷ 1.074 = GiB | KV @ 8k | overhead | total GiB | 8k verdict |
|---|---|---|---|---|---|---|
| qwen2.5:7b | 4.68 | 4.36 | 0.44 | 0.6 | 5.40 | fits — roomiest; holds 32k (6.71) |
| mistral:7b | 4.37 | 4.07 | 1.00 | 0.6 | 5.67 | fits, roomy |
| llama3.1:8b | 4.92 | 4.58 | 1.00 | 0.6 | 6.18 | fits; 16k hairline (7.18); 32k fails (9.18) |
| qwen3:8b | 5.03 | 4.68 | 1.13 | 0.6 | 6.41 | fits — watch the thinking budget |
| gemma2:9b | 5.76 | 5.37 | 2.63 | 0.6 | 8.59 | fails 8k — 4k only (7.28, hairline) |
How much VRAM does the KV cache eat?
qwen2.5's slim 28×4×128 attention costs 56 KiB/token; gemma2's 42×8×256 costs 336 — six times the rate.
| model | KV @ 4k | KV @ 8k | KV @ 16k | KV @ 32k |
|---|---|---|---|---|
| qwen2.5:7b (56 KiB/tok) | 0.22 GiB | 0.44 | 0.88 | 1.75 |
| mistral:7b / llama3.1:8b (128) | 0.50 | 1.00 | 2.00 | 4.00 |
| qwen3:8b (144) | 0.56 | 1.13 | 2.25 | 4.50 |
| gemma2:9b (336) | 1.31 | 2.63 | 5.25 | 10.50 |
qwen3's reasoning tokens are context tokens: 3,000 at 144 KiB each until reset.
What this table cannot tell you
nvidia-smi against this table.the arithmetic, line by line
8 GiB − 0.4 desktop − 0.3 CUDA ≈ 7.3 usable. Overhead 0.6 = CUDA ~0.3 + compute ~0.3; range 0.4–1.2, gemma2 fails throughout. Sliding-window layers shrink real KV; the verdict holds.
- last tested 2026-11-01 — sizes pulled live from the Hugging Face file API (bartowski GGUF repos, Q4_K_M; mistral:7b ships q4_0, within ~2%)
- 8 × 2³⁰ = 8.59 decimal GB · 4.92 GB GGUF = 4.92 × 10⁹ bytes · desktop 0.3–0.5 GiB + CUDA ~0.3 · headless ~7.6 GiB
- Q4_K_M.gguf → 4,920,739,232 bytes (÷ 2³⁰ → 4.58 GiB); GiB = GB ÷ 1.074
- KV fp16: 2 bytes × layers × kv-heads × head-dim — qwen2.5 28×4×128, llama3.1 32×8×128, qwen3 36×8×128, gemma2 42×8×256, mistral 32×8×128
- no real 8 GB card on this bench — arithmetic on public sizes; overhead and MoE still guessed