Rúben GalvãoThe Rabbit Hole

The Rabbit Hole / AI / Model architectures

Alibaba Qwen · Architecture map

Qwen3.8-Flash-Next

Three Gated DeltaNet layers per sparse-attention layer, four gated residual streams and an n-gram table feeding layer 2.

Qwen3.8-Flash-Next, August 2026 · Qwen release timeline

Inside Qwen3.8-Flash-Next

Parameters
125B · 6B active
Layers
48
Width
2,560
Mixer
Hybrid
Select a component to explore it. Layer colours match the execution-order strip.
The complete Qwen3.8-Flash-Next architectureInput IDs select embeddings. Layer types execute in the order strip; dotted lines connect the type examples below. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens. Sparse-attention layers cache keys and values for 2 heads of size 256 per token, plus the indexer's keys. Gated DeltaNet layers keep a fixed-size state and a short convolution buffer, not a per-token cache. Final normalisation and output weights produce vocabulary scores and the next-token distribution.Text becomes token IDs.Text → tokens → IDstheoldrabbitsleepsEmbedding lookup248,3202,560Input token vectorsCL2,56027-layer vision transformer (width 1152, 16 heads, patch 16, 2×2 merging), projected to 2560Vision / videoencoderExecution order · 48 layersLayer 1: Layer 1Layer 2: Layer 2Layer 3: Gated DeltaNet layers (three of every four)Layer 4: Qwen Sparse Attention layers 4, 8, 12 and so on to 48Layer 5: Gated DeltaNet layers (three of every four)Layer 6: Gated DeltaNet layers (three of every four)Layer 7: Gated DeltaNet layers (three of every four)Layer 8: Qwen Sparse Attention layers 4, 8, 12 and so on to 48Layer 9: Gated DeltaNet layers (three of every four)Layer 10: Gated DeltaNet layers (three of every four)Layer 11: Gated DeltaNet layers (three of every four)Layer 12: Qwen Sparse Attention layers 4, 8, 12 and so on to 48Layer 13: Gated DeltaNet layers (three of every four)Layer 14: Gated DeltaNet layers (three of every four)Layer 15: Gated DeltaNet layers (three of every four)Layer 16: Qwen Sparse Attention layers 4, 8, 12 and so on to 48Layer 17: Gated DeltaNet layers (three of every four)Layer 18: Gated DeltaNet layers (three of every four)Layer 19: Gated DeltaNet layers (three of every four)Layer 20: Qwen Sparse Attention layers 4, 8, 12 and so on to 48Layer 21: Gated DeltaNet layers (three of every four)Layer 22: Gated DeltaNet layers (three of every four)Layer 23: Gated DeltaNet layers (three of every four)Layer 24: Qwen Sparse Attention layers 4, 8, 12 and so on to 48Layer 25: Gated DeltaNet layers (three of every four)Layer 26: Gated DeltaNet layers (three of every four)Layer 27: Gated DeltaNet layers (three of every four)Layer 28: Qwen Sparse Attention layers 4, 8, 12 and so on to 48Layer 29: Gated DeltaNet layers (three of every four)Layer 30: Gated DeltaNet layers (three of every four)Layer 31: Gated DeltaNet layers (three of every four)Layer 32: Qwen Sparse Attention layers 4, 8, 12 and so on to 48Layer 33: Gated DeltaNet layers (three of every four)Layer 34: Gated DeltaNet layers (three of every four)Layer 35: Gated DeltaNet layers (three of every four)Layer 36: Qwen Sparse Attention layers 4, 8, 12 and so on to 48Layer 37: Gated DeltaNet layers (three of every four)Layer 38: Gated DeltaNet layers (three of every four)Layer 39: Gated DeltaNet layers (three of every four)Layer 40: Qwen Sparse Attention layers 4, 8, 12 and so on to 48Layer 41: Gated DeltaNet layers (three of every four)Layer 42: Gated DeltaNet layers (three of every four)Layer 43: Gated DeltaNet layers (three of every four)Layer 44: Qwen Sparse Attention layers 4, 8, 12 and so on to 48Layer 45: Gated DeltaNet layers (three of every four)Layer 46: Gated DeltaNet layers (three of every four)Layer 47: Gated DeltaNet layers (three of every four)Layer 48: Qwen Sparse Attention layers 4, 8, 12 and so on to 48Layer 1 · matches this colour in the execution-order barLayer 1Layer 1 · 1 repetitionsIndependent layer type1RMSNorm before this operation.RMSNormGated DeltaNet: Gated DeltaNet, then a mixture of experts.Gated DeltaNetGated residual (4 streams). Combine the residual and branch contributions using the model’s learned weighting. +RMSNorm before this operation.RMSNormMoE: Gated DeltaNet, then a mixture of experts.MoE10 of 512 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.Gated residual (4 streams). Combine the residual and branch contributions using the model’s learned weighting. +10 of 512 experts + 1sharedLayer type · execution order aboveLayer 2 · matches this colour in the execution-order barLayer 2Layer 2 · 1 repetitionsIndependent layer type1Hashed bigram and trigram embeddings, gated by the streams and passed through a short dilated convolution, added before this layer.n-gram embedding+RMSNorm before this operation.RMSNormGated DeltaNet: Gated DeltaNet, then a mixture of experts. The n-gram embedding is added to the four streams before this layer.Gated DeltaNetGated residual (4 streams). Combine the residual and branch contributions using the model’s learned weighting. +RMSNorm before this operation.RMSNormMoE: Gated DeltaNet, then a mixture of experts. The n-gram embedding is added to the four streams before this layer.MoE10 of 512 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.Gated residual (4 streams). Combine the residual and branch contributions using the model’s learned weighting. +10 of 512 experts + 1sharedLayer type · execution order aboveGated DeltaNet layers (three of every four) · matches this colour in the execution-order barGated DeltaNet layers (three of eve…Gated DeltaNet layers (three of every four) · 34 repetitions34 layers · one layer shown34RMSNorm before this operation.RMSNormGated DeltaNet: Linear attention, then 512 routed experts (size 640), 10 chosen per token, plus 1 shared expert (size 640).Gated DeltaNetGated residual (4 streams). Combine the residual and branch contributions using the model’s learned weighting. +RMSNorm before this operation.RMSNormMoE: Linear attention, then 512 routed experts (size 640), 10 chosen per token, plus 1 shared expert (size 640).MoE10 of 512 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.Gated residual (4 streams). Combine the residual and branch contributions using the model’s learned weighting. +10 of 512 experts + 1sharedLayer type · execution order aboveQwen Sparse Attention layers 4, 8, 12 and so on to 48 · matches this colour in the execution-order barQwen Sparse Attention layers 4, 8, …Qwen Sparse Attention layers 4, 8, 12 and so on to 48 · 12 repetitions12 layers · one layer shown12RMSNorm before this operation.RMSNormQwen Sparse: Softmax attention restricted to the keys an indexer picks, in micro-blocks. Same MoE block as the other layers.Qwen SparseRotate query and key position components before attention scores; values are unchanged. Softmax attention restricted to the keys an indexer picks, in micro-blocks. Same MoE block as the other layers.Partial RoPENormalise queries and keys before attention scores. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.QK-norm36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.Output gateAn indexer scores keys compressed four to one and the layer reads the best 512 blocks (2048 tokens).Block indexerSelected positionsGated residual (4 streams). Combine the residual and branch contributions using the model’s learned weighting. +RMSNorm before this operation.RMSNormMoE: Softmax attention restricted to the keys an indexer picks, in micro-blocks. Same MoE block as the other layers.MoE10 of 512 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.Gated residual (4 streams). Combine the residual and branch contributions using the model’s learned weighting. +10 of 512 experts + 1sharedLayer type · execution order aboveAfter all 48 layer executions4 residual streamsLast columnCL2,560Final RMSNormA separate learned vocabulary projection.Output weights2,560248,320Vocabulary scoresSoftmax248,320Next-token probabilities
Inside linear attention · Layer 1
48 state heads · 16 Q/K heads.

