Skip to main content
Back

Microsoft's Rocket Keeps a 3-Trillion-Parameter AI Training for Months

Microsoft AI detailed Rocket, the in-house RL framework post-training MAI Base 2 across thousands of GPUs for weeks with bitwise sampler-learner parity.

  • Microsoft AI detailed Rocket, its in-house RL framework post-training the three-trillion-parameter MAI Base 2 model.
  • Built for month-long RL runs climbing from base model without distillation from third-party teachers.
  • Achieves bitwise parity between sampler and learner, yielding higher eval scores at the same training step.
  • Uses MXFP8 storage with BF16 compute for MoE weights and global-attention KV caches to fit larger contexts.
  • Learner-only recovery in roughly five minutes saved over 7% of GPU hours in a recent run.
  • MAI's model reportedly passed Claude Opus 4.8 on its aggregate reasoning benchmark, tracking toward GPT-5.6 Sol.

Microsoft AI has detailed Rocket, its internal reinforcement learning framework for improving MAI Base 2, a three-trillion-parameter base model. Rocket coordinates thousands of GPUs across training runs that last weeks or months, with an emphasis on policy freshness, numerical consistency, and recovery from hardware failures.

Microsoft reports that MAI Base 2 has surpassed Claude Opus 4.8 on an aggregate reasoning benchmark and could overtake GPT-5.6 Sol within weeks if its current trend continues. Those results are self-reported and aggregated, which limits task-level comparison. The engineering data provide a clearer account of what sustained reinforcement learning demands at this scale.

A training loop split four ways

Component Role
Sampler Runs inference and generates candidate responses, known as rollouts, from the current policy.
Learner Computes gradients, updates the policy, and publishes new model weights.
Rollout workers Execute agent workflows and collect rewards for each problem.
Controller Admits work, coordinates components, and applies runtime configuration changes.

Long runs rewrite the failure budget

Many post-training pipelines distill a smaller model from a stronger teacher, then apply a relatively short RL phase. The student begins near the teacher-defined capability ceiling, so failed jobs can often be restarted before they consume weeks of compute.

Microsoft is instead using RL to produce much of the capability gain from the base model itself. That approach requires many thousands of training steps across thousands of GPUs. Small discrepancies that remain harmless during a short run can accumulate until they destabilize a longer one.

Rocket concentrates on three recurring failure modes:

  • Policy staleness: Agentic rollouts can take hours while the learner continues updating the model. Tokens generated by an older policy become increasingly off-policy by the time they reach training.
  • Numerical drift: Different precision formats, kernels, parallel layouts, and accumulation orders can cause the sampler and learner to assign different probabilities to the same tokens.
  • Hardware failure: Multi-week jobs spanning thousands of GPUs will lose machines or processes. Full-job restarts would discard substantial compute.

Staleness rises while agents think

Rocket runs asynchronously, allowing the learner to update the model while samplers continue generating rollouts. Microsoft defines policy staleness as the number of learner steps between token generation and token use in training. In simplified form, staleness = training step - sampling step.

The group structure of Group Relative Policy Optimization, or GRPO, makes delays more expensive. GRPO compares candidate rollouts for the same problem and uses their relative rewards as a training signal. One slow or failed rollout can therefore delay its entire group.

Distributing fresh weights also becomes a scaling problem. Sending a separate copy from the learner to every sampler would make learner-side communication grow with the inference fleet. Rocket instead sends packed parameter chunks to selected sampler engines, which redistribute them to matching distributed ranks. A rank is one process participating in the distributed job. Microsoft says this two-stage transfer takes about 15 seconds in its current configuration, allowing trillion-parameter sampler weights to refresh every few training steps.

Queueing and capacity controls further limit staleness:

  • Prioritize active rollouts: In-flight requests move ahead of new work because every queued second increases the age of their generated tokens.
  • Drop failed rollouts: Rocket accepts some bias in the GRPO group baseline instead of retrying a failed rollout and blocking the group.
  • Keep inference as the bottleneck: Microsoft allocates excess learner capacity so training does not build a rollout queue. Some learner GPUs remain idle, but completed samples reach training sooner.

Adding inference servers while holding batch size constant can increase staleness. Faster rollout collection causes the learner to complete more updates during the wall-clock lifetime of each long-running rollout, leaving its tokens further behind the current policy.

Exact arithmetic becomes a training feature

