Rúben GalvãoThe Rabbit Hole

The Rabbit Hole / AI / Model architectures

Moonshot AI · Architecture map

Kimi Linear 48B-A3B

Three layers of linear attention for every layer of full attention, so most layers keep a fixed-size state instead of a growing cache.

Kimi Linear 48B-A3B Instruct, October 2025 · Kimi release timeline

Inside Kimi Linear 48B-A3B

Parameters
48B · 3B active
Layers
27
Width
2,304
Mixer
Hybrid
Select a component to explore it. Layer colours match the execution-order strip.
The complete Kimi Linear 48B-A3B architectureInput IDs select embeddings. Layer types execute in the order strip; dotted lines connect the type examples below. 20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all. Full-MLA layers cache a 512-value KV latent plus a 64-value key part, 576 values per token. Kimi Delta Attention 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 lookup163,8402,304Input token vectorsCL2,304Execution order · 27 layersLayer 1: Transformer layer 1Layer 2: Kimi Delta Attention layers 2, 3, 5, 6, 7, 9 and so onLayer 3: Kimi Delta Attention layers 2, 3, 5, 6, 7, 9 and so onLayer 4: Full MLA layers 4, 8, 12, 16, 20, 24 and 27Layer 5: Kimi Delta Attention layers 2, 3, 5, 6, 7, 9 and so onLayer 6: Kimi Delta Attention layers 2, 3, 5, 6, 7, 9 and so onLayer 7: Kimi Delta Attention layers 2, 3, 5, 6, 7, 9 and so onLayer 8: Full MLA layers 4, 8, 12, 16, 20, 24 and 27Layer 9: Kimi Delta Attention layers 2, 3, 5, 6, 7, 9 and so onLayer 10: Kimi Delta Attention layers 2, 3, 5, 6, 7, 9 and so onLayer 11: Kimi Delta Attention layers 2, 3, 5, 6, 7, 9 and so onLayer 12: Full MLA layers 4, 8, 12, 16, 20, 24 and 27Layer 13: Kimi Delta Attention layers 2, 3, 5, 6, 7, 9 and so onLayer 14: Kimi Delta Attention layers 2, 3, 5, 6, 7, 9 and so onLayer 15: Kimi Delta Attention layers 2, 3, 5, 6, 7, 9 and so onLayer 16: Full MLA layers 4, 8, 12, 16, 20, 24 and 27Layer 17: Kimi Delta Attention layers 2, 3, 5, 6, 7, 9 and so onLayer 18: Kimi Delta Attention layers 2, 3, 5, 6, 7, 9 and so onLayer 19: Kimi Delta Attention layers 2, 3, 5, 6, 7, 9 and so onLayer 20: Full MLA layers 4, 8, 12, 16, 20, 24 and 27Layer 21: Kimi Delta Attention layers 2, 3, 5, 6, 7, 9 and so onLayer 22: Kimi Delta Attention layers 2, 3, 5, 6, 7, 9 and so onLayer 23: Kimi Delta Attention layers 2, 3, 5, 6, 7, 9 and so onLayer 24: Full MLA layers 4, 8, 12, 16, 20, 24 and 27Layer 25: Kimi Delta Attention layers 2, 3, 5, 6, 7, 9 and so onLayer 26: Kimi Delta Attention layers 2, 3, 5, 6, 7, 9 and so onLayer 27: Full MLA layers 4, 8, 12, 16, 20, 24 and 27Transformer layer 1 · matches this colour in the execution-order barTransformer layer 1Transformer layer 1 · 1 repetitionsIndependent layer type1RMSNorm before this operation.RMSNormKimi Delta: Kimi Delta Attention with a dense feed-forward network (intermediate size 9216).Kimi DeltaAdd the branch output to the original stream. +RMSNorm before this operation.RMSNormDense feed-forward: Kimi Delta Attention with a dense feed-forward network (intermediate size 9216).Densefeed-forwardAdd the branch output to the original stream. +Layer type · execution order aboveKimi Delta Attention layers 2, 3, 5, 6, 7, 9 and so on · matches this colour in the execution-order barKimi Delta Attention layers 2, 3, 5…Kimi Delta Attention layers 2, 3, 5, 6, 7, 9 and so on · 19 repetitions19 layers · one layer shown19RMSNorm before this operation.RMSNormKimi Delta: Linear attention. 256 routed experts (size 1024), 8 chosen per token, plus 1 shared expert.Kimi DeltaAdd the branch output to the original stream. +RMSNorm before this operation.RMSNormMoE: Linear attention. 256 routed experts (size 1024), 8 chosen per token, plus 1 shared expert.MoE8 of 256 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 256 experts + 1sharedLayer type · execution order aboveFull MLA layers 4, 8, 12, 16, 20, 24 and 27 · matches this colour in the execution-order barFull MLA layers 4, 8, 12, 16, 20, 2…Full MLA layers 4, 8, 12, 16, 20, 24 and 27 · 7 repetitions7 layers · one layer shown7RMSNorm before this operation.RMSNormLatent attention: Full softmax attention with a latent KV cache. Same MoE block as the other layers.Latent attentionNo explicit positional embedding in this attention layer. Causal masking still restricts which tokens it can read.NoPEAdd the branch output to the original stream. +RMSNorm before this operation.RMSNormMoE: Full softmax attention with a latent KV cache. Same MoE block as the other layers.MoE8 of 256 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 256 experts + 1sharedLayer type · execution order aboveAfter all 27 layer executionsResidual streamLast columnCL2,304Final RMSNormA separate learned vocabulary projection.Output weights2,304163,840Vocabulary scoresSoftmax163,840Next-token probabilities
Inside linear attention · Transformer layer 1
32 state heads · 32 Q/K heads.

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

