Open Brain
AI EngineerVideoSource Linked

Two Bugs That Hid in Plain Sight: A vLLM Debugging Detective Story — Asaf Gardin & Yuval Belfer

Two rare vLLM failures produced confident gibberish without errors; cross-engine log-prob comparisons, constrained memory, and request IDs exposed scheduler and cache-index bugs.

AI Engineer · Sep 19, 2026
Open Source Open MarkdownOpen JSON
Source Summary

AI21 saw gibberish roughly **once per thousand prompts**, only in vLLM and under load. One bug scheduled decode before prefill for a fresh Mamba request, reusing stale state; another used a **32-bit cache index** that wrapped instead of raising an error.

Practical Implication

Build a deterministic log-prob comparison against a simpler inference engine, then vary memory pressure and rollout count to change the failure’s timing or location. Carry request identity into the model forward path so a bad output can be tied to scheduler and kernel metadata.

Agent-Ready Context
AI21 saw gibberish roughly **once per thousand prompts**, only in vLLM and under load. One bug scheduled decode before prefill for a fresh Mamba request, reusing stale state; another used a **32-bit cache index** that wrapped instead of raising an error.

Build a deterministic log-prob comparison against a simpler inference engine, then vary memory pressure and rollout count to change the failure’s timing or location. Carry request identity into the model forward path so a bad output can be tied to scheduler and kernel metadata.

Neither defect crashed the process, and ordinary quality checks could therefore misclassify corrupted inference as model behavior. The fixes were specific—a prefill guard and changing the index to size_t—but the broader debugging method matters most for stateful runtimes.
Connected Context · Feed7 Judgment

The debugging case shows that an evaluation stack can silently corrupt model output: rare scheduler-state and integer-width failures may look like ordinary model variance while passing crash-based health checks. It therefore adds differential log-prob testing, load-sensitive reproduction, and request-level runtime tracing as prerequisites for trustworthy agent benchmarks and production evaluations.

SWE-Serve: Benchmarking Agentic Engineering For Production Inference ServingThe hidden vLLM failures explain one way local or shallow checks can miss production-serving defects, reinforcing SWE-Serve’s need for end-to-end inference tests.Metrics Failure in LLM-Based Code Vulnerability Repair: An Empirical Study and a Change-Aware ScreenBoth show that a convenient success signal can reward or overlook broken behavior; execution-grounded repair evaluation also depends on verifying that the inference runtime itself is sound.EquivSVA: A Formally Verified Dataset of Behavioral Assertions Across Equivalent RTL ImplementationsDifferential comparison against a simpler engine parallels testing equivalent implementations: changing the implementation while preserving expected behavior exposes defects hidden by a single-system evaluation.When Will The Benchmaxxing Plague End? — Nick Heiner, Surge AIThe case supplies a concrete infrastructure failure behind opaque benchmark results, strengthening the candidate’s warning that reported scores are weak without inspectable test conditions and reliable verifiers.
Context Map
benchmarkcoding#agent-evals#agent-reliability#benchmark-integrity
Uncertainty
Neither defect crashed the process, and ordinary quality checks could therefore misclassify corrupted inference as model behavior. The fixes were specific—a prefill guard and changing the index to size_t—but the broader debugging method matters most for stateful runtimes.