AI News
All stories
Official

MiniMax details Forge V2.0 RL system behind its M4 model

MiniMax says Forge V2.0, its reinforcement learning system for M4, is built to run at 3T parameters, a 1M-token context and 10,000-accelerator cluster scale.

Research · · 4 min read

MiniMax has published a detailed account of Forge V2.0, the reinforcement learning system it says it used to train its M4 model. The central claim is that the system was built to run RL at 3T parameters, a 1M context window and a 10,000-accelerator cluster. The post is a research write-up, not a product launch. Most of its weight sits in the mechanisms it says make that scale workable, and in a set of reported speedups, several of them tied to specific workloads.

The most concrete systems claim concerns rollout scheduling. Agent RL alternates between prefill and decode work in ways that shift during each iteration. Updated policy weights invalidate the KV caches at the start of every iteration, forcing full-context reprefills, and the best ratio of prefill to decode instances changes as multi-turn sessions progress. MiniMax's answer is to forecast that demand rather than react to it. A predictor inside its AFlow framework estimates remaining tool-call duration and tool-output length and reports to the Forge scheduler every 5 seconds in production. The scheduler weighs projected throughput gains against the cost of switching a node between prefill and decode roles. It triggers a switch only when the net benefit clears a threshold over a lookahead window. The argument depends on two conditions the post names itself: switching has to be cheap, and predictions have to be accurate. The company says in-place switching takes 5 to 10 seconds on M4. Against a fixed prefill/decode split, predictive scheduling raised effective rollout throughput by 51%, and against lagging reactive switching by 13%. The post does not report how accurate the predictor is, even though its approach requires accurate predictions. The accuracy behind those two figures is therefore not documented.

The long tail of slow trajectories is handled differently. Under strict on-policy RL, a few slow sessions leave most accelerators idle at the end of each iteration. Under the Windowed-FIFO partial rollout that Forge uses, a single straggler at the head of the window can block completed groups behind it. MiniMax's Semi-Async mode keeps most nodes colocated and reserves a small slice of compute during training to run Fast MegaEngine, a persistent megakernel engine that lets stragglers keep making progress. The engine figures are specific. At a DSpark acceptance length of 5, the company reports more than 835 tok/s for a single request and 4,550 tok/s aggregate at 32 concurrent requests.

Several other claims are narrower than the summary language suggests. The Tree-MSA result is a late-stage per-step training speedup of 1.77× on AutomationBench, measured against a baseline that already merges prefixes. The post notes that gains on more complex tasks are larger still but gives no figures for them. The Rollout-Driven EPLB result combines a roughly 15% training efficiency gain over a no-EPLB baseline, an 18% Decode throughput gain and a 6% Prefill gain in small-EP configurations. These apply to different stages, so they should not be read as one speedup. The Shared Vision Encoder adds 5% to 10% to end-to-end multimodal RL throughput, depending on visual workload intensity. The DSpark result is a fix for draft-model drift. A frozen draft's expected acceptance length fell from a 4.42 mean over the first 10 steps to 4.23 over the final 10. Rollout Anchor Replay held it between 4.4 and 4.6. Those numbers come from the Coding RL setting alone.

On the training side, MiniMax says it keeps training and rollout bitwise aligned in production. It also notes that a naive implementation of bitwise alignment would tank throughput. Its reported efficiency ratios are 87.50% for training, 97.25% for inference and 95.64% end to end, all expressed relative to unaligned runs. The post presents these as headroom to be recovered, not as the cost of a finished design. The FP4 section describes a practical problem. Under small RL learning rates, updates to FP32 master weights are smaller than half an NVFP4 quantization bin, so the 4-bit codes across all 384 routed experts barely change when synced to rollout. The fixes it lists are initializing from high-precision SFT master weights and using stochastic rounding during FP4 weight sync. Each is enabled per track depending on empirical gains.

AFlow, the framework that separates agent harnesses from Forge internals, is presented as the way external tools such as Claude Code and Codex can be trained without code changes. The mechanism is an inference gateway compatible with OpenAI and Anthropic APIs. A harness points its model URL at the gateway, and the gateway separates policy-trainable turns from sidecar calls such as context compaction, so that trained behavior matches deployment. The post's examples of harnesses trained this way include Claude Code, Codex, OpenCode and MiniMax Code, which the company says were trained simultaneously on M4. The post does not say whether the external harnesses' vendors take part in this arrangement. The claim that a harness needs zero code changes applies to what the gateway accepts, not to any evaluation of how faithfully those harnesses behave under training.

What changed

Type: Research · Applies to: Forge V2.0, M4

Why it matters

The post gives concrete, company-reported throughput figures for running agentic RL at very large scale. That is useful for teams planning their own agent training budgets. Most numbers are self-reported and have not been independently verified.

Original source

Where we saw it

1 source

MiniMax

AI wrote this summary from the sources listed, and nobody reviewed it individually before publication. Check the original source before you rely on it. How it works