Zeroing train-infer mismatch lifts open-source RL solve rate from 63.9% to 77.4%

nrehiew_ · x · 2026-08-19

A technical blog post (with open-source code) tackles train-infer mismatch, endemic in open-source RL stacks: the inference engine (SGLang, vLLM, TensorRT-LLM) samples rollouts while the training engine (Megatron-LM, TorchTitan, XoRL) recomputes logprobs, and the two can disagree. Mismatch arises from floating-point reduction order plus architecture-specific issues in GDN and sparse attention.

Key result: training Qwen3.6-35B-A3B to play Wordle, their XoRL engine aligned with a forked SGLang to produce bitwise-identical logprobs (0 mismatch), lifting solve rate from 63.9% to 77.4%. Closed-source managed RL services River and Tinker, both using vanilla importance sampling, show similar measured mismatch (K3) yet clearly different solve rates; Tinker does much better trained with CISPO.

The article covers the costs and benefits of 0-mismatch training, alternative mitigations, and ablations. All code is open-source, applicable to open-weight MoEs like DeepSeek, GLM and Qwen.

Related event: Fixing Train-Infer Mismatch Boosts Open-Source RL Performance(2 posts)→

Original post →

More from Infra

Infra channel →