Chinese AI firm MiniMax releases M4, a 2.74T-parameter model optimized for Huawei chips
MiniMax announced its new flagship multimodal model M4, featuring novel memory management techniques to run efficiently on constrained Huawei hardware.
Chinese AI company MiniMax has released "MiniMax M4," a new large language model with 2.74 trillion total parameters and 66 billion active parameters per token. The model is multimodal, supporting image inputs, and features a context window of 1 million tokens. According to the company's announcement, API pricing is set at $0.80 per million input tokens, $3.10 per million output tokens, and $0.05 for cached input tokens, which MiniMax describes as the most competitive pricing in the flagship tier.
A key architectural focus of M4 is overcoming High Bandwidth Memory (HBM) capacity constraints, particularly when running on domestic Chinese chips. Long-context processing requires maintaining Key-Value (KV) caches in memory, which consumes significant HBM. To address this, MiniMax implemented a new attention mechanism called "MSA2" across all 68 layers, reducing the KV cache size per token to one-quarter of previous levels. Additionally, a system named "MFlashKV" offloads the majority of the KV cache to SSD storage, keeping only frequently accessed portions in HBM. Prefetching mechanisms are used to hide the latency of reading from SSDs during computation.
The company claims that when running M4 on Huawei's "950DT" chip, it achieved three times the throughput of Kimi K3.1 running on NVIDIA's "GB300" while maintaining an output speed of 100 tokens per second. This performance was recorded despite the 950DT having only 50% of the HBM capacity and 13% of the compute performance of the GB300, according to figures cited by MiniMax from SemiAnalysis.
During training, MiniMax allocated 20% of the pre-training compute budget to reinforcement learning and trained 28 specialized models before integrating them into a single unified model. In a demonstration, the company stated that M4 developed a desktop browser engine from scratch in 24 hours without using existing engines, writing approximately 120,000 lines of Rust code and scoring 100 points on the Acid3 test.