The Rabbit Hole / AI / Model architectures
Meta · Architecture mapLlama 4
Scout and Maverick combine expert layers, chunked rotary attention, global NoPE layers and a vision encoder.
Llama 4, April 2025 · Llama release timeline
Inside Llama 4
Inside grouped-query attention · Chunked-attention layers (three of every four)
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Inside grouped-query attention · Global NoPE layers (every fourth)
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Model-specific details
- Chunked-attention layers (three of every four) · 36 repetitions
- 16 routed experts, 1 selected per token, plus an always-on shared expert. Rotary positions, attention inside 8,192-token chunks.
- Global NoPE layers (every fourth) · 12 repetitions
- Same expert layout. Full attention over the prefix, no rotary positions, attention temperature tuning.
- Attention and positions
- 40 query heads share 8 key/value heads. Three of every four layers attend within 8,192-token chunks using rotary positions; every fourth layer attends over the whole prefix with no positional encoding.
- Memory
- Keys and values for 8 heads, 128 values each, per token per layer. Chunked layers only need the current chunk.
Inside grouped-query attention · Dense layers (odd-numbered)
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Inside grouped-query attention · Expert layers with global NoPE attention
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Model-specific details
- Dense layers (odd-numbered) · 24 repetitions
- Dense SwiGLU network with hidden size 16384. Chunked attention with rotary positions.
- Expert layers with chunked attention · 12 repetitions
- 128 routed experts, 1 selected per token, plus an always-on shared expert. Chunked attention with rotary positions.
- Expert layers with global NoPE attention · 12 repetitions
- Same expert layout. Every fourth layer overall: full attention, no rotary positions, attention temperature tuning.
- Attention and positions
- 40 query heads share 8 key/value heads. Three of every four layers attend within 8,192-token chunks using rotary positions; every fourth layer attends over the whole prefix with no positional encoding.
- Memory
- Keys and values for 8 heads, 128 values each, per token per layer. Chunked layers only need the current chunk.
Scout and Maverick
- Scout: expert networks in all 48 layers, selecting one of 16 routed experts plus one shared expert.
- Maverick: alternates dense and expert feed-forward layers.
Both repeat three rotary, 8,192-token chunked-attention layers followed by one global NoPE layer. Scout adds parameter-free QK normalisation in its rotary layers. Both include a 34-layer vision encoder and a 202,048-token vocabulary.
The diagram uses Scout’s 262,144-token training length and Maverick’s 524,288-token served length. Meta advertises larger extrapolated windows of 10M and 1M respectively.
How it scores
AA Intelligence Index
Version 4.3.2 · higher is better · checked 2026-11-01. Separate from Epoch ECI.
| Checkpoint / size | Result | Evaluation |
|---|---|---|
| Llama 4 ScoutScout | 6 | AA Index 4.3.2Published checkpoint |
| Llama 4 MaverickMaverick | 9 | AA Index 4.3.2Published checkpoint |
Epoch ECI
Results for the checkpoints named below, from Epoch AI, Capabilities & benchmarking (CC BY 4.0), snapshot of 2026-10-16.
| Size | Scored checkpoint | Epoch ECI | GPQA Diamond | SWE-bench Verified |
|---|---|---|---|---|
| Scout | Llama 4 ScoutOpen weights (restricted use) · 2025-04 | 130ahead of 41% of 277 scored models | 51.8% | — |
| Maverick | Llama 4 MaverickOpen weights (restricted use) · 2025-04 | 132ahead of 44% of 277 scored models | 67.0% | — |
Where a model was tested in several reasoning or effort settings, the best score is shown. A dash means no result for that test.
Explore the components
- Embeddings: giving every token a meaning
- Residual connections: when more layers made things worse
- A whole LLM, layer by layer
- RMSNorm: keeping a token's scale under control
- Mixture of experts (MoE): a big model that uses only part of itself
- Sliding-window attention (SWA): a cache that stops growing
- NoPE: attention with no position information at all
- RoPE: position as a rotation
- QK normalisation (QK-Norm) and soft-capping
- RoPE scaling: stretching context beyond the training length
- Vision encoders: how can image patches join the text?
- Grouped-query attention (GQA): sharing keys and values in groups
- Attention, from scratch
- The KV cache: why LLMs remember every key and value
- Routing: selecting experts and weighting their work
- Transformer layers: attention is only half of what you need
Sources for this map
- Llama 4 model card (Meta; context length 10M for Scout, 1M for Maverick)
- Llama 4 Scout config.json (unsloth mirror of the official file)
- Meta, The Llama 4 herd (April 2025)
- Hugging Face Llama4 documentation (config defaults)
- Llama 4 Maverick config.json (unsloth mirror of the official file)
- Context length: Scout pre-trained at 256K (Meta states 10M for Scout, 1M for Maverick)
- Context length: Together AI serves Llama 4 Maverick at 524,288 (will be increased to 1M)
- Context length: Fireworks lists Llama 4 Maverick at 1,048,576 on dedicated deployments