Course contents
On this page
Data Parallelism
Introduction
Data parallelism distributes training work across GPUs while keeping their model updates coordinated. This chapter will trace a training step, explain the communication it requires, and examine how sharding changes memory use and data movement.
We will cover:
- The training step: Following the forward pass, backward pass, and optimizer update.
- Data-parallel execution: Dividing input data across ranks and synchronizing gradients.
- Sharding model state: Partitioning parameters, gradients, and optimizer state.
- Worked example and experiments: Implementing a training step and measuring memory and communication costs.
Stay tuned for the full chapter!