Frontier Foundry

Inference & Serving: failure stories

48 failure stories · 7 concepts · 45 sources · newest Nov 25, 2026

What went wrong when people built with Inference Serving, Speculative Decoding, Quantization, KV Cache, On-Device & Local Models, and what each failure taught.

A failure story is a case a source reports first-hand or documents: what was built, what went wrong, and what the people involved changed. It is in the knowledge pack of the concept it teaches, citing the passage it comes from.

Inference Serving: what goes wrong

4 failure stories

The traffic spike on the placard endpoint

On an endpoint serving a small vision-language art project, a traffic spike raised time to first token as requests queued on the prefill side, then slowed every token as decodes contended for the GPU. New replicas came up, took load, and the queue fell back to baseline. Charles Frye, AI Engineer, Jun 29, 2026

LessonUnder load the queue shows first in time to first token; more replicas relieve it, after they start.

Slow first, then errors

Two public post-mortems two years apart: a day of unusually heavy traffic ran one lab's routing servers out of memory, and another lab's mid-tier model got slow, then returned errors for about 90 minutes, with too little compute for the demand. Neither follow-up asked for a faster engine; they asked for load shedding and earlier detection of capacity limits. Harshul Jain, AI Engineer, Nov 9, 2026

LessonDecide which requests get in before the engine is full: shed load at the door.

The gate that could not see its signal

An admission policy that watches KV cache use was run on a small model whose cache never filled (half a percent at peak) while the queue reached 24 requests. With the signal missing it read zero and admitted everything: the policy quietly became the no-admission baseline while the results looked normal. Harshul Jain, AI Engineer, Nov 9, 2026

LessonPick the signal that actually moves under load, and make a policy that cannot see its signal fail loudly.

Decode before prefill: one in a thousand answers is gibberish

A hybrid model served by a popular engine returned gibberish for about one request in a thousand, only under load and only in that engine, with no crash or warning. The scheduler had sent a request to decode before its prompt was read, so the kernels used another request's stale state. The fix marked a request with no computed tokens as prefill. Asaf Gardin, AI Engineer, Jul 2, 2026

LessonThe kernels were right and called at the wrong time for the wrong request; a scheduler bug looks like a model quality bug.

Inference Serving, explained: how it works, part by part.

Speculative Decoding: what goes wrong

4 failure stories

A drafter that was not trained for its target made the server slower

In a workshop load test a draft model was switched on beside a 4B target. Speed at concurrency one fell from 58 to about 16 tokens per second, and at concurrency 16 from 700 to 240. The instructors traced it to a draft model not trained correctly for this target, so the target kept rejecting its tokens. Khaja Omer, AI Engineer, Jun 29, 2026

LessonA drafter must be trained for the model it serves, at the same precision; otherwise acceptance is low and the second model only adds work.

A drafter that drifted from the target's real state

When block-diffusion drafting was ported to a TPU serving stack, the metadata sent to the drafter included the draft tokens still being verified. For this stateful drafter that inflated its sequence length and its internal state drifted from the target's. Google DeepMind, May 4, 2026

LessonGive a stateful drafter the true accepted token count, not the length including pending draft tokens; this re-alignment is what unlocked the reported speedups.

A claim of exact output broke under lower precision

An independent reproduction of one speculative method found that exact output matching held in all prompts at FP32 but only 45 percent of prompts at BF16, though downstream benchmark scores did not drop. Hugging Face, Sep 15, 2026

LessonCheck losslessness at the precision you serve, and judge exact match apart from task scores.

Acceptance fell as the model changed during reinforcement learning

Teams that used multi-token prediction to speed up rollouts in reinforcement-learning training saw the acceptance rate fall as training went on, which left the speedup small. The paper ties the fall to rising entropy in the model's output. Hugging Face, Jun 11, 2026

LessonAcceptance follows how predictable the target's output is; train the drafter against the target as it will be used.

Speculative Decoding, explained: how it works, part by part.

Quantization: what goes wrong

