Select a component to explore it. Layer colours match the execution-order strip.Inside attention · Local-attention expert layers4 K/V groups × 8 query heads per group = 32 query heads. Each query reads up to 1,024 positions in its causal window. Select a component to review it.
Earlier context dimmed · current token bright · dashed K/V region cached.
Inside attention · Global-attention expert layers4 K/V groups × 8 query heads per group = 32 query heads. Each query reads the available causal prefix. Select a component to review it.
Earlier context dimmed · current token bright · dashed K/V region cached.
Model-specific details
Local-attention expert layers · 21 repetitions
Three of every four layers use a 1024-token window, followed by eight selected experts of width 896.
Global-attention expert layers · 7 repetitions
Every fourth layer uses full-prefix attention and the same sparse feed-forward block. Full-attention RoPE uses YaRN; local RoPE is unscaled.
Attention and positions
32 query heads and four KV heads, each 128 coordinates wide. Query and key RMSNorm precede RoPE. Local attention reads a 1024-token window; every fourth layer reads the full prefix with YaRN scaling (factor 16 over 8192).
Memory
Four key/value heads of width 128 per token. Local layers keep a 1024-token window; seven global layers retain the full prefix.
A local window with regular global reads
Twenty-one layers read a 1,024-token window; seven read the full prefix. Each attention block is followed by a mixture of experts that selects eight of 64 SwiGLU experts, each of width 896. Query and key heads are normalised before rotary positions are applied.
JetBrains describes this as the same architecture used by Mellum2. Version 2.1 changes the post-training, especially reinforcement learning for coding agents. The diagram follows the released 2.1 configuration; its separate prediction artifact is outside the backbone.