RTP: Rethinking Tensor Parallelism with Memory Deduplication

Cheng Luo, Tianle Zhong, Geoffrey Fox
11/2/2023
cs.DCcs.AIcs.NI

Official code: wdlctc/rtp (11 stars, Apache-2.0, last commit 2023-12-15).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

wdlctc/rtpOfficial100%
Apache-2.0

RTP: Rethinking Tensor Parallelism with Memory Deduplication

110PythonOct 29, 20232 years agoApache-2.0

Similar Papers

Cite this paper

@article{luo2023rtp,
  title  = {RTP: Rethinking Tensor Parallelism with Memory Deduplication},
  author = {Cheng Luo and Tianle Zhong and Geoffrey Fox},
  year   = {2023},
  eprint = {2311.01635},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.01635v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.01635.svg)](https://codeofpaper.com/paper/2311.01635)

Discussion