Rúben GalvãoThe Rabbit Hole

The Rabbit Hole / AI / Model architectures

Mistral AI · Architecture map

Mistral Small 4 119B

A small latent-attention mixture of experts in the DeepSeek mould: 36 layers, 128 experts with 4 chosen, no dense layers, and a vision encoder.

Mistral Small 4 119B 2603, March 2026 · Mistral release timeline

Inside Mistral Small 4 119B

Parameters
119B · 6.5B active
Layers
36
Width
4,096
Mixer
Latent
Select a component to explore it.
The complete Mistral Small 4 119B architectureInput IDs select embeddings. Each layer adds its updates along the residual stream. 32 heads with multi-head latent attention: queries go through a 1024-wide latent, keys and values through a 256-wide latent plus a 64-wide shared rotary key. Each head has a 64-wide content part and a 64-wide rotary part for queries and keys, and a value size of 128. Rotary positions use YaRN scaling (factor 128 from 8192). No sliding window. Each token and layer stores the 256-value KV latent plus the 64-value rotary key (320 values), not per-head keys and values. Final normalisation and output weights produce vocabulary scores and the next-token distribution.Text becomes token IDs.Text → tokens → IDstheoldrabbitsleepsEmbedding lookup131,0724,096Input token vectorsCL4,09624-layer Pixtral-type vision transformer (width 1024, 16 heads, patch 14, images up to 1540 px), 2x2 spatial merge, a projector with GELU into the 4096-wide streamVision / videoencoderTransformer layers 1–36Transformer layers 1–36 · 36 repetitions36 layers · one layer shown36RMSNorm before this operation.RMSNormLatent attention: Latent attention, then an expert block in every layer (no dense layers): 128 routed experts (size 2048), 4 chosen per token, plus 1 shared expert (size 2048).Latent attentionRotate query and key position components before attention scores; values are unchanged. Latent attention, then an expert block in every layer (no dense layers): 128 routed experts (size 2048), 4 chosen per token, plus 1 shared expert (size 2048).RoPE + YaRN32 heads with multi-head latent attention: queries go through a 1024-wide latent, keys and values through a 256-wide latent plus a 64-wide shared rotary key. Each head has a 64-wide content part and a 64-wide rotary part for queries and keys, and a value size of 128. Rotary positions use YaRN scaling (factor 128 from 8192). No sliding window.Query scalingAdd the branch output to the original stream. +RMSNorm before this operation.RMSNormMoE: Latent attention, then an expert block in every layer (no dense layers): 128 routed experts (size 2048), 4 chosen per token, plus 1 shared expert (size 2048).MoE4 of 128 routed experts selected per token. Highlighted boxes are schematic; boxes do not correspond one-to-one to experts. 1 shared experts run for every token.Add the branch output to the original stream. +4 of 128 experts + 1sharedResidual streamLast columnCL4,096Final RMSNormA separate learned vocabulary projection.Output weights4,096131,072Vocabulary scoresSoftmax131,072Next-token probabilities
Inside latent attention · Transformer layers 1–36
32 heads · 256 cached latent values + 64 rotary values.

Earlier context dimmed · current token bright · dashed regions contain cached entries.

