the.ai

Systems / Distributed

verified

ZeRO

Data parallelism keeps a complete copy of the optimizer state on every worker, which is the same numbers stored N times. ZeRO shards them instead: each worker holds a slice, and the pieces are gathered when needed. The memory per worker falls almost linearly with the number of workers.

Viz primitive · budget-splitworkers = 8

workers holds 50% of the budget; rest holds the remaining 50%.

Share of per-worker memory removed by sharding against what stays replicated. Drag the worker count to watch the shared portion shrink toward nothing.

8

Reviewed by opendroid · 2026-08-04

  • arXiv:1910.02054 — ZeRO: Memory Optimizations Toward Training Trillion Parameter Models