- Home
- Free tools
- AI model VRAM estimator
AI model VRAM estimator
Estimate the GPU memory a model needs from its size, quantisation and context length.
How this is calculated
- Weights = parameters × bits per weight ÷ 8. Bits per weight for GGUF quantisations are the effective averages published by llama.cpp.
- KV cache = 2 × layers × context length × KV heads × head dimension × bytes per value. Models using grouped-query attention (most recent ones) need far less than older designs.
- Overhead is a flat allowance of about 0.3 GB plus 3% of the weights for compute buffers. Real overhead varies by runtime, driver and batch size.
Limitations
- An estimate, typically within about 15% of what runtimes such as llama.cpp and Ollama report. Always leave headroom for your desktop and other apps.
- Mixture-of-experts models (such as Qwen3 30B-A3B) still need memory for all experts, even though only some are active per token.
- Preset architecture figures come from public model cards; check them against the exact model you download.
- Reference point: our own fine-tuned Qwen3-1.7B at Q8_0 was reported by Ollama as 2.4GB loaded, running 100% on a 6GB GTX 1660 (context setting not recorded).