Papers · 2019 · Reading: 24 min, plus 2 in closed details.
Paper · SC20 · arXiv 1910.02054

ZeRO: Memory Optimizations Toward Training Trillion Parameter Models (ZeRO)

Samyam Rajbhandari, Jeff Rasley, Olatunji Ruwase, Yuxiong He
Microsoft · October 2019 (arXiv v1); v3 May 2020; published at SC20

In one line: ZeRO shards optimizer states, gradients and parameters across data-parallel ranks; by the paper's analysis mixed-precision Adam's 16 bytes/param falls to 16 Psi/N_d at stage 3 for at most 1.5x DP communication, but only stages 1 and 2 (plus ZeRO-R) were built and run, training models up to 170B parameters with Megatron model parallelism; it shipped in DeepSpeed and became the model for FSDP.

16 bytes per parameter
model states of mixed-precision Adam
2 fp16 weights + 2 fp16 gradients + 12 fp32 optimizer states · §3.1
120 → 1.9 GB per GPU
7.5B model, 64 GPUs, all three stages
for 1.5× the communication of plain data parallelism · Table 1
170B on 400 V100s
ZeRO-100B (stages 1 and 2 plus ZeRO-R)
15 PFLOPS sustained, up to 10× Megatron's throughput · §10.2

How far to trust it: Believe the memory accounting and the communication argument: they are exact arithmetic that reproduces table for table and became the industry standard. Treat the speed-ups as single, unrepeated runs against a 2019 baseline, and the trillion-parameter claim as analysis: stage 3 was not built in this paper. The evidence, judged.

The idea in one sentence: data parallelism keeps a full copy of the weights, gradients and optimiser states on every GPU; ZeRO gives each of the Nd GPUs only its 1/Nd share and moves each piece to where it is needed just in time, so memory per GPU falls with the GPU count while communication stays at data parallelism's 2Ψ per step (3Ψ, 1.5 times, once the weights are partitioned too).

