F3
Distributed Training
Training memory and compute arithmetic, data parallelism and collectives, ZeRO and FSDP, tensor, pipeline, sequence and expert parallelism, and keeping thousands of GPUs productive.
Guides
Memory and compute arithmetic for training
Where training memory goes (16 bytes per parameter plus activations), activation recomputation, FLOPs per token, MFU, and how to estimate the wall-clock time of a run.
13 min 02Data parallelism, collectives and ZeRO/FSDP
Distributed data parallel, ring all-reduce and its cost, overlapping communication with the backward pass, and how ZeRO stages and FSDP shard optimizer state, gradients and parameters.
14 min 03Tensor, pipeline, sequence and expert parallelism
Megatron-style tensor parallelism, pipeline schedules and the bubble, sequence and context parallelism for long inputs, expert parallelism for MoE, and how to map them onto the cluster topology.
15 min 04Reliability and efficiency at scale
Failures at thousands of GPUs, checkpoint strategy and interval, stragglers and silent data corruption, determinism, and a systematic way to find lost MFU.
11 minInterview questions
30-second answer plus a full 40-minute walkthrough for each.