Repository navigation
Conversation
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]>
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
pyproject.toml[vllm]extra and both serversetup.pyfiles (local_vllm_model,genrm_model, which must match):vllm==0.29.0,flashinfer-python==0.6.18;uv.lockrelocked.vllm.entrypoints.launchersand turnedvllm.entrypoints.openai.api_serverinto a deprecation shim that no longer re-exportsFlexibleArgumentParser,cli_env_setup,make_arg_parser,validate_parsed_serve_argsorserve_http.local_vllm_model/app.pynow imports them fromvllm.entrypoints.launchers.cli_args,vllm.entrypoints.serve.utils.api_utilsandvllm.utils.argparse_utils(falling back to the old path for the macOSvllm==0.11.0pin), and the actor resolvesrun_serverand patchesserve_httponvllm.entrypoints.launchers.api_server.entry, the module whoserun_serveractually callsserve_http. Patching the shim would have been a silent no-op.CoreEngineActorManager.create_dp_placement_groupsandDPEngineCoreProc._init_data_parallel, are byte-identical between 0.25.1 and 0.29.0.pycountryis no longer dropped by the rootoverride-dependenciesvllm.v1.structured_output → backend_guidance → transformers.MistralCommonBackend → mistral_common → pydantic_extra_types.language_code, which raisesRuntimeError: The language_code module requires "pycountry"when it is missing. With the override in place neithervllm servenorlocal_vllm_modelcan import on 0.29 (0.25.1 did not importMistralCommonBackend; pinningmistral_commonback to 1.11.6 does not help, the import is inpydantic_extra_types). pycountry is LGPL-2.1, which is presumably why it was on the drop list. NeMo RL's container already ships it (viapydantic-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 ownvllm 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):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 --helpworks; the app'scli_env_setup→FlexibleArgumentParser→make_arg_parser→validate_parsed_serve_argspath parses a serve command line; the actor'sserve_httppatch target resolves tovllm.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