PCCL:进程组感知的可扩展通用集合算法合成器
PCCL: Process Group-Aware Scalable and Generic Collective Algorithm Synthesizer
AI总结:
提出PCCL框架,通过进程组感知和拓扑感知,自动生成针对任意集合模式(如All-to-All)的近似最优算法,显著提升分布式训练中集合通信的效率。
摘要:
由于大规模生成模型的庞大规模,分布式机器学习变得日益重要。模型参数和数据分布在众多计算设备上,需要频繁的集合通信来同步激活值和参数更新。这种集合通信已成为主要瓶颈。虽然集合算法的性能取决于物理网络拓扑,但集合通信库中的基线集合算法在很大程度上是拓扑无关的。集合算法合成器通过自动生成拓扑感知的集合算法来解决这一低效问题。然而,先前的工作大多忽略了集合通信通常只发生在设备子集(称为进程组)中。此外,大多数现有的合成器在可生成的目标集合模式范围上受到限制。我们提出了PCCL,一个可扩展且通用的框架,用于合成拓扑感知的集合算法。PCCL具有进程组感知能力,即使只有部分设备参与集合操作,也能生成接近最优的集合算法。PCCL可以合成任意集合模式,包括在11.68分钟内完成512-NPU的全对全合成。
英文摘要:
Distributed machine learning has become increasingly important due to the massive scale of large-scale generative models. Both model parameters and data are distributed across many compute devices, which requires frequent collective communications to synchronize activations and parameter updates. Such collective communications have become a major bottleneck. While the performance of the collective algorithm depends on the physical network topology, the baseline collective algorithms in collective communication libraries are largely topology-agnostic. Collective algorithm synthesizers address this inefficiency by automatically generating topology-aware collective algorithms. However, prior works have largely overlooked that collective communication typically occurs only among a subset of devices, known as process groups. Additionally, most existing synthesizers are limited in the range of target collective patterns they can generate. We propose PCCL, a scalable and generic framework for synthesizing topology-aware collective algorithms. PCCL is process group-aware and capable of generating near-optimal collective algorithms even when only a subset of devices participates in collective operations. PCCL synthesizes arbitrary collective patterns, including 512-NPU All-to-All synthesis in 11.68 minutes.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。