MAI Base 2 is too large for economical inference with every weight and cache stored in BF16, a 16-bit floating-point format. Rocket selectively uses MXFP8, an 8-bit format that reduces memory consumption, while preserving BF16 computation where lower precision caused sampler and learner outputs to diverge.

  • MoE weights: Mixture-of-experts weights account for more than 95% of the model’s parameters. Storing them in MXFP8 nearly halves sampler weight memory.
  • Expert computation: MXFP8 matrix multiplication produced larger log-probability discrepancies. Rocket stores expert weights in MXFP8, dequantizes them, and performs multiplication with BF16 activations.
  • Attention caches: MAI Base 2 uses local and global attention layers in a 5:1 ratio. Quantizing both key-value caches increased drift, so local-attention caches remain in BF16 while global-attention caches can use lower precision.

Matching data types alone cannot guarantee matching probabilities. Kernel implementations, operation ordering, parallel decomposition, and intermediate rounding all affect the final result. Microsoft found that sampler-learner discrepancies were larger at a later RL checkpoint than at initialization, suggesting that optimization can amplify numerical differences between the two execution paths.

Microsoft says Rocket now achieves bitwise parity, meaning the sampler and learner produce exactly matching computational results, without a noticeable performance penalty. Three implementation changes were central:

  • Attention output projections: The sampler retains tensor parallelism, gathers attention-head outputs, and uses replicated output-projection weights. Each token’s full projection can then run on one GPU without a cross-GPU reduction afterward.
  • MoE expert combination: An all-to-all operation returns expert outputs to each token’s source device. Rocket combines them locally in FP32 and matches the accumulation order across sampler and learner.
  • Attention kernels: Sampler decoding, sampler prefill, and learner forward passes share an FA4 implementation with aligned key-value split boundaries, keeping online softmax reductions consistent.

A smaller experiment with 7 billion active parameters and 180 billion total parameters produced higher evaluation scores at comparable training steps after the consistency changes. The baseline came from one month earlier, so other stack changes may also have contributed to the improvement.

Failures stop at component boundaries

Rocket treats the learner, controller, rollout workers, and inference fleet as separate recovery domains. A failure in one component does not automatically force the entire training job to restart.

When the learner fails, Rocket stops admitting new problems and terminates its distributed ranks instead of waiting for each rank’s NCCL timeout. NCCL is Nvidia’s communication layer for multi-GPU jobs. Rocket then rebuilds the learner, restores the latest checkpoint, and reconnects it to the existing controller.

Learner recovery takes roughly five minutes, according to Microsoft. The inference fleet continues generating samples during that interval, accepting additional policy staleness to preserve inference work. Microsoft estimates that learner-only recovery saved more than 7% of GPU hours during one recent run.

Typed and validated runtime settings let operators adjust inference capacity, concurrency, work admission, staleness limits, batch packing, and problem-mixture weights without rebuilding the job. Components apply updates at safe boundaries, such as the end of a training step. Microsoft attributes a 9.88% increase in training compute to this runtime elasticity.

A blueprint without the code

Microsoft has kept Rocket proprietary, but its design identifies the controls required for long-running agentic RL. The inference layer uses an MAI-maintained fork of SGLang, while Rocket components run as Ray actors on Kubernetes or Slurm. Open-source frameworks such as verl and slime already provide distributed execution, configurable agent workflows, and asynchronous sampling, although sustained base-model training places heavier demands on those features.

Teams building comparable systems can apply several concrete practices:

  • Record the policy version or learner step associated with every sampled token.
  • Track staleness distributions rather than relying only on mean rollout latency.
  • Compare sampler and learner log probabilities throughout training, including at later checkpoints.
  • Choose storage precision separately from compute precision.
  • Align kernels, reduction boundaries, and accumulation order across inference and training.
  • Recover failed components independently and measure the staleness introduced during recovery.
  • Apply live configuration changes only at explicit synchronization boundaries.

The capability bet remains open

Teacher distillation and synthetic data from stronger systems provide a faster route to capable smaller models. Microsoft’s approach attempts a longer climb from a base model through RL, placing more pressure on infrastructure and reducing dependence on a stronger teacher during post-training.

The reported MAI Base 2 trajectory suggests that such a run can remain productive for months, while Rocket shows how Microsoft keeps it operational. Continued benchmark gains would strengthen the capability claim. The current publication already offers a detailed systems account of policy staleness, numerical parity, and fault recovery at trillion-parameter scale.