Most of the Bugs I Fixed in LLM Serving Tools Returned a Wrong Answer Instead of an Error
Of 36 fixes of mine merged into vLLM and seven related projects from October 20 to November 2, 2026, 20 fixed code that returned a plausible wrong value or reported success, and 3 fixed code that lost its error. Here is what those bugs looked like.
Teams choose how to serve a language model by its numbers: tokens per second, latency under load, the accuracy of a quantized checkpoint. Those numbers come from open-source tools such as vLLM, the serving engine, and the benchmarking, routing and quantization projects around it, and each of these projects runs its tests on every proposed change. However, a test suite catches a crash without being told what to expect, but it catches a wrong value only when some test states the right one. For example, the benchmarking tool GuideLLM gave every worker process the same random seed. With its default ten workers, only 20 of 199 gaps between simulated request arrivals were distinct, and the benchmark still finished and reported its results. In short, these tools can be wrong without failing. Wrong numbers were also most of what I fixed in these projects: from October 20 to November 2, 2026, maintainers merged 36 of my fixes across eight of them. Sorted by what a user saw before each fix, 20 returned a plausible wrong value or reported success, 3 lost the error that occurred, and only 4 crashed or hung.
Seeds that repeat
Benchmarks draw request timing and request sizes from random samplers so that a run imitates real traffic, and a seed makes the run repeatable. GuideLLM derived each sampler's seed by adding a small number to the run's seed, so separate samplers often drew the same stream of random values. For example, the size of each simulated tool response used the same seed as the delay before it. Both samplers turned the same random values into their numbers, so the size rose and fell exactly with the delay. Over 200 conversations the correlation between size and delay was 1.000, and after the fix it was 0.024.
The worker bug in the opening had the same cause: ten workers, one seed, and each arrival gap repeated ten times. A third case involved passes. A GuideLLM sweep runs several benchmarks over one synthetic dataset, and each run through the dataset is a pass. The first pass's output lengths and the second pass's prompt lengths were the same eight numbers. Each seed was the run's seed plus the pass number plus a fixed offset for the sampler, so one sampler in one pass came to the same sum as another sampler in the next pass.
The last of these fixes derives every seed from three keys: the run's seed, the pass number, and a fixed id for each sampler. NumPy's SeedSequence hashes the keys into a 64-bit seed, so two samplers now collide only by a hash collision, not because two sums are equal. A new test checks 500 combinations of seed, pass and sampler and finds 500 distinct seeds. Even so, the fix cannot say which earlier benchmark results carried the correlation, since nothing in an old report records it.
Errors that turn into success
A failed operation that reports success, or that loses its error, sends the user looking in the wrong place, because the failure surfaces later and somewhere else. The S3 case below is one of the 20 wrong values, since it reported success, and the other two are among the 3 lost errors. For example, AIBrix, which runs vLLM in production, uploads large files to S3 in parts. A timeout on one of those parts was caught by an exception handler meant for a different case. The code then sent the rest of the data as one ordinary upload and returned True, so the stored object held only the data after the failed part. In another AIBrix case, a failed model download from S3 or Google Cloud Storage was caught and discarded. The engine then started with the bucket path as its model name, and the download error itself was lost. GuideLLM recorded server errors with only the HTTP status line: in a three-request reproduction, the server's message appeared 0 times in the output file before the fix and 6 times after.
Each fix narrows what the handler catches or passes the original error on. Each also adds a test that injects the failure, such as a fake S3 client whose second part times out. Each test covers the path that was reported, not every other place where a broad exception handler swallows an error.
Numbers that are slightly off
Some wrong values were off by an amount small enough to look like noise. The llm-d router sends each request to a server, and it prefers a server that already holds part of the request's KV cache. The KV cache is the attention keys and values computed for an earlier prompt with the same prefix. The router counts those cached blocks and weights a block held in CPU memory at 0.8. Ten such blocks summed to 7.999999999999999, and the code truncated that to 7, one block short. In the same router, a latency score meant to lie between 0 and 1 gave the best server 1.01 and a server one step behind it exactly 1.0. The scheduler clamped 1.01 down to 1.0, so the two servers tied.
The other two cases in this class sit closer to the model. In compressed-tensors, the format of the quantized checkpoints vLLM loads, a model with compressed weights decompresses them through a hook that runs before each forward pass. Saving a quantized model twice left two such hooks in place, so the weights were decompressed, and rescaled, again on every forward pass. In a small FP8 test model, the largest weight should have stayed at 0.0884, and after three forward passes it was 6.78e-13. The vLLM fix is the same kind of bug. With CUDA graphs on, the vision encoder of Qwen3-VL misaligned two halves of an index buffer each time it replayed a graph, so one image gave different encoder outputs on different replays. Another contributor measured it on an RTX 4090: the largest difference between two replays of the same image was 9.65625 before the fix and 0 after.
These bugs show only when a test compares a value with one computed another way: by hand, in eager mode, or from the exact sum. Each new test makes that comparison for the inputs it names. The router fix, for example, adds a margin of one millionth before truncating, and its pull request records that this margin itself fails once the sum reaches 278,655 blocks.
Settings that are ignored
Two fixes covered a setting the code never read. For example, the llm-d inference simulator, which imitates vLLM without a GPU, ignored the token-count totals set in its YAML configuration file, without an error, so its metrics endpoint lacked those lines. The speculators converter, which prepares draft models for speculative decoding, read a checkpoint's data type only from the key torch_dtype. Version 5 of the transformers library writes that key as dtype, so a bfloat16 checkpoint was converted to float32, twice the size, with no data type recorded. In both of these cases, the run succeeded and its output had the right shape.
The 36 fixes
The 36 fixes went to eight projects. Each pull request is public, and this search lists them.
| Project | What it does | Fixes |
|---|---|---|
| AIBrix | Infrastructure for running vLLM in production | 10 |
| GuideLLM | Benchmarks LLM serving | 9 |
| llm-d router | Picks a server for each request | 7 |
| llguidance | Constrains model output to a grammar | 3 |
| compressed-tensors | Format of the quantized checkpoints vLLM loads | 3 |
| llm-d inference simulator | Imitates vLLM without a GPU | 2 |
| speculators | Speculative decoding | 1 |
| vLLM | The serving engine | 1 |
I put each of the 36 fixes in one class by the symptom its pull request describes. Beyond the 20 wrong values, the 3 lost errors and the 4 crashes or hangs, 5 fixes made the code accept valid input it had rejected. The three llguidance fixes are of that kind: its grammar compiler rejected a JSON Schema length written as 2.0, and IPv6 addresses that end in an IPv4 part. Two more fixes made code reject invalid input it had accepted, one corrected documentation, and one stopped a cache from growing without bound.
These classes are my reading, and nobody else has checked them. The split also describes the bugs I fixed, not the bugs in these projects. A crash stops the people it hits, and they report it, so the bugs left for an outside contributor may lean toward the silent kind. That is a guess I have not tested.