LESSON 11.16 · 6 STAGES · 2 CONTROLS · 3 CHECKSPRO · PREVIEW
Compute/communication overlap
Watch transfers slide under compute, and see which waits remain.
Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 2 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 11.16 · OVERLAP BAYAG 2.5 MS · FORWARD 1.5 MS
01
Stage 1 of 6 · One layer
Before layer 1 runs, an AllGather brings its weights in 2.5 ms. Layer 1 then computes for 1.5 ms.
Explain it simply
Each GPU keeps only a quarter of every layer's weights. Before a layer runs, the GPU fetches the other three quarters over the links. Here the fetch takes 2.5 milliseconds, and the math takes 1.5. The fetch uses the links, so the math units could do other work at the same time.
One stream, layer 1 only. The AllGather AG1 takes 2.5 ms on the transfer row. Then the forward F1 takes 1.5 ms.
forwardbackwardAllGather, ReduceScatterGPU waits
Toy: the 4 layers of 11.10, 20 MB each, sharded over 4 GPUs; ring transfers, 1 ms each to start; backward 3 ms per layer at 4 samples per GPU
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
A gather costs a fixed start plus its bytes over the link speed.
PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
- 5 more stages and 2 live controls
- 2 mix-up cards and 3 predict-then-reveal checks
- Watch it as a narrated video, in three voices
- Every Pro lesson and capstone · 656 in total
$99 a year, or $15 a month. Cancel any time.