Repository navigation
feat: Overlap external vLLM and NeMo RL startup - #3832
Merged
Merged
Conversation
Start ray.sub as soon as external load balancer URLs are known so Ray, trainer, policy, and local Gym initialization can overlap model loading. Inject a typed readiness contract that blocks rollout setup until every external pool reports its expected healthy backend count, with bounded polling and cleanup on timeout. Document and test the concurrent lifecycle without changing ray.sub.
…fu/overlap_external_vllm
This was referenced Sep 30, 2026
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.
Summary
The external vLLM wrapper continues monitoring the serving pools after startup, and this change does not modify
ray.sub.Testing
pytest -q tests/unit/environments/test_nemo_gym.py -k external_service_readinesspytest -q tests/unit/tools/test_external_gym_vllm.pyruff check nemo_rl/algorithms/distillation.py nemo_rl/environments/nemo_gym.py tests/unit/environments/test_nemo_gym.py tests/unit/tools/test_external_gym_vllm.pybash -n tools/external_gym_vllm/run_in_allocation.sh