9 failure stories

A 4-bit KV cache that halved speed

The speaker says a team studied a 4-bit KV-cache method, found it needed extra work in the forward pass that cut decode tokens per second by more than half, and kept NVFP4 weights instead. Philip Kiely, AI Engineer, Jul 2, 2026

LessonA method that saves memory can cost more speed than it saves; measure both.

A 4-bit model fails at tool calls

A guest says customers with their own post-trained models need tool calling that parses JSON reliably, and that if the post-training or the quantization done after it is not good, the model struggles to read the JSON and call the tool. Latent Space, Aug 3, 2026

LessonCheck the rounded model on the tool calls and the benchmarks that matter, not on a loss number alone.

2-bit experts broke tool calling

Dan Woods first ran Qwen3.5-397B with 2-bit experts; Claude judged it indistinguishable from 4-bit, but Simon Willison found those evals thin, and the 2-bit version broke tool calling. The 4-bit upgrade (209GB, 4.36 tok/s) fixed it. Simon Willison, Mar 18, 2026

LessonTest tool calls and structured output, not only text quality, before shipping the lower bit width.

The model maker is blamed for a bad quantization

Two guests say that a customer who gets bad answers from a cloud provider's copy of an open model will not blame the provider for quantizing badly; they will blame the model's maker, which is why model makers check vendors. Latent Space, Aug 3, 2026

LessonCompare every quantized deployment with the original model before it serves users, because the damage lands on someone else's name.

QAD on a conservative recipe lowered the median

For the final Nemotron 3.5 Lightning checkpoint, quantized conservatively, PTQ already scored 99.24% median recovery and QAD scored 98.97%; QAD won on agentic and coding scores (Terminal-Bench 22.05 to 25.84) but AA-LCR fell from 50.00 to 48.50. NVIDIA, Aug 17, 2026

LessonDistillation pays when PTQ left a real gap; check long-context scores after healing.

FP8 LM head silently broke the speculative draft

On DGX Spark, FP8 LM-head quantization combined with MTP drafting made the draft read FP8 weights as BF16 without an error: accept length fell to 1.00 and throughput dropped below the unoptimized baseline. NVIDIA, Oct 27, 2026

LessonAfter combining a quantized layer with another optimization, check accept length or output tokens against the baseline.

Healing by retraining collapsed past its peak

The authors report that quantization-aware training reached its best average around step 700 and then collapsed, losing nearly 19 points by step 1,200, so a checkpoint has to be stopped early against a held-out signal. Hugging Face, Aug 25, 2026

LessonHealing by retraining costs many steps and needs an early stop; distilling a frozen teacher's logits reaches its peak in about a seventh of the steps and does not drift.

Lower weight error did not mean a better model

On Nemotron 3 Ultra, MSE calibration cut per-tensor weight error 27.1% against four-over-six but gave no consistent improvement on downstream benchmarks. NVIDIA, Jun 26, 2026

LessonDo not choose a scale method by reconstruction error alone; score candidates on the model's benchmarks.

Guarding the recurrence, paying in size

Early community 4-bit quantizations of Qwen3.8-27B kept the Gated DeltaNet layers in 8- or 16-bit, on the intuition that errors in a recurrence build up over long contexts. Hugging Face, Sep 4, 2026

LessonTest the intuition layer by layer: a full NVFP4 W4A4 build of all 496 linear layers matched BF16 within seed noise at 17.5 GiB, so the guard bought nothing but size.

Quantization, explained: how it works, part by part.

KV Cache: what goes wrong

the 10 that matter most of 14

The shelves fill before the users do

The workshop speaker works the numbers for a 7-billion-parameter model: each token costs 131 KB, 80 users at 4K context need 42 GB, and a 24 GB card is out of room. More users means a shorter context, or the answers are cut. Harshul Jain, AI Engineer, Sep 8, 2026

LessonCount the cache per user before promising users; then page, squeeze, offload or shorten.

Raising reasoning effort mid-task throws the cache away

