Skip to content

[llm][ci] Upgrade to vllm 0.27.0 - #65351

Merged
jeffreywang88 merged 18 commits into
masterfrom
vllm-0.27.0
Aug 23, 2026
Merged

jeffreywang88 merged 18 commits into
masterfrom
vllm-0.27.0

Conversation

@jeffreywang88

@jeffreywang88 jeffreywang88 commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

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:

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 #1234", "Closes #1234", or "Related to #1234".

Additional information

Optional: Add implementation details, API changes, usage examples, screenshots, etc.

Signed-off-by: Jeffrey Wang <[email protected]>
@jeffreywang88 jeffreywang88 added the go add ONLY when ready to merge, run all tests label Aug 10, 2026
@jeffreywang88

jeffreywang88 commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor Author

vLLM 0.27 moved its request errors onto a new VLLMError hierarchy that no longer inherits ValueError. Everything that used to key off ValueError then misbehaved in one of two opposite directions:

  • Leaked through: VLLMValidationError (e.g. top_logprobs=-2) is no longer a ValueError, so pydantic stopped wrapping it into ValidationError, it escaped request parsing untouched, and nothing recognized it as a bad request → 500.
  • Over-caught / re-wrapped: vLLM's own grammar validators still raise plain ValueError, but generate() narrowed its passthrough from except ValueError to except VLLMClientError. So those now fall into the generic except Exception and come back as EngineGenerateError — a server error — which Ray correctly declines to treat as a 400 → 500.

@jeffreywang88

Copy link
Copy Markdown
Contributor Author

Remaining release test failures are fixed with #65440. Will merge that PR first, rebase and then rerun the release tests.

@jeffreywang88
jeffreywang88 marked this pull request as ready for review August 14, 2026 22:42
@jeffreywang88
jeffreywang88 requested review from a team, edoakes and richardliaw as code owners August 14, 2026 22:42

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread docker/ray-llm/Dockerfile Resolved
@jeffreywang88
jeffreywang88 marked this pull request as draft August 14, 2026 22:44
Comment thread docker/ray-llm/Dockerfile
Comment on lines +101 to +114
# 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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Confirm DSV4 works with this new image

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
@jeffreywang88
jeffreywang88 marked this pull request as ready for review August 18, 2026 04:12

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread docker/ray-llm/Dockerfile Resolved
@ray-gardener ray-gardener Bot added serve Ray Serve Related Issue llm labels Aug 18, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ 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.

@jeffreywang88

Copy link
Copy Markdown
Contributor Author

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.

@jeffreywang88

Copy link
Copy Markdown
Contributor Author

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.

@jeffreywang88

Copy link
Copy Markdown
Contributor Author

Premerge faiures are unrelated, and it looks like @elliot-barn is on it :) #65626

@jeffreywang88
jeffreywang88 requested a review from a team as a code owner August 20, 2026 21:29

@eicherseiji eicherseiji left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Seems like premerge deps compile failing due to connection errors?

elliot-barn pushed a commit that referenced this pull request Aug 21, 2026
…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]>
@jeffreywang88
jeffreywang88 merged commit 667f964 into master Aug 23, 2026
5 of 6 checks passed
@jeffreywang88
jeffreywang88 deleted the vllm-0.27.0 branch August 23, 2026 18:30
nadongjun pushed a commit to nadongjun/ray that referenced this pull request Oct 6, 2026
…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]>
nadongjun pushed a commit to nadongjun/ray that referenced this pull request Oct 6, 2026
## 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go add ONLY when ready to merge, run all tests llm serve Ray Serve Related Issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ray fails to serialize self-reference objects

3 participants