The weights alone are bigger than one GPU A 70B-parameter model at 2 bytes per parameter (FP16 or BF16) is about 140 GB of weights. A GPU here has 80 GB of memory.
The serving engine also needs memory for the KV cache of every running request and for activations. So the model has to be spread over several GPUs, and the question is how to cut it.
Data parallelism makes copies, it does not split Data parallelism (DP) runs full, independent copies of the model, and the gateway spreads requests over them. The copies do not talk to each other while answering.
DP adds throughput, not memory. Each copy still has to fit somewhere. For a model that fits one GPU, DP is just "more replicas". For this model, each copy first needs one of the splits below.
Key idea On Kubernetes, DP is usually just the replica count of the serving workload behind a load balancer or inference gateway.
Tensor parallelism splits every layer across GPUs Tensor parallelism (TP) cuts the weight matrices inside each layer into slices. With TP size 4, GPUs 0 to 3 each hold a quarter of every layer: about 35 GB.
Attention heads are divided among the GPUs, and the large feed-forward matrices are split by columns and rows. Every GPU works on every token, each on its own slice.
The slices must be combined after every layer Each GPU computes only a partial result. In the common Megatron-style split, the GPUs run an all-reduce about twice per layer (after attention and after the feed-forward block) to add the parts together, for every forward pass.
That is dozens of small, latency-sensitive exchanges per generated token. Inside a node over NVLink this is fast. Over a regular network between nodes it would stall every token.
Watch out Keep a TP group inside one node, on GPUs joined by NVLink or a similar fast link. nvidia-smi topo -m shows how the GPUs are connected.
Splitting the weights frees room for the KV cache The engine fills what is left of each GPU with KV cache blocks. With TP 4, about 35 GB of weights leaves roughly 30 GB or more per GPU for KV cache after activations and headroom. With TP 2 (70 GB each) almost nothing would be left.
The KV cache is split by attention heads too, so a larger TP size means more concurrent requests and longer contexts. The cost is more communication, and the TP size should divide the model's attention head count.
Key idea If requests queue because KV cache is full, a larger TP size (or a smaller weight format) can help as much as more replicas.
Pipeline parallelism splits the layer stack across nodes For a bigger model, or more KV room than one node gives, the layers are cut by depth into stages. Stage 1 (the first half of the layers) runs on node A with TP 4, and stage 2 on node B with TP 4. That is TP 4 × PP 2 = 8 GPUs, about 17.5 GB of weights each.
Between stages only the activations of the batch cross, once per stage boundary per step, point to point. That is far less traffic than TP, so it tolerates the network between nodes. A fast fabric such as InfiniBand or RoCE still helps.
A stage waits while the other one works Stage 2 cannot start a step until stage 1 hands over its activations. With a single request, one node is always idle: the pipeline "bubble".
Serving engines fill the pipeline by keeping several batches in flight, so both stages work at once under load. Each stage boundary still adds a network hop to every token, so PP adds a little latency per token.
Watch out Common rule of thumb: TP up to the GPU count of one node, then PP across nodes.
Mixture-of-experts models spread the experts A mixture-of-experts (MoE) model has many feed-forward "experts" per layer, and a router sends each token to only a few of them. Expert parallelism (EP) places different experts on different GPUs instead of slicing every expert.
Each layer then needs an all-to-all exchange: tokens travel to the GPUs holding their chosen experts and the results come back. The attention parts usually run with DP or TP. If one expert is popular, its GPU becomes the hot spot.
On Kubernetes, one replica becomes a group of Pods A replica that spans two nodes is two Pods that must start together. A LeaderWorkerSet (LWS) models this: each group has a leader Pod (for vLLM, the API server and the distributed runtime head, e.g. Ray) and worker Pods, and replicas counts whole groups.
The group is useless until every Pod is running. If only node A has free GPUs, the leader sits waiting and holds 4 GPUs for nothing. Gang scheduling (all or nothing), for example with Kueue or Volcano, avoids that partial placement.
Key idea Also keep a group inside one network domain (same rack or fabric). Topology-aware placement matters as much as GPU count.
One failed GPU stops the whole replica GPU 6 throws an error and the worker Pod on node B dies. Stage 2 is gone, so stage 1 has nobody to hand its activations to. Every request on this replica fails, even though 7 GPUs are healthy.
With restartPolicy RecreateGroupOnPodRestart, LWS recreates the whole group, which then reloads 140 GB of weights before it serves again. Keep at least two replicas behind the gateway so traffic moves to the other group meanwhile.
Watch out More GPUs per replica means more parts that can each take the replica down. Size the failure domain, not just the memory.
Split by width inside a node, by depth across nodes DP copies the model for throughput. TP splits each layer and needs a fast link, so it stays inside a node. PP splits the layer stack and crosses nodes with little traffic but adds bubbles and a hop. EP spreads MoE experts with all-to-all routing.
Splitting also frees memory for the KV cache. On Kubernetes, a multi-node replica is a LeaderWorkerSet group that must be scheduled and restarted as one unit.
Summary Start with the smallest split that fits weights plus enough KV cache, then add replicas (DP) for throughput.