Repository navigation
[llm][ci] Bump vLLM to 0.34.0 - #68361
Conversation
There was a problem hiding this comment.
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.
…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]>
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]>
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]>
6326104 to
ac3b6ce
Compare
…0.34 Signed-off-by: Jeffrey Wang <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
| # 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") |
There was a problem hiding this comment.
I'm a bit suspicious of setting env vars by default in ray serve llm. what is the context in mx?
There was a problem hiding this comment.
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").
| # 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" \ |
There was a problem hiding this comment.
Ideally we can just install ray into the vllm image one day..
There was a problem hiding this comment.
yeah targeting that work to land by EOY #68053
| popen.assert_not_called() | ||
|
|
||
|
|
||
| def test_compile_cache_compat_rewrites_device_literals(): |
…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]>
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 insetup.pyandllm-requirements.txt.nixl/nixl-cu131.5.0 → 1.5.2 to match vLLM'skv_connectors.txt.docker/ray-llm/Dockerfile: vLLM scripts ref →v0.34.0, DeepEP commit → the one vLLM 0.34's install script uses.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.init_app_state/build_app, tokenizer, the DP server) and they still line up.engines/vllm/patches/). vLLM 0.34 hasVLLM_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.🤖 Generated with Claude Code