Hetu v2: A General and Scalable Deep Learning System with Hierarchical and Heterogeneous Single Program Multiple Data Annotations
Haoyang Li, Fangcheng Fu, Hao Ge, Sheng Lin, Xuanyu Wang, Jiawen Niu, Yuming Zhou, Xupeng Miao, Bin Cui
摘要
The Single-Program Multiple-Data (SPMD) paradigm provides a unified abstraction to annotate various parallel dimensions in distributed deep learning (DL) training. With SPMD, users can write training programs from the viewpoint of a single device, and the system will automatically deduce the tensor sharding and communication patterns. However, with the recent development in large-scale DL models, distributed training exhibits spatial and temporal workload heterogeneity, arising from both device disparities (e.g., mixed hardware, failures) and data variations (e.g., uneven sequence lengths). Such heterogeneity violates SPMD’s assumption of symmetric workload partitioning, which restricts its ability to express and optimize heterogeneous parallel strategies effectively. To address this, we propose HSPMD within the Hetu v2 system to achieve general and scalable DL training. HSPMD extends SPMD’s declarative annotations to support asymmetric sharding and composes standard communication primitives for hierarchical communication, all while retaining the simplicity of a single-device programming model. HSPMD handles spatial heterogeneity through progressive graph specialization, enabling device-specific execution logic, and addresses temporal heterogeneity via dynamic graph switching. Evaluations on (a) heterogeneous devices, (b) unstable devices, and (c) mixed-length data scenarios show that HSPMD matches or outperforms specialized systems, providing a flexible and efficient solution for modern distributed DL training. Code is available: https://github.com/PKU-DAIR/Hetu .
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Hydraulis: Balancing Large Transformer Model Training via Co-designing Parallel Strategies and Data Assignment 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
- Hydraulis: Balancing Large Transformer Model Training via Co-designing Parallel Strategies and Data Assignment 引用了 Efficient large-scale language model training on GPU clusters using megatron-LM
- Hydraulis: Balancing Large Transformer Model Training via Co-designing Parallel Strategies and Data Assignment 引用了 FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
- Hydraulis: Balancing Large Transformer Model Training via Co-designing Parallel Strategies and Data Assignment 引用了 LobRA: Multi-tenant Fine-tuning over Heterogeneous Data
- Hydraulis: Balancing Large Transformer Model Training via Co-designing Parallel Strategies and Data Assignment 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
- HARP: Orchestrating Automated Parallel Training on Heterogeneous GPU Clusters 引用了 ZeRO: memory optimizations toward training trillion parameter models
- HARP: Orchestrating Automated Parallel Training on Heterogeneous GPU Clusters 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
- HARP: Orchestrating Automated Parallel Training on Heterogeneous GPU Clusters 引用了 Efficient large-scale language model training on GPU clusters using megatron-LM
- HARP: Orchestrating Automated Parallel Training on Heterogeneous GPU Clusters 引用了 FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
- Efficient large-scale language model training on GPU clusters using megatron-LM 引用了 ZeRO: memory optimizations toward training trillion parameter models
- FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
- LobRA: Multi-tenant Fine-tuning over Heterogeneous Data 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
- LobRA: Multi-tenant Fine-tuning over Heterogeneous Data 引用了 Efficient large-scale language model training on GPU clusters using megatron-LM
- LobRA: Multi-tenant Fine-tuning over Heterogeneous Data 引用了 FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
引用它的顶会 Paper4
- Hydraulis: Balancing Large Transformer Model Training via Co-designing Parallel Strategies and Data AssignmentHaoyang Li, Fangcheng Fu, Sheng Lin, Hao Ge 等SIGMOD 2026 · 7 次引用
- LobRA: Multi-tenant Fine-tuning over Heterogeneous DataSheng Lin, Fangcheng Fu, Haoyang Li, Hao Ge 等VLDB 2025 · 5 次引用
- HARP: Orchestrating Automated Parallel Training on Heterogeneous GPU ClustersAntian Liang, Zhigang Zhao, Kai Zhang, Xuri Shi 等EuroSys 2026 · 1 次引用
- Demystifying Cost-Efficiency in LLM Serving over Heterogeneous GPUsYouhe Jiang, Fangcheng Fu, Xiaozhe Yao, Guoliang He 等ICML 2025
它引用的 Paper32
- FlashAttention: Fast and Memory-Efficient Exact Attention with IO-AwarenessTri Dao, Daniel Y. Fu, Stefano Ermon, Atri Rudra 等NeurIPS 2022 · 5,493 次引用
- FlashAttention-2: Faster Attention with Better Parallelism and Work PartitioningTri DaoICLR 2024 · 2,600 次引用
- GShard: Scaling Giant Models with Conditional Computation and Automatic ShardingDmitry Lepikhin, HyoukJoong Lee, Yuanzhong Xu, Dehao Chen 等ICLR 2021 · 1,954 次引用
- ZeRO: memory optimizations toward training trillion parameter modelsSamyam Rajbhandari, Jeff Rasley, Olatunji Ruwase, Yuxiong HeSC 2020 · 852 次引用
- Efficient large-scale language model training on GPU clusters using megatron-LMDeepak Narayanan, Mohammad Shoeybi, Jared Casper, Patrick LeGresley 等SC 2021 · 576 次引用
相关 Paper
- HAP: SPMD DNN Training on Heterogeneous GPU Clusters with Automated Program SynthesisShiwei Zhang, Lansong Diao, Chuan Wu, Zongyan Cao 等EuroSys 2024 · 16 次引用
- AccPar: Tensor Partitioning for Heterogeneous Deep Learning AcceleratorsLinghao Song, Fan Chen, Youwei Zhuo, Xuehai Qian 等HPCA 2020 · 62 次引用
- Alpa: Automating Inter- and Intra-Operator Parallelism for Distributed Deep LearningLianmin Zheng, Zhuohan Li, Hao Zhang, Yonghao Zhuang 等OSDI 2022 · 75 次引用
- Hare: Exploiting Inter-job and Intra-job Parallelism of Distributed Machine Learning on Heterogeneous GPUsFahao Chen, Peng Li, Celimuge Wu, Song GuoHPDC 2022 · 10 次引用
- EasyScale: Elastic Training with Consistent Accuracy and Improved Utilization on GPUsMingzhen Li, Wencong Xiao, Hailong Yang, Biao Sun 等SC 2023 · 16 次引用
