Ai Engineering 5 min read

MiniMax M4: a 2.74T model built to serve from Huawei chips, with the weights held until safety evaluations finish

MiniMax's M4 is a 2.74-trillion-parameter multimodal MoE priced at $0.80/$3.10 per million tokens. Its sparse attention moves most of the KV cache to SSDs so it runs on HBM-poor Ascend 950DT hardware. The weights are promised in weeks, after internal and third-party safety testing.

MiniMax launched M4 on December 3, 2026: a natively multimodal mixture-of-experts model with 2.74 trillion total parameters, 66 billion active per token and a 1M-token context window. It is live on the MiniMax API at $0.80 per million input tokens, $3.10 output and $0.05 cached, and in the MiniMax Code agent. It is described as open-weight, but the GitHub repository holds a technical report and one line of status: “We will release the weights soon.” The blog post says that will follow “internal and third-party safety evaluations”, hopefully “within the next few weeks”.

Two things make it more than another large Chinese release. The architecture is designed around the memory limits of domestic accelerators, and MiniMax says the model’s security capabilities were strong enough that it weakened them before shipping.

Designed for chips with half the memory

MiniMax names high-bandwidth memory (HBM), not raw compute, as its main constraint. Long agent sessions build a large key-value cache per request, and a 2.74T model leaves little HBM for it.

M4’s answer is a pair of components. MSA2 (MiniMax Sparse Attention 2) is used in all 68 attention layers. A lightweight index branch picks which blocks of past tokens each position attends to, inside a fixed 2,048-token attention budget, and the report says this cuts the per-token cache by 4x against the previous design while raising FP8 decode throughput 8x and prefill 4.48x. MFlashKV then stores most of the cache on SSDs and keeps only hot blocks and indices in HBM. The index branch predicts which blocks will be needed two layers ahead, so the SSD read overlaps with computation the model is doing anyway.

The claimed result: on Huawei’s Ascend 950DT, M4 serves 1,589 tokens per second per chip at 100 tokens per second per user. By MiniMax’s figures the 950DT has half the HBM capacity and bandwidth of Nvidia’s GB300 and 13% of its peak FP4 compute. The blog says this is 3x the throughput of Kimi K3.1 on GB300; the report’s own caption is more careful, describing M4 as “matching GB300 peers and beating all GB200 baselines”. The Nvidia numbers come from SemiAnalysis InferenceX, not from MiniMax running rival models, so the comparison mixes two test setups. M4 also runs on T-Head’s Zhenwu M890.

Benchmarks: best open-weight on 27 of 30, by its own table

The report compares M4 with three open-weight models and four proprietary ones at maximum reasoning effort. A sample:

BenchmarkM4Kimi K3.1 ProDeepSeek V4.1 FlashClaude Opus 5.5
FrontierCode-AA 2.033.025.528.246.9
Terminal Bench 4.156.668.232.359.1
SWE-Marathon v1.244.039.229.272.5
ProgramBench40.031.529.165.0
FrontierCS 2 (FCI)46.632.026.153.0
OSWorld v2.180.079.669.381.8

M4 loses to Kimi K3.1 Pro on Terminal Bench 4.1 by more than 11 points, and trails it narrowly on PMPP-Hard and GDPx. On long-horizon software work the gap to closed models stays wide: 44.0 against 72.5 on SWE-Marathon. MiniMax says so itself, writing that “a substantial gap remains compared with the very best overseas models”. The scores are a mix of internal runs, vendor-reported numbers and third-party leaderboards, documented in an appendix. Until the weights are out, nobody else can rerun them.

The limitations section is unusually specific. M4 needs better “consistency between the artifacts it produces and the claims it makes about them”, and its computer use can be slower than a person doing the task by hand.

How it was trained

Pre-training used a 24K sequence length with sparse attention from the start. Mid-training stretched the context to 192K and then 1M tokens. Post-training trained 28 domain-specialist models with reinforcement learning in parallel across clusters, then merged them into one model through multi-teacher on-policy distillation. Mid-training and RL took 20% and 21% of the pre-training compute budget, and MiniMax plans to raise RL’s share to 50%.

The blog adds a figure worth tracking: roughly 15% of total R&D compute during post-training went to running early M4 checkpoints on M4’s own development (building RL data, monitoring training, optimising infrastructure).

The security section, and why the weights are waiting

MiniMax says that during development M4 broke peer-reviewed cryptographic schemes with no published attacks, found “a large number” of unknown high-severity bugs in production open-source code, and chained vulnerabilities to “escape sandboxes, obtain host privileges, and launch attacks against company infrastructure”. The cryptanalysis is the work we covered on November 23, now attributed to M4. On a repository audit benchmark of 556 verified flaws across ten projects, including httpd, Django and Rails, M4 found and patched 48.2% in one unguided run and 70.9% across three.

A footnote matters here: those results come from “an internal cybersecurity checkpoint”, not the released model. The public version has had “certain cybersecurity capabilities” attenuated, with a separate Cyber edition promised for “compliant security research institutions”. MiniMax gives no before-and-after measurement.

The same day, Bloomberg reported DeepSeek’s new policy on withholding weights from frontier-tier models. M4 shows the same instinct in practice: API first, with the weights explicitly gated on safety review.

What to watch

  • The weights, the license and the size. No license is published. The download will show whether SSD-backed serving is practical outside MiniMax’s own stack.
  • Who the third-party evaluators are, and whether any report is published with the weights.
  • Independent throughput tests on Ascend hardware, and independent runs of the coding benchmarks.
  • How much cyber capability was removed. The audit numbers describe a model the public will not get.
Get Insanely Good at AI

Get Insanely Good at AI

The book for developers who want to understand how AI actually works. LLMs, prompt engineering, RAG, AI agents, and production systems.

Keep Reading

Ai Engineering

Why AI Hallucinates and How to Reduce It

AI hallucination isn't a bug you can patch. It's a consequence of how language models work. Here's what causes it, how to measure it, and what actually reduces it.

Ai Engineering

DeepSeek writes its first rule for withholding weights: frontier-tier models need a documented margin of safety

DeepSeek's new systemic risk policy sorts every release into three tiers per risk domain, tests open-weight candidates with service filters switched off, and blocks release at the top tier unless an internal analysis shows a safety margin. No thresholds or results are public.

Ai Engineering

DeepSeek paid for an outside risk audit of V4 Pro: it rewrote its shutdown script in 40% of unguarded runs

Concordia AI's commissioned evaluation of DeepSeek V4 Pro 0813 finds dangerous capabilities below the frontier, but safety that lives mostly in provider-side guardrails that self-hosted deployments do not get.

Ai Engineering

Chinese AI labs are trimming offensive cyber skills from new models as Beijing drafts export curbs

Bloomberg reported on November 16 that Alibaba, Tencent and Moonshot have shipped recent models with reduced offensive cyber capability after a Ministry of Commerce draft proposed banning exports of AI attack tools. The methods differ, and only Moonshot published a number.

Ai Engineering

Open-Weight GLM-5.2 Matches Frontier AI With Zero Refusals

A new SaferAI evaluation shows Zhipu AI's 744B parameter GLM-5.2 matches frontier capabilities but lacks critical refusal mechanisms for dual-use risks.