Introduction
Between August and mid-September 2025, three unrelated bugs degraded a fraction of Claude’s answers. One sent some Sonnet 4 requests to servers configured for the upcoming 1M-token context window; in the worst hour, on 31 August, that was 16% of Sonnet 4 traffic, and because routing was sticky, a conversation that landed on the wrong servers tended to stay there.
Another, a misconfiguration tied to a runtime performance optimization on the Claude API’s TPU servers, gave high probability to tokens that should almost never appear, so English answers picked up Thai or Chinese characters.
The third was a latent miscompilation in XLA’s approximate top-k, woken up by a change to token selection. Anthropic’s postmortem lists what did not catch them: benchmarks, safety evaluations, performance metrics, spot checks and canary deployments. Users did.
I read that postmortem as the clearest public statement of what inference observability is for. The stack was instrumented, and the postmortem names the instruments that ran and stayed quiet.
What none of them did was watch the property that had changed, the distribution of tokens coming out of production, closely enough to see a shift that touched a minority of requests.
This post tries to map the whole problem, from the client’s stopwatch down to the HBM controller, for people who build or run LLM serving. I read the metrics code of vLLM and SGLang at commits from this week, replayed a week of Azure’s production LLM traffic (44.1 million requests) and an hour of Kimi’s, and built small models where no public data exists. Every number comes with its source or its formula.
Where something is modeled rather than measured, the text says so, and the dossier at the end grades each claim. I’m pretty sure some of it is wrong in ways that are hard to see from outside a production fleet, and I would like to hear where.
One claim runs through the whole piece, so here it is up front, where it can be argued with. Request metrics describe effects. GPU counters describe activity.
Causes live in between, in the engine step: the loop iteration that decides which tokens to compute, runs one forward pass and emits a token for every request that is decoding. Default exporters give you the first two layers in detail; the third is mostly available as opt-in logs and flags.
A second claim follows from where serving systems went in the last eighteen months. These metrics are no longer read only by people.
Routers poll them twenty times a second, autoscalers scale on them and admission controllers shed load on them, so a metric with fuzzy semantics has become a control bug rather than a cosmetic one.
1. Five clocks
Every latency number answers the question “from when to when”, and the most common reason two teams disagree about the same request is that they read different clocks. Figure 1 lays out five of them for one streamed request.

The client’s clock starts when the request leaves the client and stops when the first token arrives. It includes DNS and TLS on a new connection, the gateway, the router’s decision and whatever buffering sits between server and client.
Server-sent events are easy to buffer by accident: a reverse proxy with response buffering on can hold events back until a buffer fills or the response ends, and the server’s own TTFT will look perfect while the user waits.
vLLM’s TTFT starts later and stops earlier. In the v1 metrics code, arrival_time is a wall-clock timestamp taken by the frontend, the API server process, when the request arrives, and TTFT runs from there to the moment the frontend processes the engine output that carries the first token.
Everything between the client and the frontend is outside it. The queue, prefill and decode intervals come from a different place: engine-core timestamps, monotonic, taken in another process.
Queue time runs from the QUEUED event to the first SCHEDULED event, and the code deliberately ignores later scheduling events (”ignore preemptions”, says the comment), so a request that is preempted and re-queued does not get a second queue interval. That wait lands inside its prefill or decode time instead.
Inter-token latency is subtler than its name. vLLM appends one ITL sample each time a request receives an output from the engine core, computed as the gap since the previous output.
When an output carries several tokens, as it does with speculative decoding or multi-token prediction, the histogram records one gap for all of them. Turn speculation on and the ITL histogram moves up while users receive tokens faster. The per-request number, vllm:request_time_per_output_token_seconds, is decode time divided by the number of generated tokens minus one: a mean over the request, which hides any stall inside it.
OpenTelemetry’s semantic conventions for generative AI, which moved this year into their own repository and are still marked Development, define gen_ai.server.time_per_output_token the same per-request way: request duration minus time to first token, divided by the tokens after the first. The conventions have no per-gap metric.
A server that exports only the OTel set cannot show a three-second stall in the middle of an otherwise fast stream; the stall becomes a slightly worse mean.

