Pidoku

When More GPUs Make Things Worse

Module 14 Lesson 14.m 1h 15m Difficulty 4/5

Prerequisites 14.a, 14.b, 14.c, 14.d, 14.e, 14.j

The counterintuitive lesson of this module. Read it before your next capacity request. Each parallelism is taught in its own lesson (14.b–14.j); this one collects the ways each of them backfires, and the checks that catch them.


Before you start: words you need#

WordPlain meaning
Scaling efficiencyThroughput with N GPUs divided by N times the throughput of one unit. 100% means every added GPU pulls its full weight.
Marginal efficiencyWhat the last GPUs you added contributed, compared with what they would contribute on their own.
Running batchHow many sequences a replica actually decodes together in one step, on average.
Traffic-limitedThe batch is small because there are not enough requests, not because memory is full.
LockstepAll GPUs of a TP, PP or EP group must finish each step together; the slowest one sets the pace.
StragglerThe one slow GPU (throttled, faulty link, noisy neighbour) that the rest of a lockstep group waits for.
Cost per tokenGPU-hours spent divided by tokens served. The number that rises when GPUs are wasted (23.c).

1. What is it?#

Adding GPUs to a model deployment can make tokens more expensive, latency worse and outages more likely. Not always, but often enough that “add more GPUs” should never be a reflex.

The causes are few and repeatable: splitting traffic so thin that batches shrink; parallelism that communicates more than it computes; splits (pipeline, experts, disaggregation) that only pay at high load; and lockstep groups whose size multiplies the chance of a failure or a straggler.

Facts checked on 13 November 2026.


2. Why does it matter?#

GPUs are the largest line in an inference budget: in November 2026 an H100 rents for about $2–3 per hour and a B200 for about $6–10 on demand. A request for eight more GPUs is a decision worth tens of thousands of dollars a year, and it is usually made to fix a symptom (high TTFT, queueing) whose cause is somewhere else.

Most of the waste is invisible on the usual dashboards. Total throughput goes up a little when you add GPUs, so it looks like it worked; only throughput per GPU and running batch size show that the new GPUs are mostly idle.


3. Simple analogy#

A supermarket with too many checkouts open.

With four cashiers and a steady queue, every cashier is busy. Open twelve lanes for the same customers and each cashier serves a trickle: customers wait a little less, but you pay three times the wages for the same sales. Now make the cashiers work as a team who must all finish each customer together (lockstep): the slowest cashier sets everyone’s pace, and if one is off sick the whole team stops.


4. Tiny example: the wrong fix and the right one#

SITUATION   A 70B model on 8 H100s (one TP 8 replica). Traffic has doubled.
            p95 TTFT went from 600 ms to 3,200 ms. Proposal: "go to TP 16".

DIAGNOSIS   Where is the time?      queue wait is 2,700 ms of the 3,200 ms.
                                    → a capacity problem, not a speed problem.
            Running batch?          58 of the ~175 that memory allows.
            ITL?                    22 ms, within target.

WHY TP 16 IS WRONG   It speeds up each step a little, adds a slow cross-server all-reduce,
                     replicates the KV cache (8 KV heads, 16 GPUs: 14.l), and does nothing
                     for the queue. In 14.c's illustrative table it gives +37% throughput
                     for +100% GPUs.

THE RIGHT FIX        First check the free wins: prefix caching, FP8 weights and KV, chunked
                     prefill, which may remove the need for new GPUs. Then add a second
                     TP 8 replica behind a cache-aware router: +100% capacity for +100% GPUs,
                     ITL unchanged, queue gone.

5. Technical explanation#

1. Splitting traffic too thin (the most common)#

In decode, every step reads all of a replica’s weights, however many sequences are in the batch (12.d). The batch shares that read. So the weight bytes read per token fall as the batch grows, and rise when you divide the same traffic over more replicas:

70B model, FP8 weights (70 GB), 64 sequences of traffic

  1 replica  (TP 8):  one weight read of 70 GB per step for 64 tokens  → 1.1 GB per token
  4 replicas (TP 2):  four weight reads of 70 GB per step, 16 tokens each → 4.4 GB per token

