arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2211.05322cs.LGcs.DC
收藏

论模型并行的通信优化

On Optimizing the Communication of Model Parallelism

Carnegie Mellon University(卡内基梅隆大学);Tsinghua University(清华大学);University of California, Berkeley(加州大学伯克利分校);MBZUAI(穆罕默德·本·扎耶德人工智能大学);Petuum Inc.(Petuum公司)

Yonghao Zhuang, Hexu Zhao, Lianmin Zheng, Zhuohan Li, Eric P. Xing, Qirong Ho, Joseph E. Gonzalez, Ion Stoica, Hao Zhang

AI总结:

针对大模型混合并行中出现的跨网格重分片通信问题,提出基于广播的通信系统与利于重叠的流水线调度,微基准性能最高提升10倍,大模型训练吞吐量最高提升50%。

摘要:

我们研究了大规模模型并行深度学习(DL)中一种新颖且重要的通信模式,我们称之为跨网格重分片(cross-mesh resharding)。当算子内并行和算子间并行这两种模型并行范式相结合,以在大型集群上支撑大模型时,就会出现这种模式。在跨网格重分片中,分片后的张量需要从源设备网格发送到目标设备网格,张量在目标设备网格上可能以相同或不同的布局分布。我们将其形式化为多对多组播通信问题,并指出现有方法要么是次优的,要么无法泛化到由不同模型架构和并行策略产生的不同网络拓扑或张量布局。随后我们提出两项解决跨网格重分片问题的贡献:一种高效的基于广播的通信系统,以及一种“利于重叠”的流水线调度方案。在微基准测试中,我们的整体系统在各种张量和网格布局下的性能比现有系统最高提升10倍。在GPT-3和U-Transformer这两个大模型的端到端训练中,我们分别将吞吐量提升了10%和50%。

英文摘要:

We study a novel and important communication pattern in large-scale model-parallel deep learning (DL), which we call cross-mesh resharding. This pattern emerges when the two paradigms of model parallelism - intra-operator and inter-operator parallelism - are combined to support large models on large clusters. In cross-mesh resharding, a sharded tensor needs to be sent from a source device mesh to a destination device mesh, on which the tensor may be distributed with the same or different layouts. We formalize this as a many-to-many multicast communication problem, and show that existing approaches either are sub-optimal or do not generalize to different network topologies or tensor layouts, which result from different model architectures and parallelism strategies. We then propose two contributions to address cross-mesh resharding: an efficient broadcast-based communication system, and an "overlapping-friendly" pipeline schedule. On microbenchmarks, our overall system outperforms existing ones by up to 10x across various tensor and mesh layouts. On end-to-end training of two large models, GPT-3 and U-Transformer, we improve throughput by 10% and 50%, respectively.

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

↑