servediff 0.3.3__tar.gz → 0.3.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. {servediff-0.3.3 → servediff-0.3.4}/CHANGELOG.md +8 -0
  2. {servediff-0.3.3 → servediff-0.3.4}/PKG-INFO +5 -5
  3. {servediff-0.3.3 → servediff-0.3.4}/README.md +4 -4
  4. {servediff-0.3.3 → servediff-0.3.4}/pyproject.toml +1 -1
  5. {servediff-0.3.3 → servediff-0.3.4}/src/servediff.egg-info/PKG-INFO +5 -5
  6. {servediff-0.3.3 → servediff-0.3.4}/tests/test_cli.py +25 -0
  7. {servediff-0.3.3 → servediff-0.3.4}/CONTRIBUTING.md +0 -0
  8. {servediff-0.3.3 → servediff-0.3.4}/LICENSE +0 -0
  9. {servediff-0.3.3 → servediff-0.3.4}/MANIFEST.in +0 -0
  10. {servediff-0.3.3 → servediff-0.3.4}/README.zh-CN.md +0 -0
  11. {servediff-0.3.3 → servediff-0.3.4}/examples/issue-excerpts/vllm-47047-v0.23-default.log +0 -0
  12. {servediff-0.3.3 → servediff-0.3.4}/examples/issue-excerpts/vllm-47047-v0.23-marlin.log +0 -0
  13. {servediff-0.3.3 → servediff-0.3.4}/examples/issue-excerpts/vllm-53472-v0.23.log +0 -0
  14. {servediff-0.3.3 → servediff-0.3.4}/examples/issue-excerpts/vllm-53472-v0.26-flag.log +0 -0
  15. {servediff-0.3.3 → servediff-0.3.4}/examples/issue-excerpts/vllm-53472-v0.26.log +0 -0
  16. {servediff-0.3.3 → servediff-0.3.4}/setup.cfg +0 -0
  17. {servediff-0.3.3 → servediff-0.3.4}/src/servediff/__init__.py +0 -0
  18. {servediff-0.3.3 → servediff-0.3.4}/src/servediff/__main__.py +0 -0
  19. {servediff-0.3.3 → servediff-0.3.4}/src/servediff/cli.py +0 -0
  20. {servediff-0.3.3 → servediff-0.3.4}/src/servediff/env.py +0 -0
  21. {servediff-0.3.3 → servediff-0.3.4}/src/servediff.egg-info/SOURCES.txt +0 -0
  22. {servediff-0.3.3 → servediff-0.3.4}/src/servediff.egg-info/dependency_links.txt +0 -0
  23. {servediff-0.3.3 → servediff-0.3.4}/src/servediff.egg-info/entry_points.txt +0 -0
  24. {servediff-0.3.3 → servediff-0.3.4}/src/servediff.egg-info/requires.txt +0 -0
  25. {servediff-0.3.3 → servediff-0.3.4}/src/servediff.egg-info/top_level.txt +0 -0
  26. {servediff-0.3.3 → servediff-0.3.4}/tests/fixtures/README.md +0 -0
  27. {servediff-0.3.3 → servediff-0.3.4}/tests/fixtures/vllm-47047-v0.23-default.log +0 -0
  28. {servediff-0.3.3 → servediff-0.3.4}/tests/fixtures/vllm-47047-v0.23-marlin.log +0 -0
  29. {servediff-0.3.3 → servediff-0.3.4}/tests/fixtures/vllm-53472-v0.23.log +0 -0
  30. {servediff-0.3.3 → servediff-0.3.4}/tests/fixtures/vllm-53472-v0.26-flag.log +0 -0
  31. {servediff-0.3.3 → servediff-0.3.4}/tests/fixtures/vllm-53472-v0.26.log +0 -0
  32. {servediff-0.3.3 → servediff-0.3.4}/tests/test_env.py +0 -0
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.4 — 2026-11-02
4
+
5
+ - Verified the parallel-config rules against a real TP=8 startup log (vLLM 0.23.1,
6
+ issue #48591): every rank prints its own `world_size=N` line and the role
7
+ assignment has no ETP field. `parallel.world_size`, `parallel.roles`,
8
+ `compile.fusions` and `model_runner` all parse correctly; added a regression test
9
+ distilled from that log.
10
+
3
11
  ## 0.3.3 — 2026-11-02
4
12
 
5
13
  - Extract `model_loading.gib` / `model_loading.seconds` and the torch.compile
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: servediff
3
- Version: 0.3.3
3
+ Version: 0.3.4
4
4
  Summary: Diff what your vLLM / SGLang server actually ran with: auto-selected backends, CUDA graphs, startup failures, dependency versions.
5
5
  License-Expression: Apache-2.0
6
6
  Project-URL: Homepage, https://github.com/apex-mochen/servediff
@@ -189,10 +189,10 @@ Exit codes: `0` no differences, `1` differences, `2` nothing recognised.
189
189
  ## Limits
190
190
 
191
191
  - Tested on: log excerpts posted in vllm#47047 (v0.23) and vllm#53472 (v0.23, v0.26);
192
- full startup logs of vLLM 0.28.0 and 0.30.0 and one SGLang log, all single-GPU with a
193
- dense model. The parallel-config rules were written against the v0.28/v0.30 format
194
- (incl. TP>1 role assignment) and TP4+EP synthetic logs; TP > 1 real logs, MoE models
195
- in full logs, and other versions are not yet verified.
192
+ full startup logs of vLLM 0.28.0 and 0.30.0 and one SGLang log (single-GPU dense);
193
+ a real TP=8 startup log from vllm#48591 (v0.23.1, one line per worker + role
194
+ assignment). The parallel-config rules cover TP>1 real logs; MoE models in full
195
+ logs and other versions are not yet verified.
196
196
  - Parsing is regex-based on log text, which changes between versions. A missed line
