# MiniMax M4 2.74T-A66B Architecture

> Canonical HTML page: https://sebastianraschka.com/llm-architecture-gallery/models/minimax-m4-2-74t-a66b/
> Part of: [LLM Architecture Gallery](https://sebastianraschka.com/llm-architecture-gallery/)

MiniMax M4 uses MiniMax Sparse Attention 2 in all 68 layers and activates 66B of its 2.74T parameters per token. The diagram shows the text decoder.

## Specifications

| Field | Value |
| --- | --- |
| Organization | MiniMax |
| Release date | 2026-12-03 |
| Scale | 2.74T total, 66B active (2.4% active) |
| Decoder type | Sparse MoE |
| Attention | MiniMax Sparse Attention 2 (MSA2) with shared-KV MQA and a pooled index |
| Layer mix | 68 MSA2; 4 dense FFN + 64 MoE |
| Context window | 24K native (1M with YaRN) |
| KV cache / token (bf16) | 38.25 KiB |
| Distinctive highlight | The MSA2 indexer pools four keys into one and selects 128 blocks of 16 tokens per query. In the 64 MoE layers, each text token uses four of 384 routed experts and one shared expert. |
| Architecture diagram | https://sebastianraschka.com/llm-architecture-gallery/images/architectures/minimax-m4.webp |

## Training and Post-Training

- **Pretraining data size**: Not disclosed
- **Pretraining notes**: MiniMax describes joint pretraining on text, code, and interleaved visual-text data with a 24K-token context. The report gives no pretraining token total.
  - Source: [MiniMax M4 technical report, section 4](https://github.com/MiniMax-AI/MiniMax-M4/blob/main/docs/MiniMax_M4_Technical_Report.pdf)
- **Post-training methods**: SFT, RL, Distillation
- **Post-training notes**: After supervised fine-tuning, MiniMax trains 28 specialists with reinforcement learning and combines them with multi-teacher on-policy distillation.
  - Source: [MiniMax M4 technical report, sections 5 and 6](https://github.com/MiniMax-AI/MiniMax-M4/blob/main/docs/MiniMax_M4_Technical_Report.pdf)

## Related Architecture Concepts


## Primary Sources and Tools

- [Technical report](https://github.com/MiniMax-AI/MiniMax-M4/blob/main/docs/MiniMax_M4_Technical_Report.pdf)
- [Estimate memory for MiniMax M4 2.74T-A66B](https://sebastianraschka.com/llm-architecture-gallery/memory-calculator/?model=minimax-m4-2-74t-a66b)
