Repository navigation
feat(vllm): add deferred model load for overlapped NeMo Gym init - #2750
Merged
Merged
Conversation
Port the deferred-load mechanism from the ultra-v3 lineage (eb401ba), adapted to main's refactored vLLM workers: - VllmGeneration: defer_model_load flag; when set, workers only reserve ports and dp_openai_server_base_urls is populated immediately via _collect_reserved_urls(); load_and_start() performs the heavy load later. - BaseVllmGenerationWorker: split __init__ into _init_config()/_apply_vllm_patches() /_load_model(); patches now applied for all workers (incl. non-owners). - VllmAsyncGenerationWorker: reserve a listening socket in __init__ and hand it to uvicorn via server.serve(sockets=) (no close/rebind race); load_model() and get_reserved_url() added. - Add test_vllm_deferred_model_load. Enables overlapping vLLM model loading with NeMo Gym spinup. Split out from the NeMo Gym integration work so the vLLM mechanism can land and be tested independently. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Signed-off-by: Yi-Fu Wu <[email protected]> Co-Authored-By: Felipe Vieira Frujeri <[email protected]> Co-Authored-By: Peter Jin <[email protected]> Co-Authored-By: Yashaswi Karnati <[email protected]>
Contributor
Author
|
/ok to test bc2c3bb |
4 tasks
ananthsub
approved these changes
Jun 9, 2026
pengdurice
pushed a commit
to pengdurice/RL
that referenced
this pull request
Jun 12, 2026
…DIA-NeMo#2750) Signed-off-by: Yi-Fu Wu <[email protected]> Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]> Co-authored-by: Felipe Vieira Frujeri <[email protected]> Co-authored-by: Peter Jin <[email protected]> Co-authored-by: Yashaswi Karnati <[email protected]>
ashors1
pushed a commit
that referenced
this pull request
Jun 27, 2026
Signed-off-by: Yi-Fu Wu <[email protected]> Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]> Co-authored-by: Felipe Vieira Frujeri <[email protected]> Co-authored-by: Peter Jin <[email protected]> Co-authored-by: Yashaswi Karnati <[email protected]> Signed-off-by: Anna Shors <[email protected]>
6 tasks
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.
Port the deferred-load mechanism from the super/ultra-v3 lineage (eb401ba), adapted to main's refactored vLLM workers:
Enables overlapping vLLM model loading with NeMo Gym spinup. Split out from the NeMo Gym integration work so the vLLM mechanism can land and be tested independently. Original PR combining the two #2741
What does this PR do ?
Add a one line overview of what this PR aims to accomplish.
Issues
List issues that this PR closes (syntax):
Usage
# Add a code snippet demonstrating how to use thisBefore your PR is "Ready for review"
Pre checks:
Additional Information