arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.13221cs.LGcs.CLcs.DC
收藏

优化大语言模型RLHF训练的阶段融合方法

Optimizing RLHF Training for Large Language Models with Stage Fusion

School of Computer Science, Peking University(北京大学计算机学院)

Yinmin Zhong, Zili Zhang, Bingyang Wu, Shengyu Liu, Yukun Chen, Changyi Wan, Hanpeng Hu, Lei Xia, Ranchen Ming, Yibo Zhu, Xin Jin

AI总结:

提出RLHFuse系统,通过将RLHF任务拆分为细粒度子任务并实施阶段间与阶段内融合,缓解生成瓶颈和流水线气泡,将训练吞吐量提升至3.7倍。

摘要:

我们提出了RLHFuse,一个采用阶段融合的高效训练系统,用于人类反馈强化学习(RLHF)。由于RLHF训练的内在特性,即生成阶段的数据偏斜和训练阶段的流水线气泡,现有的RLHF系统面临GPU利用率低的问题。RLHFuse打破了将RLHF工作流视为独立任务组合的传统观点,将每个任务拆分为更细粒度的子任务,并通过阶段融合来提高GPU利用率。RLHFuse包含两个关键思想。首先,对于生成和推理任务,RLHFuse将它们拆分为样本级子任务,实现高效的阶段间融合,以重叠生成和推理阶段的执行,从而缓解由长尾样本主导的原始生成瓶颈。其次,对于训练任务,RLHFuse将它们拆分为微批次的子任务,并执行阶段内融合,通过融合的流水线调度在训练阶段并发执行这些子任务,有效缓解流水线气泡。实验表明,与现有系统相比,RLHFuse将训练吞吐量提升了高达3.7倍。

英文摘要:

We present RLHFuse, an efficient training system with stage fusion for Reinforcement Learning from Human Feedback (RLHF). Due to the intrinsic nature of RLHF training, i.e., the data skewness in the generation stage and the pipeline bubbles in the training stage, existing RLHF systems suffer from low GPU utilization. RLHFuse breaks the traditional view of RLHF workflow as a composition of individual tasks, splitting each task into finer-grained subtasks, and performing stage fusion to improve GPU utilization. RLHFuse contains two key ideas. First, for generation and inference tasks, RLHFuse splits them into sample-level subtasks, enabling efficient inter-stage fusion to overlap the execution of generation and inference stages, thus mitigating the original generation bottleneck dominated by long-tailed samples. Second, for training tasks, RLHFuse breaks them into subtasks of micro-batches and performs intra-stage fusion to concurrently execute these subtasks in the training stage with a fused pipeline schedule, effectively mitigating the pipeline bubbles. The experiments show that RLHFuse increases the training throughput by up to $3.7\times$, compared to existing systems.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