Recently our model switched from dense to MoE, and MFU (model FLOPs utilization) plummeted. The intuitive explanation is that experts get sliced so small that arithmetic intensity can't go up — but the sliced dimensions are still at least 1024, so that can't be the real cause. Understanding the problem properly means understanding distributed parallel computing on GPUs: beyond compute-bound and memory-bound, you have to add communication-bound. The way to fix throughput and MFU is to design a sensible GPU parallelism strategy and overlap GPU computation with communication.
DeepSeek's H800 and Ascend clusters use 8-GPU NVLink islands, with slower IB (InfiniBand) networking across nodes. We have B200s, but we don't actually run NVL72 either — so DeepSeek's parallelism strategy is broadly relevant: similar hardware, a low-cost approach, and the new MoE work is open source.
DeepSeek's parallelism strategy
V4 focuses on overlapping computation and communication in EP and doesn't detail the overall parallelism strategy, which it carries over from DeepSeek-V3.
Our training framework is built upon the scalable and efficient infrastructure developed for DeepSeek-V3. In training DeepSeek-V4, we inherit this robust foundation
V3 disclosed 2,048 H800s, NVLink within each 8-GPU node, and a parallelism strategy of 16-way PP × 64-way EP × ZeRO-1 DP.
First, NVLink vs. IB: within an 8-GPU NVLink domain you get up to 900 GB/s, while IB between nodes runs at 50 GB/s. Cross-node EP eats IB bandwidth, making it the main communication bottleneck — every byte of communication there matters, and that is what drives DeepSeek's carefully chosen parallelism strategy.
Before going further: what is a GPU parallelism strategy?
The simplest is DP (data parallelism): each GPU holds all the parameters, reads different data, does its own computation, and gradients are merged for the update. Back when models were small, this was the natural way to parallelize.
As models grow, they no longer fit in one GPU's memory, so storage has to be split. Once the inputs and weights needed for a computation aren't on the same GPU, communication is required.
How big does a model have to be before you need to split it? A model with hundreds of billions of parameters obviously won't fit on one H100 (80 GB), but what about a 10B model? That's the classic question: how much GPU memory does a model use during training?

What goes into GPU memory? Parameters, gradients, optimizer states, and activations.
For a 10B model in FP16 mixed precision, parameters take 2 bytes each — 20 GB. Gradients are FP16 too — another 20 GB. Optimizer state is more involved: with classic AdamW, both first and second moments are kept in FP32, which is 2 × 4 × 10 = 80 GB, plus FP32 master weights at 4 × 10 = 40 GB. So before counting any activations or system overhead, parameters, gradients, and optimizer state alone take 10 × 16 = 160 GB.
Add activations, and by around 3–5B parameters you already need to think about distributed parallelism beyond plain DP.

Common strategies:
- Keep DP's computation unchanged but split storage across GPUs, each holding only a part. Splitting only the optimizer state (about 12x the parameter memory) gives ZeRO-1 (Zero Redundancy Optimizer); splitting gradients too gives ZeRO-2; splitting the model parameters as well gives ZeRO-3, also called FSDP (Fully Sharded Data Parallel).
- TP (tensor parallelism) shards parameter tensors across GPUs for both storage and computation. A common confusion: FSDP also shards parameters, so what's the difference? FSDP only shards storage, not computation — it's still DP. Before the forward pass it gathers the parameter shards from other GPUs into full tensors and computes just like plain DP. TP also shards the computation: different GPUs read the same data, compute on different tensor shards, then communicate to merge results. TP is communication-heavy and belongs inside an NVLink domain.
- PP (pipeline parallelism) is the easiest to grasp: different Transformer layers run on different GPUs, which form a pipeline, naturally splitting storage and computation by layer. Its communication volume is small, so it suits cross-node links.
- EP (expert parallelism) is standard for MoE models. It resembles TP (both shard parameters for storage and compute): experts are naturally separate, so their parameters live on different GPUs; at compute time, tokens are routed to the GPUs holding their experts, and the results are combined back. Communication is heavy too, and DeepSeek's key optimization is making EP=64 work over IB.
- CP (context parallelism) splits activations along the sequence inside attention: each GPU computes QKVO for its segment, with cross-GPU communication during attention. V3 didn't mention it; in V4, 1M-token contexts don't fit, so it splits along the sequence dimension — typically used in the long-context stage of pre-training or in post-training.
Can these strategies be combined?
With N GPUs, these strategies are orthogonal and can be stacked. Basic 3D parallelism is DP × TP × PP = N. EP is special: it can piggyback on DP and share the same GPUs. For example, in 5D parallelism, N = DP_total × TP × PP × CP, where DP_total = EP × DP_replica, and DP_replica is the number of full model-weight replicas.
Back to DeepSeek: 2,048 GPUs, PP = 16, EP = 64, so DP_total = 128 and DP_replica = 2 — the model actually has just 2 full replicas, with EP inside each. GBS (global batch size) = MBS (micro-batch size) × DP_total × grad_accum_steps.
EP sharing GPUs with DP is a special case. EP is the only parallel dimension that "re-homes" tokens inside the forward pass: via all-to-all, tokens temporarily leave their DP rank, get processed by another group of GPUs, and are sent back.
Picture GPUs as classrooms. Each group of students (data) has its own classroom, and each homeroom teacher (expert) has a classroom too, but also teaches an elective to students from every classroom — so for that class, students regroup into the teacher's room and go back afterward. Why can't TP do this? TP effectively needs all teachers to co-teach a single lesson without leaving their own rooms, so each student would have to be in several rooms at once. EP works thanks to MoE sparsity and the independence of experts.
Step one: get EP running over IB
EP is three serial steps: dispatch, expert computation, combine. Dispatch sends tokens via all-to-all to the GPUs holding their experts; after computation, combine sends the results back via all-to-all. To keep inter-node traffic from exploding, V3 restricted expert selection to 8 experts within the 4 nodes with the best average affinity, cutting cross-node communication — but that isn't the optimal expert choice, and V4 removes the restriction.
Why does that cap IB traffic? With top-k = 8, if the 8 experts happen to sit on 8 different nodes, all communication goes over IB. Capping it at 4 nodes means each node serves 2 GPUs on average, so the transfer can be merged over IB: send once to one GPU in the target node, which forwards via NVLink to the right GPU. That converts IB traffic into NVLink traffic and shortens communication time — and the shorter the communication, the easier it is to overlap it with EP computation later.
Combining DP ZeRO-1 with EP/PP

