# MiniMax M4

> Source: https://aiwiki.ai/wiki/minimax_m4
> Updated: 2026-12-06
> Fact-checked: 2026-12-05
> Categories: AI Models, Large Language Models
> License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) - attribute to "AI Wiki (aiwiki.ai)"
> Cite as: AI Wiki. "MiniMax M4." aiwiki.ai, 6 Dec 2026. https://aiwiki.ai/wiki/minimax_m4
> From AI Wiki (https://aiwiki.ai), the free encyclopedia of artificial intelligence. Reuse freely with attribution.

**MiniMax M4** is a multimodal [mixture-of-experts](https://aiwiki.ai/wiki/mixture_of_experts) model that [MiniMax](https://aiwiki.ai/wiki/minimax) announced on December 3, 2026. It accepts text and images and produces text, including code that an application can run. M4 has 2.74 trillion parameters, activates 66 billion per token and supports a [context window](https://aiwiki.ai/wiki/context_window) of one million tokens. It launched through MiniMax's API and [MiniMax Code](https://aiwiki.ai/wiki/minimax_code). The company published a technical report at launch and listed the model weights as forthcoming as of December 6, 2026.[1][2][3][4]

## Architecture and inference

<figure>
<a href="/images/minimax-m4-6ae62d00ffac.png"><img src="/images/minimax-m4-6ae62d00ffac.png" alt="In MiniMax M4's SSD-backed MFlashKV system, drives hold the full key-value history. Selected blocks move into accelerator memory, which also holds compressed indices and frequently needed blocks." /></a>
<figcaption>MiniMax M4 can keep a session's full key-value history on SSDs. Its attention mechanism selects blocks to fetch into accelerator memory ahead of use. Illustration by AI Wiki. [11]</figcaption>
</figure>

The first four of M4's 68 layers are dense. In each mixture-of-experts layer, a router selects four of 384 routed experts for each text token, alongside one shared expert. Visual tokens follow a different rule. Within each uninterrupted block of visual tokens, each routed expert chooses the tokens it scores most highly. MiniMax designed this rule to keep similar image patches from concentrating the workload on a few experts.[5] All 68 layers use MiniMax Sparse Attention 2 (MSA2). Its main attention branch divides the preceding context into blocks of 16 tokens and retrieves 2,048 tokens per query. This lets the model use selected parts of a long history when generating the next token.[2][5]

Long conversations present a separate memory problem. A serving system has to retain the history of each active request because the model can attend to a different set of past tokens at its next step. MiniMax designed MFlashKV to store the [key-value cache](https://aiwiki.ai/wiki/kv_cache) across solid-state drives and the accelerator's [high-bandwidth memory](https://aiwiki.ai/wiki/high_bandwidth_memory). In the SSD-backed configuration, the drives hold the full history. The accelerator retains indices and frequently used blocks. The indexer chooses historical blocks two layers in advance so the system can fetch them while the intervening computation runs.[5]

On Huawei's Ascend 950DT, MiniMax reported 1,589 decoded tokens per second per chip at a generation speed of 100 tokens per second per user. The first number measures throughput across requests. The second measures the speed for an individual user. MiniMax's comparison chart combines its M4 measurements with SemiAnalysis InferenceX results for *other models* on NVIDIA GB200 and GB300 systems. Both the model and the hardware change between those measurements.[5]

## How M4 was trained

MiniMax trained M4 on text, images and video together from the start. Its [vision transformer](https://aiwiki.ai/wiki/vision_transformer) encodes images and pairs of sampled video frames. The encoder merges four neighboring patch representations into one embedding for the language model. Each embedding represents a 28-by-28-pixel region of an image or the corresponding region across two frames. The language model processes these embeddings in sequence with the surrounding text.[5]

MiniMax began training with sequences of 24,000 tokens, then extended the context to 192,000 and one million tokens. It incorporated examples of agents interacting with environments during that expansion. After supervised fine-tuning, the team used [reinforcement learning](https://aiwiki.ai/wiki/reinforcement_learning) to train specialists in 28 domains in parallel. These were separate training models, distinct from the experts that the router selects inside an M4 layer.[2][5]

The team combined the specialists through on-policy [knowledge distillation](https://aiwiki.ai/wiki/knowledge_distillation). The student model generated its own sequence of actions. A specialist evaluated the tokens chosen by the student, giving it feedback along the path it had actually taken. The Forge V2.0 training system scheduled the specialists across shared hardware. For long tasks the team started distillation with shorter portions of an interaction, then extended the training horizon where later steps mattered, such as checking the final result.[5][6]

## Independent evaluations

The benchmarks below measure different kinds of work. Artificial Analysis ran all 66 tasks in [Terminal-Bench](https://aiwiki.ai/wiki/terminal_bench) 4.1 with the mini-swe-agent harness and averaged single-attempt success over three repetitions per task. Vals AI separately evaluated M4 on spreadsheet modeling and code migration. The figures are from the evaluators' December 2026 model reports.[4][7][8]

| Evaluation | Publisher | M4 result |
|---|---|---|
| Terminal-Bench 4.1, terminal tasks | Artificial Analysis | 56.1% [4][7] |
| FrontierCode-AA 2.0, software engineering in repositories | Artificial Analysis | 32.9% [4] |
| Excel Modeling Benchmark v1.1 | Vals AI | 72.83% [8] |
| Code Migration v1.1 | Vals AI | 56.52% [8] |

In December 2026, M4 scored 47 on version 5.0.2 of the Artificial Analysis Intelligence Index, compared with 19 for [MiniMax M3](https://aiwiki.ai/wiki/minimax_m3). The index combined nine evaluations. The evaluator's weighted average cost per task was $1.74 for M4 and $1.29 for M3, using each model's token consumption and prices.[4][12] MiniMax's published API rates in December 2026 were $0.80 per million input tokens, $0.05 per million cached input tokens and $3.10 per million output tokens.[4][9]

## Subsequent development

On December 5, 2026, Ryan Lee, MiniMax's head of developer relations, said the company was training a new Flash model alongside M4.1. His announcement gave neither a release date nor measured benchmark results for the successor.[10]

## References

1. MiniMax. [MiniMax M4 release announcement](https://x.com/MiniMax_AI/status/2128508504067436763). December 3, 2026.
2. MiniMax. [MiniMax M4: The Intelligence Frontier Under Compute Constraints](https://www.minimax.io/blog/m4).
3. MiniMax. [MiniMax-M4 repository and weight release status](https://github.com/MiniMax-AI/MiniMax-M4).
4. Artificial Analysis. [MiniMax-M4: Intelligence, Performance & Price Analysis](https://artificialanalysis.ai/models/minimax-m4).
5. MiniMax. [MiniMax-M4: Scaling Model Intelligence Under Compute Constraints](https://github.com/MiniMax-AI/MiniMax-M4/blob/main/docs/MiniMax_M4_Technical_Report.pdf). Figures 1, 3 and 4 and sections 2.4.1, 3.3.2 and 4.2.
6. MiniMax. [Forge V2.0: Cluster-Scale Agentic RL Systems and Algorithms Behind MiniMax M4](https://www.minimax.io/blog/forge-v2). December 4, 2026.
7. Artificial Analysis. [Terminal-Bench 4.1 benchmark and evaluation procedure](https://artificialanalysis.ai/evaluations/terminalbench-4-1).
8. Vals AI. [MiniMax-M4 benchmark results](https://www.vals.ai/models/minimax_MiniMax-M4).
9. MiniMax. [API pricing overview](https://platform.minimax.io/docs/pricing/overview).
10. Ryan Lee. [Statement on M4.1 and a new Flash model](https://x.com/RyanLeeMiniMax/status/2129014726726484387). December 5, 2026.
11. AI Wiki. Original illustration based on [the primary source](https://github.com/MiniMax-AI/MiniMax-M4/blob/d9eb072eccf724f68ad96c53d0a57cd887d4843c/docs/MiniMax_M4_Technical_Report.pdf). Image extracted or rendered from the source PDF.
12. Artificial Analysis. [MiniMax-M3: Intelligence, Performance & Price Analysis](https://artificialanalysis.ai/models/minimax-m3). Accessed December 6, 2026.

