All stories
MiniMax details Forge V2.0 behind M4

MiniMax details Forge V2.0 behind M4

MiniMax has published how Forge V2.0, its second-generation agent RL framework, trained the M4 model across a 10,000-accelerator cluster, describing the problems it had to solve and how it scheduled the work.

MiniMax has published a technical writeup on Forge V2.0, the reinforcement learning system it used to post-train its recently released M4 model. As we reported earlier, Forge V1.0 shipped with M2.5 and focused on getting end-to-end RL working on both black-box and white-box agents. The company says V2.0 extends that to RL at roughly 3T-parameter scale with a 1M-token context window on a 10,000-accelerator cluster. We covered M4 itself as a 2.74-trillion-parameter model.

According to MiniMax, dozens of domain-expert RL runs and multi-teacher on-policy distillation (MOPD) runs were running in parallel every day during M4's development. The company says three problems shaped the design: training stability, RL correctness in both recipes and systems, and per-rank rollout and training throughput.

The core change is predictive rollout scheduling. MiniMax argues that RL rollout, unlike online serving, is a closed system whose demand can be forecast. A new framework called AFlow, now split out from Forge, tracks every agent session in a global table. A model-based predictor estimates how long tool calls will take and how many tokens they will return, and it reports those estimates every 5 seconds. Forge's scheduler then runs a cost model and switches instances between prefill and decode roles before load shifts. MiniMax says each switch takes 5–10 seconds on M4.

Other components include encode–prefill–decode disaggregation and a low-latency "Fast MegaEngine" for long-tail trajectories. The vision encoder runs in a separate node pool, and teacher models for MOPD can be swapped in on demand. Training recipes cover FP4 precision and optimizer dynamics. The excerpt we reviewed does not include benchmark results for these components.

Sources