You need: data parallelism, all-reduce and why it is a reduce-scatter plus an all-gather (Distributed training, sections 2 and 3). New terms: model states (parameters, gradients, optimiser states) against residual states (activations, buffers, fragmentation); Ψ (the parameter count); Nd (the data-parallel degree); Pos, Pos+g, Pos+g+p (the paper's names for ZeRO stages 1, 2 and 3).

Same step, same 4 GPUs: data parallelism stores everything four times; ZeRO-3 stores it once

The 7.5B model of Figure 1 on Nd = 4 GPUs, model states only, to scale: 16 bytes per parameter, 2 for fp16 parameters, 2 for fp16 gradients, 12 for the fp32 optimiser states (§3.1). Filled: what the GPU keeps; outlined: what it holds only briefly or not at all. Volumes per GPU per step, in elements, as §7 counts them. The two intermediate stages, which partition only the optimiser states (ZeRO-1) or those plus the gradients (ZeRO-2), are in Figure 1 below.

Problem

§1 Extended Introduction, §2 Related Work

In 2019 the two ways to scale training both hit walls. Data parallelism (DP) gives every GPU a different slice of the mini-batch and averages the gradients, but it replicates the full model state on every GPU, so it does not reduce memory per device at all: plain DP (PyTorch's DistributedDataParallel, DDP) runs out of memory beyond about 1.4B parameters on 32 GB V100s, however many GPUs you add (§1). Model parallelism (MP), the Megatron-LM style of tensor parallelism that trained the 8.3B Megatron and (as Mesh-TensorFlow) the 11B T5, partitions memory by slicing every layer across GPUs; that makes the computation fine-grained and needs heavy communication inside each layer, so it works within one node but collapses beyond it. The authors ran a 40B model with Megatron-LM across two DGX-2 nodes and measured about 5 TFLOPS per V100, under 5% of peak (§1; 5 / 125 = 4% of the V100's 125 TFLOPS fp16 tensor peak from the NVIDIA V100 whitepaper, the paper's reference 24). The cause is the link: crossing nodes drops the bandwidth from 300 GB/s per link (NVSwitch) to 12.5 GB/s (InfiniBand EDR), 24 times less (§10.2).

The alternatives each pay somewhere else (§2): pipeline parallelism needs a large batch to hide its bubble (GPipe; the bubble is drawn on Distributed training, section 6) or keeps stale weight copies (PipeDream), and makes tied weights and batch normalisation awkward (§2.1); offloading model states to CPU can spend up to 50% of training time on transfers (§2.2.2); memory-efficient optimisers such as Adafactor may change convergence (§2.2.3), whereas ZeRO changes neither the optimiser nor convergence (§2.3).

The diagnosis: none of these touches the real culprit. Most of the memory is not the fp16 weights; it is the optimiser states and gradients, kept as identical copies on every data-parallel GPU, and kept all the time although each piece is needed only briefly.

Where did all the memory go?

§3 Where Did All the Memory Go?

The paper first does the accounting. A 1.5B-parameter GPT-2 needs 3 GB for its weights in 16-bit precision, yet it cannot be trained on a single 32 GB GPU in TensorFlow or PyTorch (§3). Training memory has two parts: model states (optimiser states, gradients and parameters) and residual states (activations, temporary buffers and fragmented memory).

Residual states (§3.2) add three more costs:

  • Activations. GPT-2 1.5B at sequence length 1K and batch 32 needs about 60 GB of activations; the paper's footnote 3 gives the rule, about 12 × hidden × batch × sequence × layers values, and at 2 bytes each that is 12 × 1600 × 32 × 1024 × 48 × 2 = GB, which reproduces the 60 GB. Activation checkpointing (Chen et al., reference 7; the mechanism is Distributed training's, section 10) keeps only some activations and recomputes the rest, which the paper puts at roughly the square root of the total for about 33% extra compute, bringing GPT-2 to about 8 GB. Even with checkpointing a 100B GPT-like model needs around 60 GB at batch 32.
  • Temporary buffers. Gradient all-reduce and gradient-norm computation fuse all gradients into one flat buffer for bandwidth, often in fp32: 6 GB for a 1.5B model (1.5 × 109 × 4 bytes).
  • Fragmentation. A request fails without enough contiguous memory even if the total free is larger; the authors saw out-of-memory errors with over 30% of memory still free in extreme cases.

Two of these figures do not reproduce exactly: the 8 GB after checkpointing, and the paper's two 100B checkpoint sizes, which disagree with each other by a factor of 2. Both are worked through in Every number in the text, checked.

GPT-2's 1.5B parameters take 3 GB in fp16. With mixed-precision Adam, how much memory do its model states (weights, gradients, optimiser states) need?

The idea: ZeRO-DP, data parallelism without the redundancy

§4.1, §5, Figure 1

Three observations drive the design (§4.1): (a) DP scales better than MP because it keeps large, efficient matrix multiplies and communicates less; (b) DP wastes memory because every process stores identical model states, while MP partitions them; (c) both keep every state for the whole step, although a layer's parameters, for example, are only needed during that layer's forward and backward. So ZeRO-DP keeps DP's execution model (each GPU runs whole layers on its own data) but partitions the model states across the Nd data-parallel processes instead of replicating them, and uses a dynamic communication schedule to bring each piece to where it is needed, when it is needed (§4.1). It comes in three cumulative stages:

StagePartitionsPer-GPU model states (bytes)Limit as Nd growsCommunication per step
Baseline DPnothing(2 + 2 + K)Ψ = 16Ψ16Ψ2Ψ (all-reduce)
ZeRO-1, Posoptimiser states2Ψ + 2Ψ + KΨ/Nd4Ψ (4× less)2Ψ, the same
ZeRO-2, Pos+g+ gradients2Ψ + (2 + K)Ψ/Nd2Ψ (8× less)2Ψ, the same
ZeRO-3, Pos+g+p+ parameters(2 + 2 + K)Ψ/Nd = 16Ψ/Ndfalls linearly with Nd3Ψ, 1.5×

From §1, §5.1 to §5.4 and §7; communication in elements per process. The names "stage 1, 2, 3" are DeepSpeed's for Pos, Pos+g, Pos+g+p (DeepSpeed tutorial).

  • Pos (§5.1): split the optimiser states into Nd equal partitions; process i stores and updates only partition i, so it updates only 1/Nd of the fp32 master parameters, and an all-gather at the end of the step gives every process the full updated parameters.
  • Pg (§5.2): a process only needs the reduced gradients for the parameters it updates, so each layer's gradients, as soon as backward produces them, are reduced only onto their owner and then freed: a reduce-scatter. It is bucketed, like NVIDIA AMP's bucketed all-reduce, to overlap communication with the backward pass.
  • Pp (§5.3): each process stores only its own parameters and receives the others by broadcast from their owners just before forward and backward need them, discarding them after use. With enough devices, a model of any size fits.

Figure 1 of the paper, redrawn and live, now in 3D (right): each row is one stage, each tower one GPU's model states stacked to scale, coloured as in the paper: parametersgradientsoptimiser states. The purple glass is a 32 GB V100, the paper's GPU; the cubes at the end of each row count what one GPU sends per step, in units of Ψ, blue for an all-gather of parameters and orange for a reduce-scatter of gradients (§7). The step-through in the next section moves these pieces through one training step.

  1. Baseline data parallelism: everything on every GPU. Each of the Nd = 64 GPUs (four drawn) holds the 7.5B model's full 16Ψ bytes: 2Ψ of fp16 parameters at the bottom, 2Ψ of fp16 gradients, 12Ψ of fp32 optimiser states on top. That is 120 GB per GPU, 3.8 times the V100's 32 GB. The step's one all-reduce sends 2Ψ per GPU: a reduce-scatter and an all-gather, the two cubes.
  2. Pos: split the optimiser states. The top slab shrinks to its 1/Nd share and the rest of it is gone: 4Ψ + 12Ψ/Nd = 31.4 GB per GPU, just under the 32 GB, with almost nothing left for activations. Still 2Ψ sent: the gradients are reduce-scattered to their owners and the updated parameters all-gathered, the two halves of DP's all-reduce with an update in between.
  3. Pos+g: split the gradients too. The middle slab shrinks the same way: 2Ψ + 14Ψ/Nd = 16.6 GB. The traffic is unchanged at 2Ψ; each bucket of gradients is reduce-scattered as backward produces it and the parts a GPU does not own are freed.
  4. Pos+g+p: split the parameters too. Now every slab is a 1/Nd share: 16Ψ/Nd = 1.88 GB (Figure 1 prints 1.9), so the camera moves in close. The price is one more Ψ: the parameters are all-gathered before forward and again before backward, plus the gradients' reduce-scatter, 3Ψ, 1.5 times DP.
  5. All four rows: Figure 1. Memory per GPU falls 120, 31.4, 16.6, 1.88 GB while the cubes go 2, 2, 2, 3. As Nd grows, the first two stages level off at 4Ψ and 2Ψ (4 and 8 times less than DP) and only the last keeps falling; slide Nd to see it.

The same Figure 1 numbers as flat bars, and the same step played under each stage on a stack of layers, are on the topic page that owns sharded data parallelism: Distributed training, Figs. 5 and 6.

Communication: why partitioning is nearly free

§7 Communication Analysis of ZeRO-DP

Partitioning would be pointless if it multiplied communication. The argument rests on how all-reduce is implemented (§7.1): the standard ring all-reduce (Interconnects and scaling owns its cost model) is a reduce-scatter (each process ends up with the sum of one slice) followed by an all-gather (each process collects every summed slice), and each moves Ψ elements per process, so plain DP already moves 2Ψ per step. ZeRO splits that same all-reduce in two and puts work in between:

  • Pos+g (§7.2.1): reduce-scatter the gradients (Ψ), each process updates its slice, all-gather the updated parameters (Ψ): 2Ψ, exactly DP's volume. Pos alone is the same.
  • Pos+g+p (§7.2.2): the parameter all-gather is spread over the forward pass, each owner broadcasting its partition just before it is used, a total of Ψ; it has to happen again, in reverse order, for the backward pass, another Ψ; plus the gradient reduce-scatter, Ψ: 3Ψ, 1.5× DP, for memory that falls as 1/Nd.
ZeRO-3 keeps only 1/Nd of the parameters on each GPU, so every layer's weights must be fetched before its forward and again before its backward. Against plain DP's all-reduce, how much does a GPU send and receive per step?

Schedule as the paper describes it (§5, §7): partitions are contiguous groups of layers, owner i holding layers 8i/Nd + 1 to 8(i + 1)/Nd; gradients are reduced in buckets of two layers. Volumes are in elements per GPU and leave out the ring's (N − 1)/N factor, as the paper does. Memory counts model states only, for GPU 0, in bytes per parameter (multiply by Ψ); a short-lived gathered bucket counts while it is resident. Real implementations add prefetching and overlap that this one-bucket-at-a-time view leaves out.

One training step, two methods side by side. One training step of an 8-layer model on Nd data-parallel GPUs, run twice on the same input, once under each method of the comparison, drawn to the same scale (right). Each GPU is one row; its strip is its memory for model states, one cell per layer for the fp16 parameters and gradients and for the fp32 optimiser states, widths in proportion to bytes (2 : 2 : 12). A filled cell is resident; an outlined one is not. Coloured bands between rows are the collectives of §7, labelled with the volume each GPU moves; the counters under it keep score against the paper's 2Ψ and 3Ψ.

Watch: in DDP against ZeRO-3, the parameters: under ZeRO-3 each layer's weights appear just before forward uses them and vanish after, then return for backward. Then switch to ZeRO-1 against ZeRO-2 and watch the gradient cells: ZeRO-2 frees every gradient it does not own as soon as it is reduced. The same step under every stage on a 32-layer stack, in 3D, is Distributed training's Fig. 6; this one follows the paper's own schedule bucket by bucket.

  1. Start of the step. DDP holds everything on every GPU: all parameters, gradients and optimiser states, 16 bytes per parameter. ZeRO-3 keeps only its own 1/Nd of everything, parameters included: 16/Nd bytes per parameter.
  2. Forward, layers 1 and 2. DDP computes them with its own full copy; no communication. ZeRO-3 has the owner broadcast these weights (an all-gather, ¼Ψ); every GPU computes the two layers and discards the weights it does not own.
  3. Forward, layers 3 and 4. DDP does the same, with no communication. ZeRO-3 gathers, uses and discards the next two layers (¼Ψ).
  4. Forward, layers 5 and 6. DDP does the same, with no communication. ZeRO-3 gathers, uses and discards the next two layers (¼Ψ).
  5. Forward, layers 7 and 8. DDP does the same, with no communication. ZeRO-3 gathers, uses and discards the next two layers (¼Ψ).
  6. Backward, layers 8 and 7. DDP computes their gradients, then all-reduces them across the GPUs as one bucket: 2 × ¼Ψ per GPU. ZeRO-3 gathers these layers again (¼Ψ), computes their gradients, reduce-scatters them to the owner (¼Ψ) and frees both.
  7. Backward, layers 6 and 5. DDP computes and all-reduces the next bucket (½Ψ). ZeRO-3 gathers again, reduce-scatters, frees (½Ψ).
  8. Backward, layers 4 and 3. DDP computes and all-reduces the next bucket (½Ψ). ZeRO-3 gathers again, reduce-scatters, frees (½Ψ).
  9. Backward, layers 2 and 1. DDP computes and all-reduces the next bucket (½Ψ). ZeRO-3 gathers again, reduce-scatters, frees (½Ψ).
  10. Optimiser step. DDP runs the same full Adam update on every GPU, redundantly. ZeRO-3 updates each GPU's own slice, which is all it stores.
  11. End of the step. DDP has nothing left to do: 2Ψ moved in all. ZeRO-3 has nothing to gather: the next forward fetches weights on demand. 3Ψ in all, 1.5 times DDP's.
The same counters at the paper's scale (7.5B on 64 GPUs, or your choice)

At the end of the step, for the paper's Figure 1 example (Ψ = 7.5B, Nd = 64) and for the model and cluster you choose:

ZeRO-R: the residual states

§4.2, §6, §8

Once model states are partitioned, activations, buffers and fragmentation become the next bottleneck (§1). ZeRO-R has three parts:

  • Pa, partitioned activation checkpointing (§6.1). Model parallelism replicates activations: if a linear layer is split across two GPUs, each needs the whole input (§4.2.1). ZeRO-R partitions each checkpointed activation across the model-parallel GPUs after the forward pass of its layer and all-gathers it back when backward needs it, so activation memory falls by the MP degree. Large models have very high arithmetic intensity (computation per byte of checkpoint, at least 10K for GPT-2-sized models and growing with hidden size), which hides the data movement even over slow links. Pa+cpu goes further and offloads the partitioned checkpoints to CPU memory, for near-zero activation memory on GPU at 2× the data movement of Pa (§8).
  • CB, constant-size buffers (§6.2): libraries such as NVIDIA Apex and Megatron fuse all parameters into one buffer for efficient collectives, which costs memory in proportion to the model (a 3B model's 32-bit fused buffer is 12 GB); ZeRO uses a performance-efficient buffer of constant size once the model is large.
  • MD, memory defragmentation (§6.3): checkpoints are long-lived while recomputed activations are short-lived, and in backward parameter gradients are long-lived while activation gradients are short-lived; interleaving them fragments memory, causing out-of-memory errors and slow allocation. ZeRO pre-allocates contiguous buffers for checkpoints and gradients and copies them in as they are produced.
What Pa costs (§8), and the 100B checkpoint sizes

What Pa costs (§8). A Megatron-LM block with checkpointing does six all-reduces of sequence × hidden per sample (two in forward, two in the recomputation, two in backward), 12 × sequence × hidden of traffic since an all-reduce moves twice its message; Pa adds one all-gather of the block's input, sequence × hidden: 1/12 = %, "less than 10%". In return activation memory falls by the MP degree (up to 16 in a DGX-2), the batch can grow as much, and DP communication per sample falls by an order of magnitude. Pa+cpu pays off only when the DP traffic it saves exceeds its CPU transfers, generally at small batches; ZeRO decides per model.

§6.1 puts the 100B model's checkpoints at about 33 GB per GPU, cut by Pa at MP 16 to about 2 GB; at fp16 the arithmetic gives twice that (checked here).

ZeRO with model parallelism, and the step to a trillion

§1 "ZeRO and MP", §9

With ZeRO, MP is no longer needed just to fit a model: ZeRO-DP reduces per-device memory at least as well, and data parallelism needs no model rewrite, while Megatron-LM supports a limited set of operators and models (§1). MP still helps in two cases: with ZeRO-R it shrinks activation memory for very large models, and it keeps the total batch acceptable when DP alone would make it so large that convergence slows (beyond the critical batch size of McCandlish et al., reference 8). Combined, the maximum memory reduction per device is Nd × Nm.

The trillion-parameter arithmetic (§1, §9): 1T parameters × 16 bytes is about 16 TB of model states, and 16 TB / 1024 GPUs = GB per GPU (the paper rounds to 16 GB), within a 32 GB V100; so ZeRO-3 fits 1T on 1024 GPUs with DP alone, or with 16-way MP inside each DGX-2 node and 64-way ZeRO-DP across nodes (Table 1, Table 2; both rebuilt in the tables tab). Fitting is not training, though: BERT-Large can be trained in 67 minutes on a 1024-GPU DGX-2H cluster (NVIDIA, reference 26); 1T parameters is about 3000× BERT-Large's 330M (1T / 330M = ), so even with the same data and sequence length it would take 67 min × 3000 = days, "140 days", and in practice over a year. An exaflop system would be needed (§9). That is why the implementation targets about 100B.

Results

§10 Implementation and Evaluation

What was built. The paper implements and measures ZeRO-100B: Pos+g (stages 1 and 2) plus all of ZeRO-R, in PyTorch, as a wrapper around any torch.nn.Module, with no model changes, combinable with Megatron-LM's MP (§10.1). Stage 3 is analysed but not implemented here; the paper promised it for later (§1), and DeepSpeed released it as ZeRO-3 Offload on 7 March 2021 (DeepSpeed blog). Hardware: 400 V100 GPUs (25 DGX-2 nodes) with 800 Gbps between nodes. Baselines: PyTorch DDP without MP; Megatron-LM (the open-source version of September 2019) with MP. Models: GPT-2-like transformers, varying hidden size and layers (Table 4, appendix Tables 5 to 10).

  • Model size: 170B parameters run efficiently on 400 GPUs, against Megatron-LM alone, which "cannot scale efficiently beyond 40B" (§1, Figure 2); the paper calls this "over 8×". 170 / 40 is ×; the 8× matches §9's other statement that Megatron's largest efficient model is 16 to 20B in one DGX-2 node (170 / 20 = ×).
  • Speed: 15 PFLOPS sustained on average for 8B to 100B models, over 38 TFLOPS per GPU, over 30% of peak (400 × 38 = PFLOPS; 38 / 125 = %), and up to 10× Megatron's throughput at the same size, because Megatron's MP crosses nodes beyond 40B and drops below 5 TFLOPS per GPU (§10.2). Beyond 100B ZeRO slows slightly: not enough memory left for larger batches.
  • Super-linear scaling from 64 to 400 GPUs on a 60B model: doubling the GPUs more than doubles throughput (§10.3, Figure 3).
  • Usability: up to 13B parameters with no MP or PP at all, on 128 GPUs, at over 40 TFLOPS per GPU on average; without ZeRO the largest DP-only model is 1.4B at under 20 TFLOPS per GPU (§10.4, Figure 4). 13B is more than T5's 11B, the largest model in the literature at the time, and needs no NVLink or NVSwitch since there is no MP traffic.
  • Turing-NLG, 17B parameters, the largest language model as of 12 May 2020, trained end to end with ZeRO-100B at 41.4 TFLOPS per GPU, with a state-of-the-art perplexity of 10.21 (§10.6, Figure 5). The paper calls the benchmark "Webtext-103"; Microsoft's Turing-NLG announcement names it WikiText-103, and adds that ZeRO let them cut the MP degree from 16 to 4 and raise the batch per node fourfold.
  • The memory analysis holds (Table 2): the largest model measured with Pos is 6.2B on 64 GPUs against 7.6B in theory, for every MP degree. The paper says it "matches"; it is of the bound at every MP degree, the rest presumably the residual states the bound leaves out (the baseline measures 1.3B against 2B, 65%).

Which optimisation buys what (§10.5): five configurations add ZeRO pieces in turn, and the largest trainable model grows from 40B to 60B (Pa), 140B (Pos+g) and 150B (Pa+cpu); the details, and the authors' note that their baselines had the advantage of fewer GPUs, are with Table 3 in the tables tab.

a 60B model is trained with ZeRO-100B on 64, then 128, 256 and 400 GPUs (MP 16 throughout). What happens to throughput per GPU?

How much of this to believe

§5, §7, Table 2, §10

What holds up, and why. The core of the paper is arithmetic, not measurement, and the arithmetic is exact. The model-state accounting (16Ψ bytes) and every per-stage formula reproduce: Figure 1, all 54 cells of Table 1 and all 20 theoretical cells of Table 2 come out of §5's formulas (rebuilt here). The communication argument (§7) follows from how ring all-reduce is built, and the step simulation on this page, run on the paper's own schedule, lands on 2Ψ and 3Ψ. The memory model was also tested: the largest model measured with Pos stays at 81 to 82% of the bound across five MP degrees, so the bound predicts the trend even if it overstates the level (Table 2). And the authors are candid where it counts in their favour: they say plainly that ZeRO-100B implements only stages 1 and 2, that trillion-parameter training is out of reach for compute, not memory (§9), that Pa+cpu slows the 60B model down (§10.5), and that their Megatron baselines ran on fewer GPUs (appendix).

Where the evidence is weaker.

  • Single runs, no error bars. Every throughput figure (Figures 2, 3, 4 and 8) is reported as a single number per configuration: no repeats, variance or timing method are given, and the bars print no values, so "15 PFLOPS", "38 TFLOPS" and "up to 10×" cannot be checked beyond their own arithmetic (§10.2).
  • Not like for like. The 10× compares ZeRO plus MP inside a node against Megatron forced to cross nodes; much of the gap is the 24× bandwidth drop from NVSwitch to InfiniBand (§10.2). Batch sizes differ too: at 100B ZeRO runs 800 sequences per step against the baseline's 6 (Table 5). That is the point of the method (freed memory buys batch), but it means the speed-up mixes ZeRO's effect with a much larger batch. The baseline is the open-source Megatron-LM of September 2019 (§10.1).
  • Analysis presented next to measurement. The trillion-parameter result and stage 3's 1.5× are memory and volume calculations, not runs; stage 3 was not built here (§1). Communication is counted in volume, never measured in time. The abstract's "potential to scale beyond 1 Trillion" is worded as potential, but the title and §9 lean on it.
Reporting slips: where the paper disagrees with itself
  • The paper disagrees with itself in places (every number checked): the 100B checkpoints are "around 60 GB" in §3.2 and "about 33 GB" in §6.1 (fp16 arithmetic gives 67 GB, and 4.2 GB rather than 2 GB after Pa); "about 8 GB" for GPT-2 with checkpointing is not derived (5 to 6 GB by the obvious counts); Table 4 misprints the 40B to 60B models' hidden size (4096 for the appendix's 6144); "over 8×" holds against §9's 16 to 20B baseline but is 4.25× against §1's own 40B; and the measured ZeRO-1 sizes the paper says "match" the bound are 81 to 82% of it. None of these touches the method; all are reporting slips.

How it held up (beyond the paper). Better than almost any systems paper of its year. The method shipped in DeepSpeed, stage 3 included from March 2021 (DeepSpeed blog), and PyTorch rebuilt it natively as FSDP (Zhao et al. 2023). Independent large runs used it as described: BLOOM with ZeRO stage 1 (BLOOM §3.4.2), DeepSeek-V3 with ZeRO-1 (DeepSeek-V3 §3.2), Llama 3 with ZeRO-2-style FSDP (Llama 3 §3.3.2). What did not become the frontier default is stage 3 on its own; those runs pair a low stage with tensor, pipeline or expert parallelism, which the paper itself anticipated (Then and now).

Verdict
Believe the memory accounting and the communication argument without reservation: they are exact, reproduce table for table, and every training stack since is built on them. Treat the headline speed-ups as single, unrepeated runs against a 2019 baseline that was pushed across nodes, and the trillion-parameter claim as analysis that later work (ZeRO-3 Offload, ZeRO-Infinity) had to make real.

Why it matters (beyond the paper)

This paper launched DeepSpeed and set the vocabulary, "ZeRO-1, 2, 3" and "stage 3", still used in every training stack (DeepSpeed ZeRO tutorial). Its core claim, that data parallelism's memory redundancy can be removed without giving up its communication efficiency or touching model code, became a default way to train large models, alone or alongside tensor parallelism. PyTorch FSDP is the native descendant, "motivated by the ZeroRedundancyOptimizer technique from DeepSpeed" (Zhao et al. 2023); how FSDP and ZeRO compose with the other parallel axes today is Distributed training's subject (section 4). The follow-ups pushed the same states down the memory hierarchy and cut stage 3's traffic: ZeRO-Offload (2021, CPU; arXiv 2101.06840), ZeRO-Infinity (2021, NVMe too, trillion-parameter fine-tuning on one DGX-2 node; arXiv 2104.07857) and ZeRO++ (2023, quantised and node-local collectives, 4× less communication; arXiv 2306.10209). Turing-NLG ran on it, and the large runs that followed chose a low stage (see How it held up, above). And §3's 16 bytes per parameter is still the back-of-envelope every practitioner uses to size a training run. Then and now has which stage each big run used, with the quotes, and the full follow-up line.

Where it stands now: API names (checked 2026-10-02; volatile)

In PyTorch's FSDP, FULL_SHARD is ZeRO-3, and SHARD_GRAD_OP shards gradients and optimiser states while keeping parameters gathered from forward to backward, ZeRO-2 style (FSDP docs); FSDP2's fully_shard shards parameters as DTensors (FSDP2 docs). The full stage-name table, and which stage each big run used, is in Then and now.

Connections