Llama 4 Maverick (400B/17B) VRAM & GPU Requirements Calculator
Llama 4 Maverick (400B/17B) requires 745.1 GiB in FP16, 372.5 GiB in FP8, and 227.2 GiB in GGUF Q4_K_M for weights alone (400B total / 17B active MoE (128 experts) · GQA 40Q/8KV). At 8K context (batch=1, FP16 KV), KV-cache adds 1.50 GiB (5.0× smaller than MHA).
Can Your GPU or Mac Run Llama-4 Maverick? (8K Context, Batch=1)
Pre-computed fit verdict and estimated decode speed across RTX 4090/3090, Apple Silicon Unified Memory, and NVIDIA H100 clusters.
| Hardware Rig | Q4_K_M (246.0 GiB) | FP8 (390.6 GiB) | FP16 (763.8 GiB) |
|---|---|---|---|
| 1× RTX 4090 (23.9 GiB usable) | OOM (-206G) | OOM (-351G) | OOM (-724G) |
| 2× RTX 4090 / 3090 (47.8 GiB usable) | OOM (-184G) | OOM (-329G) | OOM (-702G) |
| Apple M4 Max (128 GiB Unified · 96 GiB GPU) | OOM (-134G) | OOM (-279G) | OOM (-652G) |
| Apple M3 Ultra (256 GiB Unified · 192 GiB GPU) | OOM (-38G) | OOM (-183G) | OOM (-556G) |
| 1× H100 SXM (79.6 GiB usable) | OOM (-151G) | OOM (-295G) | OOM (-668G) |
| 4× H100 SXM (318.4 GiB usable) | FIT · ~150 tok/s | OOM (-63G) | OOM (-436G) |
| 8× H100 SXM (636.8 GiB usable) | FIT · ~114 tok/s | FIT · ~110 tok/s | OOM (-127G) |
| 8× H200 SXM (1,123.2 GiB usable) | FIT · ~117 tok/s | FIT · ~114 tok/s | FIT · ~105 tok/s |
Interactive Llama-4 Maverick VRAM & Roofline Simulator
1. Model & Workload
2. Target GPU / Mac Silicon
VRAM Allocation vs. Hardware Capacity
Decode Arithmetic Intensity Roofline
Compare Other LLM VRAM Requirements
All 14 Models →Frequently Asked Questions
Can 1× or 2× RTX 4090 (24 GiB / 48 GiB) run Llama 4 Maverick (400B/17B)?
At 8K context (batch=1) in GGUF Q4_K_M, Llama 4 Maverick (400B/17B) needs 246.0 GiB total VRAM including CUDA runtime overhead (227.2 GiB weights). Single 23.9 GiB usable RTX 4090: OOM without CPU offload. Dual 47.8 GiB usable (2× 4090/3090): Exceeds 47.8 GiB usable VRAM.
Can an Apple M4 Max (128 GiB) Mac Studio / MacBook Pro run Llama 4 Maverick (400B/17B)?
An Apple M4 Max 128 GiB reserves 96 GiB wired GPU memory by default. In GGUF Q4_K_M (246.0 GiB needed at 8K), it exceeds M4 Max 128 GiB (needs M3 Ultra 256/512 GiB or multi-GPU cluster).
How much KV-cache does Llama 4 Maverick (400B/17B) use at 32K context?
Llama 4 Maverick (400B/17B) uses GQA, giving a 5.0× KV-cache reduction vs standard MHA. At 32,768 context (batch=1, FP16 KV), KV-cache occupies 6.00 GiB.