Data Parallelism

AI and Machine Learning · Distributed Training · data-parallelism.yaml

Every device holds a full replica and processes a slice of the batch, then the gradients are summed. The simplest way to scale, and it stops working when one replica no longer fits.

Colour is the family; a dashed line is the second member of it.

Drag to pan · scroll to zoom · click a node to open it
G all-reduce All-Reduce data-parallelism Data Parallelism data-parallelism->all-reduce gradients must be summed across replicas every step large-batch-training Large-Batch Training large-batch-training->data-parallelism the batch is large because it is split across devices tensor-parallelism Tensor Parallelism tensor-parallelism->data-parallelism one replica of the model must still fit on one device zero-sharding ZeRO Sharding zero-sharding->data-parallelism every replica redundantly stores the same optimizer state

This node

Referenced by

References