servediff audit is for, measured on five full logsservediff diff answers "what changed between these two startups". servediff audit
answers the question that makes diff trustworthy: which lines did the parser fail to
read? Without it, a fact missing after an upgrade is indistinguishable from a setting the
server never printed — servediff reports both as <absent>, and that ambiguity is the
failure this tool exists to remove.
So the audit has one job: take a log nobody wrote rules for and separate
If that split is wrong, the report is useless in exactly the situation people need it: a startup that broke.
Four full startup logs, all of them live-server output rather than excerpts; a fifth arrived with vLLM 0.34 on a GPU-less box (see below). Counts are "shapes worth a look", the only group the report lists.
| log | engine · version | before 0.4.22 | after 0.4.25 |
|---|---|---|---|
vllm-0.28.0.log (died at startup, UVA unavailable) |
vLLM 0.28.0, 1 GPU, WSL2 | 146 | 0 |
vllm-0.28.0-v1runner.log (same flags, V1 model runner) |
vLLM 0.28.0 | 66 | 0 |
vllm-0.30.0.log (started, then killed) |
vLLM 0.30.0 | 89 | 0 |
vllm-0.23.1-tp8.log (from vllm#48591) |
vLLM 0.23.1, 8 GPUs, DP+EP, Eagle3 | 190 | 0 |
The last three shapes standing after 0.4.23 were real conditions rather than noise, so they became facts in 0.4.25 instead of being classified away:
| line | fact |
|---|---|
Casting torch.bfloat16 to torch.float32 |
model.cast — the checkpoint dtype was coerced; nothing in the flags says so and every result changes |
Module deep_gemm was found but failed to import / ImportError: libnvrtc.so.3 |
kernel.module_missing, kernel.missing_lib — an optional kernel library is installed but unimportable, which changes the kernel set a run can choose |
AsyncLLM output_handler failed / EngineDeadError |
startup: failed (output handler), startup.error |
A bare AssertionError under a failed import check stays noise: the detail is the line
above, which is now read, so counting it again would double-report one condition.
The fifth full log is a CPU-only vLLM 0.34 startup (vllm#67598, 173 lines, no CUDA at all).
At 0.4.63 it had four shapes left; 0.4.64 read them (cpu.numa_auto,
cpu.numa_membind, cpu.numa_migrate, cpu.set_num_threads) and it reports zero. It also
caught the audit lying: the "prose" classifier was eating engine messages that happen to be
English sentences — Padding mamba page size by 20.75% …, Encoder cache will be
initialized …, Explicitly set (4.0/30.69) GiB …, kv lcm block sizes 640 — so a log could
report nothing worth a look while four settings sat unread underneath. Those are facts now
and the rule only applies to lines with no log preamble.
The TP=8 log reaching zero is the stricter result: every one of those 190 lines was either a
traceback frame or a configuration line, and the configuration lines are now facts
(attn.backend, scheduler.chunked_prefill, scheduler.async, worker.mp_method,
cpu.torch_parallelism, spec_decode.eagle_layers, compile.cached_range,
sampling.topk_topp_backend, kernel.flashinfer_dtypes, nccl.version,
parallel.dp_leader, kernel.cuda_error, startup: failed (worker died)).
Everything above was measured on one machine's WSL2 runs — NVIDIA, CUDA, one GPU. So the
first honest test of the claim came from a log nobody here produced: the collect_env block
pasted into vllm#65034, a ROCm box
(AMD Radeon AI PRO R9700, torch 2.13.0+rocm10.1.0, vLLM 0.29.1.dev, Python 3.14). 176 lines.
audit said 175 lines worth a look, 112 shapes — essentially the whole block. Not a
single rule in the tool matched a single line of it. That is the failure mode the section
above says to expect, and it is also the strongest argument for the audit existing: a tool
whose noise table only describes its author's stack is one stack wide.
The fixes were both mechanical:
engine.version + engine.git_sha
(vLLM Version : 0.29.1.dev0+g98dff2a81.d20261002 (git sha: 98dff2a81, date: 20261002)),
env.torch, env.torch_rocm, env.rocm, env.hip, env.os, env.python,
gpu.model, env.pip.{torch,triton,transformers,numpy}, and
env.var.{TORCHINDUCTOR_CACHE_DIR,PYTORCH_ROCM_ARCH,MAX_JOBS,LD_LIBRARY_PATH,…}. These
are the facts that decide which kernels a run can even choose: a torch built against a
different ROCm is a different server, whatever the flags say.====), the CPU model and mitigation list, the wrapped CPU flag dump (including lines
that start at column 0 with 3dnowprefetch and carry digits), one
[pip3] amd-torch-device-gfx* wheel per GPU architecture (~40 identical lines), the
wrapped tail of LD_LIBRARY_PATH, CMake version :.Result: 158 unread lines, 95 shapes, nothing worth a look. Two regressions the same run caught, both now pinned by tests:
version X.Y.Z banner rule took CMake version : version 3.31.10 as the
engine version, so engine.version held two values from two different tools;vllm serve … \ + --flag value \) is the user's
shell history, not output — the server prints its args itself as "non-default args".One unfamiliar log proves the failure mode; it does not show its size. So the next pass was twelve more report pastes, picked from issue searches rather than from anything this machine ran: six vLLM and six SGLang.
| log | what it is | worth a look, before | after |
|---|---|---|---|
| vllm#65611 | eight MI355X cards, vLLM 0.33.0rc1 | 61 | 0 |
| vllm#65250 | gVisor, vLLM 0.30.0 | 51 | 0 |
| vllm#63505 | production image, vLLM 0.32.0, CUDA 13.0 | 45 | 0 |
| vllm#63536 | RTX PRO 5000, prose pasted between the logs | 44 | 0 |
| sglang#41654 | SGLang 0.5.20 environment dump | 39 | 0 |
| sglang#42684 | NIXL backend, scheduler dies at startup | 12 | 0 |
| sglang#43741 / #49206 / #48502 / #46756 | four shorter SGLang reports | 11 / 3 / 2 / 0 | 0 |
| vllm#66192 | GB200 NVL node, aarch64, SM100 | 9 | 0 |
| vllm#66193 | RTX PRO 6000 Blackwell, aggregate line repeats the card prefix | 13 | 0 |
The SGLang rows were measured on excerpts, and those excerpts were not in the repo — a number
nobody can re-run is a claim, not a measurement. They are fixtures now
(tests/fixtures/sglang-2026-10/, with PROVENANCE.md listing the code blocks each file was
assembled from). Reassembled from the full report bodies rather than only the environment
dumps, those six logs carried eight more shapes worth a look, and six of them were settings: the
mamba state cache (mamba.cache_size 63, mamba.state_gib 0.18/9.00), the concurrency it
caps (sched.max_running_requests 12 (capped by mamba cache: 63 slots, 5 per request)), the
per-rank raise to what decode needs (mamba.effective_size 72 (raised from 24, needed 72 on
DP3/TP3/EP3), and a different number on DP7/TP7/EP7 in the same launch), prefill/decode warmup
reaching ready (pd.warmup), the scheduler's own exit code and reason (scheduler.exit
code -3 (reason 11)), and an implicit FP8 KV scale (kv_cache.fp8_scaling defaulted to 1.0).
All six now audit to 0 with shapes worth a look under CI.
Three classes of miss, none of which is a single bad regex:
[pip3] nvidia-*== lines;
only a few wheels decide which kernels load. The rule now reads flashinfer-python too and
the rest of the inventory is noise. The same problem one level up: the block ends with the
environment, and the tool had whitelisted six variables out of it, so CUDA_VERSION,
TORCH_CUDA_ARCH_LIST, VLLM_BUILD_COMMIT, VLLM_IMAGE_TAG all read as "unread". It is a
general NAME=value rule now — minus CUDA_VISIBLE_DEVICES, NVIDIA_VISIBLE_DEVICES and
VLLM_CACHE_ROOT, which differ between two boxes started with identical flags and would
otherwise read as differences.ROCM Version : Could not collect matched a rule that
captured one token, so a CUDA box reported env.rocm = "Could". Worse than noise: two
CUDA boxes agreed on a value neither had, and diff could never show it. Could not
collect, N/A, Not Set and unknown now produce no fact at all.[2026-10-06 00:15:19] NIXL KVManager
initialized with backend: UCX, and its own name: value dump. The brackets were not
stripped, so every message behind them was content, and the dump was package inventory.
Both now go through the same normalisation parse uses — the audit had been re-implementing
the prefix handling on its own, which is how the two drifted apart.The machine-inventory half is the same idea as the ROCm block: an eight-card rocm-smi
weight / hops / link-type matrix, the GPU topology grid with its Legend:, GPU N: headers,
Hypervisor lines and the InfiniBand NIC0: mlx5_0 grid describe the box, not the run.
libcudnn*.so by absolute path — ldd output. Nine lines,
nine "settings". A bare shared-library path is now noise; an ImportError: libcudart.so.13:
cannot open shared object file is the opposite case and stays a fact.GPU models and configuration : and then one GPU 0: NVIDIA GB200 per card, so the
aggregate yielded gpu.model = "" — a fact that matched another log's empty string instead
of being absent. Empty is now an absence, and when the aggregate is silent the per-card
line supplies the model (with its own GPU 0: prefix removed, since some images paste the
whole card line after the colon).Two useful side effects on the way:
diff vllm-65250.log vllm-63505.log — a gVisor run against a production image — reports
23 differences / 5 identical, and the differences are the ones that decide what the
server can do: TORCH_CUDA_ARCH_LIST, VLLM_BUILD_COMMIT, VLLM_IMAGE_TAG, CUDA_HOME,
NVIDIA_REQUIRE_CUDA, plus OMP_NUM_THREADS / MKL_NUM_THREADS /
VLLM_USE_FLASHINFER_SAMPLER that only one side printed.diff sg-41654.log sg-42684.log reports 16 differences / 0 identical, including
startup: failed (scheduler) and TypeError: NixlKVManager.set_kv_buffer_tensors() got an
unexpected keyword argument 'slot_layer_ids' — a startup failure that no server_args
records.Zero here is a claim about what these twenty-one logs print, not about log space. The four
full logs above, two fixtures (a crashed startup and a clean 170-line run) and the fourteen
issue pastes all report nothing worth a look; a log from a stack none of them covers may
well print shapes no rule knows — and one did: the ROCm block started at 175 and needed two
rounds of work before it reached zero, and the pastes after it added four more classes of
miss before they did. That is precisely why the audit prints the second group at all, and why
servediff audit --max-shapes 20 exists as a gate: zero is measured per log, and the next
unfamiliar log is expected to break it.
Two separate bugs, both invisible on excerpt fixtures:
(EngineCore pid=3811) ERROR 10-28 11:26:34 [core.py:1346] File "/opt/vllm-env/…", line 34
and the patterns were anchored (^\s*File ", ^Traceback, \[shutdown\]). Anchored at
the start of a line that starts with (EngineCore. So a whole traceback counted as
shapes worth a look — the report became a stack trace.
The fix strips the preamble first — process, level, MM-DD HH:MM:SS (vLLM prints no
year, which is why the first attempt only halved the count), - INFO -,
module.py:line — and then matches the message. A third pass drops a trailing
# comment, because traceback echoes carry one (_find_cuda_home() # CUDA home).
Model loading took 1.14 GiB and 36.34 seconds — 0.23 prints no memory, and the rule
required it. On 0.23 both model_loading.gib and model_loading.seconds vanished, and
diff would have called that "not printed".Filesystem type for checkpoints: FUSE.OFS. — \w+ stopped at the dot and took the
checkpoint size and available RAM with it: one regex, three facts.tests/fixtures/vllm-crash-traceback.log). The test asserts the audit reports
nothing worth a look on it, and that RuntimeError: UVA is not available stays consumed
by the startup.error rule rather than appearing as unread.Using AttentionBackendEnum.FLASHINFER backend., Chunked prefill is enabled with
max_num_batched_tokens=2048., Model loading took 1.2 GiB and 1.2 seconds). Widening a
noise pattern has to break the suite — a rule that quietly hides a missed fact is worse
than a report that lists too much.servediff audit --max-shapes N turns this into a gate: it exits 1 when more shapes need
a look than you allow, so a pipeline fails on the upgrade that starts printing
configuration the tool still cannot read.The paste that finally showed where the report was wrong was not a log at all.
sglang#49123 pastes a 195-line benchmark harness — def run_marlin(...),
handles[f] = safe_open(...), a module docstring — and the audit called 38 of its lines
"worth a look", every one of them the script itself. A reader who opens that report learns
the tool cannot read a script: true, and useless.
The rule that fixes it has to know that a log line states something — name: value, or a
sentence. It never starts with def, never opens with a bare """, never ends in a trailing
comma. Seven conservative patterns on those shapes, plus one stateful pass over the prose
between two """, took that paste from 38 lines to 1; the one left is a lambda's
continuation, which genuinely is a line no rule can read.
The counter-example had to stay: a shell-style MAX_MODEL_LEN=4096 inside the same paste is
still read as env.var.MAX_MODEL_LEN. A script's code is noise; a script's call is not.
One bug surfaced while measuring it. The keyword pattern was written
^\s*(?:if |elif |else |…)\b — the space inside the alternative and \b after it, so
if "W4A4" in name: failed the boundary test (a space followed by a quote is not a word
boundary) and stayed in the report, while if x: did not. A pattern that is almost right is
the quietest kind of wrong: it looks like it covers the class and covers all but one member.
Everything above was measured on the fixtures this repo already carried, which is a closed loop: they were hand-copied from issue bodies, and a copy can carry the copyist's formatting. So eleven pastes were pulled fresh from vLLM and SGLang issues created after 2026-10-20, and audited blind.
Eight of eleven came back with lines worth a look. Two of those were script pastes covered above; the rest were real. The biggest one was not noise at all:
PyTorch version: 2.10.0+cpu <- worth a look, and it is a fact
OS: Debian GNU/Linux 12 (bookworm) (x86_64)
Python version: 3.12.15 (...) [GCC 12.2.0] (64-bit runtime)
HIP runtime version: N/A
Every collect_env rule was written ^PyTorch version\s+:\s*(\S+) — requiring whitespace
before the colon. ROCm's own dump aligns its colons with spaces, so the rule worked on that,
and vLLM's real collect_env prints PyTorch version: 2.10.0+cpu with none, so the rule was
dead on the output every bug report actually pastes. The audit reporting "worth a look" was
correct: the tool could not read the torch version on a CPU-only box.
That is the failure mode this whole writeup is about, one level up: a rule pinned to the
one copy of the wording its author happened to see. \s* on eight rules fixed it, and the
same eleven-log corpus dropped from eight files worth a look to two, both script pastes,
four lines.
The rest were inventory shapes the table had never seen: SGLang's macOS report (MPS
available, Apple Silicon, Metal Support, Unified Memory, CPU Cores (…)), a
multi-GPU row written GPU 0,1,2,3: NVIDIA H20, the container runtime's brand=…driver>=…
capability list, a topology header row, a reporter's parenthetical note, and a plugin source
paste (WTYPE = …, tensor.offset, (Path(…) / "config.json").write_text(). None of those
can be a log line, so each got one narrow pattern.
The last four lines were the same script in a harder form: an argument list standing alone
(8, 96, 128, conv_kernel_size=4, num_spec=5, groups, KVCacheLayout.BLHNC) and a
continuation that closes parentheses without starting a statement
(…routing_input_mode=…), wp))(ml)). A log line is a statement — it starts with a word and
says something about it — so it never consists of arguments alone. Those two patterns require
exactly that and nothing else: the first token must be a bare name, which is what keeps
NVIDIA_DRIVER_CAPABILITIES=compute,utility readable as a fact. Eleven pastes, then: none
worth a look.
Both corpora ship in the repo, so this section is rerunnable instead of believable:
servediff audit tests/fixtures (twenty-one logs) and
servediff audit tests/fixtures/held-out-2026-10 (the eleven pastes, with
PROVENANCE.md naming each issue). Check out v0.4.32 and run the second command to watch
it report eight of eleven. The two later directories work the same way: check out v0.4.38 and
servediff audit tests/fixtures/held-out-2026-11b reports seventeen of twenty-eight.
Eleven pastes from two weeks of one month is one point. The obvious doubt is that the noise table was bent until that particular set passed — each rule here was written in front of a paste that broke it, which is a good way to write a rule and an excellent way to overfit.
So the same collection was run again against issues created after 2026-11-01, a month later. Twelve blocks qualified; five were already in the October batch, so seven were new.
Six of the seven were clean on the first try, which is the useful half of the result: the table did generalize past the month it was written in. The seventh had one line:
run(a) if a.cmd == "run" else compare(a)
A conditional expression used as a statement, lifted out of a reproducer script pasted as the issue body. It picks between two values, so unlike a log line it has no subject to say anything about — the same principle as the argument lists above, one form further out.
The first pattern written for it was the obvious shape — contains if, contains else,
ends in ) — and it had to be thrown away, because it also swallowed a warning that merely
uses both words in a sentence:
Using FlashInfer all-reduce if available else falling back to the custom kernel
(set VLLM_ALLREDUCE_USE_FLASHINFER=0 to disable)
That line is a statement about a decision, and it is exactly what this tool exists to find.
The adopted pattern requires the line to begin with a call
(^[A-Za-z_][\w.]*\([^()]*\)\s+if\s+…\s+else\s+…\)$), which the sentence does not. It
matches one line across all four corpora — the one it was written for — and the guard test
pins the difference between the two.
Seven pastes, then: none worth a look. At 0.4.36 that directory reports one of seven.
A second clean month still leaves a way to be wrong: the two batches were collected by the calendar, and the rules were written in between, so a shape that appeared in neither window looks like no shape at all. So the same command was run once more, against issues created after 2026-11-05 — five days of output rather than a month, which is the harder test, because the rules had no time to learn anything about it.
Twenty-eight pastes qualified. Seventeen of them had shapes worth a look, 191 in total. A month's worth of rules, written against two windows, and five days defeated them.
The largest class was one table. collect_env lists every installed wheel twice — once as
[pip3] name==version, once as a [conda] row:
[conda] torch 2.13.0+cu130 pypi_0 pypi
[conda] nvidia-cublas 13.1.1.3 pypi_0 pypi
164 of the 191 shapes were rows of that table: four reports carried ~41 rows each. The pip form was covered because it is what the reporter's own tool printed; the conda form is the same inventory in a different column layout, and it had never been in the corpus before. Every row reads like a version fact — which is precisely why it drowns a report.
The rest was the same reproducer-script family the earlier batches taught, in shapes that
individual rules had each missed: an f-string, a tuple assignment with qualified names, a one-line
call chain, a nested call closed twice, a bare name closing a parenthesis, a lone [, an
annotation-only assignment, a != (…) continuation, a tuple of layer specs ending a for … in (
header, async def, and finally:.
And one pattern was written, measured, and thrown away again — the third time in this file:
^\(.*\)$ # any line that is one parenthesized thing
It covers the reproducer's Path expression, and it ate 31 real vLLM log lines, every one of
them a (EngineCore pid=…) entry. vLLM prefixes log entries with the process that emitted them,
so a parenthesis at the start of a line is normal there. The adopted pattern requires the closing
) to be followed by .name — how a value built in brackets is actually used — and the engine
line is now a control in the test suite, so the rejected version cannot come back quietly.
Twenty-eight pastes, then: none worth a look, and the four earlier corpora still at zero. Twenty-one fixtures, eleven October pastes, seven November pastes, twenty-eight from the first week of November, six logs from a real machine.
These four logs are from one machine's WSL2 runs plus one posted TP=8 log, plus eleven pastes
taken fresh from vLLM and SGLang issues in October 2026, seven more in November, and twenty-eight
from the first week of that month.
nvcc, other engines, and other parallelism layouts are unmeasured, and a log from a
different stack may well print shapes none of these rules know. That is what the audit is
for: run it on your own log, and paste the report into
the issue form
— the second group is the useful half.