Compare Prices
ProvidersModelsCompareCalculatorsGuides
VRAM CALCULATOR

LLM VRAM Calculator

Size model weights, GGUF quantization, KV cache, and CUDA/Metal overhead to see whether 7B–671B open-weight LLMs fit on RTX GPUs, Apple Silicon Macs, or multi-GPU servers.

1. Hardware & Memory

GPU Count
Total physical VRAM24 GB

2. Model, Quantization & Context

Fast, low-cost model ideal for structured extraction
Quantization (GGUF / Weights Precision)
Context Window (KV Cache)
Total Estimated Memory Required
23.4 GB/ 24.0 GB available (98%)
Tight Fit (0.6 GB headroom)
Memory Allocation Breakdown
Weights (18.1 GB)KV Cache (4.0 GB)CUDA/Metal Overhead (1.3 GB)
Model Weights
18.1 GB
32B @ 4.85 bpw
KV Cache (16K)
4.0 GB
FP16 GQA cache
Runtime Overhead
1.3 GB
CUDA + activations
Est. Decode Speed
~40 tok/s
32B active weights

How it works

  1. 1Select your target GPU (RTX 4090, RTX 5090, A100, H100, or Apple Silicon Unified Memory) and GPU count (1x–8x).
  2. 2Pick an open-weight model preset (DeepSeek V4 Pro, DeepSeek V4.1 Flash, Llama 4 Maverick/Scout, Mistral Large 4, Qwen3.8 Flash, GLM 5.3) or slide custom parameters from 3B to 405B.
  3. 3Choose a GGUF/weight quantization level (FP16 down to Q3_K_M) and target context window (4K to 128K).
  4. 4Review exact VRAM allocation across weights, KV cache, and runtime overhead, plus an estimated tokens/sec decode speed.

Frequently asked questions

Why does context length increase VRAM requirements so much?

Every token in your active context window stores Key and Value tensors across all transformer layers (the KV cache). At 128K context, a 70B model's FP16 KV cache alone can require ~40 GB of VRAM on top of the model weights.

Which GGUF quantization should I pick for local inference?

Q4_K_M (~4.85 bits/param) is the standard sweet spot—cutting FP16 memory by nearly 4× with minimal quality loss. Use Q5_K_M or Q6_K for coding/math workloads if you have spare VRAM.

How much Unified Memory can macOS allocate to local LLMs?

By default, macOS reserves roughly 20–25% of Unified Memory for the OS and window server, leaving ~75–80% wired to the GPU. On a 64 GB M3/M4 Max, aim for models under ~51 GB total footprint.

Why is DeepSeek V4 or Llama 4 faster than a dense model of the same size?

Mixture-of-Experts (MoE) models store all 109B–671B parameters in VRAM, but only read active expert weights (17B–37B) per generated token. Decode speed is memory-bandwidth bound on the active weights, not total weights.

Related tools

View all tools →