arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2302.00247cs.LGcs.AIcs.DC
收藏

TAPAS:大型神经网络张量并行策略的快速自动推导

TAPAS: Fast and Automatic Derivation of Tensor Parallel Strategies for Large Neural Networks

National University of Singapore(新加坡国立大学);Alibaba Group(阿里巴巴集团)

Ziji Shi, Le Jiang, Ang Wang, Jie Zhang, Chencan Wu, Yong Li, Xiaokui Xiao, Wei Lin, Jialin Li

AI总结:

TAPAS利用分而治之识别重复子结构,以次线性复杂度快速自动推导大型神经网络的张量并行策略,搜索速度比现有框架快160倍,性能媲美专家设计。

摘要:

张量并行是大型神经网络分布式训练中的一项关键技术。然而,由于搜索空间巨大,且随模型大小和张量维度呈指数增长,自动确定最优张量并行策略极具挑战性。这阻碍了自动并行系统在更大模型上的应用。我们观察到神经网络通常包含重复的子结构,并构建了一个名为TAPAS的自动并行框架,以消除冗余的搜索工作。TAPAS采用分而治之的方法,通过识别这些独特的子结构来高效地折叠搜索空间。因此,其运行复杂度相对于模型大小为次线性,使其成为训练大规模网络的可扩展解决方案。我们的评估表明,在广泛的模型上,TAPAS在搜索速度上比最先进的自动并行框架快高达160倍,且所推导策略的性能与专家设计的Megatron-LM库相比具有竞争力或更优。

英文摘要:

Tensor parallelism is an essential technique for distributed training of large neural networks. However, automatically determining an optimal tensor parallel strategy is challenging due to the gigantic search space, which grows exponentially with model size and tensor dimension. This prohibits the adoption of auto-parallel systems on larger models. We observe that neural networks usually contain repeated substructures, and build an automatic parallelism framework named TAPAS that eliminates redundant search efforts. TAPAS employs a divide-and-conquer approach that efficiently folds the search space by identifying those unique substructures. As a result, it runs at sub-linear complexity concerning the model size, making it a scalable solution for training large-scale networks. Our evaluations demonstrate that TAPAS outperforms the state-of-the-art automatic parallelism frameworks by up to $160\times$ in search speed on a wide range of models, and the performance of derived strategies is competitive or even better compared with the expert-engineered Megatron-LM library.

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

↑