CFM has updated the domain of its english website from en.chinaflashmarket.com to www.memorymarket.com, Please be informed.

MiniMax M4: Reduce HBM Dependence, Adapted for Domestic Compute

By: M 8 hours ago

MiniMax unveils the natively multimodal——M4, with 2.74 trillion total parameters, 66 billion active parameters per token, and a 1-million-token context window. Compared with the previous-generation M3, which had a total parameter count of 428 billion and an activated parameter count of 23 billion, the total parameter count has increased more than sixfold.

Architecture Optimization: Reducing Reliance on HBM capacity to Maximize Compute Efficiency

HBM capacity limits have been a primary constraint on fully utilizing compute, especially as context lengths continue to grow and given the relatively limited HBM resources available domestically. While maintaining training stability, MiniMax iterated towards a design that dramatically reduces per-token HBM requirements, including attention mechanism MSA2 (MiniMax Sparse Attention 2) and its companion system MFlashKV.

All 68 attention layers of M4 adopt our newly proposed sparse attention mechanism, MSA2. Through KV-sharing Multi-Query Attention, fine-grained block-sparse attention, compressed multi-head indexing, and two-layer lookahead index prediction, per-token KV cache requirements are reduced by 4× compared with the previous version, while prefilling and decoding throughput increase by 4.48× and 8×, respectively.

MFlashKV works alongside MSA2. During actual decoding, we offload the vast majority of the KV cache to SSDs, keeping only hot blocks and indices in HBM. For KV cache blocks that must be read from SSD in real time, the lookahead mechanism completely hides index computation and loading behind the computation of the preceding layer. This enables us to substantially reduce HBM usage during decoding without introducing additional overhead.

Domestic Compute Adaptation: Inference Already Deployed on Ascend 950DT and Zhenwu M890 Super Nodes

Through these designs mentioned above, M4 makes full use of domestic chips, including Huawei's 950DT and T-Head's Zhenwu M890 SuperNode.  The company disclosed that on Ascend 950DT, M4 achieves a single-user output speed of 100 tokens/s and a single-chip decoding throughput of 1,589 tokens/s.

It is said that M4 has undergone deep software-hardware co-optimization for domestic chips such as Huawei Ascend 950DT and Alibaba Pingtouge Zhenwu M890 during the model inference stage. At an output speed of 100 TPS, M4 deployed on Huawei's 950DT delivers 3× the throughput of Kimi K3.1 deployed on NVIDIA's most advanced GB300 (Kimi benchmark data cited from SemiAnalysis), even though the 950DT has only 50% of the GB300's HBM capacity and 13% of its compute. This throughput advantage enabled by our model architecture allows us to advance reinforcement learning post-training at massive scale and low cost.