Four times the memory traffic for the same tokens. Batching efficiency needs traffic concentration: every replica you add divides the traffic and lowers the batch. The same logic is the case for consolidation: five teams each running a lightly loaded replica of the same model pay for five weight reads per step where one or two shared replicas would do (21.f).

TP splits each layer and adds two all-reduces per layer (14.c). Their latency is roughly fixed, while each GPU’s share of the work shrinks as TP grows, so efficiency falls with degree:

  • Inside an NVLink domain up to TP 8 it is usually worth it for memory-bound decode: each GPU holds less weight, which also frees HBM for a larger batch.
  • Past the number of KV heads the cache is replicated: more GPUs, no more cache (14.l).
  • Across servers each all-reduce goes over the network, several times slower. TP 16 can be slower per step than TP 8 (section 6).
  • Without NVLink (PCIe-only servers, many cloud instance types) all-reduces cross PCIe and the host. If the model fits at a smaller TP, several smaller replicas usually beat one wide TP group.

3. Pipeline parallelism at low concurrency#

In serving, PP keeps one batch per stage in flight (14.d). That only fills the pipeline if there are enough sequences to make P batches of useful size. At low concurrency each of the P small batches still reads its stage’s weights for very few tokens, and the stages drift out of step. PP buys capacity for models that do not fit; it is not a throughput tool at low load.

4. Expert parallelism at low batch#

Wide EP gives each GPU fewer experts, so each step reads less weight per GPU (14.e). But every MoE layer adds a dispatch and a combine all-to-all, whose latency does not shrink with batch, and routing skew is worse in small batches: the GPU with the hottest expert sets the step time, and the rest wait at the barrier (14.h). Wide EP pays off at hundreds of sequences per GPU group; at a few dozen, a smaller EP or TP layout is faster and cheaper.

5. Splits that only pay at high load#

Disaggregated prefill and decode (14.j), encoder pools, and attention–FFN disaggregation all add a fixed cost (a transfer, a second set of weights, a minimum unit size) for a gain that grows with traffic. At low load the fixed cost wins. vLLM’s November 2026 encoder-disaggregation results show the pattern in one table: better at concurrency 64–128, break-even at 32, worse at 16 (24.h). Context parallelism is the same for short prompts: its ring or all-to-all costs more than the attention it splits (14.f).

6. Lockstep: stragglers and failures#

A TP, PP or EP group finishes each step only when every GPU has:

  • Stragglers. One GPU that is thermally throttled, has a degraded NVLink or shares a PCIe switch with a busy NIC slows the whole group. The more GPUs, the more likely one is slow.
  • Failures. If one GPU fails the group stops, and NCCL has no built-in recovery (14.c). With independent failures, a group of N GPUs fails about N times as often as one GPU. At scale this is real: Meta reported 419 unexpected interruptions in 54 days of training on 16,384 H100s (Llama 3 paper), about one every three hours.
  • Blast radius and recovery. A 72-GPU wide-EP deployment on an NVL72 rack is one failure domain. Restarting it means reloading the model on every GPU, which takes minutes (20.g, 23.e).

The diagnostic questions#

Before approving more GPUs, answer these:

1. What am I trying to improve?
     throughput / queueing → more replicas of an efficient size (14.b)
     ITL                   → more TP inside NVLink, if efficiency holds
     capacity (fit)        → quantize first, then TP, PP or EP
2. What is the running batch, and what does memory allow?
     much lower → traffic-limited: more GPUs make it worse; consolidate instead
3. What is throughput per GPU now, and what would it be after?
     below ~70% marginal efficiency → needs a reason
4. What is the interconnect for every group I am widening?
5. Have I taken the free wins? prefix caching and routing (21.h), FP8/FP4 weights and KV
   (13.e, 13.h), chunked prefill (12.k), speculative decoding (13.n)
6. What happens to failure rate and restart time with the bigger group?

