AlgoViz

Parallel training, memory and recovery

hard 6 min

Each device needs some combination of weights, gradients, optimizer state, activations and temporary communication buffers.

Trace the example

Follow the evidence through each stage, then test a change in the case.

Fit a training step across four accelerators

Fit a training step across four accelerators. Selected component: Microbatch loader inside Training job.
Open full-size diagram

Training job

Dispatch different samples

Four workers receive input slices according to the data-parallel plan.

Why can four devices with 24 GiB each still fail to fit 80 GiB of sharded persistent state?