Log inStart free
LESSON 11.15 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Expert parallelism

Watch 16 tokens travel to MoE experts on other GPUs and back.


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/mo
EXPLAINER · 11.15 · EXPERT BAY4 GPUS · 2 EXPERTS + 4 TOKENS EACH
01
Stage 1 of 6 · Experts on GPUs
With expert parallelism, each GPU holds 2 whole experts and 4 tokens. Every GPU has the router.
Explain it simply

An MoE layer has 8 experts, small networks that each learn their own job. No GPU holds all of them: each GPU holds 2 whole experts and 4 of the 16 tokens. It's like a hospital where each floor has its own specialists, and patients ride the lift to them.

4 GPU columns. Each column holds 4 tokens, 2 experts and a copy of the router.

tokensexpertsoutputsdroppedstays on its GPU, waiting
GPU 0routerGPU 1routerGPU 2routerGPU 3routerexpert 0expert 1expert 2expert 3expert 4expert 5expert 6expert 70123456789101112131415experts on GPUs8 experts / 4 GPUs = 2 per GPU · 64 of 256 expert weights eachGPU 0routerGPU 1routerGPU 2routerGPU 3routerexpert 0expert 1expert 2expert 3expert 4expert 5expert 6expert 70123456789101112131415experts on GPUs8 experts / 4 GPUs = 2 per GPU · 64 of 256 expert weights each
Toy: 16 tokens of width 4 · 8 seeded experts, not trained
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
experts per GPU=E/G\text{experts per GPU} = \sy{e}{param}{E} / \sy{gpu}{ink}{G}
8/4=2, expert weights per GPU=64 of 2568 / 4 = 2,\ \text{expert weights per GPU} = 64 \text{ of } 256

The experts split evenly over the GPUs.

Common mix-ups

MYTHExpert parallelism splits each expert across the GPUs.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01With top-2 and no limit, do more or fewer copies cross on 8 GPUs than on 4?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

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.