LESSON 31.C2 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
MoE inference across GPUs
Follow 16 tokens through one MoE layer on 4 GPUs, from router to combine.
Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 31.C2 · EXPERT BAY32 COPIES · MEAN 4 · HOT E3 9, E4 7
01
Stage 1 of 6 · Route tokens
Explain it simply
Each teal square is a token, and each ochre box is an expert. The bars below are one token's router scores: the blue ones are kept, the dashed ones skipped. A wider ribbon means a larger gate weight. The tokens come from one text, so many go to the same few experts, and those get hot.
16 tokens on 4 GPUs send 32 copies to 8 experts. The loads of experts 1 to 8 are 0, 0, 9, 7, 6, 4, 2, 4. Experts 3 and 4 are hot.
Weights are random, not trained.
tokens, copiesexperts, kernelsGPU work, outputshot, bottleneck, start, paddinggrey dashed: idle, skipped
Toy: 16 tokens, 8 int8 experts, 4 GPUs; toy costs
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
An expert is hot when its load passes 1.5 times the mean.
PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
- 5 more stages and 3 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.