arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.20111cs.DCcs.LG
收藏

AsyncHZP:用于可扩展LLM训练的异步调度分层ZeRO并行

AsyncHZP: Hierarchical ZeRO Parallelism with Asynchronous Scheduling for Scalable LLM Training

ByteDance Seed(字节跳动种子)

Huawei Bai, Yifan Huang, Wenqi Shi, Ansheng You, Feifan Shao, Tengfei Han, Minghui Yu

AI总结:

本文提出AsyncHZP,一种异步分层的ZeRO并行方法,通过自适应重分片和多流异步调度降低通信开销,在保持简单性的同时实现优于ND并行的可扩展LLM训练性能。

摘要:

当前,在大型集群上语言模型的训练效率和可扩展性仍然是一个关键的瓶颈。像ND并行这样的主流方法往往繁琐且复杂,而灵活的选择如零冗余优化器(ZeRO)则经常受到通信开销的阻碍。在本文中,我们提出了异步分层零并行(AsyncHZP),一种新颖的ZeRO异步变体,旨在在保持简单性和内存效率的同时实现卓越的性能。与采用过度细粒度分片导致通信效率低下的传统ZeRO不同,AsyncHZP自适应地跨不同副本组重新分片参数、梯度和优化器状态。该策略优化了设备内存利用率并显著减少了通信开销。此外,我们还设计了一种多流异步调度方法,在专用的后台线程中执行参数全收集和梯度归约-散播操作,有效地将通信与计算重叠,同时产生可忽略的内存碎片。在密集和专家混合(MoE)模型上的实证评估证实,AsyncHZP在规模上保持了稳健的稳定性。它持续优于经典的ND并行,无需复杂的策略调优即可实现最先进的性能,从而简化了高效大规模训练的路径。

英文摘要:

The training efficiency and scalability of language models on massive clusters currently remain a critical bottleneck. Mainstream approaches like ND parallelism are often cumbersome and complex, while flexible alternatives such as the Zero Redundancy Optimizer (ZeRO) are frequently hampered by communication overhead. In this paper, we propose Asynchronous Hierarchical Zero Parallelism (AsyncHZP), a novel asynchronous variant of ZeRO designed to achieve superior performance while maintaining simplicity and memory efficiency. Unlike traditional ZeRO, which employs over-fine-grained sharding that can lead to inefficient communication, AsyncHZP adaptively reshards parameters, gradients, and optimizer states across different replica groups. This strategy optimizes device memory utilization and significantly reduces communication overhead. In addition, we also design a multi-stream asynchronous scheduling method that executes parameter all-gather and gradient reduce-scatter operations in dedicated background threads, effectively overlapping communication with computation while incurring negligible memory fragmentation. Empirical evaluations on both Dense and Mixture-of-Experts (MoE) models confirm that AsyncHZP maintains robust stability at scale. It consistently outperforms classic ND parallelism, achieving state-of-the-art performance without complex strategic tuning, thereby simplifying the path to efficient large-scale training.

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

↑