Repository navigation
fix(local_vllm_model): align server vLLM pins with the root vllm extra - #4659
Merged
Merged
Conversation
The root vllm extra moved to vllm 0.29.0 and flashinfer-python 0.6.18, but local_vllm_model and genrm_model still pinned vllm 0.25.1 and flashinfer-python 0.6.13. Installing either server against a vllm 0.29.0 override cannot resolve, which leaves an empty server venv. Bump both servers to vllm 0.29.0 and flashinfer-python 0.6.18. vLLM 0.29 moved the OpenAI server entry points to vllm.entrypoints.launchers, so import from there and fall back to the old module for the macOS vllm 0.11.0 pin. Signed-off-by: Ananth Subramaniam <[email protected]>
chtruong814
approved these changes
Oct 16, 2026
Contributor
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/38829286023 |
This branch was previously deployed
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 changed and why
#3734 moved the root
vllmextra to vLLM 0.29.0 and flashinfer-python 0.6.18.local_vllm_modelandgenrm_modelstill pin vLLM 0.25.1 and flashinfer-python 0.6.13 in theirsetup.py.This breaks consumers that build server venvs against a single vLLM version. For example, the NeMo RL container prefetches Gym environments with a vLLM 0.29.0 override. That override conflicts with the servers' flashinfer pin, so dependency resolution fails and the server venv is left empty. A later prefetch with
skip_venv_if_presentreuses the empty venv, and startup then fails withNo module named 'ray'. The missing Ray module is a symptom; the cause is the version mismatch.This PR makes the following changes:
vllm==0.29.0andflashinfer-python==0.6.18, matching the root extra. The macOS pin stays at vLLM 0.11.0.vllm.entrypoints.openai.api_servertovllm.entrypoints.launchers; the old module is now a deprecated shim that no longer exportsmake_arg_parser,cli_env_setuporrun_server.app.pyandlocal_vllm_model_actor.pynow import from the new location and fall back to the old module for the macOS pin.serve_httpin the namespace of the module that definesrun_server. That is where vLLM looks it up.DPEngineCoreProc._init_data_parallelandCoreEngineActorManager.create_dp_placement_groups). Their upstream sources are identical in vLLM 0.25.1 and 0.29.0, so the patches stay valid.No issue is linked: this is a direct follow-up to #3734, which missed these two servers.
Validation
-W error::DeprecationWarning.pytestinresponses_api_models/local_vllm_model/testsandresponses_api_models/genrm_model/testson vLLM 0.29.0: pass.pre-commit runon the changed files: pass.Rollout evidence
local_vllm_modelwithdata_parallel_size=2on two GPUs, servingQwen/Qwen2.5-0.5B-Instructwith thehermestool parser behindexample_single_tool_call.gym eval run --no-serve. All completed, some with tool calls followed by a final message, at a mean reward of 0.1 (expected for a 0.5B model on this task).local_vllm_modelwithtensor_parallel_size=2on the same two GPUs and model. Both tensor-parallel workers loaded, and 20 rollouts completed throughgym eval run --no-serve. This 0.5B model mostly asks a clarifying question instead of calling the tool in both runs, and no output contains unparsed tool-call text.Compatibility
local_vllm_modelandgenrm_modelnow install vLLM 0.29.0 on Linux.skip_venv_if_present, delete the venv to pick up the new pin.