Model Weights VRAM
Model weights = parameter count × bytes per weight. A 70B parameter model at FP16 (2 bytes/weight) needs ~140GB just for weights; at Q4_K_M (0.5 bytes/weight) only ~35GB.
We earn commissions when you shop through the links below.
Estimate VRAM requirements for local LLMs. Calculate model weights, KV cache, CUDA overhead, and check fit against common GPUs. Works entirely in your browser.
Model weights = parameter count × bytes per weight. A 70B parameter model at FP16 (2 bytes/weight) needs ~140GB just for weights; at Q4_K_M (0.5 bytes/weight) only ~35GB.
Key-Value cache grows linearly with context length: 2 × layers × heads × head_dim × context_length. Longer contexts need proportionally more VRAM during inference.
A fixed ~0.55 GB overhead accounts for CUDA context, driver scratchpad, and temporary tensors during inference.
FP16 stores each parameter at 2 bytes. Q8_0 uses 1 byte, Q5_K_M uses ~0.67 bytes, and Q4_K_M uses just 0.5 bytes per weight — reducing model size by up to 75% with minimal quality loss.
NVIDIA's native 4-bit format on Blackwell GPUs (RTX 50-series) provides native hardware decompression, delivering near-FP16 quality at 4-bit memory footprint.
A 70B model needs ~140GB at FP16 but only ~35GB at Q4_K_M. Smaller 8B models fit on consumer GPUs like the RTX 4060 at 8GB VRAM.
Each token processed adds key and value tensors for every attention head across all layers. This memory grows with every token generated.
A 128k context window on a 70B model can require tens of GB just for KV cache — often more than the model weights themselves at low quantization.
For long-context workloads, prioritize models with larger context windows and GPUs with more VRAM. For short prompts, prioritize parameter count and quantization tier.
RTX 4060 (8GB) suits small 7B-14B models at Q4_K_M. RTX 4090 (24GB) handles 70B models at Q4_K_M for inference and light fine-tuning.
RTX 5090 (32GB) enables larger models at better quantization tiers. NVFP4 support on Blackwell further reduces memory footprint by 2x vs Q4_K_M.
Mac Studio M2 Ultra (192GB) and M3 Ultra (384GB) can load massive models into unified memory — ideal for 70B+ models at higher quantization tiers.