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.
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
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
Related guides
Frequently asked questions
What's iRoPE and why does it support 10M context?
Can Scout run on a single 24 GB GPU?
What about Maverick (17B/400B)?
Related tools
RAM Latency Calculator
Convert DDR3/DDR4/DDR5 timings (CL, tRCD, tRP, tRAS) into true latency in nanoseconds.
Use toolPower Cost Estimator
Estimate annual electricity costs for your PC, Server, or TV.
Use toolData Transfer Calculator
Calculate file transfer time or the speed you need over USB, Wi-Fi or Ethernet, with latency.
Use toolMemory and Storage Throughput Visualizer
Visualize the large speed gap between CPU cache, RAM, and storage.
Use tool