Kimi Linear 48B-A3B: Transformer layer 1 · linear attention20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all. Full-MLA layers cache a 512-value KV latent plus a 64-value key part, 576 values per token. Kimi Delta Attention layers keep a fixed-size state and a short convolution buffer, not a per-token cache.32 value heads; the front face shows one representative.32 value heads32 state heads; the front face shows one representative.32 state headsAttention input. 20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input2,304CLWq. 20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.Wq2,304128Wk. 20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.Wk2,304128Wv. 20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.Wv2,304128Conv 4 + SiLU. 20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.Conv 4 + SiLUConv 4 + SiLU. 20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.Conv 4 + SiLUConv 4 + SiLU. 20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.Conv 4 + SiLUL2-norm. 20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.L2-normL2-norm. 20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.L2-normQ. 20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.Earlier context is dimmed; outlined columns are current.Current token computation.Q128CLK. 20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.Earlier context is dimmed; outlined columns are current.Current token computation.K128CLV. 20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.Earlier context is dimmed; outlined columns are current.Current token computation.V128CLPrevious state. 20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.Previous state128128Decay + delta. 20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.Decay + deltaInput projections produce the decay and write-strength gates. 20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.α / β2,304129Updated state. 20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.Updated state128128×. 20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.×Gated RMSNorm. 20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.Gated RMSNormJoined heads. 20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.32Wo. 20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.Wo4,0962,304Attention output. 20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output2,304CL
Inside latent attention · Full MLA layers 4, 8, 12, 16, 20, 24 and 27
32 heads · 512 cached latent values.

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

Kimi Linear 48B-A3B: Full MLA layers 4, 8, 12, 16, 20, 24 and 27 · latent attention20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all. Full-MLA layers cache a 512-value KV latent plus a 64-value key part, 576 values per token. Kimi Delta Attention layers keep a fixed-size state and a short convolution buffer, not a per-token cache.1 shared latent cache; the front face shows one representative.1 shared latent cache32 attention heads; the front face shows one representative.32 attention headsAttention input. 20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input2,304CLWq. 20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.Wq2,304192Wkv↓. 20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.Wkv↓2,304512RMSNorm. 20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.RMSNorm512Latent cache. 20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.Latent cache512CLWk↑. 20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.Wk↑512192Wv↑. 20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.Wv↑512128Q context. 20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.Earlier context is dimmed; outlined columns are current.Current token computation.Q context192CLScaled query–key scores, masking and softmax. 20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.NoPECLCL×. 20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.×Joined heads. 20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.32Wo. 20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.Wo4,0962,304Attention output. 20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output2,304CL
Model-specific details
Transformer layer 1 · 1 repetitions
Kimi Delta Attention with a dense feed-forward network (intermediate size 9216).
Kimi Delta Attention layers 2, 3, 5, 6, 7, 9 and so on · 19 repetitions
Linear attention. 256 routed experts (size 1024), 8 chosen per token, plus 1 shared expert.
Full MLA layers 4, 8, 12, 16, 20, 24 and 27 · 7 repetitions
Full softmax attention with a latent KV cache. Same MoE block as the other layers.
Attention and positions
20 layers use Kimi Delta Attention (linear attention with a fine-grained gate, 32 heads of size 128, a short convolution of width 4). 7 layers use full MLA (32 heads, key 128 content plus 64, value 128, no query compression). Neither layer type uses any positional encoding: the MLA layers apply no rotary embedding at all.
Memory
Full-MLA layers cache a 512-value KV latent plus a 64-value key part, 576 values per token. Kimi Delta Attention layers keep a fixed-size state and a short convolution buffer, not a per-token cache.

Three KDA layers, then MLA

The 27-layer stack contains 20 Kimi Delta Attention layers and seven latent-attention layers. Six three-to-one groups are followed by two KDA layers and a final MLA layer.

Neither type applies RoPE. Expert networks follow every layer except the dense opening layer, selecting eight of 256 routed experts plus one shared expert.

The card advertises 1M-token support and the paper evaluates at 128K and 1M; it does not specify the length of its long-context training stage.

How it scores

AA Intelligence Index

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

Checkpoint / sizeResultEvaluation
Kimi Linear 48B A3B Instruct7AA Index 4.3.2Published checkpoint
AA Index distributionBest checkpoint per model variant among 97 scored variants in this atlas. Kimi Linear 48B A3B Instruct scores 7; 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 →
Kimi Linear 48B A3B Instruct: 7. Distribution of 97 scored variants in this atlas, using each variant’s best checkpoint. Known estimates excluded.

Explore the components

Sources for this map