How much GPU memory a local LLM really needs
How much VRAM do I need to run an LLM?
Three things add up: the weights (parameters × bytes per weight, which the quantization sets), the KV cache (grows with context length and layer count), and about a gigabyte of runtime overhead. A 7-8B model at 4-bit needs roughly 5-6 GB; a 70B model at 4-bit needs roughly 40-45 GB. The calculator above breaks out all three for the exact model and settings you choose.
What does quantization actually cost me?
Quantization trades a little quality for a lot of memory. FP16 is 2 bytes per weight; Q4_K_M is about 0.6 bytes — a ~3.3× reduction — and is the most common choice because the quality loss is small. Drop to Q3 or Q2 and the model gets meaningfully worse, but it may be the difference between fitting and not fitting on your card.
Why does long context blow up my memory?
Every token in context is cached for every layer. The KV cache scales linearly with context length, so going from 8k to 128k context multiplies that part of memory by 16. On large models the KV cache can grow to rival the weights themselves — which is why a model that loads at 4k can OOM at full context. Storing the cache in 8-bit (above) halves it.
Is my data sent anywhere?
No. This calculator runs entirely in your browser. Nothing you select or type is uploaded, logged, or stored.