Skip to content

build: bump vllm to 0.29.0 - #3505

Closed
yfw wants to merge 1 commit into
mainfrom
yifu/vllm0_29
Closed

yfw wants to merge 1 commit into
mainfrom
yifu/vllm0_29

Conversation

@yfw

@yfw yfw commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Bumps vLLM from 0.25.1 to 0.29.0 (and flashinfer to the 0.6.18 that 0.29.0 specifies) so Gym's model servers track the same vLLM as NeMo RL, whose bump is NVIDIA-NeMo/RL#4080. Fixes #3495.

vLLM 0.29.0's wheels are built against torch 2.13, so the lock moves torch 2.11.0 → 2.13.0, torchvision 0.26.0 → 0.28.0, triton → 3.7.1, nvidia-cutlass-dsl → 4.6.2.

Changes

  • Pins — pyproject.toml [vllm] extra and both server setup.py files (local_vllm_model, genrm_model, which must match): vllm==0.29.0, flashinfer-python==0.6.18; uv.lock relocked.
  • Entrypoint relocation — vLLM 0.29 moved the server entrypoints under vllm.entrypoints.launchers and turned vllm.entrypoints.openai.api_server into a deprecation shim that no longer re-exports FlexibleArgumentParser, cli_env_setup, make_arg_parser, validate_parsed_serve_args or serve_http. local_vllm_model/app.py now imports them from vllm.entrypoints.launchers.cli_args, vllm.entrypoints.serve.utils.api_utils and vllm.utils.argparse_utils (falling back to the old path for the macOS vllm==0.11.0 pin), and the actor resolves run_server and patches serve_http on vllm.entrypoints.launchers.api_server.entry, the module whose run_server actually calls serve_http. Patching the shim would have been a silent no-op.
  • Unchanged on purpose — the two vLLM internals the actor re-implements, CoreEngineActorManager.create_dp_placement_groups and DPEngineCoreProc._init_data_parallel, are byte-identical between 0.25.1 and 0.29.0.
  • pycountry is no longer dropped by the root override-dependencies ⚠️ maintainer call. vLLM 0.29's engine core imports vllm.v1.structured_output → backend_guidance → transformers.MistralCommonBackend → mistral_common → pydantic_extra_types.language_code, which raises RuntimeError: The language_code module requires "pycountry" when it is missing. With the override in place neither vllm serve nor local_vllm_model can import on 0.29 (0.25.1 did not import MistralCommonBackend; pinning mistral_common back to 1.11.6 does not help, the import is in pydantic_extra_types). pycountry is LGPL-2.1, which is presumably why it was on the drop list. NeMo RL's container already ships it (via pydantic-extra-types[pycountry]), so for the RL integration this changes nothing; for Gym's own container it does. If keeping it out is preferred, the alternative is to re-enable it only in the two vLLM server venvs' [tool.uv] override-dependencies, at the cost of Gym's own vllm serve-based e2e no longer importing.

Validation

CI on this branch, run in nightly mode via workflow_dispatch (the mode that unlocks the GPU jobs a PR push skips):

  • CICD NeMo Gym run 35286289540: Build Gym container ✅ (7 min), GPU E2E – Qwen vLLM rollout ✅ (5 min, on the internal GPU runner), server suite (8 shards) ✅, unit tests ✅. Provider e2e matrix skipped as on every dispatch without provider credentials.
  • Full test suite run 35286291969: ✅.

Local venv with vLLM 0.29.0 / torch 2.13.0 (uv sync --extra dev --extra vllm):

  • responses_api_models/local_vllm_model/tests, responses_api_models/genrm_model/tests, tests/unit_tests/test_cli_main.py, tests/unit_tests/test_cli_endpoint_readiness.py: 254 passed.
  • vllm serve --help works; the app's cli_env_setup → FlexibleArgumentParser → make_arg_parser → validate_parsed_serve_args path parses a serve command line; the actor's serve_http patch target resolves to vllm.entrypoints.launchers.api_server.entry.
  • pre-commit run --files … clean.

Follow-up in NeMo RL

Once this merges, RL bumps the Gym submodule pointer and NEMO_GYM_VLLM_VERSION (the ARG RL uses to force Gym's server venvs onto its vLLM) from 0.25.1 to 0.29.0. Until then RL's container keeps Gym's servers on vLLM 0.25.1, which is the combination validated by RL's 0.29 nightlies (RL and Gym servers are separate processes over HTTP).

🤖 Generated with Claude Code

Aligns Gym with NeMo RL's vLLM 0.29.0 bump (NVIDIA-NeMo/RL#4080).
Fixes #3495.

- pyproject.toml [vllm] extra and both server setup.py files
  (local_vllm_model, genrm_model): vllm 0.25.1 -> 0.29.0,
  flashinfer-python 0.6.13 -> 0.6.18 (the flashinfer version 0.29.0
  specifies; pre-compiled cu130 kernels for x86_64 and aarch64).
  uv.lock relocked: torch 2.11.0 -> 2.13.0, torchvision 0.26.0 ->
  0.28.0, triton 3.7.1, nvidia-cutlass-dsl 4.6.2.
- vLLM 0.29 moved the server entrypoints under
  vllm.entrypoints.launchers and turned vllm.entrypoints.openai.api_server
  into a deprecation shim that no longer re-exports FlexibleArgumentParser,
  cli_env_setup, make_arg_parser, validate_parsed_serve_args or serve_http.
  local_vllm_model/app.py imports them from their new modules (with the
  pre-0.29 path as a fallback for the macOS vllm==0.11.0 pin), and the
  actor resolves run_server / patches serve_http on
  vllm.entrypoints.launchers.api_server.entry, the module run_server
  actually calls serve_http from. The two vLLM internals the actor
  re-implements (CoreEngineActorManager.create_dp_placement_groups,
  DPEngineCoreProc._init_data_parallel) are byte-identical between
  0.25.1 and 0.29.0, so they are unchanged.
- pycountry is no longer dropped by the root override. vLLM 0.29's engine
  core imports vllm.v1.structured_output -> backend_guidance ->
  transformers.MistralCommonBackend -> mistral_common ->
  pydantic_extra_types.language_code, which raises without pycountry, so
  `vllm serve` and local_vllm_model could not import at all without it
  (0.25.1 did not import MistralCommonBackend). Flagged in the PR: pycountry
  is LGPL-2.1; NeMo RL's container already ships it via
  pydantic-extra-types[pycountry].

Verified locally on vLLM 0.29.0 / torch 2.13.0: local_vllm_model and
genrm_model tests plus the CLI unit tests (254 passed), `vllm serve --help`,
and the app's FlexibleArgumentParser/make_arg_parser/validate path.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Signed-off-by: Yi-Fu Wu <[email protected]>
@copy-pr-bot

copy-pr-bot Bot commented Sep 17, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@yfw yfw mentioned this pull request Sep 18, 2026
4 tasks done
@svcnvidia-nemo-ci svcnvidia-nemo-ci added area:model Model servers, inference providers, and model adapters feature New capabilities, enhancements, or enablement work labels Oct 20, 2026
@yfw yfw closed this Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:model Model servers, inference providers, and model adapters feature New capabilities, enhancements, or enablement work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support vLLM version 0.29.0

2 participants