197
197
  shows up as `<absent>`, never as a wrong value — please report it.
198
198
 
@@ -168,10 +168,10 @@ Exit codes: `0` no differences, `1` differences, `2` nothing recognised.
168
168
  ## Limits
169
169
 
170
170
  - Tested on: log excerpts posted in vllm#47047 (v0.23) and vllm#53472 (v0.23, v0.26);
171
- full startup logs of vLLM 0.28.0 and 0.30.0 and one SGLang log, all single-GPU with a
172
- dense model. The parallel-config rules were written against the v0.28/v0.30 format
173
- (incl. TP>1 role assignment) and TP4+EP synthetic logs; TP > 1 real logs, MoE models
174
- in full logs, and other versions are not yet verified.
171
+ full startup logs of vLLM 0.28.0 and 0.30.0 and one SGLang log (single-GPU dense);
172
+ a real TP=8 startup log from vllm#48591 (v0.23.1, one line per worker + role
173
+ assignment). The parallel-config rules cover TP>1 real logs; MoE models in full
174
+ logs and other versions are not yet verified.
175
175
  - Parsing is regex-based on log text, which changes between versions. A missed line
176
176
  shows up as `<absent>`, never as a wrong value — please report it.
177
177
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "servediff"
7
- version = "0.3.3"
7
+ version = "0.3.4"
8
8
  description = "Diff what your vLLM / SGLang server actually ran with: auto-selected backends, CUDA graphs, startup failures, dependency versions."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: servediff
3
- Version: 0.3.3
3
+ Version: 0.3.4
4
4
  Summary: Diff what your vLLM / SGLang server actually ran with: auto-selected backends, CUDA graphs, startup failures, dependency versions.
5
5
  License-Expression: Apache-2.0
6
6
  Project-URL: Homepage, https://github.com/apex-mochen/servediff
@@ -189,10 +189,10 @@ Exit codes: `0` no differences, `1` differences, `2` nothing recognised.
189
189
  ## Limits
