LESSON 11.09 · 6 STAGES · 2 CONTROLS · 3 CHECKSPRO · PREVIEW
Collective operations
Five collectives move gradient chunks between GPUs, one step at a time.
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.09 · COLLECTIVE BAY4 GPUS · 4 CHUNKS EACH · 2.5 MS PER CHUNK
01
Stage 1 of 6 · The gradients
Each GPU holds its own gradient vector of 4 chunks. Training needs the sum on every GPU.
Explain it simply
You see one column per GPU. Each GPU trained on different data, so each one holds a different gradient vector. The vector splits into 4 chunks, one per GPU. One whole vector takes 10 milliseconds on one link, so one chunk takes 2.5.
4 GPU columns. GPU 0 holds 1, 4, 4, 3. GPU 1 holds 9, 1, 1, 8. GPU 2 holds 7, 7, 6, 2. GPU 3 holds 5, 4, 5, 7.
input gradient chunksum or received chunkempty slottime
Toy: 2–4 GPUs · 1 GB per vector · 100 GB/s links
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
Each GPU g holds a vector of N chunks.
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.