Because Transformers are naturally layered, DP's computation and communication overlap naturally. ZeRO essentially shards parameters while all computation happens on the local GPU — a natural precondition for overlap.
- DP: during backpropagation, while computing the previous layer, you can all-reduce the gradients just computed for the current layer.
- ZeRO-1/2: since optimizer state and gradients are sharded, a reduce-scatter gives each GPU its gradient shard, it updates its optimizer state, and an all-gather after the update refreshes the weights.
- ZeRO-3/FSDP: does an all-gather on every forward pass, but can prefetch the next layer's parameters while computing the current one.
DP uses ZeRO-1 rather than FSDP/ZeRO-3 or ZeRO-2 to avoid competing with EP for IB bandwidth. ZeRO-3 must all-gather the weights on every forward pass, so each micro-batch moves a parameter-sized volume (GB-scale) — directly competing with EP's forward pass for IB. ZeRO-2 keeps only part of the gradients on each GPU, so gradient accumulation can't just sum locally as in ZeRO-1; it needs a reduce-scatter, again a parameter-sized volume (GB-scale), competing with EP's backward pass for IB.
ZeRO-1, by contrast, has no communication outside the optimizer step — same as DDP. At the optimizer step, each GPU can only update its own parameter shard, so an all-gather is needed to get the full parameters. But DP/ZeRO already does an all-reduce at the optimizer step to sum gradients, and an all-reduce can be split into reduce-scatter + all-gather. After the reduce-scatter, each shard's gradients are already correct; update the parameters, then all-gather the parameters once. The gradient all-gather is simply replaced by a parameter all-gather, so ZeRO-1 has exactly the same communication volume as plain DP while saving roughly 12x the parameter memory — which is why ZeRO-1 is nearly free. DeepSeek keeps its precious IB bandwidth for EP.

EP's all-to-all moves B × L × seq_len × top-k × hidden_size × 4, with two all-to-alls each in the forward and backward passes. That nearly saturates IB — communication volume on the same order as IB bandwidth.
PP is a natural choice too: H800s are interconnected 8 at a time, and cross-node bandwidth drops from 900 GB/s NVLink to 50 GB/s InfiniBand. PP's communication is small (B × seq_len × hidden_size × 2), so it suits cross-node links without competing for IB.
In sum: PP + EP + DP ZeRO-1, no TP, no ZeRO-2/3 — avoiding any per-micro-batch competition with EP for precious IB bandwidth, so the whole strategy runs smoothly on modest hardware.
Squeezing PP bubbles
PP's communication is tiny, so overlap isn't the issue; its real problem is pipeline bubbles from waiting on the backward pass. The figure above shows the most naive PP, GPipe — long abandoned, shown only to illustrate bubbles.

1F1B (one forward, one backward) runs B0 right after F0 and then alternates forward and backward. It doesn't actually shrink the bubble, but activations can be freed earlier, so memory use drops and you can raise the number of micro-batches M — indirectly raising the compute share and squeezing the bubble. GPipe and 1F1B both have a bubble fraction of (P-1) / (M+P-1), where P is the number of pipeline stages and M is the number of micro-batches per step.
ZB1P (zero-bubble PP) builds on 1F1B by splitting each layer's backward pass. The backward pass computes dx and dw from dy; the previous stage can't start until it has dx. So compute dx first to squeeze the bubble backward, and defer dw to fill the bubbles. But because dW = x^T · dy is deferred, its input x (the activations) can't be freed immediately — trading some memory for compute.
DualPipe: squeeze bubbles and overlap EP communication at the same time