190
190
 
191
191
  - Tested on: log excerpts posted in vllm#47047 (v0.23) and vllm#53472 (v0.23, v0.26);
192
- full startup logs of vLLM 0.28.0 and 0.30.0 and one SGLang log, all single-GPU with a
193
- dense model. The parallel-config rules were written against the v0.28/v0.30 format
194
- (incl. TP>1 role assignment) and TP4+EP synthetic logs; TP > 1 real logs, MoE models
195
- in full logs, and other versions are not yet verified.
192
+ full startup logs of vLLM 0.28.0 and 0.30.0 and one SGLang log (single-GPU dense);
193
+ a real TP=8 startup log from vllm#48591 (v0.23.1, one line per worker + role
194
+ assignment). The parallel-config rules cover TP>1 real logs; MoE models in full
195
+ logs and other versions are not yet verified.
196
196
  - Parsing is regex-based on log text, which changes between versions. A missed line
197
197
  shows up as `<absent>`, never as a wrong value — please report it.
198
198
 
@@ -233,6 +233,31 @@ def test_v1_runner_detected_from_gpu_model_runner_module():
233
233
  assert f["model_runner"].value == "V1"
234
234
 
235
235
 
236
+ # Real TP>1 log excerpt, distilled from vLLM issue #48591 (0.23.1, TP=8,
237
+ # dspark spec decode crash): every rank prints its own world_size line, the
238
+ # assigned-as line has no ETP field, and the run fails at CUDA graph time.
239
+ TP8 = """\
240
+ (Worker pid=100) INFO 07-14 16:40:12 [parallel_state.py:1607] world_size=8 rank=0 local_rank=0 distributed_init_method=tcp://127.0.0.1:53729 backend=nccl
241
+ (Worker pid=101) INFO 07-14 16:40:13 [parallel_state.py:1607] world_size=8 rank=1 local_rank=1 distributed_init_method=tcp://127.0.0.1:53729 backend=nccl
242
+ (Worker pid=102) INFO 07-14 16:40:13 [parallel_state.py:1607] world_size=8 rank=7 local_rank=7 distributed_init_method=tcp://127.0.0.1:53729 backend=nccl
243
+ (Worker pid=103) INFO 07-14 16:40:23 [parallel_state.py:1942] rank 0 in world size 8 is assigned as DP rank 0, PP rank 0, PCP rank 0, TP rank 0, EP rank N/A, EPLB rank N/A
244
+ (Worker pid=104) INFO 07-14 16:40:23 [gpu_worker.py:378] Using V2 Model Runner
245
+ INFO 07-14 16:38:11 [compilation.py:312] Enabled custom fusions: allreduce_rms
246
+ (Worker_TP7 pid=105) INFO 07-14 16:40:24 [model_runner.py:281] Loading model from scratch...
247
+ (Worker_TP7 pid=106) ERROR 07-14 16:40:44 [model_runner.py:999] RuntimeError: Engine core initialization failed. See root cause above.
248
+ """
249
+
250
+
251
+ def test_tp8_multiple_worker_lines_parse_parallel_config():
252
+ f = servediff.parse(TP8)["facts"]
253
+ assert f["parallel.world_size"].value == 8
254
+ assert f["parallel.roles"].value == ("DP rank 0, PP rank 0, PCP rank 0, TP rank 0, "
255
+ "EP rank N/A, EPLB rank N/A")
256
+ assert f["compile.fusions"].value == "allreduce_rms"
257
+ assert f["model_runner"].value == "V2"
258
+ assert f["startup"].value == "failed"
259
+
260
+
236
261
  def test_roles_without_etp_field_and_kv_layout_absent():
237
262
  text = ("(EngineCore pid=3811) INFO 10-28 11:26:32 [parallel_state.py:1638] "
238
263
  "world_size=1 rank=0 local_rank=0 distributed_init_method=file:///tmp/vllm_dist_x backend=nccl\n"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes