How much VRAM does Llama 4 Scout (17B active / 109B total) need at Q4_K_M? Native 10M Context

By TechCompare · Updated · How we check

Full context comes to 642 GB, even with expert offload. Reduce context before planning a small deployment, and verify engine support, offload behavior, and actual memory use.

Calculator

Estimated VRAM required

642 GB

109B params at Q4_K_M, 10,485,760 token context, batch 1, inference.

Weights
66.5 GB
KV cache
517 GB
Overhead
58.4 GB

Estimate accuracy: Planning estimate. Rounded model counts, tensor formats, cache packing, and workspace can change actual allocation. Confirm the exact checkpoint and serving engine with a load test.

KV cache exceeds model weights: Consider lowering the context length to save on VRAM. Contexts between 8K and 64K are generally more typical for local setups.

Sliding-window attention applied: This model caps 3 of every 4 layers at a 8192-token window. KV cache estimate is 75% smaller than naive full-attention math at this context length.

Llama 4 Scout uses chunked attention on 36 of its 48 layers. Each of those only looks back within its own 8,192 token chunk, so it keeps at most 8,192 tokens. The other 12 layers are full attention and grow with context.

Hardware that fits

Unified memory machines show a model budget, not their installed memory. We hold back 8 GB for the system, or use the vendor's GPU limit when that's lower. It's a planning estimate, not a hard limit.

No single card or machine in our catalog has enough memory. The multi-GPU setups below do.

Multi-GPU setups

4× NVIDIA B200
Datacenter · 162 GB per card
720 GB
90% used
8× RTX PRO 6000 96GB
Pro · 81.1 GB per card
768 GB
85% used

Pooled cards show up once a model outgrows the biggest single card of that kind. Each card past the first keeps about 1 GB for its own buffers, and that's counted here. Your inference engine has to support the split, and speed also depends on how the cards connect.

At Q4_K_M and 10,485,760 tokens, this model estimates 642 GB with all 109B parameters resident. The configured architecture has 48 layers, 8 KV heads, and head dimension 128. Each token only uses 17B parameters, but that doesn't shrink what has to stay loaded, because different tokens pick different experts. These are planning estimates, not guarantees for a particular inference engine.

How this is calculated

Weights are 109B x 0.61 bytes = 66.49 GB. The FP16 KV cache is 516.61 GB. 12 full attention layers each store 8 heads x 128 head dimension x 10,485,760 tokens x 2 (K and V) x 2 bytes, and the other 36 layers keep at most 8,192 tokens each. The calculator adds 10% of weights plus cache as overhead: 58.31 GB, for 641.41 GB total.

Verdict

The full context needs at least 9 GPUs of 80 GB or 5 of 141 GB, before distribution constraints and additional runtime needs. Each token needs 49,267 bytes of FP16 KV storage under this model, or 49.3 GB per million tokens.

More Llama scenarios

Kimi K3.1 Pro at Q4_K_M
A 2.78T expert pool with 24 latent attention layers and fixed state in the other 69.
View details
Mistral Large 4 at Q4_K_M
A 1T expert pool with 63 latent cache owners and 44 layers that also store an index key.
View details
Muse Spark Open at Q4_K_M
Only 16 of its 62 layers grow with context, and the other 46 hold a 2,048 token window.
View details

Frequently asked questions

What's iRoPE and why does it support 10M context?
Scout uses interleaved attention and positional encoding to support its advertised long context. 36 of its 48 layers use RoPE with chunked attention, so each one only looks back within its own 8,192 token chunk and keeps at most 8,192 tokens. Every 4th layer drops RoPE and sees the whole context, and those 12 layers hold almost all of the cache. Actual engine implementations may use different cache strategies. Maverick has a separate 1M-token context specification.
Can Scout run on a single 24 GB GPU?
Not at the configured 10M context: the modeled cache alone is about 517 GB. Even at 32,768 tokens, the resident estimate is about 77 GB. Moving expert weights to system RAM cuts VRAM, but the host then has to hold them and every token gets slower, so measure real memory use before counting on a 24 GB card.
What about Maverick (17B/400B)?
Same active params (17B), 4x larger expert pool. Resident is ~271 GB at Q4 with an 8K context (multi-GPU). Stronger reasoning than Scout but the native context window is 1M.