AI From Scratch/Phase 19/Lesson 48/~90 minutes

Distributed Data Parallel and FSDP from Scratch

BuildPython

Multi-rank training is two collectives and one rule. Broadcast the parameters at startup, average the gradients after backward, never let the ranks disagree about what step they are on.

Loading lesson page...