The Rabbit Hole / AI / Model architectures
StepFun · Architecture mapStep 3.5 Flash
A 196B mixture-of-experts with three sliding-window layers for every full-attention layer, and a per-head gate on the attention output. Step 3.7 Flash adds a vision encoder to the same text stack.
Step-3.5-Flash (February 2026) and Step-3.7-Flash (May 2026) · Step release timeline
Inside Step 3.5 Flash
Inside grouped-query attention · Full-attention dense layer
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Inside grouped-query attention · Sliding-window dense layers
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Model-specific details
- Full-attention dense layer · 1 repetitions
- Layer 1. Attention over the whole context (64 query heads, 8 key/value heads), then a dense gated feed-forward network of hidden size 11264. RoPE base 5,000,000 on half of each head, with Llama-3-style scaling (factor 2 from 131,072).
- Sliding-window dense layers · 2 repetitions
- Layers 2 and 3. Attention over the last 512 tokens (96 query heads, 8 key/value heads), then a dense gated feed-forward network of hidden size 11264. RoPE base 10,000 on the whole head, no scaling.
- Full-attention mixture-of-experts layers · 11 repetitions
- Layers 5, 9, 13 and every fourth layer after, up to 45. Full attention, then 288 routed experts of hidden size 1280 (8 chosen per token) plus one shared expert of hidden size 1280.
- Sliding-window mixture-of-experts layers · 31 repetitions
- The other layers from 4 to 44. Sliding-window attention over 512 tokens, then the same 288 routed experts (8 chosen) and one shared expert.
- Attention and positions
- 8 key/value heads in every layer, 128 wide. Full-attention layers have 64 query heads and sliding-window layers have 96. Three layers in four look back only 512 tokens; every fourth layer, starting with the first, sees the whole context. Each head's output is multiplied by a sigmoid gate computed from the layer input.
- Memory
- Keys and values for 8 heads of size 128 per token per layer. The 33 sliding-window layers keep only the last 512 tokens; the 12 full-attention layers keep everything.
Inside grouped-query attention · Full-attention dense layer
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Inside grouped-query attention · Sliding-window dense layers
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Model-specific details
- Full-attention dense layer · 1 repetitions
- Layer 1. Attention over the whole context (64 query heads, 8 key/value heads), then a dense gated feed-forward network of hidden size 11264. RoPE base 5,000,000 on half of each head, with Llama-3-style scaling (factor 2 from 131,072).
- Sliding-window dense layers · 2 repetitions
- Layers 2 and 3. Attention over the last 512 tokens (96 query heads, 8 key/value heads), then a dense gated feed-forward network of hidden size 11264. RoPE base 10,000 on the whole head, no scaling.
- Full-attention mixture-of-experts layers · 11 repetitions
- Layers 5, 9, 13 and every fourth layer after, up to 45. Full attention, then 288 routed experts of hidden size 1280 (8 chosen per token) plus one shared expert of hidden size 1280.
- Sliding-window mixture-of-experts layers · 31 repetitions
- The other layers from 4 to 44. Sliding-window attention over 512 tokens, then the same 288 routed experts (8 chosen) and one shared expert.
- Attention and positions
- 8 key/value heads in every layer, 128 wide. Full-attention layers have 64 query heads and sliding-window layers have 96. Three layers in four look back only 512 tokens; every fourth layer, starting with the first, sees the whole context. Each head's output is multiplied by a sigmoid gate computed from the layer input.
- Memory
- Keys and values for 8 heads of size 128 per token per layer. The 33 sliding-window layers keep only the last 512 tokens; the 12 full-attention layers keep everything.
Text and vision variants
The 45-layer text stack has twelve global layers and 33 local layers with a 512-token window. Global attention uses 64 query heads; local attention uses 96. Both share eight key/value heads and apply head-wise output gates.
The first three layers are dense. Later layers select eight of 288 experts of width 1,280 plus one shared expert.
Global layers rotate half each head with long-context scaling; local layers rotate the full head. Context is 262,144 tokens.
The picker also includes Step 3.7 Flash, which adds a 1.8B-parameter vision encoder.
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 |
|---|---|---|
| Step 3.5 Flash3.5 Flash (text) | 17 | AA Index 4.3.2Published checkpoint |
| Step 3.7 Flash3.7 Flash (text and images) | 19 | AA Index 4.3.2Published checkpoint |
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
- Sliding-window attention (SWA): a cache that stops growing
- Grouped-query attention (GQA): sharing keys and values in groups
- Attention gating: should this head add anything?
- QK normalisation (QK-Norm) and soft-capping
- RoPE: position as a rotation
- Partial RoPE: rotating only part of each head
- RoPE scaling: stretching context beyond the training length
- Mixture of experts (MoE): a big model that uses only part of itself
- Routing: selecting experts and weighting their work
- 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
- Neural network layers: more inputs, more neurons
- Vision encoders: how can image patches join the text?