Distributed Training & Parallelism: the practice test
DDP, ZeRO and FSDP, tensor, pipeline, context and expert parallelism, collectives and their cost, MFU, activation checkpointing, elastic and fault-tolerant training, checkpoint economics and the RL post-training stack. Owning the training run at cluster scale. This test drills exactly that: 10 easy, 12 medium and 8 hard questions, every one explained, every explanation linking into the worked material.
Sample questions, answered
Each rank holds a full model copy and its own slice of the batch. After the backward pass the gradients, one value per parameter, are all-reduced so every rank ends with the same average and takes the same optimizer step. For a 7B model in bf16 that is about 14 GB of gradients per step, moved as 2 × (N − 1)/N of that per GPU in a ring, and overlapped with the backward pass by bucketing. Nothing else has to cross the wire in DDP; the data is sharded by rank up front.
Data parallelism gives each replica the whole model and a slice of the batch, communicating gradients once per step. Tensor parallelism splits individual matrices across devices and communicates activations several times per layer, which is why it stays inside an NVLink domain. Pipeline parallelism assigns contiguous layers to stages and passes activations point to point between them, trading communication for pipeline bubbles. A frontier run combines all three, plus expert and context parallelism where the model calls for them.
Go deeper than the quiz
A practice test measures recall. The material it draws from teaches the reasoning:
