cd /news/large-language-models/how-much-vram-a-local-llm-really-nee… · home › topics › large-language-models › article
[ARTICLE · art-177676] src=dev.to ↗ pub= topic=large-language-models verified=true sentiment=· neutral

How much VRAM a local LLM really needs: numbers from an 8 GB RTX 4060

A developer benchmarked three local LLMs on an 8 GB laptop RTX 4060 using Ollama, measuring cold-load times, tokens per second and VRAM use via nvidia-smi. Llama 3.2 1B ran at 116.6 tokens/s using 1546 MB, Llama 3.2 3B at 58.8 tokens/s using 2556 MB, and Qwen 2.5 7B at 26.4 tokens/s using 4650 MB, all fully on GPU. The developer's rule of thumb is that VRAM needed equals model file size plus KV cache plus runtime overhead, and that CPU spillover collapses throughput rather than degrading it gradually.

recommendation

Size local models to fit entirely in VRAM (file size plus KV cache plus overhead) and stop each model between runs to measure cold-load tokens/s, since CPU spillover collapses throughput.

more in playbook: Inference and self-hosting
by read3 min views4 publishedNov 28, 2026

Everyone says "8 GB is enough for a 7B model at Q4", but I wanted actual numbers from a machine I own, not a chart from someone else's review. So I ran three models through Ollama on a laptop RTX 4060 with 8 GB of VRAM, watched nvidia-smi during generation, and wrote everything down.

Nothing exotic here — this is a fairly typical 2024–2026 laptop:

ollama stop before each one) Cold load matters. If you benchmark a model that is already resident in memory, you skip the load time entirely and the first numbers look better than what you actually get on a fresh start.

Model File size Load time Tokens/s VRAM used by model
llama3.2:1b 1.3 GB 2.86 s 116.6 1546 MB
llama3.2:3b 2.0 GB 2.67 s 58.8 2556 MB
qwen2.5:7b 4.7 GB 3.09 s 26.4 4650 MB

All three ran fully on the GPU. The weights file plus the KV cache fit inside 8 GB with room to spare, which is why throughput drops roughly in line with model size: 1B is about 4.4× faster than 3B, and 3B is roughly 2.2× faster than 7B.

Load times were surprisingly flat — 2.7 to 3.1 seconds regardless of size. The bottleneck at load is disk and initialization, not the model itself.

VRAM needed ≈ model file size + context (KV cache) + a bit of runtime overhead.

That is the whole rule. A 4.7 GB Q4 file plus a modest context window lands around 4.7–5 GB of actual usage, as the measurement above shows. With 8 GB you can comfortably hold up to 7–8B at Q4 while leaving the desktop compositor and a browser some room.

The 8 GB row is measured. Everything else below is an estimate from the formula above — treat it as a planning hint, not a benchmark.

VRAM Fits at Q4 Expected speed
4 GB 1–3B 30–120 tokens/s
6 GB 3B, 7B partially 20–60 tokens/s
8 GB up to 7–8B 25–60 tokens/s
12 GB 14B 15–30 tokens/s
24 GB 32B 8–15 tokens/s

The important failure mode: if the model does not fit, Ollama pushes some layers onto the CPU. Speed does not degrade gracefully — it collapses by several times, because memory bandwidth becomes the limit rather than compute. A 7B model that spills a third of its layers to CPU can feel slower than a 3B model that fits entirely.

ollama pull llama3.2:1b
ollama run llama3.2:1b --verbose "Explain what model quantization is"

The --verbose flag prints an eval rate line when generation finishes — that is your tokens/s. To watch VRAM while it generates, open a second terminal:

nvidia-smi --query-gpu=memory.used --format=csv -l 1

Run your model three times, throw away the outliers, and stop the model between runs with ollama stop <model> so you are always measuring a cold load.

If you compare these figures to another review and get different results, that is expected. Tokens/s depends on the GPU, the quantization, the context length, and the runtime version — all four move the number. That is also why I listed the exact prompt, token count, and Ollama version instead of just publishing a table: without those, a benchmark is not reproducible.

On 8 GB of VRAM, a 7B model at Q4 is not a compromise — it fits (about 4.7 GB), runs entirely on the GPU, and gives around 26 tokens/s on this hardware. If you want more speed, drop to 3B and get roughly 59 tokens/s; if you want a small assistant that feels instant, 1B at over 100 tokens/s is genuinely usable. Pick the largest model that fits with context headroom, and never let it spill to CPU.

This article was originally published on AI Release — https://ai-release.org. More measurements and release notes are posted on the channel: https://t.me/ai_release1.

── more in #large-language-models 4 stories · sorted by recency
── more on @ollama 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/how-much-vram-a-loca…] indexed:0 read:3min 2026-11-28 · —