paper-with-me

홈 › Papers

ZeRO: Memory Optimizations Toward Training Trillion Parameter Models

2019-10-04 · Samyam Rajbhandari, Jeff Rasley, Olatunji Ruwase, Yuxiong He

Large deep learning models offer significant accuracy gains, but training billions to trillions of parameters is challenging. Existing solutions such as data and model parallelisms exhibit fundamental limitations to fit these models into limited device memory, while obtaining computation, communication and development efficiency. We develop a novel solution, Zero Redundancy Optimizer (ZeRO), to optimize memory, vastly improving training speed while increasing the model size that can be efficiently trained. ZeRO eliminates memory redundancies in data- and model-parallel training while retaining low communication volume and high computational granularity, allowing us to scale the model size proportional to the number of devices with sustained high efficiency. Our analysis on memory requirements and communication volume demonstrates: ZeRO has the potential to scale beyond 1 Trillion parameters using today's hardware. We implement and evaluate ZeRO: it trains large models of over 100B parameter with super-linear speedup on 400 GPUs, achieving throughput of 15 Petaflops. This represents an 8x increase in model size and 10x increase in achievable performance over state-of-the-art. In terms of usability, ZeRO can train large models of up to 13B parameters (e.g., larger than Megatron GPT 8.3B and T5 11B) without requiring model parallelism which is harder for scientists to apply. Last but not the least, researchers have used the system breakthroughs of ZeRO to create the world's largest language model (Turing-NLG, 17B parameters) with record breaking accuracy.

📄 PDF Abstract BibTeX arXiv:1910.02054

Code (10)

NVIDIA/Megatron-LM 공식 구현 pytorch
microsoft/DeepSpeed 공식 구현 pytorch
PaddlePaddle/FleetX/blob/develop/examples/resnet/train_fleet_sharding.py paddle
ezelikman/STaR jax
facebookresearch/fairscale pytorch
facebookresearch/vissl pytorch
huchen365/ds pytorch
kingoflolz/mesh-transformer-jax jax
labmlai/annotated_deep_learning_paper_implementations pytorch
lancelee82/necklace pytorch

Tasks

Cross-Lingual Document ClassificationImage GenerationLanguage Modelling

Methods 이 논문이 사용한 방법론

Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
SPEED The monocular depth estimation (MDE) is the task of estimating depth from a single frame. This information is an essential knowledge in many computer vision tasks such as scene…
ZeRO Zero Redundancy Optimizer (ZeRO) is a sharded data parallel method for distributed training. ZeRODP removes the memory state redundancies across data-parallel processes by…
Cosine Annealing Cosine Annealing is a type of learning rate schedule that has the effect of starting with a large learning rate that is relatively rapidly decreased to a minimum value before…
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Attention 설명 없음
Discriminative Fine-Tuning Discriminative Fine-Tuning is a fine-tuning strategy that is used for ULMFiT type models. Instead of using the same learning rate…

Similar Papers 제목 키워드 기반

ZeRO-Infinity: Breaking the GPU Memory Wall for Extreme Scale Deep Learning

2021-04-16 · Samyam Rajbhandari, Olatunji Ruwase, Jeff Rasley, Shaden Smith 외

In the last three years, the largest dense deep learning models have grown over 1000x to reach hundreds of billions of parameters, while the GPU memory has only grown by 5x (16 GB to 80 GB). Therefore, the growth in mode…

CPUGPU

Ring-Zero: Scaling Zero RL to a Trillion Parameters for Emergent Reasoning

2026-07-14 · Xinyu Tang, Gangqiang Cao, Yurou Liu, Yuliang Zhan 외 arxiv

Reinforcement learning with verifiable rewards without human-annotated data, often referred to as zero RL, has emerged as a powerful paradigm for eliciting chain-of-thought reasoning. However, due to computational constr…

Reinforcement Learning

M6-10T: A Sharing-Delinking Paradigm for Efficient Multi-Trillion Parameter Pretraining

2021-10-08 · Junyang Lin, An Yang, Jinze Bai, Chang Zhou 외

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 hundred…

CPUGPU

Scalable Training of Mixture-of-Experts Models with Megatron Core

2026-03-08 · Zijie Yan, Hongxiao Bai, Xin Yao, Dennis Liu 외 arxiv

Scaling Mixture-of-Experts (MoE) training introduces systems challenges absent in dense models. Because each token activates only a subset of experts, this sparsity allows total parameters to grow much faster than per-to…

QMoE: Practical Sub-1-Bit Compression of Trillion-Parameter Models

2023-10-25 · Elias Frantar, Dan Alistarh

Mixture-of-Experts (MoE) architectures offer a general solution to the high inference costs of large language models (LLMs) via sparse routing, bringing faster and more accurate models, at the cost of massive parameter c…

GPUMixture-of-Experts