The objectives most people quote come from MLPerf Inference v6.0, published on 1 April 2026.
For GPT-OSS-120B the interactive scenario requires a p99 TTFT of at most 2 s and a TPOT of at most 15 ms, the server scenario 3 s and 80 ms; for DeepSeek-R1 the new interactive scenario requires 1.5 s and 15 ms, the server scenario 2 s and 80 ms.
Fifteen milliseconds comes back in section 11, because it falls in an awkward place in the default histogram buckets.
Two habits follow. Put the client’s clock and the server’s clock on the same graph and alert on the gap between them: a growing difference is a network, proxy or router regression that no engine metric can see. And never compare two TTFTs without writing down which clock produced each.
2. The step
A serving engine is a loop. Each iteration decides how many tokens each running request gets this time (one for each decoding request, a chunk for each request still in prefill, all under a token budget), runs one forward pass, samples, and hands the new tokens to the frontend.
vLLM calls the iteration an engine step; SGLang counts scheduler iterations. On a busy node a step lasts from a few milliseconds to a few hundred, and everything a user experiences is a sum of steps: TTFT is the queue plus the steps that carry the prompt’s chunks, and every gap between tokens is one step.
The duration of a step is a function of its contents, and the contents are knowable. For a dense model, the floor on the step time is the larger of two terms, the time to stream the weights once plus the KV cache of every running sequence once, and the time to do the arithmetic:
t_step >= max( (W + sum_i L_i * k) / BW , (2 * P * T + attention_flops) / F )
Here W is weight bytes, L_i the context length of sequence i, k the KV bytes per token, BW the aggregate HBM bandwidth, P the parameter count, T the tokens processed in the step and F the dense peak FLOP rate.
A step that carries a large prefill chunk flips to the compute term. A step whose batch holds a few very long contexts is dominated by their KV reads. None of this is visible in a request histogram or in a GPU counter averaged over a second. All of it is visible in a record of what each step contained and how long it took.
The engines know this and expose pieces of it. vLLM’s core logger has vllm:iteration_tokens_total, a histogram of tokens per step. The opt-in flag --enable-logging-iteration-details logs the number of context and generation requests and tokens in each iteration and, where the worker measures it with CUDA events, the elapsed GPU time. --cudagraph-metrics reports padded against unpadded tokens, the waste from rounding a batch up to the nearest captured graph size.
SGLang exports sglang:scheduler_iterations_total, sglang:scheduler_idle_seconds_total, sglang:forward_execution_seconds_total and sglang:scheduler_stage_seconds_total, the last one split by how much CPU work overlapped GPU work. What neither exports by default is the step as a record: its composition, its duration and its timestamps, joined.
The engine model I use later (The section 4 describes it) shows why the record matters. Take a Llama-3.1-70B in FP8 on eight H100s with vLLM’s API-server defaults for that GPU, at most 1,024 sequences and 8,192 batched tokens per step, and feed it the busiest hour of Azure’s conversation trace.
At 2 requests per second the p99 gap between tokens is about 9 ms. From 20 requests per second up to overload it sits between 137 and 143 ms and barely moves, because the p99 gap is the step that carries a full 8,192-token prefill chunk next to the decodes: 8,192 tokens at 2 × 70.6 billion FLOPs each is 1.16 PFLOP, about 133 ms at the 55% of dense FP8 peak the model assumes.
In that regime the p99 ITL is a configuration constant multiplied by the model size, not a load signal. The load signals are the median gap and the mean step time, which in the model goes from 5.8 ms at 2 requests per second to 27 ms at 28 and 53 ms at 32.
The token budget is therefore part of any ITL objective. vLLM’s defaults for the OpenAI-compatible server are 8,192 batched tokens on H100 and H200 class GPUs and 16,384 on GPUs with at least 160 GB of memory, such as B200 and B300. Doubling the chunk doubles the worst gap a decoding user sees when a long prompt arrives.
A record per step is cheap compared with a record per token. A replica decoding 128 sequences at 25 ms per step emits 5,120 tokens per second and runs 40 steps per second.
A 64-byte record per token costs 328 KB/s; a 256-byte record per step costs 10 KB/s, 32 times less, and it keeps the causal structure (which requests shared the step) that per-token records lose unless they are joined back together. At the volume DeepSeek published for its V3 and R1 service in February 2025, 168 billion output tokens in 24 hours, or 1.94 million per second on average, per-token records would be 10.8 TB a day and per-step records at batch 128 about 336 GB.
Two kinds of trouble only show up at step granularity. The first is head-of-line blocking inside the batch. A vLLM issue (#37343) reported that one request asking for eight completions with 20 logprobs each blocked every co-scheduled request for 9 to 11 seconds.
The Ingero team reproduced it on vLLM 0.18.0 and traced it with eBPF probes on CUDA API calls and host scheduler events, the kind of evidence a utilization dashboard cannot produce.
The second is compilation on the critical path. vLLM now ships a JIT monitor (--jit-monitor-mode, warn or error) that fires when, after warmup, a kernel is compiled or autotuned at runtime: CuTe DSL compiles, Triton autotune cache misses, first-time @triton.jit compiles, TileLang and FlyDSL compiles.
The module’s docstring says it plainly: any such event after warmup means a cache miss or an unexpected input shape, and a latency spike. A 900 ms step caused by a Triton compile disappears inside a histogram that also holds ten thousand 20 ms steps. In a step log it is one line.
3. Speed of light
A metric is useful when you know what value it ought to have, and for decode the physics supplies one. The figure below applies the floor from the previous section to Llama-3.1-70B with FP8 weights and a BF16 KV cache, 4,096 tokens of context per sequence, on one eight-GPU node.

At 64 concurrent sequences the floor is 5.84 ms per step on H100, 4.08 ms on H200 and 2.45 ms on B200 and MI355X, which stream at the same 8 TB/s.
The curves end where the KV cache is full, taking 90% of HBM minus the weights: 376 sequences on H100, 703 on H200, 912 on B200 and 1,492 on MI355X, with throughput ceilings of 17.4, 26.6, 45.0 and 46.1 thousand tokens per second per node.
At this context length the compute term never wins. Each sequence added to the batch brings 1.34 GB of KV to read for about 152 GFLOP of work, 113 FLOP per byte, well under the 591 FLOP per byte at which an H100 becomes compute-bound in FP8.
That is why MFU is the wrong efficiency number for decode. The right one already has a name: Model Bandwidth Utilization, introduced by the MosaicML team at Databricks in 2023 as achieved memory bandwidth over peak, with achieved bandwidth computed as model bytes plus KV bytes, divided by the time per output token.
MBU and MFU together say how far a deployment is from its own ceiling, which is a different question from how busy it is.
Both are now counters you can scrape. vLLM’s --enable-mfu-metrics, off by default, turns on vllm:estimated_flops_per_gpu_total, vllm:estimated_read_bytes_per_gpu_total and vllm:estimated_write_bytes_per_gpu_total, filled by an analytic model in vllm/v1/metrics/perf.py that walks the attention, MLA and FFN or MoE layers of the running model for the batch the scheduler just built, including the byte width of the quantization in use.
SGLang exports the same three counters under its own prefix. Divide the rate() of the byte counters by the HBM peak and you have a live MBU; divide the FLOP counter by the dense peak and you have MFU. These are estimates of the work the model requires, not measurements of what the hardware did, which is what belongs in the numerator of an efficiency ratio.
The estimator makes choices worth knowing: GPTQ, AWQ and several other schemes are assumed to be 4-bit, because that is the common case.
The habit I would build on this is one ratio per replica: the floor step time implied by the counters, divided by the observed step time. When it drops after a deploy, something got slower that utilization will not show, such as a kernel regression, a lost CUDA graph, more CPU time per step or a slower collective. When it holds steady while latency rises, the deployment is just fuller.
The same arithmetic gives the batch at which decode stops being bandwidth-bound on the weights alone. With dense peak F, bandwidth B and b bytes per parameter it is B = (F / B) × (b / 2), and because F scales as 1/b across precisions on these chips, B barely moves with precision: about 295 on H100, 206 on H200, 281 on B200 and 312 on MI355X, at BF16, FP8 or FP4 alike.
Context pushes the real crossover far past those numbers, as the figure shows, so decode on this hardware is a memory problem at every batch size people actually run.
4. What the GPU counters say
The utilization in nvidia-smi, NVML’s gpu field and DCGM’s DCGM_FI_DEV_GPU_UTIL report the same quantity, and NVML defines it in one sentence: the percent of time over the past sample period during which one or more kernels was executing on the GPU, with a sample period between one second and a sixth of a second depending on the product. One kernel on one SM for the whole period reads as 100%.
In a continuous-batching engine there is a kernel running whenever at least one request is in flight, so this number saturates long before the machine does.
To see by how much, I built a step-level model of a vLLM-style engine: chunked prefill under an 8,192-token budget, at most 1,024 sequences, 16-token KV blocks, preemption by recompute when blocks run out, and a step time from the roofline of section 2 at 80% of HBM bandwidth and 55% of dense FP8 peak, plus 2 ms of fixed overhead per step.
The deployment is Llama-3.1-70B in FP8 with a BF16 KV cache on eight H100s, and the arrivals are the busiest hour of Azure’s 2024 conversation trace, randomly thinned to each target rate.
Figure 3 shows two workloads: the requests as recorded (1,596 prompt tokens and 97 output tokens on average in that hour), and the same requests with every output twelve times longer, a mean of 1,149 tokens, which is roughly what a reasoning model produces.

With answers as recorded, the busy fraction reaches 99% at 8 requests per second. TTFT p99 crosses 2 s at 30.5, so the GPU reports itself fully used at 26% of the load it can carry. With long answers the busy fraction is 100% from 2 requests per second and the knee is at 8.7.
Across the whole range between, the number says nothing about headroom. It cannot: it measures whether the GPU is doing anything, and a serving engine is always doing something.
The profiling counters that DCGM reads from the hardware are better, within limits. DCGM’s documentation defines SM activity (PROF_SM_ACTIVE, field 1002) as the share of time at least one warp was active on a multiprocessor, averaged across multiprocessors, and notes that warps waiting on memory count as active.
SM occupancy (1003) is resident warps as a fraction of the maximum. Tensor activity (1004) is the fraction of cycles the tensor pipe was active, and DRAM activity (1005) the fraction of cycles data moved to or from device memory.
The guidance attached to them is careful: an SM activity of 0.8 or higher is “necessary, but not sufficient” for effective use, under 0.5 likely indicates ineffective use, and higher occupancy does not necessarily mean better use.
For inference, DRAM activity is the hardware’s closest cousin of MBU and tensor activity the closest cousin of MFU, which makes them the right counters to put next to the estimated FLOP and byte counters from section 3. Two properties limit them. DCGM samples them at 1 Hz by default and at 100 ms at the fastest; some of them cannot be collected together because of hardware limits, so DCGM multiplexes them in groups, and its documentation warns that collection at higher frequencies returns zeroes.
Profiling also conflicts with Nsight, which is why DCGM has dcgmi profile --pause and --resume. A one-second sample on a busy node averages between ten and a couple of hundred steps, with prefill chunks and decode steps mixed in proportions that change with the traffic.
A DRAM activity of 0.6 can be a decode-bound engine at 80% for three quarters of the second and a prefill chunk for the rest, or something else entirely. Without the step log you cannot tell which.
The counters also changed names two weeks ago. DCGM-Exporter 4.9.0, released on 6 November 2026, switched its default counter file to a new naming scheme with units in the names: DCGM_FI_DEV_GPU_UTIL became DCGM_FI_DEV_GPU_UTIL_RATIO, DCGM_FI_DEV_POWER_USAGE became DCGM_FI_DEV_BOARD_POWER_WATTS, and the profiling fields became DCGM_FI_PROF_SM_UTIL_RATIO, DCGM_FI_PROF_TENSOR_UTIL_RATIO and DCGM_FI_PROF_DRAM_UTIL_RATIO.
The scale moved with the name. The exporter’s own metric contract bounds the old utilization field at 100 and the new one at 1, so an alert written as “utilization above 90” has nothing to match after an upgrade with default settings.
The same release turned on a cumulative energy counter, DCGM_FI_DEV_GPU_ENERGY_JOULES_TOTAL, by default, which matters in section 10. SM activity and SM occupancy are still commented out in the default file, as they were before the rename.
Health is the other half of what the GPU can tell you, and here the vendor has done the work. NVIDIA’s XID catalog now gives each error an immediate action and an investigatory action, which turns XIDs from log lines into inputs to automation.

The most cited public numbers on how often these things happen come from training, but the hardware is the same. During a 54-day snapshot of Llama 3 405B pre-training on up to 16,384 H100s, Meta recorded 466 job interruptions, 47 planned and 419 unexpected.
The paper’s Table 5 attributes 72 to HBM3, 19 to GPU SRAM, 17 to the GPU system processor, 6 to silent data corruption, 6 to thermal interface or sensor problems, 35 to network switches or cables, 54 to software bugs and 148 to faulty GPUs.
One detail in that table is worth knowing if you quote it: the counts add up to exactly 419, but the faulty-GPU row prints 30.1% next to 148, and 148 out of 419 is 35.3%. The percentage column sums to 94.9%. I would use the counts.
For inference the same failure rate means something different. If all 16,384 GPUs were in use for all 54 days, 419 unexpected interruptions is about 5 per 10,000 GPU-days, or one every two days or so for a fleet of a thousand GPUs.
In training, any one of them stops the whole job; in serving, it takes out one replica and the router drains around it. The observability problem moves away from “detect fast and restart” and toward the failures that do not stop anything: a GPU whose clocks sag because of a thermal or power limit (the same paper reports a diurnal 1 to 2% throughput swing it ties to time of day), an NVLink running degraded after a recovery, or a GPU that computes wrong answers without raising anything.
In a tensor-parallel group the step takes as long as its slowest rank, so a single slow GPU shows up as a slow replica with every GPU looking busy. The throttle counters that would explain it, time below application clocks by reason, are off in the default exporter file.
5. KV cache
The KV cache is the state that makes serving stateful, and its size per token is fixed by the architecture before any engineering happens. Figure 4 below derives it from the published configuration of eight models.

A GQA model with eight KV heads of dimension 128 stores 4 KiB per token per layer at BF16, so Llama-3.1-70B’s 80 layers cost 320 KiB per token and a single 131,072-token sequence 42.9 GB.
DeepSeek-V3’s MLA stores a 512-dimensional latent plus a 64-dimensional rotary key per layer, 68.6 KiB per token over 61 layers, 4.7 times less than the 70B model despite a much larger network. gpt-oss-120b keeps full attention on only half of its 36 layers, with a 128-token window on the rest.
Qwen3-Next-80B-A3B has full attention on 12 of 48 layers, 24 KiB per token, and its 36 Gated DeltaNet layers keep a fixed state per sequence instead: 32 value heads of 128 by 128 per layer, 36 MiB per sequence at BF16, the same memory as 1,536 tokens of its attention cache, paid by every sequence before it has generated anything.
Hybrid models make “KV usage” two numbers. One pool grows with tokens, the other with sequences, and they fill under different traffic. SGLang already reports them separately (sglang:token_usage next to sglang:mamba_usage, sglang:swa_token_usage for sliding-window pools), which is the right shape.
Even for a plain model, vllm:kv_cache_usage_perc is not what most dashboards label it. In vLLM’s block pool the usage is one minus free blocks over total blocks, and the free queue includes prefix-cached blocks that no running request references, because those are the eviction candidates.
The gauge therefore measures the working set pinned by running requests. A node whose cache is full of reusable prefixes and whose running requests use 30% of the blocks reports 30%.
That is the right input for “can I admit another request” and the wrong one for “how much am I caching”. SGLang’s split into used, available and evictable tokens (sglang:kv_used_tokens, sglang:kv_available_tokens, sglang:kv_evictable_tokens) answers both.
Reuse itself is measured in tokens. vllm:prefix_cache_queries and vllm:prefix_cache_hits count queried and cached prompt tokens, and vllm:prompt_tokens_cached_by_source splits the hits by the tier that served them: device HBM, host DRAM, disk, or another vLLM instance.
vLLM also has residency histograms behind --kv-cache-metrics, sampling 1% of blocks by default: how long a block lives from allocation to eviction (vllm:kv_block_lifetime_seconds), how long it sat idle before being evicted (vllm:kv_block_idle_before_evict_seconds), and the gap between consecutive accesses to the same block (vllm:kv_block_reuse_gap_seconds).
Those last two together answer the question cache sizing is about, and real traffic shows why. Mooncake, the serving system behind Moonshot’s Kimi, published one hour of production requests with each prompt reduced to a chain of 512-token block hashes, where equal hashes mean a reusable prefix.
I replayed the three FAST’25 workloads through an LRU block cache of varying size and through a time-to-live cache, counting a hit as the longest leading run of blocks still cached.
The replay only knows prompt blocks, so the KV of earlier answers that comes back in later turns is not counted, and every number below is a lower bound.

With unlimited capacity, 37.4% of conversation prompt tokens, 57.1% of tool and agent prompt tokens and 65.1% of the synthetic workload’s prompt tokens are reusable. Capacity decides how much of that you get.
All the free HBM of an 8×H200 node serving a 70B model with a BF16 cache, about 2.88 million tokens, captures 13.3% for conversation, against 37.4% possible, and 41.7% for tool and agent traffic, against 57.1%.
Reaching 90% of the possible reuse takes 15.9 million tokens of cache for conversation, 8.2 million for tool and agent and 11.5 million for the synthetic set. At 320 KiB per token, 15.9 million tokens is 5.2 TB; at DeepSeek-V3’s 68.6 KiB it is 1.1 TB. Neither fits in HBM, which is the whole argument for the DRAM and SSD tiers that Mooncake itself was built around.
The reason is in the reuse gaps. In the conversation workload the median gap between two uses of the same block is 114 seconds, the 75th percentile 267 seconds and the 90th 519 seconds: people read the answer and think before typing.
In the tool and agent workload half of the reuses happen within the same second, because parallel calls share a system prompt and tool definitions, and the 90th percentile is 243 seconds. A cache with a five-minute time-to-live keeps 79% of the conversation reuse an unlimited cache would get, 93% of the tool and agent reuse and 91% of the synthetic reuse.
If you have wondered why five minutes is a common default for API prompt caches, this is the shape of the answer: most reuse that is going to happen happens by then, and the tail beyond it is expensive to hold.
The production numbers that are public point the same way. DeepSeek reported that 342 billion of the 608 billion input tokens it served in one day, 56.3%, hit its on-disk KV cache.
Character.AI reported in 2024 a 95% cache rate for attention state kept in host memory between chat turns. The decision rule I would put on a dashboard is a comparison of two distributions vLLM now exports: if blocks are typically evicted after sitting idle for less time than the typical reuse gap, the cache is throwing away prefixes that would have come back, and the next tier will pay for itself.
If the idle time before eviction is far longer than the reuse gaps, the cache is bigger than the traffic needs.
6. Traffic
Everything above depends on what the traffic looks like, and the best public record of production LLM traffic is the one Azure released: every request to two of its LLM inference services over a week in May 2024, with arrival time, prompt tokens and output tokens.
That is 16.8 million code completion requests and 27.3 million conversation requests. Figure 6 shows the arrivals.

The two services live on different clocks. Code completion follows the working day: its hourly rate runs from 2.5 to 83.6 requests per second over the week, a 33-fold swing, with flat weekends; 40% of its minutes sit below half the weekly mean and 26% above one and a half times it.
Conversation traffic is steadier, between 21.0 and 74.8 requests per second by the hour, a 3.6-fold swing, with only 2.6% of minutes below half the mean.
Beyond the daily curve, the arrivals are close to random. Comparing each second’s count with a 60-second moving average, the variance divided by the mean is 1.11 for conversation and 1.42 for code, where a Poisson process gives 1.
The one-hour code trace Azure published in 2023 is the exception, at 10.6, which looks like a client submitting in batches. For observability this means two different instruments: minute-level rates for capacity, which move slowly and predictably, and second-level size variance, which is where tails come from.
In conversation traffic the per-second count of prompt tokens peaks at 5.3 times its mean while the per-second count of requests peaks at 3.9 times, because large prompts arrive at random too.

The sizes in figure number 7 are the bigger surprise. The median code request carries 1,930 prompt tokens and asks for 8 output tokens, 58% of code requests produce 10 tokens or fewer, and over the week prompt tokens outnumber output tokens 111 to 1.
Conversation is closer to what people imagine, with a median prompt of 928 tokens and a median answer of 41, and still 15 prompt tokens for every output token. A deployment serving the first is a prefill machine that happens to decode a little. One serving the second spends most of its steps decoding.
A single “tokens per second” panel adds the two together and describes neither, which is why both engines keep them apart (vllm:prompt_tokens and vllm:generation_tokens, and SGLang’s sglang:realtime_tokens_total with modes for computed prefill, cached prefill and decode).
Two practical consequences follow. TTFT for prefill-heavy traffic should be read per uncached prompt token, and vllm:request_prefill_kv_computed_tokens now supplies the denominator, because a TTFT histogram that mixes 200-token and 7,000-token prompts mostly measures the prompt mix. And the signal that warns you before latency degrades depends on which resource the traffic exhausts first. Please takle a look again at the figure 3.
With short answers, prefill compute binds: the mean step time and the queue rise steadily, while mean KV usage is still under 30% at the knee. With long answers, KV binds: mean KV usage climbs from 4.5% at 2 requests per second to 71% at 8.5 with its p99 at 87%, while TTFT p99 sits between 0.20 and 0.21 s from 7 to 8.5 requests per second and gives no warning at all.
Half a request per second later, at 9, the model preempts 182 requests per thousand and TTFT p99 is 36 seconds. There is no universal leading indicator; there is one per resource, and the useful alert is the highest of usage divided by capacity across them.
Autoscaling has moved toward demand-side signals for the same reason. llm-d’s documented setup scales model servers with the Kubernetes HPA on two metrics from its endpoint picker, the size of the flow-control queue and the number of running requests, rather than on anything the GPU reports.
Scaling up also takes time that is itself worth measuring: SGLang exports engine startup time by phase and CUDA graph capture time as metrics (sglang:startup_time_seconds, sglang:startup_cuda_graph_time_seconds), which is the data you need to know how far ahead of the daily curve to scale.
7. Routing on metrics
Until recently the reader of a model server’s /metrics endpoint was a person looking at a dashboard. The Gateway API Inference Extension changed that.
Its model server protocol states that the endpoint picker “scrapes metrics from the model servers to make optimal request scheduling decisions”, and it lists what a server must expose: a gauge of queued requests, a gauge of running requests and the KV cache utilization, with the metric to use for each of vLLM, Triton with TensorRT-LLM, trtllm-serve and SGLang.
Optional entries carry the block size and the number of HBM blocks for the prefix-aware scorer, and vLLM’s vllm:lora_requests_info gauge for adapter affinity.
The polling is fast. The reference endpoint picker refreshed metrics every 50 ms by default, an interval an early issue on the project already questioned, and the flow-control layer treats an endpoint whose metrics are older than 200 ms as having unknown capacity.
Its documented example of a saturation detector uses a queue depth of 2 and a KV cache utilization of 0.85 as thresholds. Notice how much rests on the semantics from the section 5: the utilization a vLLM server reports excludes evictable cached blocks, which makes it a sound measure of room to admit and no measure at all of where a prefix is cached. That is what the prefix scorer and KV events are for.
NVIDIA’s Dynamo router takes the event route for the cache part. vLLM can publish BlockStored, BlockRemoved and AllBlocksCleared events through its KV events publisher; Dynamo indexes them in a radix tree and, in its persistent mode, streams them through NATS JetStream so that every router replica consumes the same history.
Its routing cost is the prefill blocks a worker would have to compute, discounted by cache overlap, plus the decode blocks it already holds, and the worker is drawn by softmax sampling over those costs with a temperature, which the documentation describes as adding randomness to prevent worker saturation. When every worker is busy, the frontend sheds load with HTTP 529.
A router that adds randomness on purpose is a router that has met the herd effect. Michael Mitzenmacher described it in 2000: when load information is stale, sending each request to the server that looked least loaded at the last refresh sends a burst to the same server, and with enough staleness this is worse than choosing at random.
Figure nr. 8 reproduces the mechanism with sixteen processor-sharing replicas at 90% load.

The horizontal axis is the number of arrivals per replica between two refreshes, which is the dimensionless quantity that matters. With fresh information, least-loaded routing on the snapshot gives a mean response time of 1.6 service times, against about 10 for random routing.
At one arrival per replica per refresh it is 5.0. At three it is 11.4, worse than random. At thirty it is 95. Power of two choices on the same stale snapshot degrades gently, from 2.9 to 9.7. The best stale policy in the figure is the simplest: start from the snapshot and add one for every request the router itself sends until the next refresh. It stays at 2.2 at one arrival per replica per refresh and at 4.0 at thirty.
Translate the axis into production numbers. Eight replicas taking 75 requests per second with a 50 ms refresh are at 0.47, where the cost is small. The same replicas routed on a metric scraped by Prometheus every 15 seconds are at 141, deep in the region where the least-loaded rule is the worst choice available.
Real replicas soften the effect, because each one runs dozens to hundreds of sequences, so a few extra requests barely change its decode load. What they do not soften is prefill. The resource with the shortest time constant is the first to be herded: several long prompts that land on one replica in the same refresh window queue behind each other’s prefill, and their TTFTs add up while the rest of the pool idles.
The design rules I take from this are short. The router sits on the response path, so it can keep an exact count of what it sent and what finished, and it should, using scraped metrics only for what it cannot see (other routers, preemptions, cache contents).
Ties and near-ties should be broken at random. And the interval at which a dashboard scrapes and the interval at which a controller refreshes are different numbers that should never come from the same configuration line.
8. Many GPUs
Past one GPU, a step ends when its slowest participant finishes. In tensor parallelism that means a single slow rank, through thermals, a degraded link or a noisy neighbor on the host, shows up as a slow replica with every GPU in it reporting busy.
NCCL, where most of that time is spent, has grown its own observability over the last two years: a profiler plugin interface in 2.23, a reliability, availability and serviceability subsystem in 2.24 that can be queried for the health of running jobs and hangs, GPU kernel and network-plugin events in the profiler in 2.26, and in 2.28 the NCCL Inspector, a low-overhead always-on plugin that writes per-communicator and per-collective performance as JSON and, in a later mode, feeds Prometheus.
The RAS output gained JSON in 2.28.7.
Data-parallel attention adds a different imbalance, and SGLang now measures it directly. sglang:dp_attention_token_imbalance_ratio is, per synchronization step, the maximum number of tokens on any DP rank over the mean, 1.0 when balanced and equal to the number of ranks when one rank does everything, and sglang:dp_attention_sync_wait_seconds is the time each rank waits in the all-gather for the slowest one.
Those two numbers say what imbalance costs instead of leaving you to infer it from a tail.
Expert parallelism multiplies the problem. DeepSeek’s account of its V3 and R1 service is the most detailed public description of what a production MoE deployment has to balance.
Prefill runs in units of four nodes with experts spread 32 ways, decode in units of eighteen nodes spread 144 ways, with 32 redundant experts to absorb hot ones. It uses three separate load balancers with three objectives: core-attention computation and dispatched tokens per GPU in prefill, KV cache usage and request counts per GPU in decode, and the maximum dispatch receive load across GPUs for the experts.
Each objective is a metric someone has to produce. Over the 24 hours it reported, the service ran on an average of 226.75 nodes of eight H800s with a peak of 278, each node delivering about 73,700 input tokens per second in prefill (counting cache hits) or 14,800 output tokens per second in decode, at an average of 20 to 22 tokens per second per user and 4,989 tokens of KV cache behind each output token.
SGLang exports the balance of its expert placement as sglang:eplb_balancedness, which is the start of the same instrumentation in open source.
Prefill and decode disaggregation adds a network transfer to every request, and its cost is easy to compute. The KV cache of a prompt is its length times the bytes per token: an 8,192-token prompt is 2.68 GB for Llama-3.1-70B at BF16, 54 ms over a 400 Gb/s link, and 0.58 GB for DeepSeek-V3, 11.5 ms over the same link.
The mean conversation prompt in the Azure trace, 1,632 tokens, is 535 MB for the 70B model. The engines measure the transfer: vLLM’s NIXL connector exports transfer time, bytes moved, failed transfers and requests whose KV expired before it was read (vllm:nixl_xfer_time_seconds, vllm:nixl_bytes_transferred, vllm:nixl_num_failed_transfers, vllm:nixl_num_kv_expired_reqs), and vllm:num_requests_waiting_by_reason separates requests waiting for capacity from requests deferred by constraints such as a KV transfer in progress.
SGLang reports transfer latency and speed as histograms, along with bootstrap and allocation times and a gauge for every queue on both sides. In a disaggregated deployment TTFT is the prefill queue, the prefill, the transfer and the wait for a decode slot, and a TTFT measured only on the decode side misses most of it.
Speculative decoding is the last multi-GPU-shaped thing worth instrumenting, even when it runs on one GPU, because its benefit is a property of the traffic.
vLLM counts drafts, draft tokens, accepted tokens and accepted tokens by position (vllm:spec_decode_num_drafts, vllm:spec_decode_num_draft_tokens, vllm:spec_decode_num_accepted_tokens, vllm:spec_decode_num_accepted_tokens_per_pos) and can return a per-request summary of acceptance in the response body; SGLang exports the mean acceptance length and rate.
DeepSeek’s V3 report measured an acceptance rate between 85% and 90% for the second token of its multi-token prediction, enough for about 1.8 times the tokens per second. That holds for the topics it measured.
A change in the traffic mix, a new language or a new prompt template can move acceptance without anything else changing, so acceptance should be watched per traffic segment.
Remember too that with speculation on, the ITL histogram from the first section measures gaps between verification steps.
9. Correctness
The hardest thing to observe in an inference system is whether the answers are right, and the first obstacle is that the same request does not produce the same answer.
In September 2025 Thinking Machines ran 1,000 completions of the same prompt on Qwen3-235B-A22B at temperature zero and got 80 different completions. All of them agreed on the first 102 tokens. At token 103, 992 of them continued “Queens, New York” and 8 continued “New York City”.
The cause they identified is not the usual story about concurrency and floating point: the kernels are run-to-run deterministic, but their results depend on the batch they run in.
RMSNorm switches to split reductions at small batch sizes, matmuls choose split-K, stream-K or different tensor-core instructions depending on shape, and attention splits the KV dimension and treats cached and new tokens separately under chunked prefill and prefix caching.
Since a server’s batch depends on what everyone else is doing, so does your output. With batch-invariant kernels all 1,000 completions were identical. The cost, on Qwen3-8B, was 55 seconds instead of 26 for their benchmark with an unoptimized implementation, and 42 with a better attention kernel.
For monitoring this has a blunt consequence. A canary that sends fixed prompts at temperature zero and compares the text with a stored answer will alert on load changes, not on bugs, unless the server runs in a batch-invariant mode.
The comparisons that work are distributional: the log-probability the model assigns to a fixed reference continuation, the KL divergence between the next-token distributions of the old and new build on a fixed prompt set, and rates of token classes that should be rare.
The engines do count one kind of wrong output. vLLM has vllm:corrupted_requests, the number of requests with NaNs in the logits, computed only when VLLM_COMPUTE_NANS_IN_LOGITS=1 is set. It catches the loudest numerical failures. It wouldn’t have caught any of the three bugs in Anthropic’s postmortem, because none of them produced NaNs: they produced plausible tokens with the wrong probabilities.
Anthropic’s own list of changes is the right list: evaluations that separate working from broken implementations more reliably, quality evaluations run continuously on production systems and not only on internal ones, and tools to debug community-reported problems without compromising user privacy. It also added tests for unexpected character outputs to its deployment process, which is a token-class monitor by another name.
How much more sensitive is counting tokens than grading answers? Figure 9 is a model with stated assumptions, not a measurement. A bug sends some share of requests down a bad path where a normally rare class of tokens (say, characters from a script the request is not written in) goes from 1 per 100,000 tokens to 1 per 1,000.
A token monitor counts that class over all production output and runs a one-sided Poisson test with a false alarm probability of one in a million per test window. An evaluation suite runs 1,000 prompts every hour against production, with an 80% baseline pass rate, and affected answers lose 25 points.

The evaluation suite detects the bug within an hour only if at least 24.5% of requests are affected, within a day only above 5.2%, and within a week only above 2.0%. The token monitor on a deployment producing 10,000 tokens per second catches 1% of requests going bad in 10 minutes.
At 100,000 tokens per second it catches 0.1% in 73 minutes, and at a million tokens per second it catches 0.1% in 8 minutes and 0.01% in about half a day. Two things make this work.
Production traffic is a far larger sample than any eval suite, and a rate is a statistic you can compute without anyone reading the content, which matters when privacy rules keep engineers away from user data, as the postmortem says they did. The limitation is equally plain: this only catches bugs that move a token-level statistic.
A model that becomes subtly worse at arithmetic without emitting stranger tokens needs evals, and the baseline rates themselves move with the language mix of the hour, so the counts have to be stratified by request class to keep the false alarm rate honest.
The same arithmetic applies to the hardware. Six of the 419 unexpected interruptions in the Llama 3 snapshot were silent data corruption, the ones that were caught. In training, corruption tends to surface as a loss spike or a NaN; in inference it surfaces as a wrong answer that nobody flags. A fixed set of prompts run on each GPU in a batch-invariant mode, during idle steps, with the logits hashed or their distributions compared against a reference, turns the determinism problem around: once the kernels are batch invariant, any difference on a fixed input is a fault.
Finally, treat kernel, compiler and quantization changes like model changes. The third bug in the postmortem was a miscompilation that only appeared in some configurations, and Anthropic’s fix replaced the approximate top-k with an exact one at higher precision.
A deploy gate that compares next-token distributions between the old and new build on each hardware type, on a fixed prompt set, costs minutes of GPU time per release.
10. Cost and energy
Most inference is sold per token, and the cost of a token depends on who it shared the step with. Figure number ten takes a 64-sequence decode batch for Llama-3.1-70B on eight H100s, every sequence at 2,048 tokens of context, and replaces a growing number of them with 65,536-token sequences.

At the bandwidth floor, the all-short batch steps in 4.24 ms. With four long sequences in it the step takes 7.34 ms, 73% longer for every sequence in the batch, and with eight it takes 10.4 ms, 147% longer.
The short requests are paying for their neighbors in latency. On cost, split the step the way the hardware spends it, with the weights shared equally because every sequence needs them and each sequence’s KV reads charged to its owner: with four long sequences in the batch, each of them accounts for 11.5% of the step and each short one for 0.90%.
An equal split per token charges both 1.56%. The long request is undercharged 7.3 times and the short one overcharged by 73%.
Nothing at the request level can produce that attribution. It needs the composition of each step: who was in it, with how much context, and whether the step was bound by bandwidth or by compute. For a prefill-heavy step the same logic applies with FLOPs in place of bytes.
The analytic estimator vLLM uses for its MFU counters already computes these terms for every batch and sums them; keeping them per request is the same arithmetic with a different reduction.
Energy has the same structure with one more boundary problem. DCGM-Exporter now exports cumulative GPU energy in joules by default, so joules per token is a ratio of two counters over the same window, and it should be split into prefill and decode tokens for the reasons in section number 6.
The question is what the GPU counter leaves out. Google’s 2025 measurement of Gemini serving is the best public answer. With a boundary that includes the host and the idle capacity, the median Gemini Apps text prompt used 0.24 Wh: 0.14 Wh in active accelerators (58%), 0.06 Wh in host CPU and DRAM (25%), 0.02 Wh in idle machines provisioned for reliability and spikes (10%) and 0.02 Wh of data center overhead (8%).
Counting only active accelerator energy, as many published estimates do, gives 0.10 Wh, 2.4 times less. The same paper credits a 33-fold reduction in energy per median prompt over twelve months, 1.4 times of it from better machine utilization. A GPU energy counter sees 58% of the total, and the 10% spent on idle capacity is invisible to any per-request accounting by construction.
DeepSeek’s published numbers show what telemetry like this is for. With an average of 226.75 nodes of eight H800s over 24 hours and an assumed rental price of 2 dollars per GPU-hour, the day cost 87,072 dollars.
Priced entirely at R1’s list prices, the tokens served that day would have been worth 562,027 dollars, a theoretical cost profit margin of 545%, which DeepSeek itself said its actual revenue does not reach, because V3 is cheaper, the web and app are free and night-time discounts apply.
Whatever one thinks of the margin, the computation is a join of node counts, token counters split by cache hit and miss, and prices. An operator whose telemetry cannot produce it can’t price.
11. The cost of looking
Observability has a resolution and a price, and both are often worse than people assume. Start with the histograms. vLLM’s exporter uses classic Prometheus histograms with fixed boundaries, set in vllm/v1/metrics/buckets.py: 22 for TTFT, from 1 ms to 2,560 s, and 19 for inter-token latency, from 10 ms to 80 s.
Prometheus estimates a quantile from such a histogram by finding the bucket that contains it and interpolating linearly inside that bucket. Image number 11 computes the error of that estimate exactly, from bucket counts derived analytically from a lognormal latency distribution, so that no sampling noise is involved.

For inter-token latency the p99 estimate is off by up to 74%, and the error peaks just above the first boundary, at 10 ms, where the next boundary is 25 ms. A true p99 of 15 ms, the interactive TPOT limit in MLPerf v6.0, is reported as about 24 ms, 58% high.
For TTFT the error reaches 41% inside the interactive range. Burn-rate alerts are worse off than quantiles, because they compute the share of events under a threshold, and a threshold inside a bucket is interpolated too: with a median ITL of 11 ms, the true share of tokens under 15 ms is 81% and the buckets report 59%, a gap of 22 points that would page someone for an objective that is being met.
There are two fixes. vLLM accepts --custom-histogram-buckets, a JSON map from bucket family to boundaries, so you can put boundaries on your objectives; the flag’s own documentation notes that every extra bucket adds a time series per metric and label set.
The structural fix is Prometheus native histograms, which became a stable feature in Prometheus 3.8.0 at the end of 2025. They use exponential buckets whose resolution is set by a schema rather than chosen by hand; at schema 3 each bucket is 2^(1/8), about 9%, wider than the last, which bounds the relative error of any quantile estimate by the width of one bucket wherever the distribution sits.
Scraping them is still an explicit opt-in on the Prometheus side, and vLLM and SGLang create classic histograms with explicit boundaries, so nobody gets native ones from them by default yet.
Tracing is the next layer, and its price is per request. vLLM exports OpenTelemetry spans when --otlp-traces-endpoint is set, with attributes for time in queue, TTFT, end-to-end latency and, with --collect-detailed-traces, time in the scheduler and in model forward and execute.
The flag’s documentation warns that detailed timing for every request can be expensive and may block. Keep spans for the requests that matter: sample at the tail, by keeping the traces of requests whose TTFT or gaps exceeded an objective, rather than a uniform fraction that will mostly contain healthy requests.
Profilers cost the most and see the most. The numbers that one commercial continuous GPU profiler, Zymtrace, publishes for itself are a useful reference: its CUDA component is loaded into the workload through CUDA_INJECTION64_PATH and adds about 25 µs of CPU time per kernel launch, about a quarter of a CPU core per second at the launch rate it assumes, on top of one dedicated thread, while its host agent reports at most 1% CPU overhead in testing and up to 256 MB of memory.
Two structural facts matter more than the overhead. An injection library has to be in the process’s environment when it starts, so a GPU provider cannot profile a tenant’s process without the tenant’s cooperation. And device-level profiling collides with other profiling: DCGM’s documentation tells you to pause it before running Nsight.
Host-side eBPF probes on the CUDA driver and runtime libraries avoid both problems and see every launch and synchronization with a stack, which is how the vLLM blocking issue in section 2 was traced, at the price of seeing nothing inside the kernels.
Finally, the count. vLLM’s source tree contains 146 distinct metric names today, 42 of them in the core Prometheus logger; SGLang’s contains 187. Many are valuable and most are off by default or behind flags. The endpoint picker from the part 7 reads one of those endpoints twenty times a second per replica.
The useful discipline is the opposite of collecting everything: a small set that answers specific questions, at the right resolution, with the semantics written down.
12. A minimal set
If I had to instrument a new deployment this week, this is the set I would start from. It is short on purpose, and every line has a way to mislead that is worth writing next to it.
13. Where we might be wrong
The engine model in previous parts is a roofline with three constants (80% of bandwidth, 55% of FP8 peak, 2 ms per step) and a scheduler that is simpler than vLLM’s. Real engines overlap CPU and GPU work, use CUDA graphs, run asynchronous scheduling and pay for collectives that the model folds into a constant.
The ordering it shows, utilization saturating first and then the resource that actually binds, follows from the definitions and should hold. The positions of the knees, 30.5 and 8.7 requests per second, should not be quoted as properties of any real deployment.
The prefix reuse numbers are lower bounds for a reason stated there, and they come from Kimi’s traffic in 2024. Agentic traffic in late 2026 has longer contexts and more parallel calls, which probably raises both the reuse available and the capacity needed to keep it. The 512-token block granularity of the trace also hides partial-block reuse that a 16-token engine would capture.
The herd-effect model, uses single-server replicas with exponential job sizes. LLM replicas run many sequences at once, which dilutes the effect on request counts, and my argument that prefill is the resource that gets herded is qualitative. Someone with access to router logs could test it by comparing per-replica prefill tokens per refresh interval against TTFT.
The detection model in the section 9 assumes a stable baseline rate for the token class being counted. Real baselines move with the language and task mix by hour, and if they move enough, either the false alarm rate goes up or the thresholds have to widen and detection slows down. Stratifying by request class is the obvious answer; I have not measured how much it costs in sensitivity.
The attribution in the section number 10 charges KV reads to their owners and splits the weights equally. That’s actually defensible for a memory-bound step and wrong for a compute-bound one, and it ignores that a long-context request also takes KV capacity that could have admitted other requests. A complete scheme would charge for capacity held over time as well as for bytes moved.
Metric names and defaults are as of vLLM commit 2852f91 and SGLang commit 9866f0a, both from 19 to 20 November 2026, and DCGM-Exporter 4.9.0. All three move every week.
14. Predictions
These are dated so that they can be checked.
Appendix A: methods
Everything in this appendix runs on a laptop without a GPU. Source code was read at vLLM commit 2852f91 (20 November 2026), SGLang commit 9866f0a (19 November 2026), Gateway API Inference Extension commit 6faa78e and DCGM-Exporter release commit 4e663a5 (4.9.0, 6 November 2026).
Azure traces. The 2024 files AzureLLMInferenceTrace_code_1week.csv (16,803,695 rows, 10 to 16 May 2024) and AzureLLMInferenceTrace_conv_1week.csv (27,303,999 rows, 12 to 18 May 2024) contain an arrival timestamp, prompt tokens and generated tokens per request. Rates are counts in fixed windows aligned to the first request, dropping the last partial window. The local dispersion statistic compares each one-second count c_t with a centered 60-second moving average m_t and reports mean((c_t − m_t)^2) / mean(m_t); an inhomogeneous Poisson process with that rate curve gives about 1. Size quantiles use all rows; the CDF curves use a uniform sample of 400,000 rows per service.
Mooncake replay. Each FAST’25 trace line holds a timestamp in milliseconds, prompt and output lengths, and the prompt’s 512-token block hashes, where equal hashes mean an identical prefix. Requests are replayed in timestamp order. A request’s hit is the longest leading run of its blocks present in the cache, capped at its prompt length, and the hit rate is hit tokens over prompt tokens. The LRU cache touches a request’s blocks from last to first, so its prefix blocks end up most recently used and tail blocks are evicted first, which is how vLLM frees blocks. The TTL cache treats a block as present if it was used within the TTL. The historical arXiv trace in the same release has the same request count as the tool and agent workload and nearly identical statistics, so it is not counted separately.
def lru_hit_rate(reqs, capacity_blocks, block=512):
cache, hit, total = OrderedDict(), 0, 0
for r in sorted(reqs, key=lambda r: r["timestamp"]):
ids, n = r["hash_ids"], 0
while n < len(ids) and ids[n] in cache:
n += 1
hit += min(n * block, r["input_length"]); total += r["input_length"]
for b in reversed(ids): # prefix ends up most recent
cache[b] = True; cache.move_to_end(b)
while len(cache) > capacity_blocks:
cache.popitem(last=False)
return hit / total
KV bytes per token. For grouped-query attention, 2 × layers × KV heads × head dimension × bytes per element. For MLA, layers × (latent rank + rotary dimension) × bytes. For gpt-oss-120b only the 18 full-attention layers grow with context. For Qwen3-Next-80B-A3B only the 12 full-attention layers do; the 36 Gated DeltaNet layers each hold 32 value heads of a 128 by 128 state, 18.9 million elements per sequence, 36 MiB at BF16, an assumption about the state’s precision that some deployments double by keeping it in FP32.
Decode floor. For N GPUs with aggregate bandwidth N × B and dense FP8 peak N × F, the step time is at least max((W + Σ L_i k) / (N B), (2 P T + 4 · layers · heads · head_dim · Σ L_i) / (N F)). Datasheet constants: H100 SXM 3.35 TB/s and 1,979 TFLOP/s dense FP8; H200 4.8 TB/s and the same compute; HGX B200 8 TB/s and 4,500 TFLOP/s; MI355X 8 TB/s and 5,000 TFLOP/s. KV capacity is 90% of HBM minus FP8 weights (70.6 GB for Llama-3.1-70B).
Engine model. One step at a time: arrivals join a FCFS waiting queue; each running decode request takes one token and a new 16-token block when it crosses a block boundary; if blocks run out, the most recently admitted request is preempted, freed and pushed to the front of the queue to recompute its prompt plus the tokens it had generated; the remaining budget of 8,192 tokens goes first to unfinished prefills and then to new admissions while blocks and the 1,024-sequence limit allow. The step time is the floor above with 80% of HBM bandwidth and 55% of dense FP8 peak, plus 2 ms. Weights are Llama-3.1-70B in FP8 on eight H100s; the KV pool is 90% of HBM minus weights minus 25 GB, 91,629 blocks or 1.47 million tokens. Arrivals are the busiest hour of the 2024 conversation trace (269,238 requests, 74.8 per second), thinned at random to each rate. Each point runs 20 simulated minutes and discards the first 3 for short answers, or 25 minutes discarding the first 5 for long ones. The busy fraction is total step time over wall time; KV usage and queue length are weighted by step duration; requests that have not received a first token when the run ends count with the time they have waited so far.
Herd effect. Sixteen processor-sharing servers with exponential job sizes of mean 1 and Poisson arrivals at 0.9 × 16 per unit time, simulated event by event. The router’s snapshot of queue lengths is refreshed every T; with the “own increments” policy it adds one to its copy of a server’s queue for each job it sends until the next refresh. Mean response time comes from Little’s law over 200,000 arrivals after discarding the first 10%. Random routing has an exact answer, 1 / (1 − 0.9) = 10, against which the simulation’s noise can be read (it lands between 9.2 and 10.4).
Histogram error. For a lognormal latency with median m and shape σ (0.35 for gaps between tokens, 0.9 for TTFT), the fraction below each bucket boundary is computed from the CDF, so the counts carry no noise. The estimate follows Prometheus’ classic histogram_quantile: find the first bucket whose cumulative fraction reaches q, then interpolate linearly between its lower and upper bounds, with a lower bound of zero for the first bucket.
def histogram_quantile(q, bounds, cdf):
cum = [cdf(b) for b in bounds] + [1.0]
i = next(j for j, c in enumerate(cum) if c >= q)
if i == len(bounds):
return bounds[-1] # falls in +Inf
lo, clo = (0.0, 0.0) if i == 0 else (bounds[i - 1], cum[i - 1])
return lo + (bounds[i] - lo) * (q - clo) / (cum[i] - clo)
Detection. Token monitor: with R tokens per second, a baseline rate p0 of the marker class and a rate p1 on the affected share f of requests, a window of w minutes has a Poisson count with mean λ0 = 60 w R p0 without the bug and λ0 + 60 w R f (p1 − p0) with it. The threshold is the smallest count whose probability under λ0 is at most 10^-6, and the time to detect is the smallest w at which the bug pushes the count over it with probability 0.95. Evaluation suite: n = 1,000 prompts per hour with pass rate 0.8; affected answers lose 0.25; after k hours a one-sided test at α = 10^-3 with 95% power needs f × 0.25 ≥ (z_α + z_0.05) × sqrt(0.8 × 0.2 / (1,000 k)).
Attribution. For a decode step of n sequences, bytes = W + Σ L_i k. A request’s share is (W / n + L_i k) / bytes. The step time at the floor is bytes over the node’s bandwidth.
Appendix B: confidence dossier
Tiers: A, a primary source (code at a stated commit, official documentation, or the organization’s own paper, postmortem or report); B, a credible secondary source, or a company’s statement about its own product; C, an indirect or single weak source; D, an assumption that a model in this piece depends on; M, computed in this piece from public data, by measurement or by an explicit model.









99% utilization at a quarter of capacity is the most comfortable lie a dashboard can tell — looks like hard work, means the engine spent the step waiting. The line that actually got me is your second claim, though: routers polling a fuzzy metric twenty times a second. That's not observability anymore, that's an outage with a feedback loop attached.
On the elephant in the room — the Thai characters and the 16% of Sonnet traffic — the uncomfortable bit is that every instrument you listed was measuring something real. Nobody was watching the output distribution because it doesn't fit in a gauge. Do you think that check can run cheaply enough on live traffic to catch a minority-of-requests shift, or does it need the replay rig to be worth anything?
For the deploy gate in section 9, it's worth measuring the floor first: run the old build against itself at a few batch sizes and record the KL you get from batch variance alone. Without batch-invariant kernels that number isn't zero, so a threshold set below it fails every release.