LLM VRAM Calculator — can my GPU run it?

Pick a model size, a quantization format and a context length. Get an estimated VRAM requirement and a yes/no against common GPUs and Apple unified memory.

The estimate: VRAM ≈ weights (parameters × bytes per parameter) + KV cache (grows with context length) + ~10% runtime overhead. Real usage varies by runtime (llama.cpp, vLLM, MLX), attention implementation and driver — treat results as a planning estimate, not a guarantee.

1 · Model & settings

Sizes from AI Model Hub model pages. For MoE models, all experts must sit in memory — use total parameters.
e.g. 7 for a 7B model, 70 for a 70B
GGUF "K-quant" sizes are approximations of their average bits/weight
KV cache grows linearly with context you actually use
Advanced: architecture assumptions (editable)
Auto-filled from a typical dense architecture for the chosen size
Auto-filled; edit if you know the real architecture
Grouped-query attention shrinks KV cache by this factor

2 · Estimated VRAM

Weights
KV cache at selected context
Runtime overhead (~10%)
Estimated total

3 · Will it fit?

HardwareUsable memoryVerdictHeadroom

Apple Silicon rows assume ~75% of unified memory is available to the GPU (the macOS default working-set limit); discrete GPUs assume the full listed VRAM minus nothing — your OS and display may already use 0.5-1 GB.

The formula (and its assumptions)

weights_GB  = params_B × bytes_per_param
kv_GB      = 2 × layers × (hidden ÷ GQA_ratio) × 2 bytes × context_tokens ÷ 1024³
overhead   = 10% × weights_GB
total      = weights_GB + kv_GB + overhead
Ad slot — AdSense in-article unit

Which tracked models can you actually get weights for?

Only open-weight models can be self-hosted. From the AI Model Hub index: DeepSeek V4 (MIT), Kimi K2.6 (Modified MIT) and Gemma 4 (Apache 2.0). Everything else — Claude, GPT, Gemini, Qwen 3.7-Max — is API-only; if that's your route, the API pricing calculator is the tool you want.

Frequently asked questions

How much VRAM does an LLM need?

Estimate weights as parameters × bytes per parameter (2 at FP16, 1 at INT8, ~0.5 at 4-bit), then add KV cache for your context length and ~10% overhead. A 7B at Q4 is roughly 3.5 GB of weights; a 70B at Q4 roughly 35 GB.

Can I run a 70B model on a 24 GB card (RTX 4090 / 3090)?

Not fully in VRAM: ~35 GB of Q4 weights exceeds 24 GB. You can offload layers to system RAM at a large speed cost, drop to more aggressive quantization with quality loss, or choose a ~30B-class model instead.

Is unified memory on a Mac as good as GPU VRAM?

It works well for local LLMs (the GPU addresses the same memory), with lower memory bandwidth than high-end discrete GPUs, so token throughput is typically lower. By default macOS caps the GPU working set at roughly 65-75% of total RAM — this calculator assumes 75%.

Why is my real usage different from the estimate?

Runtimes differ: attention implementation, KV-cache quantization (many runtimes can hold KV in 8-bit), batch size, parallel sequences and fragmentation all move the number. The formula here is a planning estimate with all assumptions stated above.

Model sizes referenced from AI Model Hub pages: Gemma 4, DeepSeek V4, Kimi K2.6, Mistral Small 4. GPU memory capacities are manufacturer specifications. All VRAM figures produced by this page are estimates from the stated formula.