Rúben GalvãoThe Rabbit Hole

The Rabbit Hole / AI / Model architectures

StepFun · Architecture map

Step 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

Parameters
600B · 27B active
Layers
92
Width
4,096
Mixer
Grouped-query
Select a component to explore it. Layer colours match the execution-order strip.
The complete Step 5 Preview architectureInput IDs select embeddings. Layer types execute in the order strip; dotted lines connect the type examples below. 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. 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. Final normalisation and output weights produce vocabulary scores and the next-token distribution.Text becomes token IDs.Text → tokens → IDstheoldrabbitsleepsEmbedding lookup128,8964,096Input token vectorsCL4,09647 vision layers at width 1536; 14-pixel patches. A stride-2 projector converts visual features into language inputs.Vision / videoencoderExecution order · 92 layersLayer 1: Opening dense window layersLayer 2: Opening dense window layersLayer 3: Opening dense window layersLayer 4: Sparse MoE layersLayer 5: Window MoE layersLayer 6: Window MoE layersLayer 7: Window MoE layersLayer 8: Sparse MoE layersLayer 9: Window MoE layersLayer 10: Window MoE layersLayer 11: Window MoE layersLayer 12: Sparse MoE layersLayer 13: Window MoE layersLayer 14: Window MoE layersLayer 15: Window MoE layersLayer 16: Sparse MoE layersLayer 17: Window MoE layersLayer 18: Window MoE layersLayer 19: Window MoE layersLayer 20: Sparse MoE layersLayer 21: Window MoE layersLayer 22: Window MoE layersLayer 23: Window MoE layersLayer 24: Sparse MoE layersLayer 25: Window MoE layersLayer 26: Window MoE layersLayer 27: Window MoE layersLayer 28: Sparse MoE layersLayer 29: Window MoE layersLayer 30: Window MoE layersLayer 31: Window MoE layersLayer 32: Sparse MoE layersLayer 33: Window MoE layersLayer 34: Window MoE layersLayer 35: Window MoE layersLayer 36: Sparse MoE layersLayer 37: Window MoE layersLayer 38: Window MoE layersLayer 39: Window MoE layersLayer 40: Sparse MoE layersLayer 41: Window MoE layersLayer 42: Window MoE layersLayer 43: Window MoE layersLayer 44: Sparse MoE layersLayer 45: Window MoE layersLayer 46: Window MoE layersLayer 47: Window MoE layersLayer 48: Sparse MoE layersLayer 49: Window MoE layersLayer 50: Window MoE layersLayer 51: Window MoE layersLayer 52: Sparse MoE layersLayer 53: Window MoE layersLayer 54: Window MoE layersLayer 55: Window MoE layersLayer 56: Sparse MoE layersLayer 57: Window MoE layersLayer 58: Window MoE layersLayer 59: Window MoE layersLayer 60: Sparse MoE layersLayer 61: Window MoE layersLayer 62: Window MoE layersLayer 63: Window MoE layersLayer 64: Sparse MoE layersLayer 65: Window MoE layersLayer 66: Window MoE layersLayer 67: Window MoE layersLayer 68: Sparse MoE layersLayer 69: Window MoE layersLayer 70: Window MoE layersLayer 71: Window MoE layersLayer 72: Sparse MoE layersLayer 73: Window MoE layersLayer 74: Window MoE layersLayer 75: Window MoE layersLayer 76: Sparse MoE layersLayer 77: Window MoE layersLayer 78: Window MoE layersLayer 79: Window MoE layersLayer 80: Sparse MoE layersLayer 81: Window MoE layersLayer 82: Window MoE layersLayer 83: Window MoE layersLayer 84: Sparse MoE layersLayer 85: Window MoE layersLayer 86: Window MoE layersLayer 87: Window MoE layersLayer 88: Sparse MoE layersLayer 89: Window MoE layersLayer 90: Window MoE layersLayer 91: Window MoE layersLayer 92: Final sparse dense layerOpening dense window layers · matches this colour in the execution-order barOpening dense window layersOpening dense window layers · 3 repetitions3 layers · one layer shown3RMSNorm before this operation.RMSNormGated GQA: Opening dense window layers.Gated GQARotate query and key position components before attention scores; values are unchanged. Opening dense window layers.RoPENormalise queries and keys before attention scores. 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.QK-normSliding-window attention over 512 tokens.512Add the branch output to the original stream. +RMSNorm before this operation.RMSNormSwiGLU: Opening dense window layers.SwiGLUAdd the branch output to the original stream. +Layer type · execution order aboveSparse MoE layers · matches this colour in the execution-order barSparse MoE layersSparse MoE layers · 22 repetitions22 layers · one layer shown22RMSNorm before this operation.RMSNormSparse gated GQA: Sparse MoE layers.Sparse gated GQARotate query and key position components before attention scores; values are unchanged. Sparse MoE layers.Partial RoPENormalise queries and keys before attention scores. 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.QK-normSparse MoE layers.Top 512A separate learned indexer selects up to 512 completed eight-token causal regions per provider group, plus the current causal region.LightningindexerSelected positionsAdd the branch output to the original stream. +RMSNorm before this operation.RMSNormMoE: Sparse MoE layers.MoE8 of 352 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. +8 of 352 experts + 1sharedLayer type · execution order aboveWindow MoE layers · matches this colour in the execution-order barWindow MoE layersWindow MoE layers · 66 repetitions66 layers · one layer shown66RMSNorm before this operation.RMSNormGated GQA: Window MoE layers.Gated GQARotate query and key position components before attention scores; values are unchanged. Window MoE layers.RoPENormalise queries and keys before attention scores. 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.QK-normSliding-window attention over 512 tokens.512Add the branch output to the original stream. +RMSNorm before this operation.RMSNormMoE: Window MoE layers.MoE8 of 352 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. +8 of 352 experts + 1sharedLayer type · execution order aboveFinal sparse dense layer · matches this colour in the execution-order barFinal sparse dense layerFinal sparse dense layer · 1 repetitionsIndependent layer type1RMSNorm before this operation.RMSNormSparse gated GQA: Final sparse dense layer.Sparse gated GQARotate query and key position components before attention scores; values are unchanged. Final sparse dense layer.Partial RoPENormalise queries and keys before attention scores. 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.QK-normFinal sparse dense layer.Top 512Select regions with compressed index keys, then attend to the original token-level K/V inside them.LightningindexerSelected positionsAdd the branch output to the original stream. +RMSNorm before this operation.RMSNormSwiGLU: Final sparse dense layer.SwiGLUAdd the branch output to the original stream. +Layer type · execution order aboveAfter all 92 layer executionsResidual streamLast columnCL4,096Final RMSNormA separate learned vocabulary projection.Output weights4,096128,896Vocabulary scoresSoftmax128,896Next-token probabilities
Inside grouped-query attention · Opening dense window layers
16 query heads per group × 4 K/V groups.

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