Question 2 catches the most common error. A replica running at batch 6 when memory allows 60 does not need more GPUs; it needs more traffic, which means fewer replicas and better routing.


6. Under the hood: same traffic, five layouts#

The program models memory-bound decode for a 70B FP8 model on H100s: each step reads the replica’s weight share and the batch’s KV cache, plus two all-reduces per layer whose latency depends on TP (assumed values; TP 16 spans two servers). Traffic is a fixed number of concurrent sequences, split evenly across replicas.

Go
// moregpus.go — same traffic, different layouts: who wins on latency, who on cost?
package main

import "fmt"

type layout struct {
	replicas, tp int
	allReduceUs  float64 // latency of one all-reduce at this TP (assumed)
}

func main() {
	const weights = 70e9        // 70B dense model, FP8: bytes
	const kvPerToken = 163840.0 // FP8 KV, all layers, 8 KV heads
	const context = 4000.0      // average tokens of context per sequence
	const bw = 3.35e12 * 0.7    // achieved HBM bandwidth per GPU (H100), bytes/s
	const allReduces = 80 * 2   // two per layer
	const freeHBM = 80e9 - 4e9  // bytes per GPU after runtime overhead

	layouts := []layout{
		{4, 2, 8}, {2, 4, 10}, {1, 8, 14}, // 8 GPUs
		{2, 8, 14}, {1, 16, 35}, // 16 GPUs: TP 16 spans two servers
	}
	for _, users := range []float64{16, 64, 256} {
		fmt.Printf("%.0f concurrent sequences\n", users)
		fmt.Printf("  %-10s %5s %7s %9s %12s\n", "layout", "GPUs", "batch", "ITL ms", "tok/s/GPU")
		for _, l := range layouts {
			gpus := float64(l.replicas * l.tp)
			batch := users / float64(l.replicas)
			heads := float64(l.tp)
			if heads > 8 {
				heads = 8 // only 8 KV heads: beyond TP 8 they are replicated
			}
			kvBytes := batch * context * kvPerToken / heads
			if weights/float64(l.tp)+kvBytes > freeHBM {
				fmt.Printf("  %dx TP%-5d %5.0f %7.0f %9s %12s\n", l.replicas, l.tp, gpus, batch, "no fit", "-")
				continue
			}
			step := (weights/float64(l.tp)+kvBytes)/bw + allReduces*l.allReduceUs*1e-6
			if l.tp == 1 {
				step = (weights + kvBytes) / bw
			}
			perGPU := float64(l.replicas) * batch / step / gpus
			fmt.Printf("  %dx TP%-5d %5.0f %7.0f %9.1f %12.0f\n", l.replicas, l.tp, gpus, batch, step*1e3, perGPU)
		}
	}
}

Output:

16 concurrent sequences
  layout      GPUs   batch    ITL ms    tok/s/GPU
  4x TP2         8       4      16.8          119
  2x TP4         8       8       9.6          208
  1x TP8         8      16       6.5          306
  2x TP8        16       8       6.3          160
  1x TP16       16      16       8.0          125
64 concurrent sequences
  layout      GPUs   batch    ITL ms    tok/s/GPU
  4x TP2         8      16      18.4          434
  2x TP4         8      32      11.3          708
  1x TP8         8      64       8.2          975
  2x TP8        16      32       7.1          564
  1x TP16       16      64       9.7          412
256 concurrent sequences
  layout      GPUs   batch    ITL ms    tok/s/GPU
  4x TP2         8      64      25.1         1272
  2x TP4         8     128      18.0         1777
  1x TP8         8     256      14.9         2146
  2x TP8        16     128      10.4         1532
  1x TP16       16     256      16.4          975