Earlier context dimmed · current token bright · dashed path carries state to the next step.

Qwen3.8-Flash-Next: Layer 1 · linear attention36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens. Sparse-attention layers cache keys and values for 2 heads of size 256 per token, plus the indexer's keys. Gated DeltaNet layers keep a fixed-size state and a short convolution buffer, not a per-token cache.48 value heads; the front face shows one representative.48 value heads48 state heads; the front face shows one representative.48 state headsAttention input. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input2,560CLWq. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.Wq2,560128Wk. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.Wk2,560128Wv. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.Wv2,560128Conv 4 + SiLU. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.Conv 4 + SiLUConv 4 + SiLU. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.Conv 4 + SiLUConv 4 + SiLU. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.Conv 4 + SiLUL2-norm. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.L2-normL2-norm. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.L2-normQ. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.Earlier context is dimmed; outlined columns are current.Current token computation.Q128CLK. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.Earlier context is dimmed; outlined columns are current.Current token computation.K128CLV. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.Earlier context is dimmed; outlined columns are current.Current token computation.V128CLPrevious state. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.Previous state128128Decay + delta. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.Decay + deltaInput projections produce the decay and write-strength gates. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.α / β2,5602Updated state. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.Updated state128128×. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.×Gated RMSNorm. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.Gated RMSNormJoined heads. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.48Wo. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.Wo6,1442,560Attention output. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output2,560CL
Inside grouped-query attention · Qwen Sparse Attention layers 4, 8, 12 and so on to 48
12 query heads per group × 2 K/V groups.

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

