ETH: Data-Balanced Heterogeneous Pipeline Parallelism for Training Large Models
Organizations: University of Macau · Great Bay University · Sun Yat-sen University · Independent Researchers
Abstract
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.
Figures & tables
| Clusters | Comp. Power | Memory | Bandwidth |
| Ascend 910B2 | 376 TFLOPS | 64 GB | 1536 Gbps |
| Ascend 910B3 | 313 TFLOPS | 64 GB | 1536 Gbps |
| Ascend 910B4 | 280 TFLOPS | 32 GB | 736 Gbps |
| NVIDIA A100 | 312 TFLOPS | 80 GB | 1536 Gbps |
| NVIDIA RTX3090 | 80 TFLOPS | 24 GB | 1408 Gbps |
| Model | #Layer | Hidden Dim | Clusters Scales |
| 350M | 24 | 1024 | 1 2 + 1 2 |
| 1.3B | 24 | 2048 | 2 2 + 2 2 |
| 2.6B | 32 | 2560 | 2 4 + 2 4 |
| 6.7B | 32 | 4096 | 4 4 + 4 4 |
| 13B | 40 | 5120 | 4 8 + 4 8 |
| 70B | 80 | 8192 | 32 8 + 32 8 |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Metis | |||||
| Pipeline | Stage | Dev. | TP/DP | #L | Recomp. Operator |
| Mbs=4 Gbs=1024 | 0 | 2/4 | 5 | None | |
| 1 | 2/4 | 6 | None | ||
| 2 | 4/2 | 7 | None | ||
| 3 | 2/4 | 6 | None | ||
| 4 | 8/1 | 3 | None | ||
Distributed Training
Distributed training coordinates computation across multiple devices or machines to train models that exceed single-device limits.
See all 129 papers