How to read it:

  • Doubling the GPUs for the same traffic halves the value of each one. At 64 sequences, going from one TP 8 replica to two cuts ITL from 8.2 to 7.1 ms (13%) and tokens per GPU from 975 to 564: you pay double for a small latency gain. That trade can be right for a strict ITL target; it is wrong as a fix for anything else.
  • TP 16 across servers loses on both counts. It is slower per step than TP 8 (the cross-server all-reduces) and gets half the tokens per GPU.
  • Splitting 8 GPUs into more, smaller replicas lowers the batch per replica, so each step reads a full weight copy for fewer tokens; with fixed traffic both ITL and tokens per GPU get worse.
  • Load changes the scale but not the ranking. Tokens per GPU climb with traffic in every layout; the extra 8 GPUs are worth adding only when traffic grows enough to fill them.
  • The model ignores compute limits, kernel efficiency, prefill and scheduling overheads; the all-reduce latencies are assumptions. Measure your own curve (exercise 1).

7. Performance implications#

  • Throughput per GPU is the number that falls when you over-parallelise. Track it, not only total throughput.
  • Running batch size shows at once whether you are traffic-limited or memory-limited.
  • ITL gains from more GPUs shrink quickly: fixed communication latency becomes a larger share of a shorter step.
  • Tail latency grows with group size through stragglers, even when the median looks fine.

8. Production implications#

  • Put running batch and tokens per GPU on the main dashboard (22.j), next to TTFT and ITL.
  • Require an efficiency estimate in capacity requests: expected tokens per GPU before and after, and why the new layout is better than another replica.
  • Choose an efficient replica size, then scale with replicas, and only as traffic fills them; autoscale replicas down when it does not (23.d).
  • Consolidate under-used replicas of the same model behind one platform (21.f).
  • Keep TP inside an NVLink domain and at or below the KV-head count.
  • Turn on high-load features (wide EP, disaggregation, CP) only after measuring at your load.
  • Size failure domains deliberately: health-check every GPU in a group, set collective timeouts, and plan restart time for the largest group you run.

9. Common mistakes#

  1. Raising TP to fix a queue. Queues need capacity: another replica.
  2. Adding replicas when the running batch is already low. It lowers it further.
  3. Not measuring marginal efficiency before and after a change.
  4. TP over PCIe, or TP across servers, when the model fits in fewer GPUs.
  5. TP beyond the number of KV heads, replicating the cache.
  6. PP, wide EP or disaggregation at low traffic.
  7. Many lightly loaded replicas of the same model owned by different teams.
  8. Buying hardware before the free wins: prefix caching, quantization, chunked prefill, speculative decoding.
  9. Ignoring that a bigger lockstep group fails more often and restarts more slowly.

10. Hands-on exercise#

  1. Run moregpus.go. Find the concurrency at which 2x TP8 on 16 GPUs reaches the tokens per GPU that 1x TP8 gets at 64 sequences.
  2. For a model you can run, measure tokens per GPU and ITL at TP 1, 2, 4 and 8 (as far as your hardware goes) at two load levels. Where is your knee?
  3. With a fixed arrival rate, compare one replica with four replicas each taking a quarter of the traffic. Record running batch and tokens per GPU for both.
  4. On PCIe-only GPUs (or with NCCL_P2P_DISABLE=1 to force traffic off NVLink), compare TP 4 with four TP 1 replicas.
  5. Five teams each run a replica of the same model at 15 requests per second. Estimate the GPUs saved by consolidating onto shared replicas, including headroom for peaks.
  6. Answer the six diagnostic questions for a system you have access to. What is the right next step?

11. Interview questions#

  1. Give four ways adding GPUs can make an inference system worse.
  2. Why does dividing the same traffic across more replicas raise cost per token?
  3. Why does TP efficiency fall with degree, and why does it fall faster across servers?
  4. p95 TTFT is 3 s, the running batch is 6 out of a possible 60. What do you do?
  5. When is it right to add GPUs only to lower ITL?
  6. Why do wide EP and disaggregation help at high load and hurt at low load?
  7. How does group size affect failure rate and recovery time?
  8. What would you require in a capacity request before approving it?

12. Further reading#

Checked on 13 November 2026.

↑↓ navigate↵ openesc close

100% drag to pan · scroll or pinch to zoom · double-click to zoom in