The Rabbit Hole / AI / Model architectures
MiniMax · Architecture mapMiniMax-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
Inside linear attention · Lightning attention layers (7 of every 8)
Earlier context dimmed · current token bright · dashed path carries state to the next step.
Inside grouped-query attention · Softmax attention layers 8, 16, 24 and so on to 80
Earlier context dimmed · current token bright · dashed regions contain cached entries.
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 / size | Result | Evaluation |
|---|---|---|
| MiniMax M1 80k | 12 | 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
- Linear attention: a fixed-size memory instead of a growing cache
- Hybrid attention and SSM models: different kinds of memory
- Grouped-query attention (GQA): sharing keys and values in groups
- Mixture of experts (MoE): a big model that uses only part of itself
- Pre-norm and post-norm: follow the residual path
- Residual scaling: DeepNorm and learned scalescoming soonScales the skip path, by fixed constants or learned values, so deep stacks stay stable.
- Routing: selecting experts and weighting their work
- Attention, from scratch
- The KV cache: why LLMs remember every key and value
- RoPE: position as a rotation