LLM VRAM Calculator — Can Your GPU or Mac Run It?
Instantly calculate exact GPU memory, KV cache, and estimated tokens/sec for running open-weight LLMs locally with Ollama, llama.cpp, vLLM, or MLX.
ollama run qwen3:32b
Need more VRAM for local LLMs?
Rent an on-demand cloud GPU by the hour or compare local hardware upgrades.
Popular 2026 Open-Weight Models (VRAM at Q4_K_M)
Popular Model × GPU Compatibility Checks
How LLM VRAM & Speed Are Calculated
Unlike rough rule-of-thumb multipliers, our calculator separates the three real components of local inference memory:
- Model Weights =
Parameters (B) × (Bits per Weight / 8) × 1.03(e.g.Q4_K_Maverages ~4.85 bpw in GGUF). - KV Cache =
2 × Layers × KV Heads × Head Dim × Context Length × KV Precision Bytes × Users(with compressed MLA latent sizing for DeepSeek V3/R1 671B). - Runtime Overhead = CUDA / Metal activation buffers (~0.5 GB minimum + 4% of weights).
- Estimated Tokens/sec = Effective Memory Bandwidth ÷ Active Weights Read per Token (accurately accounting for MoE active parameters on Qwen3-Coder, Llama 4 Scout, and gpt-oss).
Frequently Asked Questions
How much VRAM do I need to run a 32B model like Qwen3 32B or DeepSeek-R1 32B?
At Q4_K_M (4-bit quantization) with an 8K context window, a 32B model needs roughly 21–22 GB of VRAM. It fits cleanly on a single 24GB GPU (RTX 4090 / RTX 3090), an RTX 5090 (32GB), or a 48GB Apple Silicon Mac.
How much unified memory can an Apple Silicon Mac allocate to local LLMs?
By default macOS reserves about 25% of unified memory for the OS, leaving roughly 75% usable for Metal/MLX/Ollama (e.g., ~36 GB on a 48GB M4 Pro, ~96 GB on a 128GB M4 Max).
Does KV cache quantization (Q8_0 / Q4_0) really save VRAM?
Yes. Switching KV cache from FP16 to Q8_0 cuts context memory nearly in half with negligible quality loss, which is essential at 32K–128K context lengths.