A 120-billion-parameter model whose weights fit on a single 80 GB card, with room to spare. It serves thirteen people. This lesson is about the distance between those two sentences, and about the layer of machinery that has grown up to close it.
The previous lesson ended at a wall. A 72B model needs 145 GB of weights and the card holds 73.6. No context length helps. No batching helps.
So you add cards. That sounds like a procurement decision and it is not. It changes what the machine is: how the model is cut up, what traffic crosses which wire, and which requests can share work. Get it wrong in the obvious way and you buy hardware that serves nobody.
Pick a model and a number of cards. The plan follows vLLM’s rule — tensor parallel inside a node, pipeline parallel across nodes — and the arithmetic follows from each model’s own config. Watch what happens on two cards, and what stops happening past eight.
vllm serve Qwen/Qwen2.5-72B-Instruct \ --tensor-parallel-size 8 \ --pipeline-parallel-size 1
Honest limits, and this one matters. Weight bytes are measured exactly; the placement rule and the max(1, …) key-value floor are vLLM’s. Everything else is my arithmetic, not vLLM’s — vLLM publishes no memory formula at all and tells you to add GPUs until it fits, then read the real figure off the server’s startup log. So use this to rule configurations out, not to sign a purchase order. Cards are 80 GB with 92% usable, nodes are 8 cards, and every user is assumed to hold a full 8k context. Configs fetched 4 September 2026.
Tensor parallelism splits every layer across GPUs. Each card holds a slice of the same matrices, so every card works on every token. That means they must talk constantly — an all-reduce, twice per layer, on every single step.
Pipeline parallelism splits the layers instead. Card one holds the first forty layers, card two the next forty. The only traffic between them is a handoff of activations.
That difference decides the rule. The Megatron-LM authors measured it: tensor parallelism “breaks down for larger models” once it crosses a machine boundary, because the all-reduce leaves the fast interconnect for a slower network. vLLM says the same in one line — set tensor parallel size to the GPUs in a node, and pipeline parallel size to the number of nodes.
Pipelines are not free either. A stage waiting for its neighbour is idle. Megatron gives that idle share as (p−1)/m — stages minus one, over microbatches in flight. Four stages with sixteen microbatches is a fifth of your machine doing nothing.
It is a real trade, not a ranking. Their measured warning is worth carrying: a bad combination costs “up to 2× lower throughput, even with high-bandwidth network links between servers.”
One detail from the figure that surprises people, and that I only believe because I read the source. vLLM computes key-value heads per GPU as max(1, kv_heads / tp), with the comment that it replicates them “so each GPU has at least one KV head.” A model with four key-value heads on eight cards therefore stops sharding its cache and starts copying it. Grouped-query attention, the thing that made the model cheap on one card, is what caps it on many.
Now you have several replicas and something has to choose between them. The obvious answer is the one Kubernetes gives you for free, and it is wrong here for two independent reasons.
The first is variance. An ordinary web request costs roughly what its neighbour costs. LLM requests do not. A retrieval prompt is long input and short output; a reasoning prompt is the reverse. The llm-d authors describe the feedback loop this creates: an overloaded replica takes longer between tokens, which holds requests open longer, which loads it further.
The second is state. A replica that has already seen a prompt prefix holds its keys and values. Sending the next request with that prefix somewhere else does not just miss a cache. It recomputes the whole prefill from scratch. And it evicts something on the new replica on the way past. The figure below is that mechanism, stepped through.
Four tenants, each with a 6,000-token prompt prefix. Every pod can keep 2 prefixes cached. Step through the tape and watch what each routing rule does — then look at what it costs on the other side.
The other rule re-prefills 24,000 tokens over the same twelve requests. Cache-blind routing keeps evicting the prefix the next request needs — the same prefixes, duplicated and thrown away across every pod in turn.
Perfectly even, and that is round-robin's one real virtue. It is also why it is the default, and why replacing it is a trade rather than an upgrade.
Honest limits. This is a deterministic illustration of a mechanism, not a measurement — a fixed twelve-request tape, two cache slots per pod, and least-recently-used eviction. It shows why the two rules behave differently; it says nothing about how much they differ on your traffic. The measured comparisons, with a named control arm, are in the text below.
The llm-d team named this cache thrashing: cache-blind schedulers “constantly duplicate and evict the same prefixes across different pods, wasting GPU cycles on redundant prefill.”
Then there is the question of how much it is worth, and here you have to be careful, because the published numbers span two orders of magnitude.
The number I would quote in an interview comes from the one study that names its control arm — plain Kubernetes round-robin, router bypassed entirely. Against that baseline, cache-aware routing gave 2.9× on code generation and 2.0× on B2B SaaS traffic. On reasoning traffic it gave nothing at all, because that workload is decode-bound and there is no prefill to save. Their own summary: no single configuration wins across all three.
Compare that to the 170× in a sibling post from the same project. Both are honest; they measure different things. The 170× workload was deliberately built at six times a single pod’s capacity, precisely to force thrashing. That is a legitimate demonstration and a terrible planning input.
The upstream Kubernetes blog is the most useful calibration of all, because it undersells its own project. Its measured result was throughput “roughly on par with a standard Kubernetes Service”, with the improvement showing up only in p90 latency above 500 requests per second.
And cache affinity has a cost of its own. Google hit it in production. Routing strictly for cache hits, they write, “is dangerous; if everyone requests the same popular document, you create a node that gets overwhelmed.” They fixed it by weighting queue depth higher, to push traffic off hot nodes. That is the second panel in the figure above.
There is now a standard for this, and knowing its exact status is worth more than knowing its features. The Gateway API Inference Extension is an official Kubernetes project under the serving working group. It is generally available, and its API is at version one.
llm-d is a different proposition. It joined the CNCF in March 2026 at Sandbox level — which CNCF defines as experimental projects “not yet widely tested in production.” It is at version 0.9. Its backers are serious. It is still early.
The detail most write-ups miss is where the boundary sits. The pool API and the conformance tests stayed upstream in Kubernetes. The endpoint picker — the component that actually decides which replica gets your request — moved out into llm-d. So the interface is standard and governed, and the brain behind it is a Sandbox project that has already changed homes once.
That is a genuinely reasonable thing to adopt, and a bad thing to be surprised by. Build on the API. Treat the router as replaceable.
The last idea in this lesson follows straight from lesson 19. If prefill and decode are limited by different things, why run them on the same machine?
They interfere. A long prefill occupies the GPU while somebody else’s token stream waits, which shows up as a stutter in a stream that was smooth a second ago.
DistServe put the two phases on different GPUs and reported 7.4× more requests, or 12.6× tighter latency targets. It is peer-reviewed work, with the usual caveat that the abstract compares against “state-of-the-art systems” it does not name.
Splitwise adds the argument I find more interesting for anyone holding a budget. Token generation “does not require the compute capability of the latest GPUs, and can be run with lower power and cost.” Once the phases are separate, they can run on different hardware. The decode fleet does not need your newest cards.
DeepSeek published a day in the life of their fleet, which almost nobody does. They run prefill and decode disaggregated, and the two halves are not merely on different machines — they are configured differently, at expert-parallel width 32 for prefill and 144 for decode. Every node averaged 73.7 thousand input tokens per second while prefilling, against 14.8 thousand output tokens per second while decoding.
Note the cache number, though, because it is the one that would change my own priorities. More than half of all input tokens never needed prefilling at all — they came off disk. Before you spend a quarter separating your fleets, that is the cheaper lever. And read this as an existence proof rather than a comparison: there is no colocated control arm anywhere in the post, so it shows that disaggregation works at scale, not that it beat the alternative.
Nearly all guidance on this topic is written for one company size and then read by everyone. Pick yours — the list re-sorts, and what you should deliberately not build drops to the bottom.
Checking, every time, what the control arm was and on what hardware.
At this stage · Same. A team that repeats an unsourced multiplier in a planning doc will size hardware against it six months later.
Written arithmetic for how many cards a model needs, and why that number and not the next one down.
At this stage · Still skip, unless residency rules already forced you to self-host. If they did, this is the first thing to write down and the last thing anyone will remember to.
Sending a request to the replica that already holds its prompt prefix, rather than to the next one in the ring.
At this stage · Still skip. Two or three replicas behind a normal Service is fine, and the routing layer is a whole extra system to run and debug.
Running the two phases on different machines, so a long prompt cannot stall someone else's token stream.
At this stage · Still skip. Chunked prefill inside one engine solves most of the interference at a fraction of the operational cost.
Committing a serving architecture to the project rather than treating it as one option.
At this stage · Still skip. Learn the vocabulary so you can talk about it; do not build on it.
4 of 5 deliberately skipped at this stage. Knowing which controls you are choosing not to build, and being able to say why, is a stronger signal than having built all of them.
A 120B model lands on one 80 GB card and serves thirteen people at 8k context. A 72B model on two cards fits with 0.9 GB spare and serves nobody. Both boot. Both pass a smoke test. The number to plan against is free memory after weights, divided by cache per token.
One is an all-reduce twice per layer and needs the fast interconnect; the other is a single handoff and costs you a bubble of (p−1)/m instead. Getting the combination wrong is measured at up to half your throughput, even on good networks.
Against a named round-robin baseline it is worth two to three times on prefill-heavy traffic and nothing on decode-heavy traffic. And routing purely for cache affinity builds hotspots — the fix is to weight queue depth alongside it.
The same project published 2.0× and 170× within months, and both are honest. One used plain Kubernetes round-robin as its baseline; the other used a workload built at six times a pod's capacity. In this field the baseline is most of the number.
Primary sources wherever one exists. Where a claim is contested or vendor-reported, the lesson says so at the point it is made.
A training paper — say so if you cite it — but the source of the trade-off and the rule of thumb. Tensor parallelism “breaks down for larger models” across servers because the all-reduce leaves NVLink; pipeline parallelism “features cheaper point-to-point communication” and costs a bubble of (p−1)/m. Their measured warning: bad combinations “can lead to up to 2× lower throughput, even with high-bandwidth network links.”
The peer-reviewed case for splitting the phases across machines: 7.4× more requests or 12.6× tighter latency targets, by “assigning prefill and decoding computation to different GPUs, hence eliminating prefill-decoding interferences.” One gap worth noticing — the abstract compares against “state-of-the-art systems” without naming them.
The same idea with a hardware argument attached: token generation “does not require the compute capability of the latest GPUs, and can be run with lower power and cost.” So the decode fleet can be older, cheaper cards. Reported at 1.4× throughput for 20% less cost, or 2.35× at the same cost and power. Cite the ISCA version, not the 2025 IEEE Micro reprint.
Upstream, and the most conservative source here — worth more than the vendor posts precisely because it undersells itself. It states the problem plainly (“Traditional load balancers focused on HTTP path or round-robin lack the specialized capabilities needed”) and then reports its own result honestly: throughput “roughly on par with a standard Kubernetes Service”, with the win showing up only in p90 latency above 500 QPS.
Launched May 2025 by Red Hat with Google Cloud, IBM Research, NVIDIA and CoreWeave. Its “Why Standard Scale Out Falls Short” section is the best short statement of the mechanism anywhere, including the feedback loop: overload raises inter-token latency, which raises load, which raises latency. Ignore the homepage headline statistics — they carry no baseline, no hardware and no method.
The one routing benchmark on this list that names its control arm — “Kubernetes Service round-robin, bypassing the router entirely” — and publishes the case where the technique does nothing. 2.9× on code generation, 2.0× on B2B SaaS, and parity on reasoning traffic, because that workload is decode-bound. Its own conclusion: “No single configuration wins across all three workloads.”
Where the phrase cache thrashing comes from: “Cache-blind schedulers constantly duplicate and evict the same prefixes across different pods, wasting GPU cycles on redundant prefill.” It reports 170× on p90 time-to-first-token against a random scheduler — but read the setup first, because the workload is deliberately built at six times any single pod's capacity to force the effect.
A rare thing: a real fleet, described with real numbers, by the people running it. Different expert-parallel widths for the two phases (EP32 prefilling, EP144 decoding), 226.75 nodes on average over the measured day, 56.3% of 608B input tokens served from an on-disk KV cache. Read it as an existence proof, not a comparison — there is no colocated control arm anywhere in it.
Google measuring its own product, so weigh it accordingly — but the operational detail is the useful part. They state the trap directly: “routing strictly for cache affinity can be dangerous; if everyone requests the same popular document, you create a node that gets overwhelmed.” Their fix was a weighting change, from 3:3:2 to 3:5:2, to force the scheduler off hot nodes. Prefix cache hit rate went from 35% to 70%.
Read get_num_kv_heads. It returns max(1, total_num_kv_heads // tensor_parallel_size), with the comment “We will replicate the KV heads in the case where the number of KV heads is smaller than the tensor parallel size so each GPU has at least one KV head.” That one line is why splitting a model wider eventually stops buying you cache. Note also the branch above it: under multi-head latent attention decode collapses to a single head and this arithmetic does not apply.
The rule the placement figure follows, verbatim: “Set tensor_parallel_size to the number of GPUs per node and pipeline_parallel_size to the number of nodes.” With the caveat that matters if you rent cheap cards — “if the GPUs on the node do not have NVLINK interconnect (e.g. L40S), leverage pipeline parallelism instead of tensor parallelism.”
The most citable thing on this list, and the one to name in an interview. An official Kubernetes project under WG-Serving, GA, API at inference.networking.k8s.io/v1. Read the README notice too: the endpoint picker — the part that actually decides where a request goes — has moved out to llm-d, leaving the API and the conformance tests upstream. Anything written before mid-2026 describes a structure that no longer exists.
The maturity check to do before you put anything on a roadmap. “llm-d was accepted to CNCF on March 12, 2026 at the Sandbox maturity level” — which CNCF defines as experimental projects “not yet widely tested in production.” It is at v0.9, not 1.0, and every performance number published about it comes from a founding contributor.