MiniMax M4 Released: Exploring New Frontiers of Model Intelligence | Yunqi Partners

M4's new direction: from compute efficiency to capability gains

As large models take on more complex tasks, the bar for training and inference efficiency keeps rising. How to keep improving model capabilities under limited compute is a central problem model developers have to solve.

Last night, MiniMax, a Yunqi Capital angel-round portfolio company, released its latest flagship model, M4. This time, MiniMax not only pushed further on model scale but also deeply co-optimized model architecture, reinforcement learning, and inference systems, aiming to keep expanding the model's intelligence frontier across a range of chip ecosystems and compute constraints.

From complex coding and domain-specific reasoning to 3D modeling, game development, and video creation, M4 is exploring the range of possibilities from Coding to Everything.

In this edition of "Yunqi Partners," we take a closer look at MiniMax M4 and its technical exploration and application progress under compute constraints.

The following content is reposted from MiniMax.

"It is not down on any map; true places never are." — Melville, Moby-Dick

MiniMax's native multimodal model M4 has 2.74 trillion parameters, activates 66 billion parameters per token, and supports a million-token context. It is also the most intelligent model MiniMax has trained to date. On most of the tasks we can measure — coding, professional knowledge, RSI, chip design, finance and business, design (3D modeling, games, video production), and Computer Use — M4 sits at the intelligence frontier of domestic and open-source models.

Making the most of available compute

Scaling up models can solve more frontier and more complex problems, but long-standing compute limits have made training very large models extremely difficult.

Through innovations in model architecture, training algorithms, and infrastructure, MiniMax has explored a technical path that keeps scaling reinforcement learning and makes full use of multiple chip ecosystems.

MiniMax followed three design principles:

  1. Let the model run efficiently on different types of chips so that total compute can be as large as possible;

  2. Through co-design of model and system, squeeze the maximum performance out of different chips;

  3. Inference efficiency matters as much as training efficiency, because reinforcement learning and evaluation account for 30-40% of compute across the entire R&D process.

In most stages of M4's development, including pretraining, reinforcement learning, and inference, MiniMax hit the power walls of multiple chips. MSA2 and MFlashKV

Reducing dependence on HBM capacity and improving compute utilization

HBM capacity was the main constraint MiniMax faced in making full use of compute during development, especially as context lengths kept growing and domestic HBM resources are relatively limited. While maintaining training stability, the team reduced the HBM demand per token through a new model structure, MSA2, and its companion, MFlashKV.

All 68 attention layers in M4 use MiniMax's newly proposed sparse attention mechanism MSA2 (MiniMax Sparse Attention 2). Through Multi-Query Attention with shared KV, fine-grained block sparse attention, compressed multi-head indexing, and index prediction two layers ahead, the KV capacity required per token dropped to one quarter of the previous version, according to the company's tests, while Prefilling and Decoding throughput improved by 4.48x and 8x, respectively.

MiniMax designed MFlashKV to work alongside MSA2. During actual Decoding, the team places the vast majority of KV Cache in SSD, keeping only hot blocks and indexes in HBM. For KV Cache blocks that must be read from SSD in real time, the team uses a lookahead mechanism to hide index computation and loading within the previous layer's computation. This design greatly reduces HBM usage during Decoding without introducing extra overhead.

Through these designs, M4 can run on a variety of domestic chips, including Huawei's 950DT and T-Head's Zhenwu M890 super node.

△ Under a test condition with an output speed of 100 TPS, M4 deployed on Huawei's 950DT delivers 3x the throughput of Kimi-K3.1 deployed on NVIDIA GB300; the Kimi-related test data is cited from SemiAnalysis. According to the company, the 950DT's HBM capacity and compute are 50% and 13% of GB300's, respectively. MiniMax says this throughput advantage from the model architecture helps it scale reinforcement learning post-training at lower cost.

Reinforcement learning infrastructure and algorithms

To expand the model's capabilities and generalization on open-world and real tasks, MiniMax devoted the equivalent of 20% of pretraining compute to reinforcement learning for M4. At this scale, stability, efficiency, and correctness all become central to infrastructure and algorithm design. To that end, the team built fault-tolerance into the training-inference engine, the compute cluster, and the agent sandbox, reducing the impact of single-point failures on training under millions of sandboxes, mixed deployment across chips, and ultra-long-horizon tasks. At the same time, the team co-optimized the underlying training-inference engine and RL scheduling to improve overall reinforcement learning efficiency.

In reinforcement learning, MiniMax continued to use the CISPO algorithm it proposed earlier to ensure stability and correctness at large-scale training, and trained expert models separately for 28 different domains and scenarios before integrating them into a unified model. According to company disclosures, compared with the SFT baseline, reinforcement learning raised the model's performance ceiling, especially on professional domains and long-horizon tasks. The team also observed that model capabilities continue to grow as reinforcement learning compute increases; in future versions, MiniMax plans to further increase its reinforcement learning compute investment, with a disclosed target share of 50%.

For different professional domains, MiniMax invited a number of domain experts to take part in model development, with some experts directly responsible for training part of the expert models.

During M4's development, representative capabilities of advanced overseas models also began to emerge inside MiniMax:

1. RSI

