parallelism -- what actually crosses the wire when one model is split across GPUs

A model too big for one chip has to be cut across several, and the cuts put different bytes on the wire. Tensor parallel splits each multiply and adds the slices back together. Pipeline parallel gives each chip a stack of layers and passes the work along. Expert parallel puts specialist sub-networks on different chips and ships each word to its specialist. Data-parallel attention copies the part that reads the conversation, so each chip serves its own users and that attention crosses nothing. KV-parallel is an attention choice on the same devices: each chip keeps a sequence shard of the cache. That gather moves cache bytes only when more than one chip is in the strip, and the quantity differs from an activation sum and from the expert-token shipment. With one chip the gather is zero. The ring that passes keys or queries around one sequence is a different page.

Interactive page: tensor parallel, pipeline parallel, expert parallel, data-parallel attention move different bytes at different moments, KV-parallel attention is a separate choice on the same devices. One transformer layer is drawn across an N-GPU strip and you choose a strategy per sublayer, watching what leaves each device. Anchor: A4 KV cache / runtime shape (Family J, serving time). Companion to moe-routing, which is the router this page's all-to-all obeys, mla, which is the latent cache that makes tensor-parallel attention a bad trade, disaggregation, which splits a fleet by phase rather than a model by tensor.

What it shows

StrategyWhat is splitWhat crosses the wireThe trade
Tensor parallelevery matmul, across all Nan all-reduce of activations, once per sublayer, in every layerlowest latency, but it wants a fat link -- the collective is on the critical path of every sublayer, so it degrades once the group spans a slower fabric
Pipeline parallelwhole layersone point-to-point activation send per stage boundarythe cheapest comms on the page and it does not grow with layer count -- but the pipeline bubbles, and a single decode token can only be in one stage, so it does nothing for single-token latency
Expert parallelthe MoE expertsan all-to-all of TOKENS, out to their experts and backexpert memory scales with GPU count, but the volume is set by the router, not the topology: it is load-imbalanced by construction and the step waits for the busiest rank
Data-parallel attentionnothing -- attention is replicated; each rank owns its own requests and KVnothing at all, for attentionN copies of the attention weights, and the ranks must still line up at the MoE boundary -- a rank with no requests of its own runs a dummy forward pass so the collective does not deadlock
KV-parallel attentiona sequence shard of the cache, with a 1/N head slice of the attention weights on the same devices as the FFNa gather of those cache bytes, only when more than one GPU is in the stripa different quantity from an activation all-reduce and from the expert-token all-to-all. With one GPU the gather is zero

Two counters recompute live, per rank, from the controls -- nothing on the page is annotated:

Two cliffs are worth finding on purpose, because they are the reason real deployments pair DP-attention with expert parallelism rather than tensor- parallelling everything:

You are meant to be able to build a bad configuration and see why it is bad: a two-GPU tensor-parallel split of a latent cache on a long context, a five-stage pipeline at one micro-batch, a heavily skewed router over few ranks.

The ring is a different page. Passing keys or queries around one sequence is the context-parallelism page. KV-parallel attention on this page keeps a sequence shard of the cache and gathers those bytes when the strip has more than one GPU.

Render tier

T1 (Canvas2D throughout -- the lesson is topology and volume, not pixel scale).

Wiring

layout.mount + controls (gpus, attn, moe, kv, d, layers, experts, topk, reqs, seq, skew, micro, link, budget, overhead) + an 8-stage Transport walking one layer's sublayers in order (input → attention math → attention collective → router → dispatch → expert math → combine → output) so the collectives animate where they happen; onPointer drags the strip horizontally for the GPU count and vertically for the router skew, and clicks a strategy chip to switch that sublayer; hover-to-inspect on every GPU (what it holds and why) and every arrow (what is crossing, with the formula); three challenges; and an A/B compare over tensor- versus data-parallel attention. URL hooks: ?step, ?gpus, ?attn, ?moe, ?kv, ?d, ?layers, ?experts, ?topk, ?reqs, ?seq, ?skew, ?micro, ?link, ?budget, ?overhead, ?hover=x,y. Source: page.js.

Sources

The mechanisms and the DP-attention-plus-expert-parallel pairing follow the public write-ups: the vLLM parallelism-and-scaling serving documentation, Meta's engineering post on tensor / context / expert parallelism for LLM inference, the vLLM large-scale-serving ("wide expert parallelism") post. The model dimensions on the page are yours to set; the defaults are round numbers chosen to make the shapes legible, not a description of any particular deployment.