Skip to main content
QUICK REVIEW

[Paper Review] M6-10T: A Sharing-Delinking Paradigm for Efficient Multi-Trillion Parameter Pretraining

Junyang Lin, Yang An|arXiv (Cornell University)|Oct 8, 2021
Advanced Neural Network ApplicationsComputer Science47 references18 citations
TL;DR

This paper introduces the Pseudo-to-Real (P2R) training strategy, a two-stage method enabling efficient pretraining of a 10-trillion-parameter model on just 512 GPUs in 10 days. By first training a 'Pseudo Giant' with cross-layer parameter sharing to accelerate convergence, then delinking parameters for final training, the approach reduces memory pressure and boosts efficiency, achieving strong performance with significantly lower resource and carbon costs compared to prior extreme-scale models.

ABSTRACT

Recent expeditious developments in deep learning algorithms, distributed training, and even hardware design for large models have enabled training extreme-scale models, say GPT-3 and Switch Transformer possessing hundreds of billions or even trillions of parameters. However, under limited resources, extreme-scale model training that requires enormous amounts of computes and memory footprint suffers from frustratingly low efficiency in model convergence. In this paper, we propose a simple training strategy called "Pseudo-to-Real" for high-memory-footprint-required large models. Pseudo-to-Real is compatible with large models with architecture of sequential layers. We demonstrate a practice of pretraining unprecedented 10-trillion-parameter model, an order of magnitude larger than the state-of-the-art, on solely 512 GPUs within 10 days. Besides demonstrating the application of Pseudo-to-Real, we also provide a technique, Granular CPU offloading, to manage CPU memory for training large model and maintain high GPU utilities. Fast training of extreme-scale models on a decent amount of resources can bring much smaller carbon footprint and contribute to greener AI.

Motivation & Objective

  • To address the extreme computational and memory demands of training trillion-parameter models under limited hardware resources.
  • To improve training efficiency for large-scale models by reducing memory footprint and minimizing GPU idle time due to offloading.
  • To enable pretraining of a 10-trillion-parameter model on a modest GPU cluster (512 V100s) without requiring massive infrastructure or extended timelines.
  • To demonstrate a greener AI pathway by significantly lowering the carbon footprint of extreme-scale model training.
  • To provide a scalable, compatible, and reproducible method applicable to both dense and sparse expert models.

Proposed method

  • The Pseudo-to-Real (P2R) strategy uses a two-stage training process: first, a 'Pseudo Giant' model with shared parameters across layers is trained to reduce memory usage and accelerate convergence.
  • In the first stage, cross-layer parameter sharing is applied to a small model with a computation graph equivalent to a 10T-parameter model, enabling large-batch training and faster optimization.
  • In the second stage, parameters are delinked and reinitialized to form the full-scale 10T-parameter model, allowing for final convergence with improved performance.
  • Granular CPU offloading is employed to manage parameter storage on CPU while maintaining high GPU utilization, reducing idle time and improving training throughput.
  • The method is compatible with standard transformer architectures, including dense models (e.g., GPT, BERT) and sparse expert models (e.g., M6).
  • The approach leverages existing distributed training frameworks and is reproducible using Hugging Face Transformers and Fairseq.

Experimental results

Research questions

  • RQ1Can a 10-trillion-parameter model be efficiently pre-trained on only 512 GPUs with minimal memory and compute overhead?
  • RQ2Does parameter sharing in a pseudo-model stage significantly accelerate convergence for extreme-scale models?
  • RQ3Can the Pseudo-to-Real strategy maintain or improve final model performance compared to direct training of the full model?
  • RQ4To what extent does Granular CPU offloading improve GPU utilization and reduce training time in high-memory scenarios?
  • RQ5Can this method enable greener AI by drastically reducing the carbon footprint of large model pretraining?

Key findings

  • The M6-10T model was successfully pre-trained in approximately 10 days using only 512 V100 GPUs, achieving strong performance on the M6-Corpus.
  • The Pseudo-to-Real strategy reduced step time from ~180 seconds (real model) to ~14 seconds (pseudo stage), significantly boosting training efficiency.
  • After 15,000 training steps, the P2R model outperformed a baseline model trained from scratch for only 1,300 steps in terms of log perplexity on the time basis.
  • Despite the capacity limitation of the pseudo stage, the M6-10T P2R model achieved better sample efficiency than the 1T-parameter M6-T model, converging faster per sample.
  • The model reached a low log perplexity level, indicating strong language modeling performance, and outperformed the previous SOTA M6-T model in downstream evaluation.
  • The method enables training of 10T-parameter models with a carbon footprint significantly lower than previous approaches, advancing the goal of greener AI.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.