3/11
Part 2 of 7 · Data parallel and sharded statesLearn and do
Data parallelism copies the model, and ZeRO shards the copies
In plain data parallelism, every GPU holds the whole model, runs a different slice of the batch, and then all the GPUs average their gradients with an all-reduce. The ZeRO paper counts that as 2 times the parameter count moved per GPU each step.
Every data-parallel copy holds all 16 bytes a parameter. Which part is biggest?
Pick an answer above to see the rest
On 64 GPUs, which ZeRO stage first fits the 70-billion-parameter model's training state into 80 GB?
Pick one to see what it prints.
Pick an answer above to see the rest