Local AI tools
LLM VRAM Calculator
See whether a language model fits your GPU. Adjust the model size, weight quantization and context length to estimate memory for local inference.
Memory estimate
Fits in memory
6.19 GiBof 8.00 GiB
1.81 GiB of estimated headroom after the selected reserve.
- Model weights
- 4.63 GiB
- KV cache
- 0.56 GiB
- Runtime / GPU reserve
- 1.00 GiB
Estimated context ceiling
17,258 tokens At the selected cache precision and reserve. Start below this ceiling.How fast is that?
Filler code streams token by token. Pick your GPU above and the speed follows the estimate for that setup; you can still drag it.
Pick your GPU model above to estimate the speed for this setup.
- Tokens
- 0
- Elapsed
- 0.0 s
Rough single-user estimate: about 65% of the GPU's peak memory bandwidth divided by the bytes read per token (active weights plus the KV cache at the full selected context), plus about 1 ms of fixed work per token. Layers over budget are assumed to run from dual-channel DDR5 system RAM. Prompt processing, batching and compute limits are not modelled, and real speed varies with the runtime and drivers. Bandwidth figures are manufacturer peak specifications.
Compare quantizations
Same model, context and reserve across rows. Weights use typical bits per parameter for each format. Individual GGUF files can vary.
| Format | Weights | Total | Fit |
|---|---|---|---|
| Q3_K_M | 3.72 GiB | 5.29 GiB | Fits in memory |
| Q4_K_M | 4.63 GiB | 6.19 GiB | Fits in memory |
| Q5_K_M | 5.44 GiB | 7.00 GiB | Fits in memory |
| Q6_K | 6.30 GiB | 7.86 GiB | Tight fit |
| Q8_0 | 8.16 GiB | 9.72 GiB | Over budget |
| FP16 | 15.27 GiB | 16.84 GiB | Over budget |
How the estimate works
Model weights
Parameter count × effective bits per weight ÷ 8. Q4_K_M averages more than four bits per parameter because GGUF files use scales and mixed-precision tensors.
KV cache
2 × KV heads × head dimension × bytes per value × cached tokens, summed across layers and multiplied by concurrent contexts. With a rolling cache, sliding-window layers store up to the model’s window size.
Runtime reserve
Added to the weight and cache estimate. A fit is marked tight when headroom is below 0.5 GiB or 10% of the budget, whichever is greater.
1 GB equals 1 billion bytes. 1 GiB equals 1,073,741,824 bytes. The calculator uses GiB for the GPU budget and results. Calculations run in your browser.
Running models locally
Can I run an 8B model on an 8 GiB GPU?
A Qwen3 8B estimate at Q4_K_M, 4,096 tokens and one FP16 KV cache is about 6.19 GiB with a 1 GiB reserve. That leaves about 1.81 GiB on an 8 GiB card. A different 8B model or a longer context can use more memory.
Why is my GGUF download smaller than the VRAM estimate?
The download contains the model weights and metadata. A running model also needs KV cache and temporary buffers, and the desktop or other apps may already be using part of the GPU budget. Switch to your actual file size in Advanced settings when you have it.
What happens if the model exceeds my VRAM?
Some runtimes can keep part of the model in system RAM and run those layers on the CPU. This depends on your runtime and available RAM and can reduce generation speed. The calculation assumes the entire model and KV cache are on the GPU.
Can I use this with Apple Silicon or an integrated GPU?
Yes. Enter the memory you can allocate to the model, leaving room for the OS and other apps. Unified memory is shared by the CPU and GPU, so the total installed RAM is usually larger than the usable model budget.
Which Google models can I estimate?
Use Google Gemma presets to estimate local VRAM with downloadable model weights. Google serves its hosted Gemini models through the Gemini API, where inference runs on Google’s infrastructure.
How should I budget for a mixture-of-experts (MoE) model?
Use the total parameter count for weights. The active count describes how many parameters participate in a token’s computation. Full GPU loading still needs space for all experts.
Does the estimate cover every model and runtime?
It targets text-only inference. Gemma presets account for sliding-window and global attention, with an option to keep the full context in all layers. Custom models use a uniform full cache. Image and audio encoders, speculative decoding, multiple GPUs and training need separate estimates. Runtime allocation can vary with backend, batch size, cache padding and Flash Attention support.
Sources and further reading
- Google Gemini API model catalog
- Google Gemma 3 model card
- Google Gemma 4 model card
- Microsoft Phi-4-mini Instruct model configuration
- Meta Llama 3.2 3B Instruct model card
- Mistral Small 3.2 24B Instruct model configuration
- Qwen3 architecture and context limits
- Qwen2.5 7B model configuration
- Qwen2.5 14B model configuration
- Meta Llama 3.1 8B model card
- Mistral NeMo model configuration
- llama.cpp context and cache settings
- Ollama context settings and GPU offload check
- What is a token, and why it decides what AI costs
- What is a context window, and why bigger is not the whole story
- What is a parameter, and why model size stopped being the headline