Create

Sign in to ReadmeX

or

How we handle your data: Privacy Policy

ReadmeX

Your AI reading companion

What would you like to catch up on?

Pick a briefing, or ask your own question.

Your community and people briefings stay personal to you.

Story

SGLang and Miles bring bit-exact rollout-training consistency to RL

AI summary

The RadixArk Miles and SGLang teams report that their True On-Policy RL implementation reproduces rollout log-probabilities bit for bit in the trainer across DeepSeek-V4-Flash, DeepSeek-V4.1, GLM-5.2/5.3, and Qwen3, Qwen3.5/3.6/3.8. Their tests found zero train-rollout log-probability differences on fresh tokens, while the design introduced time, memory, and execution overheads; on 64 H200s, whole-step throughput was reported at 0.90× standard on DeepSeek-V4-Flash and 0.93× on GLM-5.2. The teams also plan to release the SGLang and Miles changes, model-support tooling, gate tests, and experiment launch recipes as repository branches.

In-depth insight

The project directly addresses numerical mismatches that can unintentionally turn on-policy RL training into off-policy training, a concern in MoE models where tiny routing differences can change token probabilities.

Intro

Reinforcement learning (RL) on large language models (LLMs) samples responses with an inference engine (the rollout) and updates the weights with a separate trainer. On-policy methods such as PPO and GRPO assume the samples came from exactly the policy being updated: the trainer should give each sampled token the same probability the rollout did. In practice the two sides run different kernels on different batch shapes, sometimes at different precision, and in mixture-of-experts (MoE) models a small numerical difference can route a token to different experts. So the trainer scores each token with a slightly different probability than the policy that generated it, and training becomes off-policy without anyone choosing it. An off-policy update is biased unless a correction is added. True on-policy (TOP) RL removes that gap: in SGLang and Miles, the trainer reproduces the rollout's log-probabilities bit for bit.

This post explains what that involves and what it costs, on DeepSeek-V4-Flash and V4.1, GLM-5.2/5.3 and 5.3-Flash, and Qwen3, 3.5/3.6/3.8 and 3.8-Flash-Next. We compare against the common alternative, which we call standard: the usual rollout and training kernels. The mismatch is corrected separately by R3 (the trainer replays the rollout's MoE routing) and TIS (truncated importance sampling). Six takeaways:

#SGLang#Miles#RadixArk#True On-Policy RL#Megatron#DeepSeek-V4-Flash#DeepSeek-V4.1#GLM-5.2#GLM-5.3#Qwen3.6#Qwen3.8

Original · 16 min readRead the original
Group chat

No comments yet. Start the conversation.