DeepSeek-V3 introduced DualPipe, which builds on ZB1P by running two micro-batch streams through the pipeline in opposite directions, so forward and backward passes line up to interleave computation and communication — squeezing bubbles while hiding EP communication behind computation.
EP's computation and communication are serial: in the forward pass, one all-to-all routes token hidden states to their experts' GPUs (dispatch), computation runs, and another all-to-all sends results back (combine) — inherently impossible to overlap on its own. EP consumes the biggest share of IB bandwidth, and both V3 and V4 say its communication-to-computation time is close to 1:1, so hiding communication behind computation becomes the key.
Each rank holds two copies of the parameters, so micro-batches can flow from rank 0 to rank 3 and also from rank 3 to rank 0. Each step starts with forward passes in both directions; once the first backward pass arrives, it overlaps with a forward pass from the other direction. In that overlap, one direction's [attention, dispatch, MLP, combine] and the other's same four steps hide each other's computation and communication. DualPipe's side effect is doubled parameter memory, but PP + EP + ZeRO-1 has already shrunk memory use a lot, and the V3 paper says this is acceptable.

In the actual implementation, of the H800's 132 SMs, 20 SMs are dedicated to communication and the rest go to computation. Traditional NCCL works in SM-shared mode: communication and compute kernels share the SM pool, each grabbing SMs on launch as needed. These 20 SMs instead run DeepSeek's own PTX-level communication kernels, not NCCL.
V4's Waved-EP: compute–communication overlap
Waved-EP is DeepSeek-V4's new scheme for overlapping EP computation and communication. A single kernel solves the problem inside the MoE layer, no longer relying on PP scheduling. The idea is simple: split the experts into several waves and overlap communication across waves.
If DualPipe can already hide EP's all-to-all, why build a new Waved-EP kernel? The paper's answer: DualPipe falls short for small-batch RL and inference. Inference has no backward pass at all, so there is nothing to pair with forward passes for one-to-one overlap. Against the baseline (Comet), it reports a 1.96x speedup in RL and 1.50–1.73x in general settings. The paper doesn't compare against DualPipe's overlap, since V3 also achieves 100% overlap; at large batch sizes they should be similar.

Why does DualPipe depend on large batches? Pipelined 1F1B-style overlap has roughly three phases:warmup, forward only, no backward to pair with;steady state, forward and backward overlap;cooldown, pure backward/weight-grad draining. Warmup has only F and cooldown only B, so there's nothing to overlap communication with: F with F, or B with B, can't interleave communication and computation.
DualPipe's forward–backward overlap happens only in the steady state, whose length depends on M (the number of micro-batches), with batch size = M × micro-batch × DP. So with small batches such as RL or long context, M is small, the steady state is short, and overlap suffers badly.
DeepSeek V4's approach is a kernel that solves the problem directly in the MoE layer, independent of PP scheduling. It groups experts into waves: once the first wave's dispatch completes, its computation starts while the second wave's dispatch is in flight, and finished results are combined right away. Each wave is serial internally, but dispatch / L1+Act+L2 compute / combine across waves run in parallel. Because it's a kernel-level solution, it doesn't care whether it's training or inference, large batch or small; it depends more on a fine-grained-expert model design — with too few waves, the first dispatch and last combine are exposed and can't be hidden.

This kernel is written in the TileLang framework; such fine-grained control of communication and computation would be very hard in Triton. Here is Claude's assessment:
Triton wasn't designed to fuse communication and computation: its core abstraction is "high-performance GEMM/element-wise kernels within a single GPU," with poor or no support for cross-GPU communication primitives (NVSHMEM, IB send/recv). A mega-kernel like Waved-EP has to fuse dispatch (NVSHMEM put/get) + GEMM + combine into one kernel — something Triton simply can't express. TileLang's advantage isn't just that it "makes communication overlap easier to control" — it's that it can write kernels Triton can't. That's a difference in kind, not degree. TileLang is introduced in §3.2 of the V4 paper itself (citing Wang et al., 2026). Its design philosophy differs from Triton's: the productivity of a Triton-style DSL, while keeping PTX/CUDA-level low-level control.
Through extreme parallelism design and kernel-level communication overlap, DeepSeek can run 1T+ models on 8-GPU nodes over IB. It even advises hardware vendors not to just pile on interconnect bandwidth, but to check whether the GPU's total power budget can sustain computation and communication running in parallel — pushing hardware toward better support for concurrent compute and communication.
NVIDIA's path, meanwhile, is to connect more GPUs via NVLink: GB200 links 72 GPUs, and next year's Rubin Ultra is NVL576 — making 5D parallelism easier, with enough bandwidth to treat N GPUs as a single machine.
It also struck me: I once saw a commenter sneer at LLMs as mere "brute force." Honestly, at this level of engineering, balancing computation and communication is an art — far more impressive than clever tricks in model architecture.
What I didn't cover
- With Muon, ZeRO-1 can no longer shard element-wise — how do you shard by matrix?
- DualPipe-V: although DeepSeek-V4 doesn't explicitly use it, it removes DualPipe's redundant parameter copy and brings activation memory back to 1x of 1F1B.
- CP, which I didn't cover — in V4 it's used together with attention compression (MLA, NSA, etc.).