创建

登录 ReadmeX

或

了解我们如何处理你的信息: 隐私政策

ReadmeX

陪你读懂 AI 动态

今天,想先了解什么?

选一份动态总结,或直接聊聊你的问题。

社区和关注动态总结只属于你自己。

资讯

SGLang与Miles实现强化学习逐位一致

AI 总结

RadixArk Miles团队与SGLang团队称,其True On-Policy RL实现可在训练器中逐位复现采样端的log-probabilities,并覆盖DeepSeek-V4-Flash、DeepSeek-V4.1、GLM-5.2/5.3及多个Qwen3版本。其测试显示,新生成Token的训练与采样log-probability差异为零,但该设计带来时间、内存和执行开销;在64张H200上,DeepSeek-V4-Flash和GLM-5.2的整步吞吐量分别为标准方案的0.90倍和0.93倍。团队还计划以仓库分支形式发布SGLang与Miles改动、模型支持工具、门禁测试和实验启动配方。

深度见解

该项目直接处理可能让在策略强化学习无意中变成离策略训练的数值不一致问题;在MoE模型中,微小的路由差异就可能改变Token概率。

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

原文约 16 分钟读完阅读原文
群聊

还没有评论,来说说你的看法。