In GLM-5.3-Flash the chat template writes the reasoning effort into the very first system block, ahead of the tools and conversation, so changing it from low to high makes the next request differ at almost the first token and the whole session is processed again, on a long run hundreds of thousands of tokens. Ollama blog, Nov 16, 2026

LessonPick an effort level at the start and keep it; start a fresh session or compact first if more thinking is needed.

Data-parallel attention hides the cache from the router

Serving MiniMax M3 on GB200 with data-parallel attention (TP4/EP4/DPA) at concurrency 32, only 28.8% of prompt tokens hit the cache against 96.0% theoretically, and throughput was 0.60x of plain TP4 at over 3x the p90 time to first token. Each data-parallel rank owns its own part of the pool, so a session landing on a different rank recomputes everything. SemiAnalysis, Aug 24, 2026

LessonCount each rank's cache as separate: route sessions to the rank that holds them, or skip data-parallel attention when sessions are long.

Short-lived window pages push out the durable prefix

In models with sliding-window attention, window pages and prefix pages come from one pool; the window turns over constantly while the prefix sits still, so under pressure the transient allocation displaces the durable one. Subagent bursts do the same to the main agent's cache when eviction is not tuned. SemiAnalysis, Aug 24, 2026

LessonKeep long-context checkpoints out of reach of window allocations (retain them selectively).

One sequence slot means one user

In the early DeepSeek V4 days an AMD engine hardcoded its cache to a single sequence slot, so a second concurrent request had nowhere to store its KV state; the batching machinery was not in place, so only batch size one could be benchmarked. SemiAnalysis, Jun 9, 2026

LessonCheck that the cache allocator hands out per-request slots or blocks before trusting a concurrency result.

A latent-attention model run as plain multi-head attention

A thread on GLM-4.7-Flash (30B-A3B, built on MLA to keep the cache small) asked why vLLM reported about 1 MB per token of context while a first-principles estimate was 54 KB: an MLA model run in a naive MHA regime stores the full keys and values and the cache explodes, so the 200k context that fits on paper does not fit. AINews, Jan 20, 2026

LessonCheck the engine's reported cache per token against the architecture's own figure before sizing a deployment.

A stuck connection keeps its blocks

A client that gives up but leaves its connection open keeps the GPU memory of its cache, because the server frees it only when the request finishes or the client disconnects. Harshul Jain, AI Engineer, Nov 9, 2026

LessonClose the connection when you give up, and admit work by what its cache will take.

An engine crash loses the cache and takes minutes to refill

When one of two GLM-5.2 workers was killed, a cold restart (load weights, size the KV cache, tune, capture CUDA graphs) took 283 seconds while the other worker absorbed all traffic. A preinitialized shadow engine took 7.3 seconds, but the KV cache is not yet preserved: the shadow materializes an empty cache and rebuilds it as traffic arrives. NVIDIA, Aug 25, 2026

LessonPlan for the cache to be lost with the engine process; keep a warm standby and expect extra prefill after failover.

Something that changes every turn sits at the top of the prompt

A harness that re-renders the system prompt with fresh values each turn (a current timestamp, the git status, a moving working directory) makes every turn a full re-read. Values fixed per session but different across sessions (user name, start date) do not hurt that session but stop new sessions from reusing a cached setup. Ollama blog, Nov 16, 2026

LessonKeep the system prompt identical everywhere and put such values in the task message, once.

A tool-call pause evicts the whole prefix

Under plain LRU, an agent that waits 2-30 seconds for a tool lets its blocks age out while other traffic fills the cache; when it resumes, the entire prefix is recomputed. LRU sees only recency, not that system prompts are reused every turn and reasoning tokens never. NVIDIA, Apr 17, 2026

LessonPin the prefix for the expected pause (a TTL), or give blocks a priority so low-value blocks go first.

KV Cache, explained: how it works, part by part, with all 14 failure stories.

On-Device & Local Models: what goes wrong

7 failure stories

