LLM VRAM Calculator
Estimate GGUF model weights, exact KV cache, runtime overhead, and GPU memory fit.
How to use
Choose a model preset or enter its parameter count and architecture, then select a GGUF quantization, context length, parallel sequence count, and KV precision. Weight memory is parameters × effective bits per weight ÷ 8. KV cache is 2 × layers × KV heads × head dimension × context × batch × bytes; the factor of two stores keys and values. Presets for hybrid models (Qwen3.6/3.8, Gemma 4, gpt-oss, Mistral Small 4) use their exact layout, so sliding-window, linear-attention and MLA layers are not over-counted. The runtime allowance adds 10% of weight memory plus 0.5 GiB. Backend allocations vary, so treat every result as an estimate and keep headroom.
FAQ
Why is the GGUF file larger than raw 4-bit weights?
Block scales, metadata, embeddings, and tensors kept at higher precision raise effective bits per weight. The table uses typical effective GGUF rates.
Why does context length change memory so much?
The KV cache grows linearly with context length, batch size, layer count, KV heads, head dimension, and bytes per cached value.
Does a fit badge guarantee the model will run?
No. Backends, drivers, offloading, graph buffers, and operating-system usage differ. Tight fits should be tested with extra headroom.