Skip to main content

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

  1. 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.

  2. 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.

  3. 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

ComponentCalculation / limit
Weight dataParameters × 1 billion × bits / 8 / 1,073,741,824 bytes per GiB
FP16 KV cache2 × layers × KV heads × head dimension × token budget × 2 bytes; batch 1
Planning overhead20% of weight data + 1 GiB; an estimate, not measured runtime memory
Available memoryEntered memory capacity minus your reserve
ResultInsufficient 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
Model / publisherParametersLayers / KV heads / dimensionPlanner token limit
Qwen3-0.6BQwen · Architecture source~0.6B28 / 8 / 12832,768
Qwen3-1.7BQwen · Architecture source~1.7B28 / 8 / 12832,768
Qwen3-4BQwen · Architecture source~4.022B36 / 8 / 12832,768
Qwen3-4B-Instruct-2507Qwen · Architecture source~4.022B36 / 8 / 12832,768
Qwen3-8BQwen · Architecture source~8.191B36 / 8 / 12832,768
Qwen3-14BQwen · Architecture source~14.768B40 / 8 / 12832,768
Qwen3-32BQwen · Architecture source~32.762B64 / 8 / 12832,768
Qwen2.5-0.5B-InstructQwen · Architecture source~0.494B24 / 2 / 6432,768
Qwen2.5-1.5B-InstructQwen · Architecture source~1.544B28 / 2 / 12832,768
Qwen2.5-3B-InstructQwen · Architecture source~3.086B36 / 2 / 12832,768
Qwen2.5-7B-InstructQwen · Architecture source~7.61B28 / 4 / 12832,768
Qwen2.5-14B-InstructQwen · Architecture source~14.7B48 / 8 / 12832,768
Qwen2.5-32B-InstructQwen · Architecture source~32.5B64 / 8 / 12832,768
Qwen2.5-72B-InstructQwen · Architecture source~72.706B80 / 8 / 12832,768
Qwen2.5-Coder-7B-InstructQwen · Architecture source~7.61B28 / 4 / 12832,768
Qwen2.5-Coder-14B-InstructQwen · Architecture source~14.7B48 / 8 / 12832,768
Qwen2.5-Coder-32B-InstructQwen · Architecture source~32.5B64 / 8 / 12832,768
DeepSeek-R1-Distill-Qwen-1.5BDeepSeek · Architecture source~1.777B28 / 2 / 12832,768
DeepSeek-R1-Distill-Qwen-7BDeepSeek · Architecture source~7.616B28 / 4 / 12832,768
DeepSeek-R1-Distill-Llama-8BDeepSeek · Architecture source~8.03B32 / 8 / 12832,768
DeepSeek-R1-Distill-Qwen-14BDeepSeek · Architecture source~14.77B48 / 8 / 12832,768
DeepSeek-R1-Distill-Qwen-32BDeepSeek · Architecture source~32.764B64 / 8 / 12832,768
DeepSeek-R1-Distill-Llama-70BDeepSeek · Architecture source~70.554B80 / 8 / 12832,768
Llama-3.2-1B-InstructMeta · Architecture source~1.236B16 / 8 / 6432,768
Llama-3.2-3B-InstructMeta · Architecture source~3.213B28 / 8 / 12832,768
Llama-3.1-8B-InstructMeta · Architecture source~8.03B32 / 8 / 12832,768
Llama-3.1-70B-InstructMeta · Architecture source~70.554B80 / 8 / 12832,768
Llama-3.3-70B-InstructMeta · Architecture source~70.554B80 / 8 / 12832,768
Mistral-7B-Instruct-v0.3Mistral AI · Architecture source~7.248B32 / 8 / 12832,768
Mistral-Nemo-Instruct-2407Mistral AI · Architecture source~12.248B40 / 8 / 12832,768
Mistral-Small-24B-Instruct-2501Mistral AI · Architecture source~23.572B40 / 8 / 12832,768
Phi-4-mini-instructMicrosoft · Architecture source~3.836B32 / 8 / 12832,768
phi-4Microsoft · Architecture source~14.66B40 / 10 / 12816,384
SmolLM2-1.7B-InstructHugging Face · Architecture source~1.711B24 / 32 / 648,192

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?
Memory is one prerequisite. This calculator estimates whether a batch-one text model fits your stated memory budget. You must also check the runtime’s GPU support, model format and operating system. It does not run a benchmark or promise tokens per second.
Which models can I choose?
Choose from 34 presets across Qwen3, Qwen2.5, Qwen2.5 Coder, DeepSeek R1 Distill, Llama, Mistral, Phi and SmolLM. Search by name or size, or enter a custom dense model. These presets cover full-attention text models; the full DeepSeek R1, mixture-of-experts, vision and hybrid-attention models need different estimates.
How much VRAM does a 7B model need?
Weight data alone is parameters multiplied by bits per weight divided by eight. The Qwen2.5-7B preset has 7.61 billion parameters; ideal 4-bit weight data is about 3.54 GiB. Cache, quantization metadata, runtime buffers and other allocations add more, so weight size alone is not a safe memory budget.
Why does a longer context need more memory?
Full-attention decoding stores keys and values for tokens. Our FP16 cache estimate is 2 × layers × KV heads × head dimension × total tokens × 2 bytes, for one sequence. Weight quantization does not automatically quantize that cache. The token budget includes both prompt and generated tokens.
Is 4-bit memory exact?
No. Real formats use scales, metadata and sometimes higher precision tensors. We add a visible 20% weight allowance plus 1 GiB for runtime use as a practical planning assumption, not a measured guarantee. Some runtimes or workloads need substantially more.
Should I enter RAM or GPU VRAM?
Enter one memory pool used by your chosen runtime. For a dedicated GPU enter its VRAM. For unified memory or CPU inference enter RAM and reserve enough for the OS and other apps. Do not add separate GPU and system capacities; offloading and multi-GPU partitioning require runtime-specific planning.
Can this calculate training, image models or mixture-of-experts memory?
This version estimates dense text-transformer inference with one sequence and FP16 full-attention KV cache. It does not model training, gradient or optimizer states, image/video generation, sliding-window/hybrid caches, CPU offload, multi-GPU sharding or mixture-of-experts placement.

Sources

  1. Cache strategies and KV cache tradeoffsHugging Face Transformers
  2. Qwen3 — representative model card (all presets linked above)Qwen
  3. Qwen2.5 — representative model card (all presets linked above)Qwen
  4. Qwen2.5 Coder — representative model card (all presets linked above)Qwen
  5. DeepSeek R1 Distill — representative model card (all presets linked above)DeepSeek
  6. Llama — representative model card (all presets linked above)Meta
  7. Mistral — representative model card (all presets linked above)Mistral AI
  8. Phi — representative model card (all presets linked above)Microsoft
  9. SmolLM — representative model card (all presets linked above)Hugging Face

Last reviewed .

A closer look at your setup