6/11
Part 4 of 7 · Pipeline parallelLearn and do

Pipeline parallelism splits the layers, and pays with a bubble

A pipeline gives each group of GPUs a run of layers, a stage. Each stage sends its activations to the next one and its gradients back, point to point, which the Megatron team calls cheaper than tensor parallelism's all-reduces.

Predict

A step's batch goes through 4 stages as one piece. What is GPU 4 doing while GPU 1 runs the first layers?

Pick an answer above to see the rest
Predict

16 stages and 32 microbatches. Roughly how big is the bubble?

Pick one to see what it prints.
Pick an answer above to see the rest