LLM VRAM calculator
Open the calculator ↓Estimate model memory for your setup. No hardware is detected.
Loading the memory calculator…
Will a local AI model fit in your memory? Choose a model and compare its estimated weights, KV cache and runtime overhead with your GPU VRAM or shared memory. Adjust your setup for an instant estimate. Memory fit does not guarantee speed or software compatibility. All inputs stay in your browser.
How the llm vram calculator works
Choose a model and precision
Search 34 sourced presets in 8 families, or enter a custom dense model’s total parameters and cache geometry from its config.
Set one memory budget
Enter your GPU VRAM or unified/system RAM in GiB. Reserve memory for other apps and the OS; 1 GiB is only a starting value for a dedicated GPU.
Compare and refine
Your estimate updates as you edit. Inspect the breakdown, then try a shorter context, lower precision or smaller model. Confirm the estimate in your chosen local runtime before relying on it.
Memory formula and planning assumptions
| Component | Calculation / limit |
|---|---|
| Weight data | Parameters × 1 billion × bits / 8 / 1,073,741,824 bytes per GiB |
| FP16 KV cache | 2 × layers × KV heads × head dimension × token budget × 2 bytes; batch 1 |
| Planning overhead | 20% of weight data + 1 GiB; an estimate, not measured runtime memory |
| Available memory | Entered memory capacity minus your reserve |
| Result | Insufficient if estimate exceeds available memory; tight if less than 10% remains; otherwise room within these assumptions |
Included model presets
34 models across 8 families, checked October 23, 2026. Parameter totals are approximate. Each model links to its publisher’s card and architecture source.
Explore all 34 models & sources
The planner caps context at 32,768 tokens, or the model’s limit if smaller: 16,384 for Phi-4 and 8,192 for SmolLM2. Models may support larger contexts in suitable runtimes; those configurations are outside this planner’s range.
What this test can and can't tell you
Reliable: Transparent arithmetic Shows weight data, cache, overhead, reserve and remaining memory from the values you provide, using binary GiB.
Estimate: Memory planning Quantization formats, buffers and runtime allocations vary. An estimate with headroom is a useful starting point, not a successful model-load test.
Limit: Not a hardware or speed benchmark Does not detect your GPU or exact memory, download a model, measure inference speed or certify software compatibility.
Questions about this test
Can my computer run this model?
Which models can I choose?
How much VRAM does a 7B model need?
Why does a longer context need more memory?
Is 4-bit memory exact?
Should I enter RAM or GPU VRAM?
Can this calculate training, image models or mixture-of-experts memory?
Sources
- Cache strategies and KV cache tradeoffsHugging Face Transformers
- Qwen3 — representative model card (all presets linked above)Qwen
- Qwen2.5 — representative model card (all presets linked above)Qwen
- Qwen2.5 Coder — representative model card (all presets linked above)Qwen
- DeepSeek R1 Distill — representative model card (all presets linked above)DeepSeek
- Llama — representative model card (all presets linked above)Meta
- Mistral — representative model card (all presets linked above)Mistral AI
- Phi — representative model card (all presets linked above)Microsoft
- SmolLM — representative model card (all presets linked above)Hugging Face
Last reviewed .