Pidoku

Where Inference Is Heading

Module 1 Lesson 1.f 45 min Difficulty 2/5

Prerequisites 1.e


1. What is it?#

Lesson 1.e described inference as it is. This lesson describes the directions it is moving in, and the reasoning behind each one, so that you can judge new announcements yourself instead of memorising them. Every direction here follows from three constraints you will learn properly in Module 2:

  1. Decode is limited by memory bandwidth, not arithmetic. Each generated token reads the weights and the KV cache once.
  2. Memory capacity limits concurrency. The KV cache of every active request must live somewhere fast.
  3. Power and money are finite. Every token has a cost in joules and dollars.

Almost every trend below is an attack on one of those three. Facts checked on 11 November 2026; forecasts are labelled as forecasts.


2. Why does it matter?#

Engineers who understand why the field moves can tell a durable shift from a fashion. If you know that decode is bandwidth bound, you can predict that a chip with twice the FLOPs and the same memory bandwidth will barely speed up chat serving — before anyone publishes a benchmark. That skill is worth more than any list of products, because the list will be out of date in a year.


3. Simple analogy#

A city’s traffic problem is not solved by faster cars. It is solved by more lanes (bandwidth), more parking near where people go (memory capacity close to the compute), car-pooling (batching), and not driving trips you have already driven (caching). Inference is going through the same sequence of fixes.


4. Direction 1 — Split the work by its bottleneck (disaggregation)#

A request has two phases with opposite needs (12.c): prefill reads the whole prompt at once and is compute bound; decode generates one token at a time and is bandwidth bound. Running both on the same GPU makes them interfere: a long prefill stalls every decode in the batch.

The trend is to split them further and further:

flowchart LR
  A["2023<br/>one GPU does everything"] --> B["2024–25<br/>prefill and decode on<br/>separate GPU pools"]
  B --> C["2026<br/>decode on bandwidth-rich<br/>chips, prefill on<br/>compute-rich chips"]
  C --> D["Emerging<br/>attention and FFN layers<br/>on different hardware"]

  class A neutral
  class B compute
  class C queue
  class D warn
  • Prefill/decode disaggregation is now standard at scale: NVIDIA Dynamo and llm-d both manage prefill and decode pools as one unit (14.j, 21.j).
  • Heterogeneous disaggregation: NVIDIA’s Groq 3 LPX racks, built on SRAM-based chips, sit next to Rubin GPU racks as decode accelerators (7.e, 7.k). Google’s next TPU generation is split into a training chip and an inference chip.
  • Attention–FFN disaggregation: keep attention and its KV cache in HBM on GPUs, run the feed-forward (expert) layers elsewhere. NVIDIA describes this split for LPX; research systems explore it for MoE models.

What it costs: every split moves data between machines, so the network (Module 9) becomes part of the inference engine. Disaggregation is a networking problem as much as a scheduling one.


5. Direction 2 — Treat the KV cache as a data system#

The KV cache started as a buffer inside one GPU. It is becoming a distributed storage system with tiers, eviction policies and a network protocol:

TierTypical size per nodeBandwidthUsed for
GPU HBM80–288 GB per GPU3–22 TB/sthe requests running now
CPU DRAM1–2 TB~100–500 GB/srecently used prefixes, preempted requests
Local NVMe10–100 TB~10–50 GB/slong-lived shared prefixes
Remote / shared storageeffectively unlimitednetwork-boundcluster-wide prefix reuse

Tools: LMCache and Mooncake store and move KV blocks across tiers; NVIDIA NIXL moves them between GPUs and nodes over NVLink or RDMA; engines expose “KV connectors” to plug these in (19.b). The routing layer then sends each request to the replica that already holds its prefix (21.h).

Why this direction is durable: agent workloads re-send almost the same prompt on every turn (1.e). Recomputing it costs GPU time; storing it costs memory and bandwidth. As long as storage is cheaper than recomputation, caching wins — and it nearly always is for long prefixes.

Research to watch: non-prefix reuse (reusing cached KV for text that is not at the start of the prompt, as in CacheBlend), and loading cached KV through both prefill and decode machines to beat storage bandwidth limits (DualPath).


6. Direction 3 — Fewer bits per number#

Fewer bits per weight and per KV entry means fewer bytes to read per token, which directly attacks the bandwidth bottleneck.

  2022  FP16 / BF16   — the default
  2024  FP8           — standard on Hopper; ~2x less memory traffic, near-lossless
  2025  NVFP4 / MXFP4 — hardware support on Blackwell; weights first
  2026  FP4 KV cache  — NVFP4 KV cache lands in vLLM on several GPU generations
  next  mixed formats chosen per layer and per tensor; lower-bit KV with outlier handling

The limit is accuracy: each halving of precision needs better scaling tricks (block scales, rotation, outlier handling) to keep quality. The trend line is clear, but the safe default lags the frontier by a generation. In late 2026, FP8 is the safe default, FP4 weights are standard on Blackwell for many models, and FP4 KV cache should be validated on your own evaluations before rollout (13.g, 13.h).


7. Direction 4 — Generate more than one token per step#