M4's pretraining and mid-training were completed 50 days ago, after which R&D work focused mainly on post-training of the current M4 version, online serving and inference systems, and pretraining and mid-training of subsequent versions. Throughout this process, early versions of M4 played an important role, directly participating in multiple R&D tasks including reinforcement learning data construction and continuous iteration, RFT, infra optimization, and training monitoring and analysis. Across the entire M4 post-training R&D cycle, compute used to leverage early M4 versions to advance their own and subsequent model iterations already accounted for about 15% of total R&D compute, and the share is still rising. On Posttrain Bench v1.2, which measures post-training-related capabilities, M4 scored 38.2, gradually approaching the level of frontier overseas models. We are seeing that improvements in model capabilities not only improve the model's own performance but also begin to translate into productivity for the next generation of models, gradually forming a positive loop between model capability and model R&D efficiency.

2. Safety

During M4's benchmarking and reinforcement learning, we found that the model already has the following capabilities: first, it can break multiple peer-reviewed modern cryptography schemes for which no public attack method previously existed; second, it can move beyond known vulnerabilities to find and fix numerous unknown high-severity vulnerabilities in production-grade open-source code; third, it can chain multiple vulnerabilities to escape a sandbox, gain external host permissions, and launch attacks on company infrastructure, which prompted us to harden our own infrastructure. Out of concern for potential risks, we have restricted these capabilities in the publicly released general version, and will separately provide them to some compliant domestic research institutions to help protect network environments.

To learn more about M4's technical details, please read MiniMax's technical report: GitHub: https://github.com/MiniMax-AI/MiniMax-M4 About pricing

Thanks to its architectural advantages, MiniMax offers the most competitive pricing for a flagship model, along with the fastest possible inference speed at that price.

Domestic API pricing is 5 yuan per million input tokens, 20 yuan for output, and 0.3 yuan for cache reads; overseas API pricing is $0.8 per million input tokens, $3.1 for output, and $0.05 for cache reads.

You can use it in the following ways:

API: https://platform.minimax.cn/docs/pricing/overview

M Plan: https://www.minimax.cn/m-plan

MiniMax Code: https://code.minimax.cn

Individual developers can use M Plan to enjoy multiple times the usage on the same budget, and in MiniMax Code they can stack a limited-time nighttime doubling offer. Neither the new model nor the new tiers have a 5-hour limit. Coding, office work, and creation — all in one place.

Representative examples

Code animation

M4 can handle the entire production of a short film in code: building scenes, designing camera movement, generating assets and music, then rendering and compositing the final cut. Camera paths, lighting, and pacing are all written in code, so every frame can be precisely controlled and revised repeatedly.

△ A documentary short on Turing and the codebreaking war

Using Three.js and GLSL shaders, M4 produced this 64-second, seven-scene documentary short entirely in code, including visuals, camera effects, music, and sound effects. In the opening, M4 has 100,000 particles coalesce into a portrait of Alan Turing, with each particle landing with the portrait's real color and lighting.

Game development

In UE5, M4 can combine C++, Python, and Blender to develop complete games across mainstream genres including racing, FPS, and ACT. From procedurally generated scenes to vehicle physics, shooting feel, combat systems, AI opponents, and cinematic storyboards, M4 handles the entire development pipeline. After each round of changes, it also writes automated tests, actually plays through the gameplay, and checks feel, hit detection, and frame rate.

△ A wasteland street FPS shooter

In this UE5 FPS, movement, ADS, shooting, and reloading are all implemented by M4 in C++, while the entire street is generated by Python driving Blender. To keep the buildings from looking flat, it wrote a script to identify the flat window textures on the walls and carve them into recessed 3D window frames, so players see real parallax when strafing.

3D modeling

M4 can build accurate 3D models from photos, drawings, and public materials, from an entire cathedral down to a single screw. It writes scripts to drive Blender and CAD software for parametric modeling, letting parts move and be disassembled and reassembled, then brings the model into the browser with Three.js for real-time roaming and interaction.

△ A part-level CAD model of a robot dog

M4 completed a part-level CAD model of a quadruped robot dog in CAD, with 2,800 solids, 302 screws, and 22 joints across the whole machine. Enclosed internals such as the battery pack, joint movement, and the knee's four-bar linkage were procedurally generated by M4 after it calculated their dimensions. After importing the model into Blender, M4 created animations that disassemble and reassemble all 3,097 parts one by one.

System-level software engineering

The modern browser is one of the most complex systems in software engineering. MiniMax gave M4 a real 24-hour engineering deadline and an empty directory, and asked it to build a desktop graphical browser from scratch without using Chromium, WebKit, Gecko, V8, or any existing engine.

M4 kept coding across more than 4,000 rounds of tool calls, debugging against the images it rendered itself, and wrote 120,000 lines of code in pure Rust, independently implementing HTML5 parsing, CSS3 Flexbox and Grid layout, SVG and Canvas rendering, a native desktop interface, and more. The JavaScript engine alone accounts for 32,000 lines, with zero third-party dependencies, covering core language features through ES2022. The browser scored a perfect 100/100 on the Acid3 compatibility test, correctly renders mainstream websites, and can directly run dynamic interactive apps built on modern front-end frameworks such as React 18 and Redux.

On open source and what's next

After completing internal and third-party safety evaluations, MiniMax will continue to open up the model weights, with the release planned within a few weeks after this launch.

MiniMax is still at the starting point of the journey toward higher intelligence. The team also identified many areas for further improvement during development and will continue to develop stronger versions.

Intelligence with Everyone.