The next AI inference architecture, clearly explained
Token generation is limited by memory bandwidth, not compute.
To produce each new token, the system reads the model weights and the relevant KV cache from memory. At low batch sizes, there is very little arithmetic for all that data movement, so adding compute alone does not speed up decode.
That limit matters even more for agents.
In an analysis of SWE-bench Pro and Terminal-Bench runs, model inference accounted for 71% to 98% of agent runtime. Even with extensive prefix caching, generating the answer one token at a time remained a large part of that cost.
Peak HBM bandwidth is a theoretical figure. During decode, only part of it is spent reading weights and KV cache. SambaNova measures that fraction as model bandwidth utilization (MBU), and higher MBU means higher decode throughput on the same memory system.
And their Hot Chips 2026 talk goes deeper on this, especially how much of that bandwidth stays useful as the system scales.
On a GPU, a decoder also passes through multiple kernels. Intermediate results can be written to memory, then read by the next operation. Kernel fusion, FlashAttention, and CUDA Graphs reduce parts of this overhead, but the model still has to keep data moving through the full decode path.
SambaNova’s Reconfigurable Dataflow Unit (RDU) avoids that round trip with a dataflow design:
↳ Each transformer operation (RMSNorm, attention, projection, FFN) is mapped to its own region of the chip and wired into one pipeline.
↳ Activations move between stages through on-chip SRAM, and the whole chain runs as a single kernel.
↳ While one stage computes, data for the next stage is already being fetched.
Weights and the KV cache stay in HBM and DDR tiers, placed by how often they’re accessed.
On MiniMax M2.7, SambaNova has shown up to 4x faster time to first token than GPUs.
We also ran the same coding-agent task on GLM 5.3 against a standard GPU setup. The video below shows the difference:
You can learn more about SambaNova’s dataflow architecture here →
Thanks to SambaNova for partnering today!
KV cache-aware load balancing, clearly explained:
If you prefer to watch, this video explains everything about KV cache-aware load balancing (watch it at 1.5x speed for the best experience):
The text below covers the same topic if you prefer to read:
The least busy replica isn’t always the fastest place to send an LLM request.
Another replica may already have the KV cache for most of the prompt which can be reused, while the quieter replica would have to compute it again.
So a naive load balancer that only counts requests misses this difference.
Agents repeatedly send the same instructions, tool definitions, and conversation history. Prefill processes that input before the model generates its answer.
Prefix caching allows later requests to reuse attention keys and values computed for an identical prefix. That reuse depends on the cached state being available to the worker serving the request.
Suppose two replicas serve the same model. Replica A has cached three blocks of a shared prefix. Replica B has none.
A new request contains those three blocks plus one new block. Replica A can reuse the prefix and process the new block while Replica B must process the whole prompt.
A KV-aware router considers both cached state and existing workload when choosing a replica.
It estimates how much of the prompt each worker can reuse and how much work that worker already has. In an event-based design, workers report cache additions and evictions to keep the router’s index updated.
Block hashes can identify matching prefixes. These hashes incorporate the preceding context because a block’s KV state depends on the tokens before it.
For a request beginning with A, B, and C, cached state for that sequence can be reused when D is appended.
Changing A to X breaks the match, even if B and C contain the same text. Their preceding context has changed.
This gives prompt layout a practical role. Keeping stable instructions and tool definitions before changing request content creates more opportunities for reuse, provided the model and other cache settings are compatible.
Always choosing the largest cache match can overload a worker.
A popular prefix attracts requests to the same replica. Eventually, waiting in its queue may take longer than computing the full prompt on another replica.
The router has to compare the prefill work saved with the extra waiting introduced.
Consider the illustrative scores in the overview. Replica 1 has one block left to process and a load cost of six, giving seven.
Replica 2 needs to process four blocks and has a load cost of four, giving eight.
Replica 3 also has the prefix cached, but its load cost of fourteen raises its score to fifteen.
Replica 1 wins despite carrying more existing load than Replica 2. Its cache reuse makes up for that difference.
These scores aren’t milliseconds. They illustrate the decision; production routers use their own cost models and weights. NVIDIA Dynamo documents how it combines reusable cache state with projected workload.
The router’s cache view also needs maintenance. Workers evict blocks to free memory, restart, and receive new requests between routing decisions.
Implementations handle this differently. The original SGLang v0.4 router maintained an approximate cache view rather than requiring workers to synchronize their cache state.
Its published shared-prefix benchmark reported cache hits increasing from 20% to 75%. Throughput rose from 82,665 to 158,596 tokens per second, roughly 1.9x.
That workload contained balanced groups of long shared prefixes. Unrelated prompts offer less reusable work, so the same improvement shouldn’t be assumed for other traffic.
For a deployment test, compare routing policies using the same traffic and hardware.
Measure time to first token, including the slower requests, alongside throughput and prefill work avoided. More cache hits aren’t an improvement if requests spend longer waiting.
Routing also doesn’t move cached tensors by itself. If a deployment transfers KV state between workers, that requires a separate mechanism.
If you want to learn the full LLMOps lifecycle, we have covered every bit of it in the LLMOps course, starting from fundamentals to production:
Read Part 2 on understanding the core building blocks of LLMs →
Read Part 3 on the key components of LLMs, focusing on the attention mechanism, architectures like transformers and mixture-of-experts, and the fundamentals of pretraining and fine-tuning →
Read Part 4 on decoding strategies, generation parameters, best practices, and the broader lifecycle of LLM-based applications →
Read Part 5 on context + prompt engineering from a system perspective, in-context learning, types of prompts, and different prompting techniques →
Read Part 6 on prompt versioning, defensive prompting, and techniques like verbalized sampling, role prompting, and more →
Read Part 7 on context engineering, covering context types, context construction principles, and retrieval-centric techniques for building high-signal inputs →
Read Part 8 on memory, dynamic, and temporal context in LLM systems, covering short and long-term memory, dynamic context injection, and common failure modes in agentic applications →
Read Part 9 on evaluation methods and approaches for LLM-based applications, primarily focusing on building a strong understanding of the fundamental concepts →
Read Part 10 on evaluation benchmarks in LLM applications, with task-specific methodologies, and the core tooling for evaluation of LLM apps →
Read Part 11 on evaluation of multi-turn systems, tool use evaluations, tracing, and red teaming →
Read Part 12 on LLM fine-tuning, parameter-efficient methods like LoRA and QLoRA, and alignment techniques such as RLHF, DPO, and GRPO →
Read Part 13 on LLM inference optimization, KV caching, PagedAttention, FlashAttention, speculative decoding, and model parallelism →
Read Part 14 on the fundamentals of LLM serving, including API-based access, inference with vLLM, and practical decisions →
👉 Over to you: What are some other differences between LLM inference and regular inference?
Good day!















