Home โ€บ Calculators โ€บ LLM VRAM Calculator

LLM VRAM Calculator

100% FreeNo sign-upInstant results

Want to run Llama, Qwen or Mistral on your own GPU? Pick the model size and quantization โ€” get the real VRAM you need, weights + KV cache + overhead.

How Much VRAM Does That Model Need?

Longer context = bigger KV cache. This alone can add tens of GB on large models.
Total VRAM needed (approx.)
0 GB
Model weights0 GB
KV cache at this context0 GB
Runtime overhead (15%)0 GB
Popular GPUs โ€” does it fit?

Estimates for inference (running the model), not training โ€” training needs roughly 4โ€“8ร— more. KV cache figures assume modern grouped-query attention; exact numbers vary by model architecture. If the total is close to a GPU's memory, choose the next size up or drop the context length.

The VRAM Formula, Simply

Weights = parameters ร— bytes per parameter. A 7B model at FP16 needs ~14 GB; quantized to INT4 it drops to ~3.5 GB with a small quality cost โ€” that is why 4-bit is the sweet spot for home hardware. On top of weights you need the KV cache, which grows with context length and batch size, plus ~15% runtime overhead. Add all three and you have the GPU you need.

Related AI Tools

Frequently Asked Questions

How much VRAM do I need for a 7B model?

About 14 GB at FP16, 7 GB at INT8, or roughly 4.5โ€“5 GB total at INT4 including KV cache and overhead โ€” so an 8 GB GPU runs 7B models comfortably at 4-bit.

Can I run a 70B model on a 24 GB GPU?

At INT4 the weights alone are ~35 GB, so no โ€” you need around 40 GB total, meaning a 48 GB card or two 24 GB GPUs. At 8K context, a single RTX 4090 tops out around the 32B class at INT4.

Does context length really use that much memory?

Yes. The KV cache grows linearly with context: on some models, jumping from 8K to 128K context adds more memory than the quantized weights themselves.

Is INT4 quality much worse than FP16?

For chat and general use, modern INT4 methods (GPTQ, AWQ, GGUF Q4_K) are close to FP16 for most people. INT8 is nearly indistinguishable. INT2 is where quality drops sharply.