vLLM开源位级一致RL训练内核与智能体技能
AI 总结
vLLM博客称,高性能RL训练中推理侧的低精度计算与内核优化会改变数值结果,导致训练优化的策略不再是采样时的策略:在DeepSeek-V4-Flash上,高性能基线的训练-推理KL从2e-3升至29.9,奖励随之回落。作者的做法是让训练前向直接调用vLLM推理内核,并修改这些内核,使rollout与训练对每个采样token给出位级一致的logprob(diff=0)。据其自测,DeepSeek-V4-Flash训练100步每步diff均为0,rollout吞吐为基线的91.3%;在Nemotron-3.5(Mamba混合架构+NVFP4)上,一致版本的SWE-bench Pro得分保持约0.6,基线则从0.56降至0.22。团队将该流程打包为智能体技能,并开源配方与代码,同时称DeepSeek-V4.1已达到0 diff,性能优化仍在收尾。
深度见解
作者给出的理由是:训练不稳定会带来更多崩溃、回滚和重跑,有效训练占比下降;他们希望通过减少这些损耗,用更短的端到端时间完成有效的RL训练。
TL;DR
- Problem: inference-side optimizations in high-performance RL change the numerics, so training optimizes a policy other than the one that sampled. On DeepSeek-V4-Flash, the high-performance baseline's train-inference KL rose from 2e-3 to 29.9 while reward fell back.
- Approach: the training forward calls vLLM's inference kernels directly, and those high-performance kernels are modified so rollout and training produce bitwise-identical logprobs for every sampled token (diff = 0).
- Results: over 100 DeepSeek-V4-Flash training steps, diff is 0 at every step at 91.3% of the baseline's rollout throughput. Carried over to Nemotron (Mamba hybrid + NVFP4), the consistent run's SWE-bench Pro score holds while the baseline's drops from 0.56 to 0.22.
- Open source: the process is packaged as an agent skill and released with the recipes and code, lowering the cost of doing this on a new model.
- In progress: DeepSeek-V4.1 has reached 0 diff; performance work is being finalized and will get its own post.

#vLLM#DeepSeek-V4-Flash#DeepSeek-V4.1#Nemotron-3.5-Lightning-30B-A3B#Megatron-LM#verl#NVIDIA