expert-placement -- which GPU an expert lives on

A model too large for one chip is split across several, and where it is made of specialist sub-networks the natural split is to give each chip a few of them. A word whose chosen specialist lives on another chip must be shipped there and its answer shipped back, and it pays one trip per distinct chip it needs — so specialists that tend to be chosen together are cheap to keep on the same one. Demand is very uneven in practice, so a popular specialist sitting alone leaves its chip overloaded while the others idle, and the whole step waits for the slowest. The fixes are to keep copies of the busy ones on every chip, or to re-place them from observed traffic — and a copy costs its full weight on each chip that holds it.

Interactive page: under expert parallelism each device holds a subset of a Mixture-of-Experts layer's experts, so where an expert lives decides how much of the batch has to cross the interconnect. Anchor: A6 MoE variant; Family D, one level in from parallelism (which draws what crosses the wire under each parallelism strategy) and a different question from moe-routing. See MoE.

The distinction this page owns

QuestionPage
Which experts does this token want?moe-routing
Does the router spread the load evenly across experts?moe-balance
Where do those experts physically live, and what does that cost?this page
What crosses the wire under tensor / pipeline / expert / data parallelism?parallelism

The routing page already answers which experts a token picks. This page holds that answer completely fixed and moves only the placement — the same tokens want the same experts throughout, and every number on screen changes anyway. Routing is not re-taught here.

What it shows

The mechanism. Each device holds a subset of the experts. A token whose chosen expert lives elsewhere has to be shipped there and its result shipped back — the all-to-all. The dispatch copies a token once per DISTINCT destination device, not once per expert, which is what makes placement a lever:

Two shipped responses, both drawn:

Both appear in DeepSeek-V3's deployment description (arXiv:2412.19437), which keeps redundant copies of high-load experts and periodically recomputes the expert placement from measured load. The broader expert-parallel load-balancing literature — FasterMoE (PPoPP '22 — no arXiv preprint; 2203.10924 is an unrelated condensed-matter paper), SmartMoE (USENIX ATC '23 — likewise no arXiv; 2304.11414 is Pipeline MoE, a different system), Tutel — treats placement, not routing, as the tunable. Nothing here describes any particular deployment's configuration: the interconnect and compute rates are reader-set sliders whose defaults are public nominal figures.

Everything on screen is counted off the simulated batch — token copies crossing per layer, bytes on the busiest link, per-device (token, expert) pairs and utilisation, idle time per device, and the step time set by whichever of (slowest device, busiest link) is larger. The batch is seeded, so a reload and a shared link show the same picture.

Reported against a named baseline. The step time is quoted as a percent of round-robin placement's step time, with the direction stated — lower is better; 100% = parity. Measured on the page's own defaults (16 experts, 4 devices, top-2, 256 tokens, 32 MoE layers, skew 1.20, seed 7, 100 GB/s links, 200 TFLOP/s devices):

🟢🟡🔴PlacementStepvs round-robinBusiest deviceCrossings/token
⚪round-robin (baseline)1.39 ms100.0%1.35× fair share1.44
🟢rebalance from observed load1.20 ms86.1% (faster)1.16×1.30
🟢rebalance + 3 replicated hot experts1.08 ms77.5% (faster)1.05×0.73
🔴worst case2.51 ms180.3% (slower)2.44×1.20

The worst case is instructive precisely because it moves fewer tokens than the baseline (1.20 crossings per token against 1.44) and is still the slowest thing on the page: piling the hot experts together does co-locate them, and then one device does 2.44× its share of the work while the other three sit idle. Traffic is not the only cost of a placement.

Interactions

Render tier

T1 (Canvas2D: device panels, expert chips, all-to-all curves with moving packets, utilisation bars).

Wiring

layout.mount + controls (devices, experts, topk, tokens, skew, rep, layers, dmodel, bw, tflops, seed, three placement buttons) animate (packets flow along the wires via api.t) + onPointer chip drag-and-drop and ribbon two-axis drag + hover + challenges. Deep links: every control is mirrored into the query string, plus ?step=N, ?place=<one device digit per expert>, ?preset=rr|rebalance|worst and ?hover=x,y (the screenshot-verifiable stand-in for a real cursor). Source: page.js.