{"slug": "how-much-vram-a-local-llm-really-needs-numbers-from-an-8-gb-rtx-4060", "title": "How much VRAM a local LLM really needs: numbers from an 8 GB RTX 4060", "summary": "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.", "body_md": "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.\n\nNothing exotic here — this is a fairly typical 2024–2026 laptop:\n\n`ollama stop` before each one)\nCold 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.\n\n| Model | File size | Load time | Tokens/s | VRAM used by model | \n|---|---|---|---|---|\n| `llama3.2:1b` | 1.3 GB | 2.86 s | **116.6** | 1546 MB | \n| `llama3.2:3b` | 2.0 GB | 2.67 s | **58.8** | 2556 MB | \n| `qwen2.5:7b` | 4.7 GB | 3.09 s | **26.4** | 4650 MB | \n\nAll 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.\n\nLoad 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.\n\nVRAM needed ≈ model file size + context (KV cache) + a bit of runtime overhead.\n\nThat 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.\n\nThe 8 GB row is measured. Everything else below is an estimate from the formula above — treat it as a planning hint, not a benchmark.\n\n| VRAM | Fits at Q4 | Expected speed | \n|---|---|---|\n| 4 GB | 1–3B | 30–120 tokens/s | \n| 6 GB | 3B, 7B partially | 20–60 tokens/s | \n| **8 GB** | **up to 7–8B** | **25–60 tokens/s** | \n| 12 GB | 14B | 15–30 tokens/s | \n| 24 GB | 32B | 8–15 tokens/s | \n\nThe 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.\n\n```\nollama pull llama3.2:1b\nollama run llama3.2:1b --verbose \"Explain what model quantization is\"\n```\n\nThe `--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:\n\n```\nnvidia-smi --query-gpu=memory.used --format=csv -l 1\n```\n\nRun 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.\n\nIf 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.\n\nOn 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.\n\nThis article was originally published on AI Release — [https://ai-release.org](https://ai-release.org). More measurements and release notes are posted on the channel: [https://t.me/ai_release1](https://t.me/ai_release1).", "url": "https://wpnews.pro/news/how-much-vram-a-local-llm-really-needs-numbers-from-an-8-gb-rtx-4060", "canonical_source": "https://dev.to/qunirice_verase_1ab0caeba/how-much-vram-a-local-llm-really-needs-numbers-from-an-8-gb-rtx-4060-2ob0", "published_at": "2026-11-28 10:08:24+00:00", "updated_at": "2026-11-28 10:14:54.069962+00:00", "lang": "en", "topics": ["large-language-models", "ai-infrastructure", "ai-tools", "mlops"], "entities": ["Ollama", "NVIDIA", "RTX 4060", "Llama 3.2", "Qwen 2.5", "AI Release"], "also_reported_by": [], "takeaway": "On an 8 GB RTX 4060, a 4.7 GB Q4 7B model uses about 4650 MB of VRAM and runs at 26.4 tokens/s fully on GPU, while a 1B model hits 116.6 tokens/s at 1546 MB.", "recommendation": {"advice": "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.", "playbook": "inference-serving", "playbook_url": "https://wpnews.pro/playbooks/inference-serving"}, "alternates": {"html": "https://wpnews.pro/news/how-much-vram-a-local-llm-really-needs-numbers-from-an-8-gb-rtx-4060", "markdown": "https://wpnews.pro/news/how-much-vram-a-local-llm-really-needs-numbers-from-an-8-gb-rtx-4060.md", "text": "https://wpnews.pro/news/how-much-vram-a-local-llm-really-needs-numbers-from-an-8-gb-rtx-4060.txt", "jsonld": "https://wpnews.pro/news/how-much-vram-a-local-llm-really-needs-numbers-from-an-8-gb-rtx-4060.jsonld"}}