LLM VRAM Calculator & Local GPU Planner

Estimate how much memory a local LLM needs and which GPUs can run it. Adjust weight quantization, context, KV cache precision, and concurrency.

Total VRAM
7.52 GB
Model Weights
4.92 GB
KV Cache + Overhead
2.60 GB
1.21 GB KV + 1.40 GB runtime
Min GPU Tier
12 GB usable
RTX 3060 12GB

Launch Command

Launch runtime
ollama run qwen3:8b

Match the model quantization, cache precision, context, and concurrency in Ollama.

Hardware Compatibility Matrix

Headroom is usable memory left after loading the model. Decode speed is a bandwidth-based estimate in tokens per second.

HardwareUsableBandwidth StatusHeadroom / ShortfallEst. tok/s

LLM VRAM Reference Table

8K context, FP16 KV cache, and one user. Each cell lists total VRAM and the smallest listed hardware tier that fits, in usable GB. Snapshot .

ModelFP16Q8_0Q4_K_M
Qwen 3 8B19.46 GB24 GB tier11.47 GB12 GB tier7.52 GB12 GB tier
Qwen 3 14B33.33 GB48 GB tier18.90 GB24 GB tier11.78 GB12 GB tier
Mistral Small 3 24B52.46 GB80 GB tier29.06 GB32 GB tier17.52 GB24 GB tier
Gemma 3 27B62.35 GB80 GB tier35.64 GB48 GB tier22.46 GB24 GB tier
Qwen 3 32B71.57 GB80 GB tier39.59 GB48 GB tier23.81 GB24 GB tier
Llama 3.3 70B150.73 GBNo listed fit81.90 GB96 GB tier47.94 GB48 GB tier
Llama 4 Scout (109B MoE)229.53 GBNo listed fit123.26 GBNo listed fit70.83 GB80 GB tier
DeepSeek R1 / V4 (671B MoE)1398.93 GBNo listed fit744.70 GBNo listed fit421.95 GBNo listed fit

Developer Resources

Runpod

Rent a GPU pod to test memory usage and inference speed with your own model and prompts.

Vast.ai

Browse GPU marketplace listings by hardware, memory, and hourly cost.

VRAM and Decode Speed Formula

All memory values use decimal GB. 1 GB = 1,000,000,000 bytes. In token counts, 1K = 1,024 tokens. Params (B) are in billions.

  • Weights (GB) = total params (B) × bits per parameter ÷ 8
  • Active weights (GB) = active params (B) × bits per parameter ÷ 8
  • KV cache (GB) = 2 × layers × KV heads × head dim × context tokens × concurrent users × bytes per element ÷ 1e9
  • Runtime overhead (GB) = 1.2 + weights (GB) × 0.04
  • Total VRAM (GB) = weights + KV cache + runtime overhead

Effective weight bits per parameter are 16.0 for FP16, 8.5 for Q8_0, 6.6 for Q6_K, 5.7 for Q5_K_M, 4.8 for Q4_K_M, 4.5 for Q4_0, and 3.3 for IQ3_XS.

KV cache bytes per element are 2 for FP16, 1 for Q8_0, and 0.5 for Q4_0. Runtime overhead covers CUDA or Metal and activation buffers.

Discrete and datacenter profiles use 100% of listed VRAM. Apple profiles use 75% of unified RAM. The dual RTX 4090 profile assumes memory is split across both cards and uses 1,008 GB/s for the speed estimate.

  • Fits in VRAM when total ≤ usable. Decode speed = bandwidth ÷ active weights × 0.72.
  • Partial Offload when usable < total ≤ 1.4 × usable. Decode speed = bandwidth ÷ active weights × 0.18.
  • OOM when total > 1.4 × usable. The planner omits a decode speed estimate.

FAQ

How much VRAM does an 8B or 70B model need?

At Q4_K_M, 8K context, and FP16 KV cache for one user, Qwen 3 8B needs 7.52 GB and Llama 3.3 70B needs 47.94 GB. Both totals include weights, cache, and runtime overhead.

Does a mixture-of-experts model need memory for all experts?

Yes, full GPU residency requires space for all model weights. This planner uses total parameters for weight memory and active parameters for its decode speed estimate.

How do context length and concurrent users affect VRAM?

Doubling either context length or concurrent users doubles the estimated KV cache. Switching the cache from FP16 to Q8_0 halves it, and switching to Q4_0 quarters it.

What does Partial Offload mean?

Partial Offload means the estimate is above usable VRAM and at most 40% over it. A compatible runtime and enough system RAM may let you run by moving some model data to CPU memory.

How accurate is the estimated decode speed?

It is a bandwidth-based estimate for generated tokens per second. Runtime kernels, cache size, CPU offload, and transfers between GPUs can change actual speed.