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

TACOS:面向分布式机器学习的拓扑感知集体算法合成器

TACOS: Topology-Aware Collective Algorithm Synthesizer for Distributed Machine Learning

Georgia Institute of Technology(佐治亚理工学院);Intel(英特尔公司);Massachusetts Institute of Technology(麻省理工学院)

William Won, Midhilesh Elavazhagan, Sudarshan Srinivasan, Swati Gupta, Tushar Krishna

AI总结:

针对现有分布式机器学习集体通信库算法固定、手动设计成本高的问题,提出TACOS自主合成器,可自动生成拓扑感知集体算法,在异构128-NPU系统合成All-Reduce算法仅需1.08秒,性能提升达4.27倍,且多项式级合成时间支持40K NPU规模。

摘要:

人工智能,尤其是大型语言模型的兴起,推动了大规模机器学习集群的快速发展。在这些集群上执行分布式模型往往受限于通信开销,因此高效利用可用网络资源至关重要。因此,用于集体通信的路由算法(即集体算法)在决定整体性能方面起着关键作用。遗憾的是,现有的分布式机器学习集体通信库受限于一组固定的基本集体算法。这一限制阻碍了通信优化,尤其是在具有异构和非对称拓扑的现代集群中。此外,为所有可能的网络拓扑和集体模式组合手动设计集体算法需要大量的工程和验证工作。为应对这些挑战,本文提出TACOS,一种能够针对特定集体模式和网络拓扑自动生成拓扑感知集体算法的自主合成器。TACOS具有高度灵活性,在异构128-NPU系统中仅需1.08秒即可合成All-Reduce算法,且性能比最先进的合成器提升高达4.27倍。此外,TACOS表现出更好的可扩展性,合成时间为多项式级,而NP-hard方法仅能扩展到数十个NPU的系统。TACOS可在仅2.52小时内为40K NPU合成算法。

英文摘要:

The surge of artificial intelligence, particularly large language models, has driven the rapid development of large-scale machine learning clusters. Executing distributed models on these clusters is often constrained by communication overhead, making efficient utilization of available network resources crucial. As a result, the routing algorithm employed for collective communications (i.e., collective algorithms) plays a pivotal role in determining overall performance. Unfortunately, existing collective communication libraries for distributed machine learning are limited by a fixed set of basic collective algorithms. This limitation hinders communication optimization, especially in modern clusters with heterogeneous and asymmetric topologies. Furthermore, manually designing collective algorithms for all possible combinations of network topologies and collective patterns requires heavy engineering and validation efforts. To address these challenges, this paper presents TACOS, an autonomous synthesizer capable of automatically generating topology-aware collective algorithms tailored to specific collective patterns and network topologies. TACOS is highly flexible, synthesizing an All-Reduce algorithm for a heterogeneous 128-NPU system in just 1.08 seconds, while achieving up to a 4.27x performance improvement over state-of-the-art synthesizers. Additionally, TACOS demonstrates better scalability with polynomial synthesis times, in contrast to NP-hard approaches which only scale to systems with tens of NPUs. TACOS can synthesize for 40K NPUs in just 2.52 hours.

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

↑