arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2610.22035cs.DCcs.LG
收藏

ETH:用于训练大模型的数据均衡异构流水线并行

ETH: Data-Balanced Heterogeneous Pipeline Parallelism for Training Large Models

University of Macau(澳门大学);Great Bay University(大湾区大学);Sun Yat-sen University(中山大学)

Mianjie Yu, Zhongmin Zhao, Zizhao Mo, Jianxiong Liao, Wenxuan Li, Yulin Qiao, Huanle Xu, Wenquan Yang, Yongqiang Yang, Zeren Li, Ruifeng Tang, Chengzhong Xu

AI总结:

ETH系统针对现有大模型训练系统的缺陷,提出异构流水线并行方法,通过分层框架、分块梯度聚合等优化,实现最高2倍训练加速与最高56倍配置开销降低。

摘要:

当前面向大模型的异构感知训练系统通过在流水线阶段间分配不等数量的层来平衡工作负载,该策略旨在通过独特的流水线配置均衡执行时间。然而,此方法无法解决关键的内存约束问题,且存在固有的粗粒度平衡问题。本文提出异构流水线并行(Heterogeneous Pipeline Parallelism,HPP),这是一种能在异构流水线间实现高效细粒度数据平衡的新方法。为解决HPP的关键挑战——最优配置的搜索开销过高以及非对称All-Reduce带来的高通信开销,我们设计了ETH训练系统。ETH采用分层工作负载平衡框架,同时优化异构流水线间及单个流水线阶段内的平衡。为缓解非对称通信成本,ETH实现了分块梯度聚合。此外,它集成了专门的优化措施,可大幅降低HPP配置的搜索开销。评估表明,ETH相较于现有最优系统,训练加速比最高可达2倍,配置生成开销最高降低56倍。代码可在该https URL获取。

英文摘要:

Current heterogeneity-aware training systems for large models balance workloads by assigning unequal numbers of layers across pipeline stages, a strategy aimed at equalizing execution time through a unique pipeline configuration. However, this approach fails to address critical memory constraints and suffers from inherently coarse balancing granularity. In this paper, we propose Heterogeneous Pipeline Parallelism (HPP), a novel approach enabling efficient and fine-grained data balance across heterogeneous pipelines. To address HPP's key challenges, prohibitive search overhead for optimal configurations and high communication overhead from asymmetric All-Reduce, we design the ETH training system. ETH employs a hierarchical workload balance framework that jointly optimizes balance across heterogeneous pipelines and within individual pipeline stages. To mitigate asymmetric communication costs, ETH implements block-wise gradient aggregation. Furthermore, it integrates specialized optimizations that dramatically reduce HPP configuration search overhead. Evaluations demonstrate ETH achieves up to 2x training speedup while reducing configuration generation overhead by up to 56x compared to state-of-the-art systems. The code is available at https://github.com/YuMJie/ETH.

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

↑