Skip to content

ZeRO: Memory Optimizations Toward Training Trillion Parameter Models

Authors: Samyam Rajbhandari, Jeff Rasley, Olatunji Ruwase, Yuxiong He (2020)

arXiv: 1910.02054

Domains

Architecture

TLDR (English)

Stops replicating optimizer state across every data-parallel copy: ZeRO-1/2/3 shard optimizer states, gradients, and parameters respectively across the DP group, trading communication for memory so per-GPU memory drops roughly linearly with GPU count. The full sharding idea of ZeRO-3 became PyTorch FSDP, making models too big for one machine trainable.

TLDR(中文)

不再让每个数据并行副本都完整持有优化器状态:ZeRO-1/2/3 分别把优化器状态、梯度、参数切分到 DP 组内各卡,用通信换显存,使单卡显存随卡数近似线性下降。ZeRO-3 的完全分片思想就是后来 PyTorch FSDP 的源头,让单机装不下的模型训练成为可能。

Appears in These Articles

Co-cited Papers

These papers appear in the same articles as this one

Related Papers

Other papers in the same domain