The day-one 31B build that looped

Simon Willison ran Gemma 4 GGUFs in LM Studio on the day of release: the 2B, 4B and 26B-A4B worked, but the 31B build (19.89 GB) was broken and repeated the same line for every prompt. Simon Willison, Apr 2, 2026

LessonTest each size and each quantized build yourself before building on it; a family release does not mean every file works.

The phone too hot to hold

A team that ran language models on phones found energy was the big problem. A phone battery holds about 10 to 15 watt-hours and inference drew about 10 to 15 watts, so a charge lasted about an hour, and in benchmarks the phone got too hot to hold. Alex Cheema, AI Engineer, Apr 8, 2026

LessonA phone can run the model but not all the time. Budget energy and heat like memory, and decide which asks may wake the model.

The fast small model that picked the wrong tool

In Raschka’s five-task tool-use check, qwen3.6:35b passed 3 of 5 and gemma4:e2b passed 0 of 5. The small model chose the wrong tool or asked for clarification with enough context, even though it was fast. Sebastian Raschka, PhD, Ahead of AI, Jun 27, 2026

LessonSpeed is not fitness: write a personal set of tool-use tasks and test each local model before giving it an agent loop; constrain actions and add retries for the 3-of-5 kind.

The 4 GB model nobody asked for

In May 2026 users noticed Chrome had put a 4 GB Gemini Nano model on their disks and thought it was new. Google says it had been that size for two years; whether it is installed depends on hardware, account flags and whether a site used the on-device API, and the privacy wording on the page had changed. Ryan Whitwam, Ars Technica, May 8, 2026

LessonSay when you put a model on a user’s device, what it costs in storage, and give a toggle; Chrome deletes it when disk runs low and removes it when the setting is off.

The model that fit on paper and hit out-of-memory

A voice-and-vision robot assistant on a Jetson Orin Nano 8 GB could not run: the 2B vision model alone took 87% of RAM and the full pipeline needed more than the 7.6 GB that is usable after firmware. NVIDIA reached 4.5 GB by dropping the desktop, serving with llama.cpp at 4-bit and choosing light speech runtimes. NVIDIA, Apr 20, 2026

LessonBudget against usable memory, not the spec sheet, and cut in layers: OS services first, serving framework next, quantization last.

The offline agent that reached for the web

Coding offline with OpenCode and a local Qwen3.5 9B, anything needing a new package or a web lookup fails, and the agent first proposed pytest though the project used unittest. Rittika Jindal, Latent Space, Oct 27, 2026

LessonDownload dependencies and docs, launch the exact setup once while online, and give the agent the project's test command.

Download size is not the RAM bill

A 6.6 GB Qwen3.5 9B build is budgeted 12-16 GB of memory, and a 64k-token agent context may need more, so a model that downloads fine can still run out of room. Rittika Jindal, Latent Space, Oct 27, 2026

LessonBudget memory for weights plus context plus other apps, not the file size; watch memory pressure while the agent runs.

On-Device & Local Models, explained: how it works, part by part.

Token Economics & Pricing: what goes wrong

5 failure stories

The agent with the cache switched off

In a benchmarker's cost build-up, an agent task that costs about $21 with cached input costs over $200 when the cache hit share is zero, for example on a self-run server where prompt caching was never enabled. George Cameron, AI Engineer, Nov 3, 2026

LessonRead the cache hit share before the price per token: with long histories re-sent every turn, a miss is paid in full on every step.

The flat price that lost on hard work

A data platform's fixed AI prices overcharged simple workloads and made complex ones unprofitable. It split the credits for data from the credits for orchestration, kept fixed credit prices for bounded AI work and passed through actual token cost, with no markup, for variable reasoning models. Tugce Erten, a16z, Nov 2, 2026

LessonA price that ignores how much work a task takes is cost-blind; separate the bounded work from the volatile model input.

Eight agents, a hundred and fifty thousand a month

