paper-with-me

Papers

Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LM

2021-04-09 · Deepak Narayanan, Mohammad Shoeybi, Jared Casper, Patrick Legresley, Mostofa Patwary, Vijay Anand Korthikanti, Dmitri Vainbrand, Prethvi Kashinkunti, Julie Bernauer, Bryan Catanzaro, Amar Phanishayee, Matei Zaharia

Large language models have led to state-of-the-art accuracies across a range of tasks. However, training these models efficiently is challenging for two reasons: a) GPU memory capacity is limited, making it impossible to fit large models on even a multi-GPU server, and b) the number of compute operations required to train these models can result in unrealistically long training times. Consequently, new methods of model parallelism such as tensor and pipeline parallelism have been proposed. Unfortunately, naive usage of these methods leads to fundamental scaling issues at thousands of GPUs, e.g., due to expensive cross-node communication or devices spending significant time waiting on other devices to make progress. In this paper, we show how different types of parallelism methods (tensor, pipeline, and data parallelism) can be composed to scale to thousands of GPUs and models with trillions of parameters. We survey techniques for pipeline parallelism and propose a novel interleaved pipeline parallelism schedule that can improve throughput by 10+% with memory footprint comparable to existing approaches. We quantitatively study the trade-offs between tensor, pipeline, and data parallelism, and provide intuition as to how to configure distributed training of a large model. Our approach allows us to perform training iterations on a model with 1 trillion parameters at 502 petaFLOP/s on 3072 GPUs with achieved per-GPU throughput of 52% of theoretical peak. Our code is open sourced at https://github.com/nvidia/megatron-lm.

📄 PDF Abstract BibTeX arXiv:2104.04473

Code (3)

NVIDIA/Megatron-LM 공식 구현 pytorch
pwc-1/Paper-5/tree/main/megatron_bert mindspore
pwc-1/Paper-9/tree/main/2/megatron_bert mindspore

Tasks

GPULanguage ModelingLanguage Modelling

Similar Papers 제목 키워드 기반

Using DeepSpeed and Megatron to Train Megatron-Turing NLG 530B, A Large-Scale Generative Language Model

2022-01-28 · Shaden Smith, Mostofa Patwary, Brandon Norick, Patrick Legresley 외

Pretrained general-purpose language models can achieve state-of-the-art accuracies in various natural language processing domains by adapting to downstream tasks via zero-shot, few-shot and fine-tuning techniques. Becaus…

Few-Shot LearningLanguage ModelingLanguage ModellingSentence Completion

Holmes: Towards Distributed Training Across Clusters with Heterogeneous NIC Environment

2023-12-06 · Fei Yang, Shuang Peng, Ning Sun, Fangyu Wang 외

Large language models (LLMs) such as GPT-3, OPT, and LLaMA have demonstrated remarkable accuracy in a wide range of tasks. However, training these models can incur significant expenses, often requiring tens of thousands …

GPUScheduling

Echo: Simulating Distributed Training At Scale

2024-12-17 · Yicheng Feng, Yuetao Chen, Kaiwen Chen, Jingzong Li 외

Simulation offers unique values for both enumeration and extrapolation purposes, and is becoming increasingly important for managing the massive machine learning (ML) clusters and large-scale distributed training jobs. I…

GPU

Efficient Scaling of LLM Training with Flexible Context Parallelism

2026-02-25 · Yifan Niu, Han Xiao, Dongyi Liu, Wei Zhou 외 arxiv

Scaling long-context capabilities is crucial for Large Language Models (LLMs). However, real-world data contain a large number of sequences with heterogeneous lengths. Existing training libraries for LLMs rely on static …

An Efficient 2D Method for Training Super-Large Deep Learning Models

2021-04-12 · Qifan Xu, Shenggui Li, Chaoyu Gong, Yang You

Huge neural network models have shown unprecedented performance in real-world applications. However, due to memory constraints, model parallelism must be utilized to host large models that would otherwise not fit into th…