LLM VRAM & GPU Sizing Calculator

Calculate exact GPU memory for weights, KV cache, and context length across FP16, INT8, and Q4 quantization.

Popular Open-Weight LLM VRAM Guides (42 Models)

DeepSeek-R1-Distill-Qwen-1.5B
Dense · Q4_K_M ~3.1 GB
DeepSeek-R1-Distill-Qwen-7B
Dense · Q4_K_M ~7.2 GB
DeepSeek-R1-Distill-Llama-8B
Dense · Q4_K_M ~7.4 GB
DeepSeek-R1-Distill-Qwen-14B
Dense · Q4_K_M ~12.7 GB
DeepSeek-R1-Distill-Qwen-32B
Dense · Q4_K_M ~25.9 GB
DeepSeek-R1-Distill-Llama-70B
Dense · Q4_K_M ~52.5 GB
DeepSeek-R1 671B MoE
MoE (37B active) · Q4_K_M ~456.2 GB
DeepSeek-V3 685B MoE
MoE (37B active) · Q4_K_M ~465.5 GB
DeepSeek-V2.5 236B MoE
MoE (21B active) · Q4_K_M ~166.0 GB
Qwen3-8B
Dense · Q4_K_M ~7.6 GB
Qwen3-14B
Dense · Q4_K_M ~12.7 GB
Qwen3-30B-A3B MoE
MoE (3.3B active) · Q4_K_M ~24.4 GB
Qwen3-32B
Dense · Q4_K_M ~25.9 GB
Qwen3-235B-A22B MoE
MoE (22B active) · Q4_K_M ~165.4 GB
Qwen2.5-7B-Instruct
Dense · Q4_K_M ~7.2 GB
Qwen2.5-14B-Instruct
Dense · Q4_K_M ~12.7 GB
Qwen2.5-32B-Instruct
Dense · Q4_K_M ~25.9 GB
Qwen2.5-72B-Instruct
Dense · Q4_K_M ~53.9 GB
Qwen2.5-Coder-32B-Instruct
Dense · Q4_K_M ~25.9 GB
QwQ-32B Reasoning
Dense · Q4_K_M ~25.9 GB
Llama-4-Scout 109B MoE
MoE (17B active) · Q4_K_M ~81.3 GB
Llama-4-Maverick 400B MoE
MoE (17B active) · Q4_K_M ~275.4 GB
Llama-3.3-70B-Instruct
Dense · Q4_K_M ~52.5 GB
Llama-3.1-8B-Instruct
Dense · Q4_K_M ~7.4 GB
Llama-3.1-70B-Instruct
Dense · Q4_K_M ~52.5 GB
Llama-3.1-405B-Instruct
Dense · Q4_K_M ~278.8 GB
Gemma-3-4B-IT
Dense · Q4_K_M ~5.0 GB
Gemma-3-12B-IT
Dense · Q4_K_M ~11.0 GB
Gemma-3-27B-IT
Dense · Q4_K_M ~22.3 GB
Mistral-Small-3 24B
Dense · Q4_K_M ~20.0 GB
Mistral-Large-2 123B
Dense · Q4_K_M ~90.7 GB
Mixtral-8x7B MoE (46.7B)
MoE (12.9B active) · Q4_K_M ~36.5 GB
Mixtral-8x22B MoE (141B)
MoE (39B active) · Q4_K_M ~102.7 GB
Codestral-22B
Dense · Q4_K_M ~18.8 GB
Phi-4 14B
Dense · Q4_K_M ~12.6 GB
Command-R+ 104B
Dense · Q4_K_M ~78.0 GB
Yi-1.5-34B-Chat
Dense · Q4_K_M ~27.0 GB
GLM-4-9B-Chat
Dense · Q4_K_M ~8.4 GB
GLM-4-32B
Dense · Q4_K_M ~25.4 GB
StarCoder2-15B
Dense · Q4_K_M ~13.4 GB
OLMo-2-32B-Instruct
Dense · Q4_K_M ~25.5 GB
MiniMax-01 456B MoE
MoE (45.9B active) · Q4_K_M ~312.8 GB

How It Works & Reference

Total inference VRAM = Model Weights + KV Cache + Activation/Framework Overhead (~15%). Weights scale as Params(B) * BytesPerParam (FP16=2B, INT8=1B, Q4=0.55B). Long contexts (32K–128K) dramatically grow KV cache unless GQA or quantized KV cache is enabled.

LLM Inference VRAM Cheat Sheet (8K Context)

ModelFP16 VRAMQ4_K_M VRAMRecommended GPU
7B / 8B (Llama-3 / Qwen)~17 GB~6.5 GB1x RTX 3060 12G / T4
14B (Qwen2.5-14B)~34 GB~11.5 GB1x RTX 4090 24G / A10
32B (DeepSeek-R1-32B)~76 GB~23.5 GB1x 4090 24G / L40S 48G
70B / 72B (Llama-3 / Qwen)~165 GB~48 GB1x A100 80G / 2x 4090

Frequently Asked Questions

How much VRAM does a 70B model need in Q4?

At Q4_K_M (~0.55 bytes/param), weights alone take ~38.5 GB. With 8K context and framework overhead, plan for ~46–48 GB VRAM (e.g., 1x A100 80GB or 2x RTX 4090 24GB).

Why does context length increase VRAM?

Every token in the prompt and generation stores Key/Value tensors across all transformer layers and batch size. Increasing context from 4K to 64K multiplies KV cache memory by 16x.

Is client-side calculation accurate for vLLM and llama.cpp?

Yes. The estimator models GQA compression and adds a 15% CUDA/vLLM allocator buffer so your deployment won't OOM.

Related Tools