VRAMCalc.me

Local AI Model VRAM & Inference Speed Matrix

Pick your open-weight model and GPU or Apple Silicon Mac to see exact Q4_K_M / Q8_0 / FP16 memory footprints, KV-cache limits, offload layer counts, and realistic tokens/sec throughput.

Benchmarked Pairings
5
Smooth (Full GPU)
3
Partial Offload
1
Models × Hardware
3 × 5
Showing 5 of 5 configurations
Smooth Metal · 273 GB/s

DeepSeek-R1 32B on Apple M4 Pro (48GB Unified)

Apple M4 Pro with 48GB unified memory smoothly runs DeepSeek-R1-Distill-Qwen-32B up to Q6_K at 8K context, delivering ~9.7 tok/s at Q4_K_M and scaling cleanly all the way to 64K context.

VRAM (Q4_K_M @ 8K) 22.9 / 37.4 GB
9.7 tok/s (64/64 layers)
Open Calc
Smooth CUDA · 1008 GB/s

DeepSeek-R1 32B on NVIDIA RTX 4090 (24GB)

DeepSeek-R1-Distill-Qwen-32B at Q4_K_M (19.88 GB weights) fits inside the RTX 4090's 23.5 GB usable GDDR6X budget at 8K context (22.88 GB total), hitting ~37.6 tok/s with zero CPU spill.

VRAM (Q4_K_M @ 8K) 22.9 / 23.5 GB
37.6 tok/s (64/64 layers)
Open Calc
Partial Offload CUDA · 288 GB/s

Qwen2.5-Coder 32B on NVIDIA RTX 4060 Ti (16GB)

Partial Offload only: Qwen2.5-Coder-32B Q4_K_M needs 22.88 GB at 8K context, exceeding the RTX 4060 Ti's 15.5 GB usable VRAM and forcing ~24 of 64 layers over PCIe (~3.7 tok/s).

VRAM (Q4_K_M @ 8K) 22.9 / 15.5 GB
3.7 tok/s (40/64 layers)
Open Calc
Smooth CUDA · 1792 GB/s

Qwen2.5-Coder 32B on NVIDIA RTX 5090 (32GB)

The RTX 5090 (32GB GDDR7, 1,792 GB/s) is an unmatched single-GPU workstation for Qwen2.5-Coder-32B, running Q4_K_M at ~66.9 tok/s (32K smooth context) or fitting Q6_K entirely in VRAM at ~50.5 tok/s.

VRAM (Q4_K_M @ 8K) 22.9 / 31.5 GB
66.9 tok/s (64/64 layers)
Open Calc
OOM CUDA · 360 GB/s

Llama-3.3 70B on NVIDIA RTX 3060 (12GB)

Out of Memory (OOM): Llama-3.3-70B Q4_K_M needs 46.86 GB at 8K context—over 4x the RTX 3060's 11.5 GB usable VRAM. Only ~13 of 80 layers (17.4%) fit on GPU, making inference impractical.

VRAM (Q4_K_M @ 8K) 46.9 / 11.5 GB
OOM (13/80 layers)
Open Calc

How VRAMCalc.me Estimates Memory & Tokens/sec

1. GGUF Weight Footprint

Model weights scale with bits-per-weight (Q4_K_M ≈ 4.85 bpw, Q8_0 ≈ 8.50 bpw, FP16 = 16.0 bpw), plus a 0.5–2.0 GB CUDA or Metal compute graph buffer.

2. GQA KV-Cache Scaling

Context memory is computed from exact model geometry: 2 × layers × kv_heads × head_dim × tokens × 2 bytes for default FP16 KV cache, explaining why 70B models grow faster per 4K tokens than 7B–14B models.

3. Bandwidth-Bound Decode Speed

Autoregressive LLM generation is memory-bandwidth limited. Smooth GPU runs divide effective memory bandwidth (CUDA ~78% / Metal ~74% efficiency) by active weights + KV reads; PCIe CPU offload incurs ~35 GB/s host RAM bottlenecks.