Skip to main content Switch to mobile version servediff 0.4.129 Diff what your vLLM / SGLang server actually ran with: auto-selected backends, CUDA graphs, startup failures, dependency versions.
pip install servediff==0.4.129 Copy PIP instructions
One startup log in — the settings the server actually ran with come out. servediff reads a vLLM or SGLang startup log into named facts (kv_cache.tokens, gpu.utilization_effective, backend.moe), and reading two of them turns "same flags, different server" into a table of what changed.
That is servediff demo, run on the two logs bundled in the package: same flags, and the container MoE backend went from VLLM_CUTLASS to MARLIN. No log of your own needed to see it.
Benchmark result files only record the client side. After an upgrade, the server can silently pick a different MoE or attention backend, change its CUDA graph capture, fall back to another code path, or run against different torch / triton / flashinfer builds. Today you find that by reading startup logs and bisecting by hand. servediff does the reading for you.
Who it is for: anyone comparing two vLLM / SGLang runs — after an upgrade, a flag change, or between machines — who needs to know what differs on the server side.
What it reads: the server's startup log, and optionally a snapshot of the server's Python environment. Offline, no GPU, no dependencies.
What it does not do: it does not say which difference caused a performance change. That still needs an A/B run. It tells you what to A/B.
Why not just diff the two logs
Because a startup log is not a config file. diff compares text, and the text churns: timestamps, pids, two paths, progress bars that redraw the same line forty times. The values you care about sit inside lines whose wording also changes, so a one-line answer arrives buried in a few thousand irrelevant ones, and a value that went 0.45 → 0.41 is invisible while a line that merely reordered is loud. servediff reads each line into a named fact (backend.moe, kv_cache.tokens, gpu.utilization_effective) and compares the facts, so the diff is a table of settings — with the ones a log never printed marked
Try it in one minute (no GPU)
pip install servediff servediff demo Installed already? uvx servediff demo runs the same command without a project and, unlike pip, it resolves from pypi.org rather than whatever mirror your pip.conf points at — mirrors lag by hours, and a version that is not on the mirror looks like a version that does not exist.
demo diffs two excerpt logs that ship inside the package, so your first command produces real output without you finding logs first. Run servediff alone to see the five commands and nothing else. It exits 1, because the two logs do differ — that is the result, not a failure.
It then runs repeats on two more shipped logs that carry the same No available shared memory broadcast block found in 60 seconds warning, because the warning is the same and the readings are not: in one the wait begins before graph capture has finished and outlives it by five minutes, in the other it begins the same second a Triton kernel compiled. The line that separates them is the subtraction — the warning's timestamp is the end of the wait, so 09:03:37 means the wait began at 09:02:37.
Already have a log? That is the shorter path, and it needs no second log to start:
servediff show serve.log show prints the settings that log carries, each with its line number, and exits 0 as soon as it read something. A second log is a later step, not a prerequisite.
The same pair, from the repo (the excerpt is public, from vllm#47047):
git clone https://github.com/apex-mochen/servediff && cd servediff servediff diff examples/issue-excerpts/vllm-47047-v0.23-default.log examples/issue-excerpts/vllm-47047-v0.23-marlin.log Logs it has read for people
Each of these is a public startup log pasted into a bug report, where the answer was already in the paste. The write-up shows the reading, with line numbers.
A card that "looked free" while CUDA out of memory fired. The failure line carries three numbers and two wordings; the process holding the memory is inside one of them. write-up
Same flags, 0.28 dies on WSL and 0.30 starts. One difference: the newer build prints UVA is not available as a warning and carries on; the older one dies on it. write-up
"Only two cores are busy" on a 384-thread box. 22 pasted lines carry 21 facts: 95 cores of one NUMA node were bound to this rank, and the interesting number was never the version. write-up
Speculative decoding silently ignoring min_p and logit_bias. The warning is one line per process and the flag that caused it prints elsewhere, so the two are easy to read as unrelated. write-up
A startup reported as taking 50 minutes (vllm#67598). 49 No available shared memory broadcast block found in 60 seconds lines are 2 940 s of waiting, and the weights loaded in 3.99 s: the wait was the startup.
Install from PyPI. A different, unrelated tool also uses the name servediff in a third-party Homebrew tap; the pip install servediff package is this one.
The measurement this project is built on — seventy-four startup logs pasted into public bug reports, nothing the parser cannot read — is one command in a checkout, and it answers for every log with one line each:
servediff audit tests/fixtures # a directory audits every log inside it, rotations included A directory is a corpus, so the files it counts are part of the answer: serve.log, serve.log.1, serve.log.2 and serve.log.3.gz are four logs. An archive this tool does not read — bzip2, xz, zstd — is named and exits 2 rather than being left out of the count.
That corpus is the one the rules were written against, so it can always be made to pass. The test that matters is output the rules have never seen: tests/fixtures/held-out-2026-10/ (eight pastes), tests/fixtures/held-out-2026-11/ (five), and tests/fixtures/held-out-2026-11b/ (eighteen), all collected straight from vLLM and SGLang issues with their issue numbers in a PROVENANCE.md beside them.
Sixteen further pastes from the same issues are kept in samples/not-startup-logs/ and are deliberately not in that corpus: they are reproducer scripts and docstrings, pasted into issue bodies beside the logs, and no rule reads a single fact out of them. Keeping them in the corpus would have made "the corpus reads clean" mean nothing; audit now reports a file that yields no fact as a file it cannot read, which is what that folder is the test case for.
note: baseline: no all-reduce facts and no rank line: cannot tell whether this run had more than one rank, so an absent all-reduce path here is inconclusive note: candidate: no all-reduce facts and no rank line: cannot tell whether this run had more than one rank, so an absent all-reduce path here is inconclusive fact baseline candidate status backend.moe VLLM_CUTLASS (NvFp4) MARLIN (NvFp4) changed kv_cache.max_concurrency
The kv_cache.max_concurrency line is the second kind of answer worth noticing: the Marlin excerpt happened to quote the concurrency line, the other one did not, so it shows up as present-on-one-side rather than as a backend change. Read it as "one of these two logs tells you this, the other stays silent" — not as "the value changed".
Two conventions keep timings from turning into noise. A numeric change carries its magnitude, changed +45.0%, because "changed" on its own reads the same at 4% and at 400%. And a measurement every worker repeats is read once, from the lowest rank — on an 8-GPU box Model loading took … is printed eight times with eight slightly different numbers, and those differences are per-rank jitter, not a change between your two runs.
If you already have a log — copied out of an issue, or left on disk by last week's run — start there; nothing has to be captured first:
servediff show serve.log # what that one run actually used servediff show serve.log --json > facts.json # record it, so a later run can be gated against it servediff diff today.log --against facts.json show needs no second log and no GPU. The diff is the second step, once you have something to compare against.
If the failure is ahead of you — you are about to upgrade, or you have to reproduce it — capture runs the server, tees its output, and snapshots the environment before launch, so the two runs are directly comparable:
# before the upgrade, with the flags you actually use servediff capture -o before.log -- python -m vllm.entrypoints.openai.api_server --model
Commands and exit codes
1 always means the inputs differ — never something went wrong — so servediff diff old.log new.log works directly as a CI gate. At most one input may be -, because stdin can only be read once.
# .github/workflows/startup-log.yml — fail the job when a version bump changes startup - run: pip install servediff - run: servediff diff old.log new.log --markdown >> "$GITHUB_STEP_SUMMARY" # exit 1 fails the step; the summary carries the table for whoever reads the run The same gate without the install step — the action pins the release it was tagged with:
- uses: apex-mochen/servediff@v1 with: path: logs/ # a log file, or a directory read as one corpus max-shapes: 0 # how many lines no rule reads you are willing to ship That is the difference the reporter of vllm#47047 found by hand after a v0.21 → v0.23 throughput drop. The example files are the log lines posted in that issue (see tests/fixtures/README.md).
The second thing worth gating is the tool's own blind spot: a server that starts printing configuration no rule reads. --max-shapes alone fails forever after the first such line, so record what today's log prints and gate on what is new:
# once, on a log you have read and accepted: commit the file servediff audit run.log --write-baseline audit-baseline.json # .github/workflows/config-drift.yml — fail only when the server prints something new - run: pip install servediff - run: servediff audit run.log --baseline audit-baseline.json --max-shapes 0 # exit 1: a shape no rule reads appeared that the baseline did not have # exit 2: the baseline or the log could not be read — a broken gate, not a finding A shape in the baseline is still unread and still reported; it is accepted, not parsed. What it stops is a gate that goes red on day one and stays red until someone deletes it.
The same idea applies to the facts themselves. A CI job has today's log; nobody keeps the log from the run they accepted three months ago. servediff show --json records what that run printed in a few kilobytes, and --against diffs a single log with those facts:
# once, on a run whose startup you have read: commit facts.json (a few KB, not the whole log) servediff show accepted.log --json > facts.json # .github/workflows/facts-drift.yml — one log, no second log in the repo - run: pip install servediff - run: servediff show run.log --json > today.json - run: servediff diff run.log --against facts.json --skip-absent # exit 0: today's startup still prints what the accepted run printed # exit 1: a fact on the same code path changed # exit 2: facts.json is unreadable — a broken gate, not a finding --skip-absent matters here: a log that stopped early is missing facts, and a fact nobody recorded cannot be compared. The note in the output says how many facts the baseline holds, so a narrowed comparison never reads as a clean one. A facts file that was archived gzipped is read like a .gz log (facts.json.gz), and a bzip2 / xz / zstd one is named rather than reported as bad JSON.
A gate that fails on every row is a gate someone switches off: package pins move every week, while the startup decisions are what a version bump actually changes. --only narrows the comparison to the facts you name, and the note says how many facts were left out:
servediff diff run.log --against facts.json --skip-absent \ --only backend. --only cuda_graph. --only parallel. # exit 0: none of those changed, whatever moved in env.pip.* # exit 2: a pattern matched no fact at all — a gate on nothing is not a pass The pattern is matched against the fact name as a prefix or anywhere inside it, with _ and - ignored, because the word you have is the one from the log line and not the fact name this tool chose. --only all_reduce, --only all-reduce and --only allreduce all find backend.allreduce_dispatch, whose name never contains a hyphen. If the pair you are comparing has no all-reduce line at all — the 0.28.0-vs-0.30.0 pair below does not, it is a single-GPU run — the pattern still matches nothing and still exits 2, because "I asked about the all-reduce chain and got a green line" is the silent failure this exit code prevents. Neither the key nor the value is searched: --only FLASHINFER matches nothing either, since a gate pinned to a value would move with whatever the version printed that week.
A CI matrix writes one log per row, so give diff the directory instead of running it six times — one line per log, one exit code, and the failing row named:
servediff diff logs/ --against facts.json --skip-absent --only backend. # logs/a.log 1 difference(s); 0 fact(s) identical [backend.attention] # logs/b.log 0 difference(s); 1 fact(s) identical # 2 log(s): 1 differ from facts.json, 1 unchanged An empty or truncated artifact in that directory exits 2 rather than passing as "no differences": a gate input that nothing could be read from is broken, not clean.
Real example: same flags, vLLM 0.28.0 vs 0.30.0
Two startup logs from one RTX 4060 Laptop under WSL2, identical flags (Qwen2.5-0.5B-Instruct, fp16, --max-model-len 2048, --gpu-memory-utilization 0.45):
servediff diff vllm-0.28.0.log vllm-0.30.0.log warning: baseline server failed to start: RuntimeError: UVA is not available; facts after the failure are absent because startup stopped, not because they were off note: baseline: no all-reduce facts: world_size=1, so there is no all-reduce group and no backend is chosen; a TP>1 run is what makes this path observable note: candidate: no all-reduce facts: world_size=1, so there is no all-reduce group and no backend is chosen; a TP>1 run is what makes this path observable fact baseline candidate status backend.attention
0.28.0 does not start on WSL2 with default settings; 0.30.0 does, because it falls back to device memory when pinned memory is unavailable. Upstream fixed this in vllm#56908, first released in v0.30.0. Forcing the V1 model runner on 0.28.0 (VLLM_USE_V2_MODEL_RUNNER=0) makes it start, and the remaining server-side differences are:
note: baseline: no all-reduce facts: world_size=1, so there is no all-reduce group and no backend is chosen; a TP>1 run is what makes this path observable note: candidate: no all-reduce facts: world_size=1, so there is no all-reduce group and no backend is chosen; a TP>1 run is what makes this path observable fact baseline candidate status compile.artifacts 25 entries, 3 artifacts, 4997798 bytes 25 entries, 3 artifacts, 4996920 bytes changed compile.dynamo_s 8.29 9.43 changed compile.graph_s 16.92 13.12 changed compile.total_s 32.58 31.08 changed compile.warmup_s 2.66 1.02 changed cuda_graph.capture_gib 0.36 [0.25, 0.17] changed cuda_graph.capture_s 12 [9, 11] changed cuda_graph.captures ["mixed prefill-decode, PIECEWISE x51... ["PIECEWISE x51", "FULL x2", "FULL x35"] changed cuda_graph.pool_gib 0.36 0.17 changed engine.init_s 74.0 109.17 changed engine.version 0.28.0 0.30.0 changed gpu.consumed_gib 1.29 1.44 changed gpu.cudagraph_gib 0.36 0.17 changed gpu.peak_activation_gib 0.89 0.53 changed gpu.utilization_effective 0.4031 0.4151 changed gpu.utilization_to_match_kv_cache 0.4969 0.4849 changed jit.warmup_s
frontend.ignored_arg is the least comforting of these, and the most worth having: a flag the server accepted and then dropped. In vllm#58580 the run passes --enable-auto-tool-choice and --structured-outputs-config, and the Rust frontend logs argument 'enable_auto_tool_choice' currently has no effect in Rust frontend, ignoring — the command line reads as configured and nothing is. servediff keeps that as a fact, so two runs that differ only in which flags survived is a row, not a footnote you have to spot in 80 lines — and since 0.4.56 it also states the consequence under the table, because a row of eighteen can still be read as trivia while the run is not what you launched:
$ servediff show vllm-58580.log ... note: the command line named 2 flag(s) this frontend accepted and never applied (structured_outputs_config, enable_auto_tool_choice): the run is not configured the way the command reads diff carries the same note per side, which is how two runs that both dropped a flag — every fact same, exit 0 — still say why they are not the pair you meant to compare. Same family: spec.draft_max_len records the draft model's context as the speculative path bounded it (262144 -> 131072), because a version can halve it with no flag to show for it.
When one of the two runs died
The most common real pair is a run that crashed against the same flags that now work. The crash stops the log early, so every fact printed after it is
Validated against real TP>1 logs
The parallel-config rules were written and checked against a real TP=8 startup log posted in vllm#48591 (v0.23.1, 8 workers, one world_size=N line per rank, role assignment without an ETP field):
parallel.world_size 8 parallel.roles DP rank 0, PP rank 0, PCP rank 0, TP rank 0, EP rank N/A, EPLB rank N/A compile.fusions allreduce_rms startup failed When the all-reduce path changes silently
vLLM chooses an all-reduce implementation per TP group out of a candidate list, and FlashInfer can pick its own backend on top of that. These lines are printed once at startup and never mentioned again — which is how a version bump can move decode through a different communication path without any flag changing. Since 0.3.7 they are facts (this is servediff show on the same v0.23.1 TP=8 log):
backend.allreduce_dispatch tp:0: ['CUSTOM', 'SYMM_MEM', 'PYNCCL'] line 37 backend.allreduce_flashinfer mnnvl line 102 backend.allreduce_fusion ["norm: mnnvl", "norm quantization: trtllm"] line 106 backend.allreduce_potential ['NCCL_SYMM_MEM', 'QUICK_REDUCE', 'FLASHINFER', 'AITER_CU... line 37 model_runner V2 line 39 The first two separate chosen from possible: FlashInfer sitting in potential but not in dispatch means it was not used for that group. The last two record whether FlashInfer's fused workspaces were actually built, but read their absence carefully: since 0.29.0 the FlashInfer auto-selection line is logged at DEBUG (debug_once), so on a default INFO log it may simply not have been printed. The all-reduce backends (in dispatch order) line is info_once in 0.29.0, which makes the dispatch chain the reliable cross-version signal. model_runner covers V1 vs V2 (so VLLM_USE_V2_MODEL_RUNNER=0 runs are identifiable), and compile.fusions carries allreduce_rms when fuse_allreduce_rms is on.
A fact missing from both logs leaves no diff row at all, so it would otherwise be counted as "identical" without ever being compared. Since 0.3.8 diff names the reason where it can tell, instead of leaving that to the reader:
> ℹ️ baseline: no all-reduce facts: world_size=1, so there is no all-reduce group and no backend is chosen; a TP>1 run is what makes this path observable That note is what separates nothing changed from nothing could be seen: on a TP=1 log the all-reduce path does not exist to compare, and a TP>1 log that begins after engine init never printed the selection. The same mechanism flags a 0.29+ log whose FlashInfer fact is missing because the line is DEBUG-only.
That makes the question raised in vllm#63705 — did 0.29 turn FlashInfer all-reduce on by default (#52998)? — answerable from logs you already keep, one per version, same TP:
servediff diff v0.28.log v0.29.log On a real 4×H100 TP4+EP node (MiniMax-M2.7, one run per version) that is exactly what the diff showed between v0.26.0 and v0.29.0: the TP group chain went from ['PYNCCL'] to ['FLASHINFER', 'PYNCCL'] while the EP group stayed ['PYNCCL'], V2 Model Runner appeared, and allreduce_rms was off in both runs — so the two changed defaults are the TP-side FlashInfer path and the model runner (reported here).
So a TP4+EP comparison (like the one in the #63705 analysis — a decode-only regression across vLLM 0.29–0.32) can be scripted as:
servediff capture -o v026.log -- docker run ... vllm/vllm-openai:v0.26.0 ... servediff capture -o v029.log -- docker run ... vllm/vllm-openai:v0.29.0 ... servediff diff v026.log v029.log --markdown One log can also hold said-and-done failures that look like many. The #54559 analysis counts them by cadence instead: 39 allocator OOM lines turn out to be two retry bursts inside 2.3 s, and 16 broadcast-wait lines turn out to be one wait of 959 s re-logged every minute.
Pasting "the run that failed and the run that worked" into one file gives one ready line and waits on both sides of it. show counts every interval but says which side they came from — e.g. 6 interval(s) with no free broadcast block, 360 s in total; 5 of them came after startup reported ready, so they belong to another run or a shutdown in the same file, not to this startup. Without that split, the note reads as one 55-minute startup that never happened.
Dependency versions: servediff env
Logs do not print torch / triton / flashinfer versions, and upgrades of those change server behaviour too. Snapshot each server environment with its own interpreter — nothing needs to be installed into it:
servediff env --python /path/to/old-venv/bin/python -o old.json servediff env --python /path/to/new-venv/bin/python -o new.json servediff diff old.json new.json Excerpt from those two environments (20 inference-relevant rows; the rest of the package list is hidden unless you pass --all):
pkg.flashinfer-python 0.6.16.post3 0.6.18.post1 changed pkg.nvidia-cuda-nvcc 13.3.73 13.0.88 changed pkg.nvidia-cutlass-dsl 4.6.2 4.7.1 changed pkg.torch 2.13.0 2.13.0+cu130 changed pkg.transformers 5.16.1 5.17.0 changed pkg.vllm 0.28.0 0.30.0 changed Note the older vLLM environment carries newer CUDA toolkit wheels (13.3 vs 13.0). Whether that matters for performance is not known — that is what an A/B run is for. Versions are read from package metadata, so the same torch build can show as 2.13.0 in one environment and 2.13.0+cu130 in another.
The snapshot records Python, GPU name and driver (via nvidia-smi), all installed package versions, and env vars starting with VLLM_, SGLANG_, SGL_, CUDA_, NCCL_, TORCH_, PYTORCH_, FLASHINFER_, TRITON_. Values of variables whose name contains TOKEN, KEY, SECRET, PASSWORD, CREDENTIAL or AUTH are replaced with
Every fact keeps the log line it came from (servediff show
Pasting a report into a GitHub issue
servediff diff old.log new.log --markdown Renders a GitHub-flavored table with a collapsible Evidence section quoting the exact log line behind each fact — ready to paste into a regression report.
Reading a log without copying it down
Logs usually live on the box that ran the server. - reads stdin, so nothing has to be scp'd first:
ssh gpu-node 'cat /path/to/serve.log' | servediff show - ssh gpu-node 'cat /path/to/serve.log' | servediff diff v0.31.log - Only one side can be - (stdin is read once), and --markdown labels it stdin in the report header. A gzip stream on stdin is decompressed like a .gz file, and a bzip2 / xz / zstd stream is named rather than decoded as text:
cat serve.log.gz | servediff show - $ note: stdin was gzip-compressed; decompressed 23094 byte(s) Three versions at once
Regression threads rarely have two runs. series puts every run in its own column, so the middle version is not lost between two pairwise diffs:
servediff series v0.23.log v0.26.log v0.26-flag.log --markdown | fact | v0.23.log | v0.26.log | v0.26-flag.log | |---|---|---|---| | `backend.moe` | `FlashInfer CUTLASS (Unquantized)` | `TrtLlmBf16ExpertsMonolithic` | `FlashInferExperts` | --all adds the rows that hold the same value across every log; exit codes match diff (0 identical, 1 differences, 2 nothing recognised). When the three logs come from different releases, series says so first — note: versions differ: 0.29.1..., 0.30.0, 0.32.0 — because a row only one column carries is usually a line that release started or stopped printing, not a setting changed between runs; same wording in --json (notes) and --markdown.
The same rule diff uses for after_ready.* applies here: a traceback logged after the server reported ready is a shutdown problem, not a configuration difference, so it is not counted. Three runs of one config with one trailing shutdown error report 0 fact(s) differ, and the count of rows left out is printed under the summary. --all lists those rows without letting them change the count or the exit code.
Capturing a run in one step
servediff capture -o run1.log --python /path/to/server/bin/python -- vllm serve
servediff diff run1.log run2.log servediff diff run1.log.env.json run2.log.env.json Exit codes: 0 no differences, 1 differences, 2 nothing recognised.
One waiting line, sixteen copies
A startup log repeats itself. The same allocator line can appear 39 times inside 2.3 s, and the same ring-buffer warning 16 times over 16 minutes. Counting them says "39 problems" and "16 stalls" for what is one retry burst and one wait. repeats groups every message shape that appears more than once and reports the gap between the copies:
servediff repeats serve.log serve.log: 102 line(s), 14 shape(s) repeated 2+ time(s), 85 line(s) in them 39x burst 11:33:26.640 -> 11:33:28.959 span 2.32 s gaps 0.010 s median, 0.900 s max [rank0]:[W831 11:33:26.640394862 CUDACachingAllocator.cpp:3933] memory allocation failed with OOM on device 0 while trying to allocate 20971520 bytes 16x regular 11:34:32 -> 11:50:31 span 959 s gap 60.000 s median, 118.000 s max No available shared memory broadcast block found in 60 seconds. This typically happens when some processes are hanging or doing some time-consuming wo regular means the gaps hold their value — 90 % of them within 5 % of the median — and the median is at least a second. That is a watchdog re-logging one continuous wait, not N stalls: 16 lines, one 959 s wait. burst is a retry loop, with millisecond gaps and usually one much longer gap between bursts. untimed is a shape that carries no clock, so only its count is reported.
A third reading exists for one file that holds two runs. Two runs pasted together repeat the same warnings minutes apart, and the span then measures the gap between the runs, not how long anything lasted: those groups print split with the number of runs and the longest single run instead of a file-wide span, e.g. 6x split ... span 3333 s in 3 runs, longest 180 s for the broadcast warning in a failed-then-working paste. A gap counts as a boundary only when it is both ≥300 s and ≥5× the median, so ordinary watchdogs keep their regular reading.
The two readings decide different fixes. A warning that repeats every 60 s points at one blocked reader holding a ring buffer; a burst of OOM lines points at one allocator budget being hit repeatedly, and the free memory elsewhere in the log decides which. The #54559 analysis is that reading worked out end to end.
Progress bars are split off first: tqdm rewrites one terminal row with \r and carries no newline, so a captured log can glue the next process's line onto the bar's. Without that split the warning hides behind the bar's digits and never groups with its own copies. Timestamps are read as a set of moments, not a sequence, because two ranks interleave their lines and a captured log can carry them out of order.
--min N hides shapes below the bar, --top N keeps the most frequent, --markdown wraps the report in a fence for an issue, and --json emits {log, lines, repeated: [{count, first, last, span_s, median_gap_s, max_gap_s, regular, segments, longest_segment_s}]} so a pipeline does not parse the text. Exit codes: 0 reported — a log that repeats nothing is a valid answer; 2 unreadable path, or more than one -.
Tested on: log excerpts posted in vllm#47047 (v0.23) and vllm#53472 (v0.23, v0.26); full startup logs of vLLM 0.28.0 and 0.30.0 (single GPU, WSL2); a real TP=8 startup log from vllm#48591 (v0.23.1, one line per worker + role assignment); a TP4+EP excerpt from a 4×H200 node in vllm#45604 (v0.29.0, two all-reduce groups); a SGLang startup log from sgl-project/sglang#4862 (v0.4.4, TP=4, Qwen2.5-Omni-7B — the server_args=ServerArgs(...) keyword-call form is parsed, startup failure + root-cause error recorded). One log is a live server run rather than an excerpt: vLLM 0.33.0 on a single RTX 4060 Laptop (8 GB) under WSL2, Qwen2.5-0.5B, written by capture — the server answered /health and a completion, Ctrl-C exited 130 and kept the log, and the two env snapshots of that run diff down to the two variables that separated a crash from a start. A ROCm setup is covered too: a public collect_env dump from vllm#65034 (vLLM 0.29.1.dev, AMD Radeon AI PRO R9700, torch 2.13+rocm10.1) is a fixture, and its 180-line environment block yields the version facts instead of 175 "shapes worth a look". The NVIDIA side and a second engine are covered by more public reports: a production-image collect_env (vllm#63505, vLLM 0.32.0, CUDA 13.0), an eight-card MI355X block (vllm#65611) and a gVisor run (vllm#65250) — each 44–61 "worth a look" lines before, nothing after; a GB200 NVL node (vllm#66192, aarch64, SM100) and an RTX PRO 6000 Blackwell box (vllm#66193) — nothing after, once the per-card model line and the InfiniBand NIC grid were understood; and six SGLang reports (sglang#41654, #42684, #43741, #46756, #48502, #49206), where the brackets around SGLang's timestamp and its own name: value dump were the misses; those six are now fixtures (tests/fixtures/sglang-2026-10/, PROVENANCE.md names the code blocks each file was assembled from) and audit reads them to zero while yielding the mamba cache, the concurrency cap it forces and the per-rank effective size. The parallel-config and all-reduce rules are checked against real TP>1 logs; MoE models in full logs, SGLang versions other than 0.4.4–0.5.20, Intel GPUs and other engines are not yet verified.
Parsing is regex-based on log text, which changes between versions. A missed line shows up as
Two identical runs of the same server must not differ: writeups/same-box-twice.md — why the four per-worker facts are read from the lowest rank (the other ranks stay in the evidence line) instead of being collapsed by line count, and why numeric rows print a magnitude (-4.6%) while text rows never invent one.
Diffing a log from one release against a log from another: writeups/vllm-log-diff-across-versions.md — 0.28.0 against 0.33.0 gives 75 rows of which 59 are one-sided (only_baseline 20, only_candidate 39), and why those rows mean "that build printed a line this one did not" rather than "a setting was turned off"; --skip-absent leaves the 16 rows both releases printed, and the reason those still need the model and flags held fixed.
When the server dies, the crash prints the whole VllmConfig it was running with (Dumping input data for V1 LLM engine (v0.20.1) with config: …) — one long line that records the model, dtype, max_seq_len, TP/PP/DP, prefix caching and the compile backend of the failed run. servediff reads it into facts, so the run that crashed is still comparable with the run that works; the same log can also carry set_p2p_nccl_context overrides and request fields the server accepted then ignored ({'enable_thinking'}).
When htop shows "only two cores" on a CPU-only box with hundreds of threads, writeups/vllm-cpu-384-threads.md reads a 22-line forum paste into 21 facts: 95 cores bound (192-286), one reserved, MEMBIND on node 0, Triton reporting 0 drivers so the run drops to the v1 model runner, and why a cpuset clamp — not a vLLM flag — is the reading that survives.
When a log's startup fact holds two values, the log recorded two attempts: ["failed", "ready"] is a failure and then a retry that came up, ["ready", "failed"] is a server that started and then died. diff says which one it read instead of announcing that later facts are absent because startup stopped — writeups/startup-ready-after-traceback.md works through both logs, line 55 against line 59 and line 5 against line 6.
When a directory holds serve.log, serve.log.1, serve.log.2 and serve.log.3.gz, audit reads four logs, not the one suffix it used to match — writeups/one-file-out-of-four.md shows the count that said 1 log(s) over a four-file corpus, and the invariant that now builds that layout out of every fixture.
A gate over a directory that holds no logs is not a pass: audit, repeats and diff
A rule that never fires looks exactly like a rule that works: both answer "no fact" on every log you have. Of the 203 rules in the table, 189 fire somewhere in the 74-log corpus and 14 do not — writeups/rules-that-never-fire.md measures which.
An Ascend hang is not four warnings but one sequence: four collectives giving up within 23 microseconds on device 3, all of them inside aclnnDynamicQuantV2 — writeups/the-operator-name-is-the-diagnosis.md reads vllm#70943 that way, and the same shape on the NVIDIA side (DeepEP's per-stream watchdog in vllm#46509).
What audit says about the logs strangers actually paste — 70 blocks pulled out of 72 vLLM issues, 1 077 lines worth a look at 0.4.122 and 230 by 0.4.129, including the container timestamp that hid 286 stack frames and the operator field that hid four collectives — writeups/seventy-real-pastes.md
The most common reason two startup logs disagree is that one of them ends: a diff of a hung run against a healthy one listed seven rows that were one file ending, startup: ready among them — writeups/a-log-that-stops-is-not-a-difference.md shows that table and the note that now names the horizon instead.
A collect_env dump is a log too, and two of them differ in twenty-three places at once — writeups/an-env-dump-is-a-log-too.md shows which of those differences are the base image and which two are worth a second look.
The same notes as a plain web page: https://apex-mochen.github.io/servediff/ — generated from writeups/*.md by tools/build_site.py, each page titled with the exact error string it is about.
Every fact key, with what it counts and what it does not: https://apex-mochen.github.io/servediff/facts.html — the same table servediff explain reads, 44 families plus 15 per-key entries.
One worked example end to end: writeups/wsl-uva-028-vs-030.md — same flags on a laptop GPU under WSL2, 0.28.0 dies with RuntimeError: UVA is not available, 0.30.0 starts; the startup-log diff is 53 differences and 14 identical facts, and the one line that explains it is the pinned-memory fallback from vllm#56908.
When the log says No available shared memory broadcast block found in 60 seconds, writeups/vllm-shm-broadcast-60-seconds.md gives the three arithmetic checks that separate a full /dev/shm, a capture still running, and one reader that stopped draining — worked through a real 102-line TP2 log, against the two answers that dominate search results.
When the log says min_p and logit_bias parameters won't work with speculative decoding, writeups/spec-decode-overrides.md lists the three settings speculative decoding changes behind your back — the scheduled-token budget reset to 2048 while --max-num-batched-tokens stays in the args, min_p/logit_bias dropped, the MTP layer forwarded once per draft token — read from one 86-line forum paste that also names the quantised GEMM kernels the flags never do.
Why the log you pasted is not the log the server wrote: writeups/paste-typography.md — a forum turns models--Qwen--Qwen3.6 into models–Qwen–Qwen3.6 and 'align' into ‘align’, so a pasted path can never equal the server's own path and a pasted flag stops matching; one fold of the characters that have an ASCII twin is the whole fix.
When the log says CUDA out of memory on a card that looked free, writeups/cuda-oom-holder.md reads the three numbers in that line as an occupancy report: the older wording names the process holding the card (94.41 of a 95.00 GiB card, 600.06 MiB left, 768 MiB asked), while the newer one reports the allocator pool's free memory (9.19 MiB) on a card with 78.46 GiB free — and only one of those two is fixed by a flag.
When the server refuses to start because the context will not fit — To serve at least one request with the model's max seq len (36000), (3.35 GiB KV cache is needed, which is larger than the available KV cache memory (3.18 GiB) — writeups/vllm-kv-cache-shortfall.md shows the three numbers that message already contains, why they are one equation with a 0.17 GiB gap, and what a log cannot tell you about who took that gap.
When every line of the paste begins with a process tag — (EngineCore_DP0 pid=671) INFO … from --prefix, or (EngineCore_DP0) INFO … with no pid, as vLLM 0.34 prints it, or docker compose logs — writeups/prefixed-logs-and-concurrent-watchdogs.md shows why four ranks printing one 60 s watchdog is a one-minute hang and not four, the 712 facts that used to vanish from 38 of 75 files when the tag sat where the anchored rules expect a column, and why a tag without a pid still has to count as one process.
When the paste is only the periodic engine line — Engine 000: Avg prompt throughput: 851.4 tokens/s, Avg generation throughput: 1095.8 tokens/s, Running: 56 reqs, Waiting: 6 reqs, GPU KV cache usage: 21.9% — there is no setting to compare, so show names the series instead of calling the paste empty (2 samples, 10 s apart; generation 1095.8 → 0.0 tokens/s, Running 56 → 56, KV cache 21.9%) and asks for the Initializing a V1 LLM engine section.
When the paste is a py-spy dump or bare stack frames — Thread 12 (active): "MainThread" or just SpinCondition.wait (shm_broadcast.py:206) under EngineCore.step_with_batch_queue — show says what the stack is and reads its top frame (7 frames in 1 chain; the top frame is …) instead of calling it an empty file.
When the log says Async scheduling will be disabled because it is not supported with the ray distributed executor backend, writeups/ray-async-scheduling.md shows the two-line warning pair, the tp 16 > gpus 4 printed right beside it, and why scheduler.async and scheduler.async_reason have to be separate rows.
Why show took a minute on a 100 MB startup log, and what the fix actually was: writeups/stop-matching-every-rule.md — 198 regexes per line, the two ideas that made it slower, the per-shape rule cache that did, and the byte-for-byte comparison over 87 logs that caught the regression hiding inside it.
A log captured with PowerShell's >, which writes UTF-16LE and so reads as mojibake everywhere else: writeups/powershell-redirect-is-utf16.md
Checking the tool itself
python -m pytest -q — the whole suite, over the rule table and every command's output.
python tools/invariants.py --repo . — eleven questions asked of the same log corpus from different angles (--sample 10 for a quick loop; the whole 74-log corpus takes a few minutes): self-diff empty, diff symmetric, text/json/markdown agree, repeats counts the file, diff json adds up, series is the union of diffs, stdin and path agree, gz and plain agree, gz facts and plain facts agree, rotations are logs, diff on gz agrees with plain. The "two ways to say the same thing" checks are the shape that shipped in 0.4.107 and 0.4.108, rotations is 0.4.109's, and each fails on the code from before its fix.
python tools/rule_coverage.py --repo . — walks every log in the corpus through the same matching path parse() uses and counts, per rule position, how many lines matched. 189 of 203 rules fire somewhere in the corpus; the other 14 are named — rules written for error messages no paste here contains (CUDA OOM, a .so that would not import, a worker that died). tests/test_rule_coverage.py holds one synthetic line per unreached rule and fails if a new rule has neither a corpus hit nor such a line, so a rule cannot be added dead.
python tools/check_wheel.py --repo . --out
python tools/verify_readme_exit_codes.py — replays the 23 exit codes this file documents against that installed wheel.
Released: Dec 3, 2026
Both files in this release have provenance metadata.
View provenance details
Apache-2.0 View SPDX License List
vllm sglang llm-inference inference-server llm-serving startup-log log-diff kv-cache cuda-graph moe tensor-parallel performance-regression debugging
Intended Audience Developers
Programming Language Python :: 3
Topic Scientific/Engineering :: Artificial Intelligence
Software Development :: Debuggers
Release files for servediff 0.4.129
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 717.7 kB
Release files / servediff-0.4.129.tar.gz
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.
Release files / servediff-0.4.129-py3-none-any.whl
Security for servediff 0.4.129
Both files in this release have been uploaded with provenance metadata.
With provenance servediff-0.4.129.tar.gz Dec 3, 2026
With provenance servediff-0.4.129-py3-none-any.whl Dec 3, 2026
Attestation for servediff-0.4.129.tar.gz
Attestation for servediff-0.4.129-py3-none-any.whl
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Dec 3, 2026 2 release files Full provenance
0.4.129 This release
Dec 2, 2026 2 release files Full provenance
Nov 30, 2026 2 release files Full provenance
Nov 25, 2026 2 release files Full provenance
Nov 24, 2026 2 release files Full provenance
Nov 23, 2026 2 release files Full provenance
Nov 22, 2026 2 release files Full provenance
Nov 13, 2026 2 release files Full provenance
Nov 12, 2026 2 release files Full provenance
Nov 11, 2026 2 release files Full provenance
Nov 10, 2026 2 release files Full provenance
Nov 9, 2026 2 release files Full provenance
Nov 8, 2026 2 release files Full provenance
Nov 7, 2026 2 release files Full provenance
Nov 6, 2026 2 release files Full provenance
Nov 5, 2026 2 release files Full provenance
Nov 2, 2026 2 release files Full provenance
Oct 31, 2026 2 release files Full provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from 6571ef3











