Rúben GalvãoThe Rabbit Hole

The Rabbit Hole / AI / Model architectures

MiniMax · Architecture map

MiniMax-M1

Seven layers of lightning (linear) attention for every layer of softmax attention, so long contexts stay cheap.

MiniMax-M1 (40k and 80k thinking budgets), June 2025 · MiniMax release timeline

Inside MiniMax-M1

Parameters
456B · 45.9B active
Layers
80
Width
6,144
Mixer
Hybrid
Select a component to explore it. Layer colours match the execution-order strip.
The complete MiniMax-M1 architectureInput IDs select embeddings. Layer types execute in the order strip; dotted lines connect the type examples below. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation. Softmax layers cache keys and values for 8 heads of size 128 per token. Lightning attention layers keep a fixed-size state instead of a per-token cache. Final normalisation and output weights produce vocabulary scores and the next-token distribution.Text becomes token IDs.Text → tokens → IDstheoldrabbitsleepsEmbedding lookup200,0646,144Input token vectorsCL6,144Execution order · 80 layersLayer 1: Lightning attention layers (7 of every 8)Layer 2: Lightning attention layers (7 of every 8)Layer 3: Lightning attention layers (7 of every 8)Layer 4: Lightning attention layers (7 of every 8)Layer 5: Lightning attention layers (7 of every 8)Layer 6: Lightning attention layers (7 of every 8)Layer 7: Lightning attention layers (7 of every 8)Layer 8: Softmax attention layers 8, 16, 24 and so on to 80Layer 9: Lightning attention layers (7 of every 8)Layer 10: Lightning attention layers (7 of every 8)Layer 11: Lightning attention layers (7 of every 8)Layer 12: Lightning attention layers (7 of every 8)Layer 13: Lightning attention layers (7 of every 8)Layer 14: Lightning attention layers (7 of every 8)Layer 15: Lightning attention layers (7 of every 8)Layer 16: Softmax attention layers 8, 16, 24 and so on to 80Layer 17: Lightning attention layers (7 of every 8)Layer 18: Lightning attention layers (7 of every 8)Layer 19: Lightning attention layers (7 of every 8)Layer 20: Lightning attention layers (7 of every 8)Layer 21: Lightning attention layers (7 of every 8)Layer 22: Lightning attention layers (7 of every 8)Layer 23: Lightning attention layers (7 of every 8)Layer 24: Softmax attention layers 8, 16, 24 and so on to 80Layer 25: Lightning attention layers (7 of every 8)Layer 26: Lightning attention layers (7 of every 8)Layer 27: Lightning attention layers (7 of every 8)Layer 28: Lightning attention layers (7 of every 8)Layer 29: Lightning attention layers (7 of every 8)Layer 30: Lightning attention layers (7 of every 8)Layer 31: Lightning attention layers (7 of every 8)Layer 32: Softmax attention layers 8, 16, 24 and so on to 80Layer 33: Lightning attention layers (7 of every 8)Layer 34: Lightning attention layers (7 of every 8)Layer 35: Lightning attention layers (7 of every 8)Layer 36: Lightning attention layers (7 of every 8)Layer 37: Lightning attention layers (7 of every 8)Layer 38: Lightning attention layers (7 of every 8)Layer 39: Lightning attention layers (7 of every 8)Layer 40: Softmax attention layers 8, 16, 24 and so on to 80Layer 41: Lightning attention layers (7 of every 8)Layer 42: Lightning attention layers (7 of every 8)Layer 43: Lightning attention layers (7 of every 8)Layer 44: Lightning attention layers (7 of every 8)Layer 45: Lightning attention layers (7 of every 8)Layer 46: Lightning attention layers (7 of every 8)Layer 47: Lightning attention layers (7 of every 8)Layer 48: Softmax attention layers 8, 16, 24 and so on to 80Layer 49: Lightning attention layers (7 of every 8)Layer 50: Lightning attention layers (7 of every 8)Layer 51: Lightning attention layers (7 of every 8)Layer 52: Lightning attention layers (7 of every 8)Layer 53: Lightning attention layers (7 of every 8)Layer 54: Lightning attention layers (7 of every 8)Layer 55: Lightning attention layers (7 of every 8)Layer 56: Softmax attention layers 8, 16, 24 and so on to 80Layer 57: Lightning attention layers (7 of every 8)Layer 58: Lightning attention layers (7 of every 8)Layer 59: Lightning attention layers (7 of every 8)Layer 60: Lightning attention layers (7 of every 8)Layer 61: Lightning attention layers (7 of every 8)Layer 62: Lightning attention layers (7 of every 8)Layer 63: Lightning attention layers (7 of every 8)Layer 64: Softmax attention layers 8, 16, 24 and so on to 80Layer 65: Lightning attention layers (7 of every 8)Layer 66: Lightning attention layers (7 of every 8)Layer 67: Lightning attention layers (7 of every 8)Layer 68: Lightning attention layers (7 of every 8)Layer 69: Lightning attention layers (7 of every 8)Layer 70: Lightning attention layers (7 of every 8)Layer 71: Lightning attention layers (7 of every 8)Layer 72: Softmax attention layers 8, 16, 24 and so on to 80Layer 73: Lightning attention layers (7 of every 8)Layer 74: Lightning attention layers (7 of every 8)Layer 75: Lightning attention layers (7 of every 8)Layer 76: Lightning attention layers (7 of every 8)Layer 77: Lightning attention layers (7 of every 8)Layer 78: Lightning attention layers (7 of every 8)Layer 79: Lightning attention layers (7 of every 8)Layer 80: Softmax attention layers 8, 16, 24 and so on to 80Lightning attention layers (7 of every 8) · matches this colour in the execution-order barLightning attention layers (7 of ev…Lightning attention layers (7 of every 8) · 70 repetitions70 layers · one layer shown70The normalised input also supplies the residual.NormLightning: Linear attention, then a mixture of 32 experts with 2 chosen per token.LightningAdd the branch output to the original stream. 3.56 × norm + out+The normalised input also supplies the residual.NormMoE: Linear attention, then a mixture of 32 experts with 2 chosen per token.MoE2 of 32 routed experts selected per token. Highlighted boxes are schematic; boxes do not correspond one-to-one to experts.Add the branch output to the original stream. 3.56 × norm + out+2 of 32 expertsLayer type · execution order aboveSoftmax attention layers 8, 16, 24 and so on to 80 · matches this colour in the execution-order barSoftmax attention layers 8, 16, 24 …Softmax attention layers 8, 16, 24 and so on to 80 · 10 repetitions10 layers · one layer shown10The normalised input also supplies the residual.NormSoftmax attention: Grouped-query softmax attention, then the same 32-expert block.Softmax attentionRotate query and key position components before attention scores; values are unchanged. Grouped-query softmax attention, then the same 32-expert block.RoPEAdd the branch output to the original stream. 3.56 × norm + out+The normalised input also supplies the residual.NormMoE: Grouped-query softmax attention, then the same 32-expert block.MoE2 of 32 routed experts selected per token. Highlighted boxes are schematic; boxes do not correspond one-to-one to experts.Add the branch output to the original stream. 3.56 × norm + out+2 of 32 expertsLayer type · execution order aboveAfter all 80 layer executionsResidual streamLast columnCL6,144Final RMSNormA separate learned vocabulary projection.Output weights6,144200,064Vocabulary scoresSoftmax200,064Next-token probabilities
Inside linear attention · Lightning attention layers (7 of every 8)
64 state heads · 64 Q/K heads.

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

MiniMax-M1: Lightning attention layers (7 of every 8) · linear attention70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation. Softmax layers cache keys and values for 8 heads of size 128 per token. Lightning attention layers keep a fixed-size state instead of a per-token cache.64 value heads; the front face shows one representative.64 value heads64 state heads; the front face shows one representative.64 state headsAttention input. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input6,144CLWq. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.Wq6,144128Wk. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.Wk6,144128Wv. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.Wv6,144128SiLU. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.SiLUSiLU. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.SiLUSiLU. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.SiLUQ. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.Earlier context is dimmed; outlined columns are current.Current token computation.Q128CLK. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.Earlier context is dimmed; outlined columns are current.Current token computation.K128CLV. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.Earlier context is dimmed; outlined columns are current.Current token computation.V128CLPrevious state. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.Previous state128128Decay + K⊗V. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.Decay + K⊗VUpdated state. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.Updated state128128×. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.×Joined heads. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.64RMSNorm. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.RMSNormWg. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.Wg6,1448,192σ. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.σ×. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.×Wo. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.Wo8,1926,144Attention output. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output6,144CL
Inside grouped-query attention · Softmax attention layers 8, 16, 24 and so on to 80
8 query heads per group × 8 K/V groups.

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

MiniMax-M1: Softmax attention layers 8, 16, 24 and so on to 80 · grouped-query attention70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation. Softmax layers cache keys and values for 8 heads of size 128 per token. Lightning attention layers keep a fixed-size state instead of a per-token cache.8 KV groups; the front face shows one representative.8 KV groups8 heads / group; the front face shows one representative.8 heads / groupAttention input. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input6,144CLWq. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.Wq6,144128Wk. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.Wk6,144128Wv. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.Wv6,144128RoPE 64. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.RoPE 64RoPE 64. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.RoPE 64K cache. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.K cache128CLV cache. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.V cache128CLQ context. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.Earlier context is dimmed; outlined columns are current.Current token computation.Q context128CLScaled query–key scores, masking and softmax. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.CLCL×. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.×Joined heads. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.64Wo. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.Wo8,1926,144Attention output. 70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output6,144CL
Model-specific details
Lightning attention layers (7 of every 8) · 70 repetitions
Linear attention, then a mixture of 32 experts with 2 chosen per token.
Softmax attention layers 8, 16, 24 and so on to 80 · 10 repetitions
Grouped-query softmax attention, then the same 32-expert block.
Attention and positions
70 layers use lightning attention (a linear attention with a sigmoid output gate, a fixed per-head decay, no positions). Every eighth layer (10 in all) uses softmax attention with 64 query heads and 8 key/value heads of size 128, rotary on the first 64 of 128 dimensions (base 10,000,000), no bias and no query/key normalisation.
Memory
Softmax layers cache keys and values for 8 heads of size 128 per token. Lightning attention layers keep a fixed-size state instead of a per-token cache.

A seven-to-one mixer pattern

Seventy of 80 layers use Lightning Attention; every eighth layer uses softmax attention. Expert layers select two of 32 experts, each of intermediate width 9,216.

The residual retains the normalised sublayer input and applies fixed scale 3.5566 before adding the branch result. RoPE base is 10,000,000.

The 40k and 80k releases differ in thinking budget, with one shared architecture. Training context reaches 1,000,000 tokens.

How it scores

AA Intelligence Index

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

Checkpoint / sizeResultEvaluation
MiniMax M1 80k12AA Index 4.3.2Published checkpoint
AA Index distributionBest checkpoint per model variant among 97 scored variants in this atlas. MiniMax M1 80k scores 12; 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 →
MiniMax M1 80k: 12. Distribution of 97 scored variants in this atlas, using each variant’s best checkpoint. Known estimates excluded.

Explore the components

Sources for this map