GPU VRAM calculator · Llama

How much VRAM does Llama 4 Scout (17B×16E) need?

Llama 4 Scout (17B×16E) has 108.64 billion parameters. The weights alone take about 202.4 GB in FP16/BF16, 101.2 GB in FP8 and 61.3 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 (16 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.

Smallest single GPU at Q4_K_M / 4-bit with an 8K context: A100 80GB (80 GB).

At FP16 / BF16 with an 8K context it does not fit on one GPU: 3× A100 80GB / 3× H100 / 2× H200 / 2× B200.

VRAM for inference (8K context, 1 sequence)

PrecisionWeightsTotalSmallest GPU
FP16 / BF16202.4 GB215 GB3× A100 80GB / 3× H100 / 2× H200 / 2× B200
FP8 / INT8101.2 GB108.7 GBH200
Q6_K83 GB89.6 GBH200
Q4_K_M / 4-bit61.3 GB66.9 GBA100 80GB

Which GPU on CloudGPU fits Llama 4 Scout (17B×16E)

GPUVRAMFP16 / BF16FP8 / INT8Q6_KQ4_K_M / 4-bit
RTX 309024 GBToo smallToo smallToo smallToo small
RTX 409024 GBToo smallToo smallToo smallToo small
RTX 509032 GBToo smallToo smallToo smallToo small
RTX 4090 48GB48 GBToo smallToo smallToo smallToo small
L40S48 GBToo smallToo smallToo smallToo small
A100 80GB80 GBToo smallToo smallToo smallFits
H10080 GBToo smallToo smallToo smallFits
H200141 GBToo smallFitsFitsFits
B200180 GBToo smallFitsFitsFits

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)

ContextKV cache (FP16)KV cache (FP8)
4K0.8 GB0.4 GB
32K6 GB3 GB
128K24 GB12 GB

Multiply by the number of concurrent sequences. Maximum context in the model config: 10,485,760 tokens. Models with sliding-window attention use less than this upper bound.

VRAM for fine-tuning (2K-token sequences, batch 1)

WorkloadTotalSmallest GPU
QLoRA fine-tune77.4 GBH200
LoRA fine-tune246.2 GB4× A100 80GB / 4× H100 / 2× H200 / 2× B200
Full fine-tune1822.6 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-Scout-17B-16E-Instruct on Hugging Face on 2026-12-03. These are estimates, not measurements; leave some headroom.

Llama 4 Scout (17B×16E) VRAM FAQ

How much VRAM does Llama 4 Scout (17B×16E) need?

About 202.4 GB for FP16 weights, 101.2 GB for FP8 and 61.3 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 Scout (17B×16E) run on an RTX 4090 (24 GB)?

Not on one 24 GB card: even at 4-bit it needs about 66.9 GB with an 8K context. Smallest single GPU at Q4_K_M / 4-bit with an 8K context: A100 80GB (80 GB).

How much VRAM do I need to fine-tune Llama 4 Scout (17B×16E)?

Roughly 77.4 GB with QLoRA, 246.2 GB with LoRA on a 16-bit base model, and 1822.6 GB for full fine-tuning with AdamW (2K-token sequences, batch 1).