From 28c12b4f6ca7d7e24fc8103355cdca868b9c2676 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E4=BC=9F=E5=B9=B3?= Date: Tue, 24 Nov 2026 15:01:56 +0800 Subject: [PATCH] fix(pack): upgrade vllm-router in released CANN 0.30.0 images MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: 邓伟平 --- .../cann/Dockerfile.vllm | 40 +++++++++++++++++++ .../20261124_vllm_upgrade_router/matrix.yaml | 38 ++++++++++++++++++ pack/.post_operation/README.md | 1 + 3 files changed, 79 insertions(+) create mode 100644 pack/.post_operation/20261124_vllm_upgrade_router/cann/Dockerfile.vllm create mode 100644 pack/.post_operation/20261124_vllm_upgrade_router/matrix.yaml diff --git a/pack/.post_operation/20261124_vllm_upgrade_router/cann/Dockerfile.vllm b/pack/.post_operation/20261124_vllm_upgrade_router/cann/Dockerfile.vllm new file mode 100644 index 0000000..1f7c168 --- /dev/null +++ b/pack/.post_operation/20261124_vllm_upgrade_router/cann/Dockerfile.vllm @@ -0,0 +1,40 @@ +ARG CANN_VERSION=9.2 +ARG CANN_ARCHS=910b +ARG VLLM_VERSION=0.30.0 +ARG VLLM_ROUTER_VERSION=0.1.17 + +FROM gpustack/runner:cann${CANN_VERSION}-${CANN_ARCHS}-vllm${VLLM_VERSION} AS vllm +SHELL ["/bin/bash", "-eo", "pipefail", "-c"] + +ARG VLLM_ROUTER_VERSION + +## Upgrade vLLM Router +## +## vLLM Router 0.1.15 predates the fix that sets `min_tokens=1` alongside +## `max_tokens=1` on the internal prefill request. Without it, a prefill-only +## request can finish on its first token with FINISHED_STOPPED, and the Ascend +## Mooncake connectors only return KV handoff parameters for +## FINISHED_LENGTH_CAPPED -- so Decode is sent the original request with no +## remote blocks and can recompute the whole prompt. 0.1.17 is the first +## release carrying that fix. +## +## The wheel is prebuilt for aarch64 and x86_64 and declares the same +## pure-Python web dependencies as 0.1.15, and `--no-deps` keeps the install +## from resolving or moving anything else in the image. Only the router +## changes. +RUN </dev/null + + # Review + uv pip tree +EOF + +WORKDIR / +ENTRYPOINT [ "tini", "--" ] diff --git a/pack/.post_operation/20261124_vllm_upgrade_router/matrix.yaml b/pack/.post_operation/20261124_vllm_upgrade_router/matrix.yaml new file mode 100644 index 0000000..90b086d --- /dev/null +++ b/pack/.post_operation/20261124_vllm_upgrade_router/matrix.yaml @@ -0,0 +1,38 @@ +rules: + + # Released Ascend CANN 9.2 vLLM 0.30.0 images, one rule per hardware variant. + # + # CANN_VERSION carries the major.minor the released tag uses; the recipe's + # patch component (9.2.1) is not part of the image tag. + + - backend: "cann" + services: + - "vllm" + args: + - "CANN_VERSION=9.2" + - "CANN_ARCHS=910b" + - "VLLM_VERSION=0.30.0" + + - backend: "cann" + services: + - "vllm" + args: + - "CANN_VERSION=9.2" + - "CANN_ARCHS=950" + - "VLLM_VERSION=0.30.0" + + - backend: "cann" + services: + - "vllm" + args: + - "CANN_VERSION=9.2" + - "CANN_ARCHS=a3" + - "VLLM_VERSION=0.30.0" + + - backend: "cann" + services: + - "vllm" + args: + - "CANN_VERSION=9.2" + - "CANN_ARCHS=310p" + - "VLLM_VERSION=0.30.0" diff --git a/pack/.post_operation/README.md b/pack/.post_operation/README.md index beca39b..052dd5f 100644 --- a/pack/.post_operation/README.md +++ b/pack/.post_operation/README.md @@ -72,3 +72,4 @@ refresh their existing catalog rows. If selected again, they use central collect - [x] 2026-09-20: Install `vllm-router` package for vLLM 0.27.1 of CUDA released images. - [x] 2026-09-24: Patch vLLM 0.29.0 of CUDA/ROCm released images to fix mooncake store pending load assertion. - [x] 2026-10-16: Disable the spec-less `humming` stub vllm-omni registers in `sys.modules` for vLLM 0.27.1/0.29.0/0.30.0/0.31.0 of ROCm/CANN released images. +- [ ] 2026-11-24: Upgrade `vllm-router` to 0.1.17 for vLLM 0.30.0 of CANN 9.2 released images.