AlgoViz

Parallel training, memory and recovery

hard 6 min

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

Where it shows up

The same pattern appears across everyday software.

  • Fit a training step across four accelerators

    Four workers receive input slices according to the data-parallel plan. Each worker contributes its partition and holds transient buffers needed for computation. Measure collective time and identify an imbalanced expert or slow link before increasing the batch. Publish only after all shards and optimizer metadata are present. Ignore the incomplete later generation after restart.