The Rabbit Hole / AI / Model architectures
StepFun · Architecture mapStep 5 Preview
Gated GQA alternates three local windows with one region-indexed sparse layer; most feed-forward branches select eight experts.
Step 5 Preview, September 2026; public weights October 2026 · Step release timeline
Inside Step 5 Preview
Inside grouped-query attention · Opening dense window layers
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Inside grouped-query attention · Sparse MoE layers
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Model-specific details
- Opening dense window layers · 3 repetitions
- Opening dense window layers.
- Sparse MoE layers · 22 repetitions
- Sparse MoE layers.
- 512 regions × 8 tokens
- A separate learned indexer selects up to 512 completed eight-token causal regions per provider group, plus the current causal region.
- Window MoE layers · 66 repetitions
- Window MoE layers.
- Final sparse dense layer · 1 repetitions
- Final sparse dense layer.
- 512 regions × 8 tokens
- Select regions with compressed index keys, then attend to the original token-level K/V inside them.
- Attention and positions
- 64 query heads share four KV groups, each 192 wide. Sliding layers use a 512-token window and full-head RoPE; sparse layers rotate 64 coordinates and use a separate 16-head region indexer. Every attention head has an output gate.
- Memory
- Sliding layers retain 512-token windows. Sparse global layers keep token-level K/V and compressed index keys; region selection does not replace main K/V with compressed values.
Local windows, indexed regions
- The 92-layer backbone repeats three 512-token windows followed by one sparse global attention layer: 69 window layers and 23 sparse layers.
- A separate indexer scores compressed eight-token regions. Main attention reads the original K/V within up to 512 selected completed regions, plus the causal part of the current region.
- The first three and final backbone layers have dense feed-forward networks. The other 88 select eight of 352 routed experts, alongside one shared expert.
The perception encoder supplies image embeddings. BF16, FP8 and NVFP4 share this backbone; three additional multi-token-prediction layers are outside the map.
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
- Grouped-query attention (GQA): sharing keys and values in groups
- Sliding-window attention (SWA): a cache that stops growing
- Sparse attention and the lightning indexer
- Attention gating: should this head add anything?
- QK normalisation (QK-Norm) and soft-capping
- Partial RoPE: rotating only part of each head
- Mixture of experts (MoE): a big model that uses only part of itself
- Transformer layers: attention is only half of what you need
- Vision encoders: how can image patches join the text?
- Multi-token prediction (MTP): learning to look further ahead
- Bounded SwiGLU: clamping and squashing the gatecoming soonA gated feed-forward activation whose values are clamped or smoothly squashed into a range.
- Attention, from scratch
- The KV cache: why LLMs remember every key and value
- RoPE: position as a rotation
- Routing: selecting experts and weighting their work