Skip to content

fix(local_vllm_model): align server vLLM pins with the root vllm extra - #4659

Merged
ananthsub merged 1 commit into
mainfrom
ananthsub/local-vllm-model-vllm-0.29
Oct 16, 2026
Merged

ananthsub merged 1 commit into
mainfrom
ananthsub/local-vllm-model-vllm-0.29

Conversation

@ananthsub

@ananthsub ananthsub commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

What changed and why

#3734 moved the root vllm extra to vLLM 0.29.0 and flashinfer-python 0.6.18. local_vllm_model and genrm_model still pin vLLM 0.25.1 and flashinfer-python 0.6.13 in their setup.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_present reuses the empty venv, and startup then fails with No module named 'ray'. The missing Ray module is a symptom; the cause is the version mismatch.

This PR makes the following changes:

  • Bumps the Linux pins in both servers to vllm==0.29.0 and flashinfer-python==0.6.18, matching the root extra. The macOS pin stays at vLLM 0.11.0.
  • Updates the imports. vLLM 0.29 moved the OpenAI server entry points from vllm.entrypoints.openai.api_server to vllm.entrypoints.launchers; the old module is now a deprecated shim that no longer exports make_arg_parser, cli_env_setup or run_server. app.py and local_vllm_model_actor.py now import from the new location and fall back to the old module for the macOS pin.
  • Patches serve_http in the namespace of the module that defines run_server. That is where vLLM looks it up.
  • Keeps Gym's copied data-parallel patches (DPEngineCoreProc._init_data_parallel and CoreEngineActorManager.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

  • Built both server venvs on Linux; they resolve to vLLM 0.29.0 and flashinfer-python 0.6.18.
  • Checked that every patched vLLM name resolves on 0.29.0 under -W error::DeprecationWarning.
  • pytest in responses_api_models/local_vllm_model/tests and responses_api_models/genrm_model/tests on vLLM 0.29.0: pass.
  • pre-commit run on the changed files: pass.

Rollout evidence

  • Ran local_vllm_model with data_parallel_size=2 on two GPUs, serving Qwen/Qwen2.5-0.5B-Instruct with the hermes tool parser behind example_single_tool_call.
  • Both engine actors started on Gym's placement groups, one per GPU, and the data-parallel coordinator registered both engines.
  • Collected 20 rollouts (5 tasks × 4 repeats) with 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).
  • Ran local_vllm_model with tensor_parallel_size=2 on the same two GPUs and model. Both tensor-parallel workers loaded, and 20 rollouts completed through gym 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.
  • Stopping the servers after each run shut down Ray cleanly and freed both GPUs.

Compatibility

  • Server venvs for local_vllm_model and genrm_model now install vLLM 0.29.0 on Linux.
  • Consumers that override the vLLM version to 0.29.0 no longer hit the resolution conflict.
  • Existing server venvs built on vLLM 0.25.1 keep that version until they are rebuilt. With skip_venv_if_present, delete the venv to pick up the new pin.

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]>
@ananthsub
ananthsub added this pull request to the merge queue Oct 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/38829286023

Merged via the queue into main with commit a8794e2 Oct 16, 2026
41 of 46 checks passed
@ananthsub
ananthsub deleted the ananthsub/local-vllm-model-vllm-0.29 branch October 16, 2026 00:45
@chtruong814
chtruong814 restored the ananthsub/local-vllm-model-vllm-0.29 branch October 16, 2026 01:47

This branch was previously deployed

1 inactive deployment
public — 3b09f8fb Deployed Oct 15, 2026 by copy-pr-bot[bot] via release / finalize / notify #5587
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants