ZeRO
ZeRO: Memory Optimizations Toward Training Trillion Parameter Models
Samyam Rajbhandari et al. · SC 2020
Shard optimizer states, gradients, and parameters to progressively remove redundancy across data-parallel replicas.
What you will implement
Single-process ZeRO-2 semantics with equal-sized shards and a mixed-precision Adam-state byte model; activations and communication buffers are excluded.
- 156. ZeRO-2 Sharded Adam and State Memory
Average and scatter gradients to owners, then update local Adam states and gather parameters.
Single-process ZeRO-2 semantics with equal-sized shards and a mixed-precision Adam-state byte model; activations and communication buffers are excluded.