mlx-community · text · mixture of experts

Llama-4-Scout-17B-16E-Instruct-4bit

mlx-community/Llama-4-Scout-17B-16E-Instruct-4bit

Llama-4-Scout-17B-16E-Instruct-4bit at Q4_K_M is exactly 22,491,854,144 bytes (20.95 GiB / 22.49 GB) — an effective 10.598 bits per weight, not the nominal 4.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
17.0B
total, not active
Architecture
llama
48 layers
Context
10,485,760
native (config.json)
License
other

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
Q4_K_M20.95 GiB22,491,854,14410.598glogwa68
Q8_026.16 GiB28,094,395,71213.238glogwa68
F1637.96 GiB40,762,340,67219.208glogwa68

KV cache by context

unresolved

This model declares a 8,192-token sliding window, but we could not establish which layers use it. Its architecture publishes the layout as a per-layer array inside the model file rather than as a period in config.json, and we have not yet ingested that array.

A flat context × layers × heads figure would be substantially too high, so we are not showing one. This is tracked as a known gap rather than filled with a guess.

Compare with

same modality, comparable size

Will it run on your card?

full quant x context sweep

Why other calculators give a different number

A parameters × bits ÷ 8 estimate puts Q4_K_M at roughly 8.89 GiB. The real file is 20.95 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
48
Attention heads
40
KV heads
8
Head dim
128
Hidden size
5120
Vocab
202,048
Sliding window
8192
SWA period
MLA
no
Experts
16
Experts per token
1
use_sliding_window

Questions people ask

How much VRAM does Llama-4-Scout-17B-16E-Instruct-4bit need?
Q4_K_M is exactly 22,491,854,144 bytes (20.95 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
Is Llama-4-Scout-17B-16E-Instruct-4bit a mixture-of-experts model?
Yes — 16 experts, 1 routed per token. Every expert must be resident, but only the routed ones are read per token, which is why its memory requirement and its speed behave very differently.
Which quantization of Llama-4-Scout-17B-16E-Instruct-4bit should I use?
Q4_K_M is the usual default. Pick the largest quantization that fits your card at the context you actually need — the table above gives exact sizes for every one published.