A team of five developers ran about eight agents continuously on a frontier model through its API, for about $150K a month and 116 billion tokens. Moving to a single open-model node under $10K a month showed no disruption to their work. Eugene Cheah, AI Engineer, Oct 17, 2026

LessonMeasure spend per key and per use case; a flat habit of using the biggest model for everything is where the bill hides.

The usage burn after a context change

A lab explained fixes after users saw severe usage burn in its coding tool: it rolled a context limit back from 372k to 272k tokens after billing and usage side effects and reverted some reasoning-effort changes. A community analysis pointed to long context, subagent spawning and fast mode together. AINews, Jul 13, 2026

LessonLong contexts, extra agents and faster modes multiply each other in a bill; change them one at a time and watch usage.

Companies that ran out of AI budget in months

Uber blew through its 2026 AI coding budget by April, Microsoft cancelled Claude Code licenses as token costs soared, and Meta shut down an internal token-spend leaderboard when costs put it on track for billions of dollars; Meta's Instagram head expects per-engineer caps once an engineer's burn rate nears their salary. TechCrunch, Jul 14, 2026

LessonBudget agent spend per task and per team before rollout; a leaderboard of tokens rewards burn, and a flat cap cannot tell waste from shipped work.

Token Economics & Pricing, explained: how it works, part by part.

Fast Inference: what goes wrong

5 failure stories

Four cards, twice the speed

To make one token four times faster, a model is split across four GPUs, each reading a quarter of the weights. But after the attention block and after the feed-forward block of every layer the cards must all-reduce, combining their partial results, so four times the compute gave only about twice the speed. Daniel Kim, AI Engineer, Jun 29, 2026

LessonThe pace is set by how much data has to move, not by how much compute is added; put the memory next to the compute instead.

Greedy drafting lost 11% at temperature 1

On the same GPU, switching the speculative drafter from probabilistic to greedy sampling dropped vLLM decode by 11% at temperature 1.0 (168.6 against about 190.4 tok/s); shorter draft counts were rejected at startup because the checkpoint fixes the block size. Hugging Face, Nov 25, 2026

LessonMatch the draft sampling method to the serving temperature and keep the draft length the checkpoint was trained for.

A 20,000 tok/s prefill that read 202

In a hill-climb on one GPU, the first 4K prefill timed 202 tokens/s instead of about 20K, because Triton was compiling kernels during the timed request; even after a warmup the first run in each job under-reported 32K prefill because of last-chunk shape differences. Hugging Face, Nov 25, 2026

LessonRun an unmeasured warmup across prompt lengths and concurrency before timing, and flag the first run of each job.

A draft model that made decoding slower

In a workshop, a 0.6-billion-parameter drafter proposing four tokens at a time was added to a 4-billion-parameter model. Single-request speed fell from 58 to 16 tokens per second, because the verifier kept rejecting the drafts and the draft compute was wasted. Khaja Omer, AI Engineer, Jun 29, 2026

LessonSpeculation only pays when the drafter is compatible and its acceptance rate is high; measure before and after.

One long prompt holds the whole line

Coding agents send prompts of 200,000 tokens or more. While one such prompt is being prefilled on a shared worker, no other prefill or decode request can get through, so people chatting in short sessions wait behind it. Daniel Kim, AI Engineer, Jun 29, 2026

LessonCut the long prefill into chunks, or give prefill its own pool so that decode never waits behind it.

Fast Inference, explained: how it works, part by part.

Other ways in

the same sources, cut another way

AI failure stories, in the other areas

16

Cite this page

the version of 2026-11-25
APA
Han, R. (2026, November 25). Inference & Serving: AI failure stories and lessons. Frontier Foundry. https://www.ryanhan.ai/failures/inference
BibTeX
@misc{han2026-failures-inference,
  author       = {Han, Ryan},
  title        = {{Inference & Serving: AI failure stories and lessons}},
  howpublished = {Frontier Foundry},
  year         = {2026},
  month        = nov,
  url          = {https://www.ryanhan.ai/failures/inference}
}