Llama 4 VRAM calculator

Meta's Llama 4 family moves to sparse Mixture-of-Experts (MoE) with 17B active parameters per token in both Llama 4 Scout (109B total, 16 experts, 10M context) and Llama 4 Maverick (400B total, 128 experts, 1M context). While weights shrink dramatically under INT4/FP8, ultra-long 1M–10M contexts make KV cache the dominant VRAM term.

Interactive calculator

ComponentGBGiBBreakdown

Llama 4 Scout vs Maverick architecture & VRAM reference

ModelTotal ParamsActive ParamsLayersKV HeadsINT4 WeightsFP8 WeightsBF16 Weights
Llama 4 Scout109B17B (16E)488~60 GB~111 GB~218 GB
Llama 4 Maverick400B17B (128E)488~220 GB~408 GB~800 GB
Llama 4 Behemoth2,000B288B (16E)1288~1,100 GB~2,040 GB~4,000 GB

Both Scout and Maverick use 48 layers, 8 KV heads (GQA), and 128 head_dim, giving 2 × 48 × 8 × 128 × 2 = 196,608 bytes (192 KiB) per token in BF16 (or 96 KiB/tok in FP8). At 1M tokens, a single stream needs 98.3 GB of FP8 KV cache — more than the INT4 weights of Llama 4 Scout itself.

Frequently asked questions

Can Llama 4 Scout 109B fit on a single H100 80GB GPU?

Yes, in INT4 (~60 GB weights) at short-to-medium contexts (up to ~64K-128K tokens with FP8 KV cache). Pushing Scout to 1M or 10M context requires multi-GPU H200/B200 memory strictly for the KV cache.

How many GPUs are needed for Llama 4 Maverick 400B?

In native FP8 (~408 GB weights), Llama 4 Maverick fits on 8x H100 80GB (640 GB) or 4x H200 141GB (564 GB) or 4x B200 192GB (768 GB). In INT4 (~220 GB weights), it fits on 4x H100 80GB or 2x H200 141GB.

Why does Llama 4 Scout need so much VRAM at 10M context?

Even with 8-head GQA and FP8 KV cache (98.3 KB/token), 10,000,000 tokens require ~983 GB of KV cache for a single request. Serving 10M context in GPU VRAM requires an 8x H200 or 8x B200 node (or tiered CPU/NVMe KV offloading).

How fast is Llama 4 Maverick compared to Scout?

Both activate 17B parameters per token, so single-stream decode speed is nearly identical when both fit in GPU HBM. Maverick's 128 experts add minimal routing overhead while improving quality on coding and reasoning.

Should I use FP8 or BF16 for the KV cache on Llama 4?

FP8 KV cache cuts context memory in half with negligible accuracy loss on H100, H200, and B200 GPUs (all have native FP8 Tensor Cores). For 128K+ contexts, FP8 KV cache is strongly recommended.

All calculations run locally in your browser. Published hardware specs, model architectures, and API rates are planning baselines; verify against live profiling and current provider rate cards before committing cluster spend.