Skip to content

Wide expert parallelism

The llm-d wide expert parallelism path has no TPU configuration in llm-d 1.0: its overlays are NVIDIA H200, AMD MI355X and Intel XPU, with RDMA all-to-all backends. On TPU, expert parallelism ships inside the model recipes instead: Qwen3.5-397B at DP=8 x TP=1 with EP on one TPU7x host, and GLM-5.2 at DP=16 with EP on a two-host 2x2x2 slice (Model recipes). Chapter 20 explains the DP/EP pattern.

When to use it (on GPU)

A large Mixture-of-Experts model is deployed as DP/EP groups across nodes, paired with P/D disaggregation and DP-aware routing: every DP rank runs its own API server port and the InferencePool targets all of them, so the router picks a DP rank, not just a pod. The llm-d guide's models are chosen to show the mechanics; the benchmarked MoE recipes are the model guides.

Prerequisites

ACCELERATOR_TYPE Model Layout Status
gpu deepseek-ai/DeepSeek-R1-0528 32 H200, DisaggregatedSet: prefill DP16 + decode DP16, 2 nodes each, DeepEP + NIXL validated
amd deepseek-ai/DeepSeek-V3 32 MI355X, prefill DP16 + decode DP16, MoRI-EP + MoRI-IO validated
xpu deepseek-ai/DeepSeek-V2-Lite-Chat 4 XPUs, prefill TP2 + decode TP2 with EP, NIXL validated

The GPU configurations need all-to-all RDMA connectivity (every NIC reaches every NIC on other hosts; rail-only networks fail) and the LeaderWorkerSet controller v0.11.1 or newer with --set enableDisaggregatedSet=true.

Steps

1. Choose the TPU equivalent

You want On TPU, use
One large MoE model with EP on one host Model recipes: Qwen3.5-397B, DP=8 x TP=1, EP, 2x2x1
EP across two hosts Model recipes: GLM-5.2, tpu7x-2x2x2-dp16 LeaderWorkerSet, DP=16 with EP
EP plus P/D P/D disaggregation: TPU7x prefill PCP=8 to decode DP=8, both with EP

Check: the engine's TP x DP equals the slice's device count (8 per tpu7x-standard-4t host), or part of the slice idles.

2. Verify DP-rank routing (any accelerator)

The llm-d guide's mechanism check sends 32 requests, 8 at a time, each with a distinct prompt of about 1,000 tokens (no shared prefix, so affinity does not pin them to one rank), then reads requests and connector prefix-cache hits per DP rank.

Check: requests spread over the DP ranks, and decode ranks show external prefix-cache hits from the KV transfer.

Troubleshooting

Symptom Cause Fix
GPU all-to-all fails across nodes Rail-only network All-to-all RDMA connectivity
You run on TPU No TPU overlay in this path The model recipes and P/D path above
Router sends all requests to one rank Shared prefixes pin them by affinity Test with distinct prompts, as the llm-d guide does

References