Repository navigation
fix(pack): upgrade vllm-router in released CANN 0.30.0 images - #442
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a post-operation to upgrade the vllm-router package to version 0.1.17 for CANN 9.2 vLLM 0.30.0 images across several hardware variants. The feedback suggests adding the --no-deps flag to the uv pip install command to prevent unintended upgrades of other shared dependencies in the base image.
b5cc878 to
6797589
Compare
vLLM Router 0.1.15 predates the fix that sets min_tokens=1 alongside max_tokens=1 on the internal prefill request. On Ascend Mooncake PD a prefill-only request can then finish on its first token with FINISHED_STOPPED, which leaves Decode without KV handoff parameters and lets it recompute the whole prompt. Reinstall 0.1.17 into the released CANN 9.2 vLLM 0.30.0 images for all four hardware variants and both platforms. The wheel is prebuilt for aarch64 and x86_64 and declares the same dependencies as 0.1.15; --no-deps keeps the install from resolving or moving anything else in the image. ref #6889 Signed-off-by: 邓伟平 <dengweiping@cecw.net>
6797589 to
28c12b4
Compare
|
Have you tried with v0.32.0? |
Verification on an Ascend 910B host (before/after)We reproduced the issue and confirmed the fix with the real Environment
The released CANN 9.2 vLLM 0.30.0 image itself was not on the host, and the root filesystem had only ~23 GB free; pulling the ~20 GB image would have put the machine at risk. The comparison therefore uses the same CANN 9.2 image family (0.32.0) and changes only the router package. That is the same delta this post-operation applies to 0.30.0, and the prefill request is constructed entirely inside Method
Result
{ "model": "m", "messages": [...], "max_tokens": 1,
"kv_transfer_params": { "do_remote_decode": true, ... } }
{ "model": "m", "messages": [...], "max_tokens": 1, "min_tokens": 1,
"kv_transfer_params": { "do_remote_decode": true, ... } }With 0.1.15 a first-token EOS/stop ends Prefill with Host context (8× Ascend 910B2, GPUStack v2.3.0, vendor Scope and limits
ref #6889 |
|
@thxCode yes — the verification I posted a few minutes after your comment was run on the v0.32.0 image: #442 (comment) Concretely, on the Ascend host I compared the stock So v0.32.0 does not need this operation — its catalog rows already report If the intent is to retire 0.30.0 in favour of 0.32.0 rather than patch it, that is a separate decision — 0.30.0 is still a selectable catalog row today. Also happy to extend the operation to ref #6889 |
|
To expand on the v0.32.0 question, here is the exact matrix we ran and what each row proves.
What "tried with v0.32.0" covered:
Why the PR still targets v0.30.0 rather than v0.32.0:
If by "tried with v0.32.0" you meant the full NPU PD inference e2e on that image, we have not run that part — the verification is at the router/request layer. I can run the full PD e2e (Prefill ref #6889 |
Follow-up: full NPU PD inference e2e on v0.32.0Yes — this run went through the full PD path on a v0.32.0 image, not just the router request capture. Environment
Method
ResultClient — HTTP 200, the request completes: {
"finish_reason": "stop",
"stop_reason": 151667,
"usage": {"prompt_tokens": 15, "completion_tokens": 1, "total_tokens": 16}
}Router → Prefill request — the fix is in the one-token prefill: {
"max_tokens": 1,
"min_tokens": 1,
"stop_token_ids": [151667],
"kv_transfer_params": {"do_remote_decode": true, "do_remote_prefill": false}
}Prefill response — it no longer stops on the first token; it length-caps and returns the KV handoff: {
"finish_reason": "length",
"kv_transfer_params": {
"remote_host": "<redacted>",
"remote_port": 45000,
"num_prompt_blocks": 1,
"remote_block_size": 128,
"remote_prefill_cached_tokens": 0
}
}With ScreenshotsHarness noteGPUStack v2.3.0's managed PD injection does not add No server addresses or credentials are included; the internal host in ref #6889 |
|
In fact, we hope users will apply the latest version(v0.32.0 at present), but we cannot guarantee the latest one is stable. (Ascend released v0.32.0rc1 only.) So, I think this can be merged, and repackaged as v0.30.0. |




What changed
Adds post-operation
pack/.post_operation/20261124_vllm_upgrade_router/to reinstallvllm-router0.1.17 into the released Ascend CANN 9.2 vLLM 0.30.0 images.The released images carry
vllm-router0.1.15, which predates vllm-project/router#360; that fix setsmin_tokens=1alongsidemax_tokens=1on the internal prefill request. Without it, a prefill-only request can finish on its first token withFINISHED_STOPPED; both Ascend Mooncake connectors only return KV handoff parameters forFINISHED_LENGTH_CAPPED, so Decode is forwarded the original request with no remote blocks and can recompute the whole prompt. 0.1.17 is the first release carrying the fix.Scope: the four released CANN 9.2 vLLM 0.30.0 tags, both platforms:
cann9.2-910b-vllm0.30.0cann9.2-950-vllm0.30.0cann9.2-a3-vllm0.30.0cann9.2-310p-vllm0.30.0Deliberately not included:
deprecated=Truein the catalog.cuda13.0-vllm0.30.0: it carries the same router, but the reported failure is specific to the Ascend Mooncake connectors'FINISHED_LENGTH_CAPPEDrequirement. Extend the operation if the CUDA connector is confirmed to fail the same way.Running the operation
The recipe builds on the existing images and only adds a wheel install; nothing is recompiled.
Then rerun with
dry_run=false. As documented inpack/.post_operation/README.md, the run mutates the released tags, opens thechore: update runnerPR with the regeneratedgpustack_runner/runner.py.json(and fixtures), and the pending[ ]row in that README should be flipped to[x]once it completes.Verification
pack/expand_matrix.shwith the inputs above expands to exactly 8 build jobs and 4 manifest jobs, with the tags listed above andlinux/amd64+linux/arm64per tag.uv run pytest tests/pack tests/gpustack_runner— 517 passed.pre-commit run --fileson the three changed files — YAML, whitespace, EOF, large files, merge conflict, private key and codespell hooks passed._assert_runtime_recipeaccepts the Dockerfile as a runtime recipe (namedvllmstage, entrypoint, no probe/export instrumentation).uv run mkdocs build --strictpassed.vllm_router-0.1.17-cp38-abi3-manylinux_2_28_{aarch64,x86_64}.whl, matching both platforms. Its wheel metadata declares the same six pure-Python web dependencies as 0.1.15, so the install replaces only the router.Not verified here: the image build itself (Pack needs maintainer authorization and credentials) and the Ascend end-to-end scenario from the issue, which needs 910B hardware.
The CI workflow on this PR is currently
action_requiredbecause the branch comes from a first-time contributor fork; a maintainer needs to approve the run before it executes.Risks
ref #6889