Step 5 Preview: Opening dense window layers · grouped-query attention64 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. 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.4 KV groups; the front face shows one representative.4 KV groups16 heads / group; the front face shows one representative.16 heads / groupAttention input. 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.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input4,096CLWq. 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.Wq4,096192Wk. 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.Wk4,096192Wv. 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.Wv4,096192RMSNorm. 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.RMSNormRoPE. 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.RoPERMSNorm. 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.RMSNormRoPE. 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.RoPEK cache. 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.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.K cache192≤ 512V cache. 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.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.V cache192≤ 512Q context. 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.Earlier context is dimmed; outlined columns are current.Current token computation.Q context192CLScaled query–key scores, masking and softmax. 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.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.Window 512CLCL×. 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.×Wg. 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.Wg4,0961σ. 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.σ×. 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.×Joined heads. 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.64Wo. 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.Wo12,2884,096Attention output. 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.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output4,096CL
Inside grouped-query attention · Sparse MoE layers
16 query heads per group × 4 K/V groups.

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

Step 5 Preview: Sparse MoE layers · grouped-query attention64 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. 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.4 KV groups; the front face shows one representative.4 KV groups16 heads / group; the front face shows one representative.16 heads / groupAttention input. 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.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input4,096CLWq. 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.Wq4,096192Wk. 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.Wk4,096192Wv. 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.Wv4,096192RMSNorm. 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.RMSNormRoPE 64. 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.RoPE 64RMSNorm. 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.RMSNormRoPE 64. 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.RoPE 64K cache. 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.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.K cache192CLV cache. 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.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.V cache192CLQ context. 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.Earlier context is dimmed; outlined columns are current.Current token computation.Q context192CLTop 512 regions. 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.Top 512 regionsScaled query–key scores, masking and softmax. 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.CLCL×. 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.×Wg. 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.Wg4,0961σ. 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.σ×. 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.×Joined heads. 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.64Wo. 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.Wo12,2884,096Attention output. 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.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output4,096CL
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 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

Sources for this map