Qwen3.8-Flash-Next: Qwen Sparse Attention layers 4, 8, 12 and so on to 48 · grouped-query attention36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens. Sparse-attention layers cache keys and values for 2 heads of size 256 per token, plus the indexer's keys. Gated DeltaNet layers keep a fixed-size state and a short convolution buffer, not a per-token cache.2 KV groups; the front face shows one representative.2 KV groups12 heads / group; the front face shows one representative.12 heads / groupAttention input. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input2,560CLWq. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.Wq2,560256Wk. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.Wk2,560256Wv. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.Wv2,560256RMSNorm. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.RMSNormRoPE 64. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.RoPE 64RMSNorm. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.RMSNormRoPE 64. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.RoPE 64K cache. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.K cache256CLV cache. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.V cache256CLQ context. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.Earlier context is dimmed; outlined columns are current.Current token computation.Q context256CLTop 512 blocks. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.Top 512 blocksScaled query–key scores, masking and softmax. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.CLCL×. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.×Wg. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.Wg2,560256σ. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.σ×. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.×Joined heads. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.24Wo. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.Wo6,1442,560Attention output. 36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output2,560CL
Model-specific details
Layer 1 · 1 repetitions
Gated DeltaNet, then a mixture of experts.
Layer 2 · 1 repetitions
Gated DeltaNet, then a mixture of experts. The n-gram embedding is added to the four streams before this layer.
n-gram embedding
Hashed bigram and trigram embeddings, gated by the streams and passed through a short dilated convolution, added before this layer.
Gated DeltaNet layers (three of every four) · 34 repetitions
Linear attention, then 512 routed experts (size 640), 10 chosen per token, plus 1 shared expert (size 640).
Qwen Sparse Attention layers 4, 8, 12 and so on to 48 · 12 repetitions
Softmax attention restricted to the keys an indexer picks, in micro-blocks. Same MoE block as the other layers.
block selection (indexer)
An indexer scores keys compressed four to one and the layer reads the best 512 blocks (2048 tokens).
Attention and positions
36 layers use Gated DeltaNet (16 query/key heads and 48 value heads of size 128, short convolution of width 4). 12 layers, every fourth, use Qwen Sparse Attention: 24 query heads share 2 key/value heads of size 256, with query/key norms, a sigmoid output gate and rotary on a quarter of each head (64 of 256, multimodal sections 11/11/10). A small indexer (4 query heads, 1 key head, size 128) scores keys compressed four to one and keeps a budget of 512 blocks, 2048 tokens.
Memory
Sparse-attention layers cache keys and values for 2 heads of size 256 per token, plus the indexer's keys. Gated DeltaNet layers keep a fixed-size state and a short convolution buffer, not a per-token cache.

Sparse attention and a wider residual

The 48-layer stack repeats three Gated DeltaNet layers and one sparse-attention layer. An indexer selects micro-blocks with a 2,048-token budget.

The native context is 262,144 tokens; the card describes extension to 1M.

How it scores

AA Intelligence Index

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

Checkpoint / sizeResultEvaluation
Qwen3.8-Flash-Next40AA Index 4.3.2Published checkpoint
AA Index distributionBest checkpoint per model variant among 97 scored variants in this atlas. Qwen3.8-Flash-Next scores 40; 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 →
Qwen3.8-Flash-Next: 40. Distribution of 97 scored variants in this atlas, using each variant’s best checkpoint. Known estimates excluded.

Explore the components

Sources for this map