arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.01635cs.DCcs.AIcs.NI
收藏

RTP:通过内存去重复重新思考张量并行

RTP: Rethinking Tensor Parallelism with Memory Deduplication

University of Virginia(弗吉尼亚大学)

Cheng Luo, Tianle Zhong, Geoffrey Fox

AI总结:

本文提出 Rotated Tensor Parallelism(RTP),通过内存去重复、定制通信原语、享元初始化及计算通信重叠,实现近最优分布式训练内存占用并支持更大模型。

摘要:

在神经网络模型不断演进的背景下,一个突出挑战十分明显:训练庞大模型所带来的巨大内存开销。为应对这一挑战,本研究深入探讨了 Rotated Tensor Parallelism(RTP,旋转张量并行)。RTP 是一种创新方法,其策略性地聚焦于分布式训练环境中的内存去重复。它具备定制通信原语和 Flyweight Pattern(享元模式)初始化等独特特性。此外,RTP 确保分区计算与分区权重通信之间实现无缝重叠,从而优化训练过程。我们的实证评估突显了 RTP 的效率,结果表明其在分布式系统训练期间的内存消耗非常接近最优状态——将单机的内存开销公平地分配到多台机器之间。实验结果表明,RTP 能够达到与 Distributed Data Parallel(分布式数据并行)相当的性能,同时支持显著更大的模型,并在内存方面具有近线性可扩展性。RTP 的代码可在 https://github.com/wdlctc/rtp 获取。

英文摘要:

In the evolving landscape of neural network models, one prominent challenge stand out: the significant memory overheads associated with training expansive models. Addressing this challenge, this study delves deep into the Rotated Tensor Parallelism (RTP). RTP is an innovative approach that strategically focuses on memory deduplication in distributed training environments. It boasts of unique features like a customized communication primitive and the Flyweight Pattern initialization. Furthermore, RTP ensures a seamless overlap between partition computation and partition weight communication, optimizing the training process. Our empirical evaluations underscore RTP's efficiency, revealing that its memory consumption during distributed system training is remarkably close to the optimal - distributing the memory overhead of a single machine equitably among multiple machines. The experimental results demonstrate that RTP is capable of achieving comparable performance to Distributed Data Parallel while providing support for significantly larger models with near-linear scalability in terms of memory. Code of RTP is available at https://github.com/wdlctc/rtp.

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

↑