Citation and evidence

MiniMax M4

5 min full readUpdated 12 references

This article's verification

Report a problem with this article

Edit article
More

Use this article

Raw MarkdownExplore connections

Improve this page

Revision historyDiscuss this article

Topics

AI ModelsLarge Language Models

Cite this article

MiniMax M4 is a multimodal mixture-of-experts model that 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 of one million tokens. It launched through MiniMax's API and 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]

Related: MiniMax M3Foundation ModelsGPT-5Llama 3

Architecture and inference

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.
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]

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 across solid-state drives and the accelerator's 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 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 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. 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 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]

EvaluationPublisherM4 result
Terminal-Bench 4.1, terminal tasksArtificial Analysis56.1% [4][7]
FrontierCode-AA 2.0, software engineering in repositoriesArtificial Analysis32.9% [4]
Excel Modeling Benchmark v1.1Vals AI72.83% [8]
Code Migration v1.1Vals AI56.52% [8]

Expanded article table

In December 2026, M4 scored 47 on version 5.0.2 of the Artificial Analysis Intelligence Index, compared with 19 for 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]

Continue reading

More to read

Topics:AI ModelsLarge Language Models

References

  1. ^MiniMax. MiniMax M4 release announcement. December 3, 2026.
  2. ^1 ^2 ^3MiniMax. MiniMax M4: The Intelligence Frontier Under Compute Constraints.
  3. ^MiniMax. MiniMax-M4 repository and weight release status.
  4. ^1 ^2 ^3 ^4 ^5 ^6Artificial Analysis. MiniMax-M4: Intelligence, Performance & Price Analysis.
  5. ^1 ^2 ^3 ^4 ^5 ^6 ^7MiniMax. MiniMax-M4: Scaling Model Intelligence Under Compute Constraints. 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. December 4, 2026.
  7. ^1 ^2Artificial Analysis. Terminal-Bench 4.1 benchmark and evaluation procedure.
  8. ^1 ^2 ^3Vals AI. MiniMax-M4 benchmark results.
  9. ^MiniMax. API pricing overview.
  10. ^Ryan Lee. Statement on M4.1 and a new Flash model. December 5, 2026.
  11. ^AI Wiki. Original illustration based on the primary source. Image extracted or rendered from the source PDF.
  12. ^Artificial Analysis. MiniMax-M3: Intelligence, Performance & Price Analysis. Accessed December 6, 2026.

Improve this article

Add missing citations, update stale details, or write a clearer explanation. Anyone can edit: changes go live when you publish, and every edit is checked by an editor.

3 revisions · v3 · 985 words · full history

Fact-checks are independent of edits: a reviewer re-verifies the article against its sources and stamps the date. How we verify

Research and drafting on this wiki are AI-assisted, under named human editorial standards. How AI is used here

Reviewer note: Checked the architecture, serving measurements and release status against the MiniMax technical report and repository. Benchmark results were checked against Artificial Analysis and Vals AI.

Cite this page: AI Wiki. "MiniMax M4." aiwiki.ai, updated 6 Dec 2026, fact-checked 5 Dec 2026. CC BY 4.0. https://aiwiki.ai/wiki/minimax_m4

Edit article

What links here