Mistral Small 4 119B: Transformer layers 1–36 · latent attention32 heads with multi-head latent attention: queries go through a 1024-wide latent, keys and values through a 256-wide latent plus a 64-wide shared rotary key. Each head has a 64-wide content part and a 64-wide rotary part for queries and keys, and a value size of 128. Rotary positions use YaRN scaling (factor 128 from 8192). No sliding window. Each token and layer stores the 256-value KV latent plus the 64-value rotary key (320 values), not per-head keys and values.1 shared latent cache; the front face shows one representative.1 shared latent cache32 attention heads; the front face shows one representative.32 attention headsAttention input. 32 heads with multi-head latent attention: queries go through a 1024-wide latent, keys and values through a 256-wide latent plus a 64-wide shared rotary key. Each head has a 64-wide content part and a 64-wide rotary part for queries and keys, and a value size of 128. Rotary positions use YaRN scaling (factor 128 from 8192). No sliding window.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input4,096CLWq↓. 32 heads with multi-head latent attention: queries go through a 1024-wide latent, keys and values through a 256-wide latent plus a 64-wide shared rotary key. Each head has a 64-wide content part and a 64-wide rotary part for queries and keys, and a value size of 128. Rotary positions use YaRN scaling (factor 128 from 8192). No sliding window.Wq↓4,0961,024RMSNorm. 32 heads with multi-head latent attention: queries go through a 1024-wide latent, keys and values through a 256-wide latent plus a 64-wide shared rotary key. Each head has a 64-wide content part and a 64-wide rotary part for queries and keys, and a value size of 128. Rotary positions use YaRN scaling (factor 128 from 8192). No sliding window.RMSNormWq↑. 32 heads with multi-head latent attention: queries go through a 1024-wide latent, keys and values through a 256-wide latent plus a 64-wide shared rotary key. Each head has a 64-wide content part and a 64-wide rotary part for queries and keys, and a value size of 128. Rotary positions use YaRN scaling (factor 128 from 8192). No sliding window.Wq↑1,024128RoPE 64. 32 heads with multi-head latent attention: queries go through a 1024-wide latent, keys and values through a 256-wide latent plus a 64-wide shared rotary key. Each head has a 64-wide content part and a 64-wide rotary part for queries and keys, and a value size of 128. Rotary positions use YaRN scaling (factor 128 from 8192). No sliding window.RoPE 64Wkv↓. 32 heads with multi-head latent attention: queries go through a 1024-wide latent, keys and values through a 256-wide latent plus a 64-wide shared rotary key. Each head has a 64-wide content part and a 64-wide rotary part for queries and keys, and a value size of 128. Rotary positions use YaRN scaling (factor 128 from 8192). No sliding window.Wkv↓4,096256RMSNorm. 32 heads with multi-head latent attention: queries go through a 1024-wide latent, keys and values through a 256-wide latent plus a 64-wide shared rotary key. Each head has a 64-wide content part and a 64-wide rotary part for queries and keys, and a value size of 128. Rotary positions use YaRN scaling (factor 128 from 8192). No sliding window.RMSNorm256Wkᴿ. 32 heads with multi-head latent attention: queries go through a 1024-wide latent, keys and values through a 256-wide latent plus a 64-wide shared rotary key. Each head has a 64-wide content part and a 64-wide rotary part for queries and keys, and a value size of 128. Rotary positions use YaRN scaling (factor 128 from 8192). No sliding window.Wkᴿ4,09664RoPE 64. 32 heads with multi-head latent attention: queries go through a 1024-wide latent, keys and values through a 256-wide latent plus a 64-wide shared rotary key. Each head has a 64-wide content part and a 64-wide rotary part for queries and keys, and a value size of 128. Rotary positions use YaRN scaling (factor 128 from 8192). No sliding window.RoPE 64cᴷⱽ ⊕ kᴿ. 32 heads with multi-head latent attention: queries go through a 1024-wide latent, keys and values through a 256-wide latent plus a 64-wide shared rotary key. Each head has a 64-wide content part and a 64-wide rotary part for queries and keys, and a value size of 128. Rotary positions use YaRN scaling (factor 128 from 8192). No sliding window.cᴷⱽ ⊕ kᴿLatent cache. 32 heads with multi-head latent attention: queries go through a 1024-wide latent, keys and values through a 256-wide latent plus a 64-wide shared rotary key. Each head has a 64-wide content part and a 64-wide rotary part for queries and keys, and a value size of 128. Rotary positions use YaRN scaling (factor 128 from 8192). No sliding window.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.Latent cache320CLWk↑. 32 heads with multi-head latent attention: queries go through a 1024-wide latent, keys and values through a 256-wide latent plus a 64-wide shared rotary key. Each head has a 64-wide content part and a 64-wide rotary part for queries and keys, and a value size of 128. Rotary positions use YaRN scaling (factor 128 from 8192). No sliding window.Wk↑25664Wv↑. 32 heads with multi-head latent attention: queries go through a 1024-wide latent, keys and values through a 256-wide latent plus a 64-wide shared rotary key. Each head has a 64-wide content part and a 64-wide rotary part for queries and keys, and a value size of 128. Rotary positions use YaRN scaling (factor 128 from 8192). No sliding window.Wv↑256128kᶜ ⊕ kᴿ. 32 heads with multi-head latent attention: queries go through a 1024-wide latent, keys and values through a 256-wide latent plus a 64-wide shared rotary key. Each head has a 64-wide content part and a 64-wide rotary part for queries and keys, and a value size of 128. Rotary positions use YaRN scaling (factor 128 from 8192). No sliding window.kᶜ ⊕ kᴿ128Query scale. 32 heads with multi-head latent attention: queries go through a 1024-wide latent, keys and values through a 256-wide latent plus a 64-wide shared rotary key. Each head has a 64-wide content part and a 64-wide rotary part for queries and keys, and a value size of 128. Rotary positions use YaRN scaling (factor 128 from 8192). No sliding window.Query scaleQ context. 32 heads with multi-head latent attention: queries go through a 1024-wide latent, keys and values through a 256-wide latent plus a 64-wide shared rotary key. Each head has a 64-wide content part and a 64-wide rotary part for queries and keys, and a value size of 128. Rotary positions use YaRN scaling (factor 128 from 8192). No sliding window.Earlier context is dimmed; outlined columns are current.Current token computation.Q context128CLScaled query–key scores, masking and softmax. 32 heads with multi-head latent attention: queries go through a 1024-wide latent, keys and values through a 256-wide latent plus a 64-wide shared rotary key. Each head has a 64-wide content part and a 64-wide rotary part for queries and keys, and a value size of 128. Rotary positions use YaRN scaling (factor 128 from 8192). No sliding window.CLCL×. 32 heads with multi-head latent attention: queries go through a 1024-wide latent, keys and values through a 256-wide latent plus a 64-wide shared rotary key. Each head has a 64-wide content part and a 64-wide rotary part for queries and keys, and a value size of 128. Rotary positions use YaRN scaling (factor 128 from 8192). No sliding window.×Joined heads. 32 heads with multi-head latent attention: queries go through a 1024-wide latent, keys and values through a 256-wide latent plus a 64-wide shared rotary key. Each head has a 64-wide content part and a 64-wide rotary part for queries and keys, and a value size of 128. Rotary positions use YaRN scaling (factor 128 from 8192). No sliding window.32Wo. 32 heads with multi-head latent attention: queries go through a 1024-wide latent, keys and values through a 256-wide latent plus a 64-wide shared rotary key. Each head has a 64-wide content part and a 64-wide rotary part for queries and keys, and a value size of 128. Rotary positions use YaRN scaling (factor 128 from 8192). No sliding window.Wo4,0964,096Attention output. 32 heads with multi-head latent attention: queries go through a 1024-wide latent, keys and values through a 256-wide latent plus a 64-wide shared rotary key. Each head has a 64-wide content part and a 64-wide rotary part for queries and keys, and a value size of 128. Rotary positions use YaRN scaling (factor 128 from 8192). No sliding window.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output4,096CL
Model-specific details
Transformer layers 1–36 · 36 repetitions
Latent attention, then an expert block in every layer (no dense layers): 128 routed experts (size 2048), 4 chosen per token, plus 1 shared expert (size 2048).
Attention and positions
32 heads with multi-head latent attention: queries go through a 1024-wide latent, keys and values through a 256-wide latent plus a 64-wide shared rotary key. Each head has a 64-wide content part and a 64-wide rotary part for queries and keys, and a value size of 128. Rotary positions use YaRN scaling (factor 128 from 8192). No sliding window.
Memory
Each token and layer stores the 256-value KV latent plus the 64-value rotary key (320 values), not per-head keys and values.

