How much VRAM does Llama 4 Maverick (17B×128E) need?
Llama 4 Maverick (17B×128E) has 401.58 billion parameters. The weights alone take about 748 GB in FP16/BF16, 374 GB in FP8 and 226.7 GB at 4-bit. KV cache comes on top: about 1.5 GB per sequence at an 8K context in FP16.
It is a mixture-of-experts model (128 experts, 1 active per token). Only some experts run for each token, but all of them must sit in GPU memory, so VRAM follows the total parameter count.
At Q4_K_M / 4-bit with an 8K context it does not fit on one GPU: 4× A100 80GB / 4× H100 / 2× H200 / 2× B200.
At FP16 / BF16 with an 8K context it does not fit on one GPU: 7× H200 / 5× B200.
VRAM for inference (8K context, 1 sequence)
| Precision | Weights | Total | Smallest GPU |
|---|---|---|---|
| FP16 / BF16 | 748 GB | 787.9 GB | 7× H200 / 5× B200 |
| FP8 / INT8 | 374 GB | 395.2 GB | 6× A100 80GB / 6× H100 / 4× H200 / 3× B200 |
| Q6_K | 306.7 GB | 324.5 GB | 5× A100 80GB / 5× H100 / 3× H200 / 3× B200 |
| Q4_K_M / 4-bit | 226.7 GB | 240.6 GB | 4× A100 80GB / 4× H100 / 2× H200 / 2× B200 |
Which GPU on CloudGPU fits Llama 4 Maverick (17B×128E)
| GPU | VRAM | FP16 / BF16 | FP8 / INT8 | Q6_K | Q4_K_M / 4-bit |
|---|---|---|---|---|---|
| RTX 3090 | 24 GB | Too small | Too small | Too small | Too small |
| RTX 4090 | 24 GB | Too small | Too small | Too small | Too small |
| RTX 5090 | 32 GB | Too small | Too small | Too small | Too small |
| RTX 4090 48GB | 48 GB | Too small | Too small | Too small | Too small |
| L40S | 48 GB | Too small | Too small | Too small | Too small |
| A100 80GB | 80 GB | Too small | Too small | Too small | Too small |
| H100 | 80 GB | Too small | Too small | Too small | Too small |
| H200 | 141 GB | Too small | Too small | Too small | Too small |
| B200 | 180 GB | Too small | Too small | Too small | Too small |
8K context, 1 sequence. Each card links to its rental page. Current prices are on the pricing page; availability is shown on the deploy page.
KV cache by context length (per sequence)
| Context | KV cache (FP16) | KV cache (FP8) |
|---|---|---|
| 4K | 0.8 GB | 0.4 GB |
| 32K | 6 GB | 3 GB |
| 128K | 24 GB | 12 GB |
Multiply by the number of concurrent sequences. Maximum context in the model config: 1,048,576 tokens. Models with sliding-window attention use less than this upper bound.
VRAM for fine-tuning (2K-token sequences, batch 1)
| Workload | Total | Smallest GPU |
|---|---|---|
| QLoRA fine-tune | 276.9 GB | 4× A100 80GB / 4× H100 / 3× H200 / 2× B200 |
| LoRA fine-tune | 901 GB | 8× H200 / 6× B200 |
| Full fine-tune | 6733.4 GB | — |
How the estimate works
Weights = parameters × bits per parameter ÷ 8. KV cache = per-token KV size from the model config × context × concurrent sequences (halved for an FP8 KV cache). Runtime overhead = 1 GB plus 5% of the weights. LoRA assumes a 16-bit base model ×1.2 + 2 GB, QLoRA a 4-bit base ×1.3 + 2 GB, and full fine-tuning 18 bytes per parameter (AdamW, mixed precision). Real usage varies with the framework, sliding-window attention and batch shape, so leave some headroom.
Parameter count and architecture read from unsloth/Llama-4-Maverick-17B-128E-Instruct on Hugging Face on 2026-12-03. These are estimates, not measurements; leave some headroom.
Llama 4 Maverick (17B×128E) VRAM FAQ
How much VRAM does Llama 4 Maverick (17B×128E) need?
About 748 GB for FP16 weights, 374 GB for FP8 and 226.7 GB at 4-bit, plus KV cache (about 1.5 GB per sequence at an 8K context) and about 1 GB of runtime overhead.
Can Llama 4 Maverick (17B×128E) run on an RTX 4090 (24 GB)?
Not on one 24 GB card: even at 4-bit it needs about 240.6 GB with an 8K context. At Q4_K_M / 4-bit with an 8K context it does not fit on one GPU: 4× A100 80GB / 4× H100 / 2× H200 / 2× B200.
How much VRAM do I need to fine-tune Llama 4 Maverick (17B×128E)?
Roughly 276.9 GB with QLoRA, 901 GB with LoRA on a 16-bit base model, and 6733.4 GB for full fine-tuning with AdamW (2K-token sequences, batch 1).