Repository navigation
[llm][ci] Upgrade to vllm 0.27.0 - #65351
Conversation
Signed-off-by: Jeffrey Wang <[email protected]>
Signed-off-by: Jeffrey Wang <[email protected]>
|
vLLM 0.27 moved its request errors onto a new
|
Signed-off-by: Jeffrey Wang <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]> Signed-off-by: Jeffrey Wang <[email protected]>
|
Remaining release test failures are fixed with #65440. Will merge that PR first, rebase and then rerun the release tests. |
There was a problem hiding this comment.
Code Review
This pull request upgrades vLLM from 0.26.0 to 0.27.0, removes the previous Model Runner V2 workaround, and updates various lock files and dependencies, including upgrading PyTorch and Triton. It also introduces NCCL overrides to support DeepEP V2, improves error handling to ensure bad requests return 4xx status codes instead of 500s, and prevents prompt token forwarding from dropping multimodal content. A review comment suggests making the NCCL version check in the Dockerfile more robust by using regular expressions to parse the version string, preventing potential parsing errors from non-numeric characters.
Co-Authored-By: Claude Opus 5 <[email protected]> Signed-off-by: Jeffrey Wang <[email protected]>
| # DeepEP V2 links against NCCL's GIN API, so a downgrade slipped in by one of the | ||
| # scripts above breaks it at runtime even when the build succeeded. Fail here | ||
| # instead. | ||
| python - <<'PY' | ||
| from importlib.metadata import version | ||
|
|
||
| MINIMUM = (2, 30, 4) | ||
| installed = version("nvidia-nccl-cu13") | ||
| if tuple(int(part) for part in installed.split(".")[:3]) < MINIMUM: | ||
| raise SystemExit( | ||
| f"nvidia-nccl-cu13 {installed} is older than " | ||
| f"{'.'.join(str(part) for part in MINIMUM)}, which DeepEP V2 requires" | ||
| ) | ||
| PY |
There was a problem hiding this comment.
- Confirm DSV4 works with this new image
There was a problem hiding this comment.
Hmm okay we actually don't have a way to validate DSV4 with DeepEP without IB.
Signed-off-by: Jeffrey Wang <[email protected]>
…-0.27.0 Signed-off-by: Jeffrey Wang <[email protected]> # Conflicts: # python/ray/llm/_internal/serve/engines/vllm/vllm_engine.py
There was a problem hiding this comment.
Code Review
This pull request upgrades vLLM to version 0.27.0, removing previous workarounds for Model Runner V2, and updates the corresponding dependency lockfiles and documentation. It also introduces NCCL version overrides to satisfy DeepEP V2 requirements and improves error handling in the vLLM engine to ensure client-side errors are correctly reported as 4xx status codes instead of 500s. Feedback was provided regarding a potential ValueError in the Dockerfile's Python check when parsing the nvidia-nccl-cu13 version string if it contains local version identifiers or build metadata.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 8e07549. Configure here.
… stack Signed-off-by: Jeffrey Wang <[email protected]>
|
881e91e: vLLM 0.27 wraps invalid JSON-schema validation errors as engine failures, producing HTTP 500. We temporarily unwrap them and rebuilds FastAPI’s handler stack so direct streaming returns 400. vllm-project/vllm#52394 fixes the root cause by raising typed client-validation errors. I'll remove this workaround in 0.28. |
|
Release test passed: https://buildkite.com/ray-project/release/builds/104892/table. Going to merge from master again and hopefully get around premerge infra failures. |
|
Premerge faiures are unrelated, and it looks like @elliot-barn is on it :) #65626 |
eicherseiji
left a comment
There was a problem hiding this comment.
LGTM. Seems like premerge deps compile failing due to connection errors?
…xt` (#65655) ## Description `pip-compile` bakes whatever index it used into the file it writes. Since #65578 that's CI's per-job mirror URL, so the regenerated lockfile never matches the committed one and the step fails. Unsetting the index vars for that command keeps the header canonical. ## Related issues Resolves `pip-compile dependencies` [step](https://buildkite.com/ray-project/premerge/builds/72282/table) in #65351. ## Validation `pip-compile dependencies` [step](https://buildkite.com/ray-project/premerge/builds/72323/canvas?sid=01a02668-48bd-45a5-96f8-12929b8c0deb&tab=output) passes after cp'ing this fix. ## Additional information > Optional: Add implementation details, API changes, usage examples, screenshots, etc. Signed-off-by: Jeffrey Wang <[email protected]>
1247b79 to
e7f152d
Compare
…xt` (ray-project#65655) ## Description `pip-compile` bakes whatever index it used into the file it writes. Since ray-project#65578 that's CI's per-job mirror URL, so the regenerated lockfile never matches the committed one and the step fails. Unsetting the index vars for that command keeps the header canonical. ## Related issues Resolves `pip-compile dependencies` [step](https://buildkite.com/ray-project/premerge/builds/72282/table) in ray-project#65351. ## Validation `pip-compile dependencies` [step](https://buildkite.com/ray-project/premerge/builds/72323/canvas?sid=01a02668-48bd-45a5-96f8-12929b8c0deb&tab=output) passes after cp'ing this fix. ## Additional information > Optional: Add implementation details, API changes, usage examples, screenshots, etc. Signed-off-by: Jeffrey Wang <[email protected]>
## Description Upgrades vLLM 0.26.0 -> 0.27.0. vLLM 0.27.0 re-parents request errors onto `VLLMError` instead of `ValueError`, turning ordinary bad requests into 500s: - pydantic no longer wraps them during request parsing, so the ingress never sees a `ValidationError`. We added an explicit 4xx mapping in this PR. - `AsyncLLM.generate` re-raises only `VLLMClientError` and wraps everything else in `EngineGenerateError`, erasing the 4xx type. We added a temporary unwrap and will remove once vllm-project/vllm#52394 lands. vLLM 0.27.0 defaults to DeepEP V2 which needs `nccl >= 2.30.4` (`nccl_overrides.txt`), and the `sglang` release image now uninstalls `flashinfer` first, since 0.27 bumps it to `0.6.16.post3` while `sglang` pins `0.6.12`. ## Deferred Multimodal chat under KV-aware token forwarding. Since vllm-project/vllm#48145 the renderer builds engine input from the forwarded ids and skips chat rendering, which drops `multi_modal_data`. Left a TODO in code, and I'll address it in a follow-up while enabling multimodality support for `KVAwareRouter`. ## Related issues > Link related issues: "Fixes ray-project#1234", "Closes ray-project#1234", or "Related to ray-project#1234". ## Additional information > Optional: Add implementation details, API changes, usage examples, screenshots, etc. --------- Signed-off-by: Jeffrey Wang <[email protected]> Co-authored-by: Claude Opus 5 <[email protected]>

Description
Upgrades vLLM 0.26.0 -> 0.27.0.
vLLM 0.27.0 re-parents request errors onto
VLLMErrorinstead ofValueError, turning ordinary bad requests into 500s:ValidationError. We added an explicit 4xx mapping in this PR.AsyncLLM.generatere-raises onlyVLLMClientErrorand wraps everything else inEngineGenerateError, erasing the 4xx type. We added a temporary unwrap and will remove once [Bugfix] RaiseVLLMValidationErrorfrom structured output validators vllm-project/vllm#52394 lands.vLLM 0.27.0 defaults to DeepEP V2 which needs
nccl >= 2.30.4(nccl_overrides.txt), and thesglangrelease image now uninstallsflashinferfirst, since 0.27 bumps it to0.6.16.post3whilesglangpins0.6.12.Deferred
Multimodal chat under KV-aware token forwarding. Since vllm-project/vllm#48145 the renderer builds engine input from the forwarded ids and skips chat rendering, which drops
multi_modal_data. Left a TODO in code, and I'll address it in a follow-up while enabling multimodality support forKVAwareRouter.Related issues
Additional information