Using DeepSpeed and Megatron to Train Megatron-Turing NLG 530B, A Large-Scale Generative Language Model
arXiv:2201.11990
Abstract
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. Because of their success, the size of these models has increased rapidly, requiring high-performance hardware, software, and algorithmic techniques to enable training such large models. As the result of a joint effort between Microsoft and NVIDIA, we present details on the training of the largest monolithic transformer based language model, Megatron-Turing NLG 530B (MT-NLG), with 530 billion parameters. In this paper, we first focus on the infrastructure as well as the 3D parallelism methodology used to train this model using DeepSpeed and Megatron. Next, we detail the training process, the design of our training corpus, and our data curation techniques, which we believe is a key ingredient to the success of the model. Finally, we discuss various evaluation results, as well as other interesting observations and new properties exhibited by MT-NLG. We demonstrate that MT-NLG achieves superior zero-, one-, and few-shot learning accuracies on several NLP benchmarks and establishes new state-of-the-art results. We believe that our contributions will help further the development of large-scale training infrastructures, large-scale language models, and natural language generations.
arXiv commentShaden Smith and Mostofa Patwary contributed equally
Cited by in corpus (33)
- Large AI Models in Health Informatics: Applications, Challenges, and the Future
- Controllable Protein Design with Language Models
- Uncovering ChatGPT's Capabilities in Recommender Systems
- At the Dawn of Generative AI Era: A Tutorial-cum-Survey on New Frontiers in 6G Wireless Intelligence
- Predicting the Future of AI with AI: High-quality link prediction in an exponentially growing knowledge network
- Astronomia ex machina: a history, primer, and outlook on neural networks in astronomy
- Merak: An Efficient Distributed DNN Training Framework with Automated 3D Parallelism for Giant Foundation Models
- The BigScience ROOTS Corpus: A 1.6TB Composite Multilingual Dataset
- Alexa Teacher Model: Pretraining and Distilling Multi-Billion-Parameter Encoders for Natural Language Understanding Systems
- Model-Parallel Fourier Neural Operators as Learned Surrogates for Large-Scale Parametric PDEs
- Towards Sustainable Artificial Intelligence: An Overview of Environmental Protection Uses and Issues
- Enhanced Automated Code Vulnerability Repair using Large Language Models
- A Hybrid Tensor-Expert-Data Parallelism Approach to Optimize Mixture-of-Experts Training
- Quantum utility -- definition and assessment of a practical quantum advantage
- Several categories of Large Language Models (LLMs): A Short Survey
- Hanayo: Harnessing Wave-like Pipeline Parallelism for Enhanced Large Model Training Efficiency
- Quantum readout error mitigation via deep learning
- Advances in machine-learning-based sampling motivated by lattice quantum chromodynamics
- A Mixed-Methods Approach to Understanding User Trust after Voice Assistant Failures
- Spiking Neural Networks for Detecting Satellite-Based Internet-of-Things Signals
- A Framework for Neurosymbolic Robot Action Planning using Large Language Models
- A Holistic Assessment of the Carbon Footprint of Noor, a Very Large Arabic Language Model
- Reducing Energy Bloat in Large Model Training
- ReCycle: Resilient Training of Large DNNs using Pipeline Adaptation
- A Survey of Text Representation Methods and Their Genealogy
- Improving Automatic Parallel Training via Balanced Memory Workload Optimization
- Modularity in Deep Learning: A Survey
- Deep Optimizer States: Towards Scalable Training of Transformer Models Using Interleaved Offloading
- Scalable and Accurate Self-supervised Multimodal Representation Learning without Aligned Video and Text Data
- ExClaim: Explainable Neural Claim Verification Using Rationalization
- SEVEN: Pruning Transformer Model by Reserving Sentinels
- EPIC TTS Models: Empirical Pruning Investigations Characterizing Text-To-Speech Models
- An Overview on Generative AI at Scale with Edge-Cloud Computing