Skip to content

feat: Overlap external vLLM and NeMo RL startup - #3832

Merged
yfw merged 2 commits into
super-v3.5-posttrainingfrom
yifu/overlap_external_vllm
Aug 25, 2026
Merged

yfw merged 2 commits into
super-v3.5-posttrainingfrom
yifu/overlap_external_vllm

Conversation

@yfw

@yfw yfw commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • start NeMo RL as soon as external load-balancer URLs are available, overlapping Ray, trainer, policy, and local Gym initialization with external model loading
  • add a typed NeMo Gym readiness gate that waits for each external pool to report its expected healthy backend count before rollout setup completes
  • bound readiness polling and clean up local Gym services if readiness times out

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_readiness
  • pytest -q tests/unit/tools/test_external_gym_vllm.py
  • ruff 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.py
  • bash -n tools/external_gym_vllm/run_in_allocation.sh

yfw added 2 commits August 25, 2026 02:26
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.
@yfw
yfw requested review from a team as code owners August 25, 2026 20:20
@copy-pr-bot

copy-pr-bot Bot commented Aug 25, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@yfw yfw changed the title Overlap external vLLM and NeMo RL startup feat: Overlap external vLLM and NeMo RL startup Aug 25, 2026
@yfw
yfw merged commit d96ae88 into super-v3.5-posttraining Aug 25, 2026
9 of 12 checks passed
@yfw
yfw deleted the yifu/overlap_external_vllm branch August 25, 2026 20:24
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.

1 participant