Skip to content

[llm][ci] Bump vLLM to 0.34.0 - #68361

Merged
jeffreywang88 merged 7 commits into
masterfrom
vllm-0.34.0
Nov 21, 2026
Merged

jeffreywang88 merged 7 commits into
masterfrom
vllm-0.34.0

Conversation

@jeffreywang88

@jeffreywang88 jeffreywang88 commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Overview

Bumps Ray LLM to vLLM 0.34.0. Stacked on #68360, which lifts the OpenTelemetry and filelock pins vLLM 0.34 needs; review that one first. No open PR does this bump.

Approach

  • vllm[audio] 0.33.0 → 0.34.0 in setup.py and llm-requirements.txt. nixl / nixl-cu13 1.5.0 → 1.5.2 to match vLLM's kv_connectors.txt.
  • docker/ray-llm/Dockerfile: vLLM scripts ref → v0.34.0, DeepEP commit → the one vLLM 0.34's install script uses.
  • Regenerated the rayllm locks (raydepsets build). Notable moves: transformers 5.17 → 5.22.2, huggingface-hub 1.33 → 2.4.0, flashinfer 0.7.3, datasets 5.2.0, mistral-common 1.13.1.
  • No other Ray code changes needed for the bump. I went through the vLLM 0.34 changes that touch what Ray imports (engine client, init_app_state / build_app, tokenizer, the DP server) and they still line up.
  • Removed the compile-cache backport (engines/vllm/patches/). vLLM 0.34 has VLLM_COMPILE_ON_ONE_RANK ([Compile] Make the compile cache device-neutral with compile_on_one_rank vllm-project/vllm#63247) and pins torch 2.14, so ModelExpress setup now just sets that flag, unless the user already set it. MX peers load a transferred compile cache on other GPU indices, so the cache has to be device-neutral.
  • Docs: version tables now say nightly → 0.34.0, and I added the missing 2.61.0 (0.33.0) and 2.60.0 (0.29.0) rows from the release branches.

🤖 Generated with Claude Code

@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 the supported vLLM version from 0.33.0 to 0.34.0. This includes updating Dockerfiles, setup configurations, requirements files, lockfiles, and documentation to reflect the new vLLM version and its compatible dependencies (such as nixl, flashinfer-python, huggingface-hub, tokenizers, and transformers). There are no review comments to address, and I have no additional feedback to provide.

@ray-gardener ray-gardener Bot added docs An issue or change related to documentation llm labels Nov 20, 2026
@jeffreywang88 jeffreywang88 added the go add ONLY when ready to merge, run all tests label Nov 20, 2026
Base automatically changed from bump-otel-filelock to master November 20, 2026 07:10
jeffreywang88 added a commit that referenced this pull request Nov 20, 2026
…12+ (#68360)

## Overview

vLLM 0.34.0 needs `opentelemetry>=1.45.1` and `filelock>=4.2.4`. Ray
pins OpenTelemetry 1.39.0 and filelock 3.29.0 in
`requirements_compiled.txt`, and the rayllm depsets are built on top of
that, so the vLLM bump can't resolve. This PR lifts both pins for all of
Ray. The vLLM bump itself is stacked on top in #68361.

## Approach

- **OpenTelemetry:** bump the family pins in `test-requirements.txt` to
1.45.2 (api, sdk, proto, exporter-otlp-proto-grpc) and 0.66b2
(exporter-prometheus, semantic-conventions, instrumentation-fastapi).
- **filelock:** add a `>=4.2.4` floor on Python 3.12+ only. `aim` (tune
tests, Python < 3.12) caps filelock below 4, even in its latest release,
so 3.10/3.11 stay on 3.29.0. The same floor goes in
`base-test-requirements.txt`, which only the rayllm base depset reads.
- Regenerated `requirements_compiled.txt` (`ci/ci.sh
compile_pip_dependencies`, Python 3.11, pip-tools 7.4.1),
`requirements_compiled_py3.14.txt` (`compile_pip_dependencies_py314`),
and every depset (`raydepsets build --all-configs`). Apart from
OpenTelemetry and filelock, the only other change is
`snowflake-connector-python` 4.8 → 5.2 on Python 3.14, because 4.8 caps
filelock below 4.
- #66698 bumps OpenTelemetry to 1.40 to fix duplicate Prometheus
headers. This PR goes further to 1.45.2, so it would replace that one.

## Validation

- `python/ray/tests/test_open_telemetry_metric_recorder.py`: 19 passed.
- `python/ray/serve/tests/test_serve_with_tracing.py`: passed.
- Drove `OpenTelemetryMetricRecorder` through `PrometheusMetricReader`
with a gauge, counter, sum and histogram, including one metric with two
different label sets. The scraped output parses with
`prometheus_client`, has one HELP block per metric, and is identical on
1.39.0 and 1.45.2.
- `test_metrics_agent.py` and `dashboard/.../test_reporter.py`: the
failures I saw locally come from my dev box (a Ray cluster already
running there, no dashboard frontend build, no DNS). The same 17 tests
fail the same way with the old pins, so I'm relying on CI for these.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Signed-off-by: Jeffrey Wang <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
jeffreywang88 and others added 6 commits November 19, 2026 23:10
Signed-off-by: Jeffrey Wang <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Jeffrey Wang <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Jeffrey Wang <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…0.34

Signed-off-by: Jeffrey Wang <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@jeffreywang88
jeffreywang88 enabled stacked auto-merge (squash) November 21, 2026 01:57
# A peer can load the transferred compile cache on a different GPU index than
# the one that compiled it, which crashes with "CUDA driver error: invalid
# argument" unless the cache is device-neutral.
_set_default("VLLM_COMPILE_ON_ONE_RANK", "1")

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.

I'm a bit suspicious of setting env vars by default in ray serve llm. what is the context in mx?

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.

mx hands a replica's torch.compile cache to peer replicas, and the peer may load it on a different physical GPU index. torch's inductor hardcodes the device index in its generated code, so loading it on another index fails with CUDA driver error: invalid argument.

VLLM_COMPILE_ON_ONE_RANK=1 makes vllm compile with torch's compile_on_one_rank, which reads the device at runtime, so the cache works on any GPU.

the scope of impact is targeted as this only happens in a mx deployment (load_format="modelexpress").

Comment thread docker/ray-llm/Dockerfile
# into bash doesn't provide, so fetch the patch from the same ref.
EP_PATCHES_DIR=/home/ray/llm_ep_support/patches
mkdir -p "${EP_PATCHES_DIR}"
curl -fsSL "${VLLM_RAW}/tools/ep_kernels/patches/deepep-gin-barrier-data-visibility.patch" \

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.

Ideally we can just install ray into the vllm image one day..

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.

yeah targeting that work to land by EOY #68053

popen.assert_not_called()


def test_compile_cache_compat_rewrites_device_literals():

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.

haha what the heck

@jeffreywang88
jeffreywang88 merged commit 13b350d into master Nov 21, 2026
5 checks passed
@jeffreywang88
jeffreywang88 deleted the vllm-0.34.0 branch November 21, 2026 14:01
elliot-barn added a commit that referenced this pull request Nov 22, 2026
…ndency pins (#68360) onto releases/2.61.0 (#68425)

## Why

Ship Ray 2.61.0 with vLLM 0.34.0 instead of 0.33.0.

## What

Two commits on top of `releases/2.61.0`:

1. **#68360** (merged on master as 935cc32): bumps OpenTelemetry to
1.45.2 and filelock to 4.2.4+ on Python 3.12+. vLLM 0.34.0 can't resolve
without it.
2. **#68361** at 4cc6bf6 (by @jeffreywang88, **still open against
master**): bumps `vllm[audio]` to 0.34.0, NIXL to 1.5.2, the ray-llm
Dockerfile refs, and the rayllm locks, and replaces the compile-cache
backport with `VLLM_COMPILE_ON_ONE_RANK`.

Differences from the sources:

- **#68360 conflict**: one comment-only conflict in
`requirements_compiled_py3.14.txt` (the `# via` list for
`sortedcontainers`). Master lists `hypothesis` there, which #68259 added
and this branch doesn't have, so the entry is `# via distributed`.
- **Docs**: the vLLM version tables say 2.61.0 → 0.34.0. #68361 on
master adds that row as 0.33.0, which will need the same fix there if
this pick lands.
- Every other file #68361 touches is identical to its PR head.

grpcio stays at 1.75.0: #68361's locks were generated before #67491
(grpcio 1.85.0), which is not on this branch.

## Testing

- `bazel run //ci/raydepsets:raydepsets -- build --all-configs --check`
passes ("Lock files are up to date").
- No images built and no LLM tests run locally.

This is a draft because #68361 hasn't merged on master. If that PR
changes before it merges, this pick needs to be refreshed to match.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: Jeffrey Wang <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
Co-authored-by: Jeffrey Wang <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs An issue or change related to documentation go add ONLY when ready to merge, run all tests llm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants