Modal 尝试混合精度与混合加速器的 RL 采样
Modal 发布技术文章,探讨在大模型强化学习中让采样器使用不同精度与不同加速器,同时保持训练稳定。文章称采样已占大型 RL 运行 80%–85% 的 GPU,并用离线策略修正与自动扩缩的 serverless GPU,在 Qwen3.6-35B-A3B 的智能体编程任务上做了全异步训练。其采样器覆盖 B200、B300、H100、H200、A100 和 RTX PRO 6000 六类加速器,训练器在 B200 上以 BF16 更新,并在 SWE-bench Pro V2 及其 HARD-51 子集上评估。
Modal 认为,修正方法把采样器与训练器解耦后,RL 采样不再必须依赖大型同构集群,而可按需使用多种加速器。
In large-model reinforcement learning (RL), samplers usually run on the same accelerators and often the same precision as the trainer, keeping the two numerically close for stable training. Outside of RL, however, serving systems are not constrained in this manner: they’re free to optimize generation for speed and cost using low-precision formats such as FP8, MXFP4 and NVFP4, co-designed kernels, and even accelerators built just for long-context prefill.
Since sampling already takes 80–85% of the GPUs in large RL runs, this leaves a lot on the table! We ask whether we can use mixed-precision, mixed-accelerator samplers, each running its own kernels, while keeping training stable and performant.
Samplers on six kinds of accelerators, each with its own precision and kernel, feed one BF16 trainer on B200.
Two problems stand in the way.
The first problem is learning. Each of these optimizations adds to training–inference mismatch, making samples more off-policy, which often destabilizes training. Off-policy correction is the natural solution; it lets a trainer learn from data generated by a different policy, such as stale samples in asynchronous training. Since it makes no assumption about why the two policies differ, it should apply equally to different precisions or accelerators.
#Modal#Qwen3.6-35B-A3B#Miles#SGLang#Megatron-LM#NVIDIA B200#NVIDIA H100#SWE-bench Pro V2#Xiaomi MiMo-V2.6