A smaller latent-attention MoE

All 36 layers use experts at width 4,096. Each selects four of 128 routed experts plus one shared expert, with about 6.5B parameters active out of 119B.

The query latent is 1,024-wide; the KV latent is 256-wide with 64 position coordinates. A 24-layer vision encoder supplies images.

The 2603 card and serving command use 262,144 tokens. The config permits 1,048,576 positions with long-context scaling.

How it scores

AA Intelligence Index

Version 4.3.2 · higher is better · checked 2026-11-01. Separate from Epoch ECI.

Checkpoint / sizeResultEvaluation
Mistral Small 411AA Index 4.3.2Best evaluated setting
AA Index distributionBest checkpoint per model variant among 97 scored variants in this atlas. Mistral Small 4 scores 11; its bin is highlighted. Known estimates are excluded.Model variants0.0–3.0: 0 variants3.0–6.0: 15 variants6.0–9.0: 21 variants9.0–12.0: 13 variants12.0–15.0: 9 variants15.0–18.0: 5 variants18.0–21.0: 5 variants21.0–24.0: 6 variants24.0–27.0: 4 variants27.0–30.0: 2 variants30.0–33.0: 2 variants33.0–36.0: 2 variants36.0–39.0: 2 variants39.0–42.0: 3 variants42.0–45.0: 4 variants45.0–48.0: 3 variants48.0–51.0: 0 variants51.0–54.0: 0 variants54.0–57.0: 1 variants57.0–60.0: 0 variants21003060AA Index 4.3.2 →
Mistral Small 4: 11. Distribution of 97 scored variants in this atlas, using each variant’s best checkpoint. Known estimates excluded.

Explore the components

Sources for this map