paper-with-me

홈 › Papers

Layered gradient accumulation and modular pipeline parallelism: fast and efficient training of large language models

2021-06-04 · Joel Lamy-Poirier

The advent of the transformer has sparked a quick growth in the size of language models, far outpacing hardware improvements. (Dense) transformers are expected to reach the trillion-parameter scale in the near future, for which training requires thousands or even tens of thousands of GPUs. We investigate the challenges of training at this scale and beyond on commercially available hardware. In particular, we analyse the shortest possible training time for different configurations of distributed training, leveraging empirical scaling laws for language models to estimate the optimal (critical) batch size. Contrary to popular belief, we find no evidence for a memory wall, and instead argue that the real limitation -- other than the cost -- lies in the training duration. In addition to this analysis, we introduce two new methods, \textit{layered gradient accumulation} and \textit{modular pipeline parallelism}, which together cut the shortest training time by half. The methods also reduce data movement, lowering the network requirement to a point where a fast InfiniBand connection is not necessary. This increased network efficiency also improve on the methods introduced with the ZeRO optimizer, reducing the memory usage to a tiny fraction of the available GPU memory.

📄 PDF Abstract BibTeX arXiv:2106.02679

Code (0)

등록된 구현이 없습니다.

Tasks

GPU

Similar Papers 제목 키워드 기반

Scaling Deep Learning Training with MPMD Pipeline Parallelism

2024-12-18 · Anxhelo Xhebraj, Sean Lee, Hanfeng Chen, Vinod Grover

We present JaxPP, a system for efficiently scaling the training of large deep learning models with flexible pipeline parallelism. We introduce a seamless programming model that allows implementing user-defined pipeline s…

Deep Learning

libHOG: Energy-Efficient Histogram of Oriented Gradient Computation

2015-09-15 · ITSC 2015 9 · Forrest Iandola, Matthew Moskewicz, Kurt Keutzer

Histogram of Oriented Gradients (HOG) features are the underlying representation in automotive computer vision applications such as collision avoidance and lane keeping. In these applications, we have observed that HO…

Collision AvoidanceCPUObject Detection

torchgpipe: On-the-fly Pipeline Parallelism for Training Giant Models

2020-04-21 · Chiheon Kim, Heungsub Lee, Myungryong Jeong, Woonhyuk Baek 외

We design and implement a ready-to-use library in PyTorch for performing micro-batch pipeline parallelism with checkpointing proposed by GPipe (Huang et al., 2019). In particular, we develop a set of design components to…

SlimPipe: Memory-Thrifty and Efficient Pipeline Parallelism for Long-Context LLM Training

2025-04-20 · Zhouyang Li, Yuliang Liu, Wei zhang, TaiLing Yuan 외

Pipeline Parallelism (PP) serves as a crucial technique for training Large Language Models (LLMs), owing to its capability to alleviate memory pressure from model states with relatively low communication overhead. Howeve…

Breaking the Bubble: Asynchronous Pipeline Parallel Training with Bounded Weight Inconsistency

2026-06-05 · Itay Elam, Eliron Rahimi, Avi Mendelson, Chaim Baskin arxiv

Pipeline parallelism is essential for training large neural networks, but existing schedules trade off throughput, memory, and optimization consistency. Synchronous pipelines preserve forward/backward weight consistency …