Autoregressive decoding produces one token per forward pass, and each pass reads all the weights. If one pass could produce several tokens, the cost of reading the weights would be shared.

  • Speculative decoding guesses several tokens cheaply and verifies them in one pass (12.n, 13.n). It is now standard: EAGLE-3 draft heads, models with built-in multi-token prediction (MTP) heads, and newer drafters such as DFlash ship in vLLM and SGLang.
  • Diffusion language models generate a whole block of tokens in parallel and refine it over several steps. Commercial ones claim 4–10x faster single-request generation. They break the assumptions of today’s KV cache (cached keys and values change between refinement steps), so serving systems are being adapted for them (24.j).

8. Direction 5 — Cheaper attention for longer contexts#

Standard attention costs grow with context length: compute grows quadratically in prefill, and the KV cache grows linearly forever. Models are attacking this in three ways (12.g, 24.b):

  • Compress the cache: grouped-query attention (GQA) and multi-head latent attention (MLA) store far fewer bytes per token.
  • Read less of it: sparse attention reads only the most relevant earlier tokens.
  • Replace most of it: hybrid models use linear-attention or state-space layers with a fixed size state for most layers, and keep full attention in a few.

For you, the consequence is that engines must manage several kinds of cache in one model (17.i), and the “KV cache size per token” in your capacity maths depends heavily on the architecture.


9. Direction 6 — The rack is the computer#

The unit you buy, schedule and fail over is moving from a GPU to a server to a rack:

  • Scale-up domains are growing: 8 GPUs per NVLink domain (Hopper) → 72 (GB200/GB300 NVL72, Rubin NVL72) → hundreds (Rubin Ultra’s announced NVL576, 2027).
  • Open alternatives are arriving: UALink for scale-up, Ultra Ethernet for scale-out, and NVLink Fusion letting third-party chips join NVIDIA’s fabric (9.e).
  • Power density is rising: from ~40 kW racks to 120–200 kW and an announced ~600 kW, which forces liquid cooling and makes power, not chips, the limiting resource for new capacity (7.l).

For serving, a big scale-up domain means a trillion-parameter MoE model can be served with expert parallelism inside one rack, without slow cross-rack traffic on every layer (14.h).


10. Direction 7 — Hardware diversity#

For most of the LLM era, “inference hardware” meant NVIDIA. That is changing:

  • AMD’s MI355X and Helios racks compete on memory capacity and price per token; independent benchmarks show each vendor winning on some models and latency targets (7.h).
  • Google TPU and AWS Trainium serve a large share of their owners’ traffic and are sold to outside customers (7.i, 7.j).
  • SRAM-based machines (Groq, Cerebras) win on tokens per second per user (7.k).
  • Engines now target many backends: vLLM supports CUDA, ROCm, TPU, Intel XPU, Apple Silicon (vllm-metal) and others through plugins (19.f).

What this means for your career: skills that are tied to one vendor’s SDK age faster than skills that explain why a workload is fast — roofline thinking, memory accounting, and communication cost. Those apply to every chip.


11. Direction 8 — The platform becomes agent-aware#

Serving platforms are learning that requests are not independent. New features in 2026:

  • Session affinity and turn-aware scheduling: keep a conversation on the replica that holds its cache, and prioritise the next turn of an in-progress task (llm-d 1.0).
  • Fairness and flow control across tenants: stop one bursty agent fleet from starving interactive users (20.k, 21.f).
  • Stateful APIs: the Responses API style, where the server keeps conversation state and the client sends only the new turn, so the server can manage the cache.
  • Routing across models: send easy steps to small models and hard steps to large ones (21.k).

12. What is unlikely to change#

Forecasts are uncertain. These are not:

  • Bandwidth and capacity will stay the constraints. Compute has grown faster than memory bandwidth for decades. Every trend above is a way to live with that.
  • Batching will stay the central economic lever. Serving many users with one read of the weights is how inference pays for itself (2.d).
  • Measurement beats intuition. Every claim needs a benchmark at a stated latency target (22.g).

If you understand Modules 2, 4, 9 and 12 deeply, you can evaluate whatever comes next.


13. Hands-on exercise#

  1. Pick one announcement from the last month (a chip, an engine release or a paper). Write which of the three constraints in section 1 it attacks, and what it costs in exchange.
  2. Using the tier table in section 5, estimate how long it takes to load a 50,000-token prefix whose KV cache is 3.5 GB from (a) CPU DRAM at 200 GB/s and (b) NVMe at 20 GB/s. Compare with recomputing it on a GPU that prefills at 20,000 tokens per second. When is caching worth it?
  3. Revisit this lesson after finishing Module 14 and mark each direction “understood” or “not yet”.

14. Interview questions#

  1. Why does disaggregation turn inference into a networking problem?
  2. Why are SRAM-based chips good at decode and poor at serving very large models alone?
  3. What has to be true for storing a KV cache on SSD to beat recomputing it?
  4. Why do diffusion language models not fit the standard KV cache design?
  5. A new GPU doubles FP8 FLOPs but keeps the same HBM bandwidth. What happens to chat decode throughput, and to long-prompt prefill?

Sources#

Checked on 11 November 2026. Items marked as forecasts are vendor roadmaps, not shipped products.

↑↓ navigate↵ openesc close

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