Nereus:面向LLM后训练的自适应并行
研究论文 · 2026/09/29
Nereus 是一个面向大语言模型强化学习后训练的成本感知运行时系统,能够自适应地调整执行计划以应对资源可用性、序列长度、内存压力和阶段瓶颈等变化。它通过低开销控制器选择内存可行的全局计划,并基于针对运行中任务校准的成本模型决定是否进行转换。Nereus 将模型-阶段副本的分布式状态表示为弹性模型单元,并利用全局转换图来排序这些单元的转换和 GPU 传输。在真实数据轨迹中,在线 TP/PP 自适应相比初始固定 TP/PP 布局与 DP 扩展,平均步骤延迟降低 27.7%。在达到 1024 个 GPU 的 1000 步运行中,六次转换仅占总运行时间的 0.079%。Nereus 在不同集群上将 8B PPO 的端到端吞吐量相比 OpenRLHF 提升 2.14–7.27 倍,相比 Verl 提升 1.10–1.47 倍。
Nereus 解决了 LLM 强化学习后训练中动态适应执行计划的难题,通过低成本转换显著提升吞吐量,对大规模训练系统有重要实践价值。
Reinforcement learning (RL) post-training for large language models (LLMs) coordinates multiple models across generation, inference, and training on GPU clusters. Several factors may change during a run, including resource availability, sequence length, memory pressure, and stage bottlenecks. As a consequence, an execution plan that was initially suitable can then become slow or even infeasible over time. However, adapting a job whose models share GPUs entails significant challenges: deciding whether a new plan is worth the transition cost, reusing the job's distributed state, and coordinating GPU transfers across models and stages. Nereus targets these challenges as a cost-aware runtime that adapts RL post-training jobs into efficient execution plans. Its low-overhead controller selects a memory-feasible global plan and admits the transition using a cost model calibrated against the running job. To estimate and execute a transition, Nereus represents the distributed state of each replica of a model-stage (one model in one stage) as an Elastic Model Unit. It then employs a global transition graph to order the transformations and GPU transfers of these units. In a trace built from real data, online TP/PP adaptation reduces average step latency by 27.7% relative to the initial fixed TP/PP layout with DP scaling. In a 1,000-step run reaching 1,024 GPUs, six transitions consume 0.079% of total run time. Nereus improves end-to-end 8B PPO throughput by 2.14--7.27times over OpenRLHF and by 1.10--1.47times over Verl across diverse clusters.