Skip to content

feat(sc): NeMo-Gym path#3267

Draft
yuki-97 wants to merge 7 commits into
yukih/sc-split-3from
yukih/sc-split-4
Draft

feat(sc): NeMo-Gym path#3267
yuki-97 wants to merge 7 commits into
yukih/sc-split-3from
yukih/sc-split-4

Conversation

@yuki-97

@yuki-97 yuki-97 commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Wires NeMo-Gym rollouts into the SC (Single Controller) entrypoint by extracting the gym-actor spinup out of grpo.py into a reusable helper.

  • spinup_nemo_gym_actor (nemo_rl/environments/nemo_gym.py): factors the NeMo-Gym actor construction (config assembly, uv/venv cache reuse, image-baked venv reuse, soft NodeAffinitySchedulingStrategy when num_gpu_nodes > 0) into a shared function so both grpo.py and the SC setup can call it.
  • grpo.setup (nemo_rl/algorithms/grpo.py): drop the inlined ~60-line spinup, call spinup_nemo_gym_actor instead. No behavior change on the sync-GRPO path.
  • examples/nemo_gym/run_{grpo,distillation}_nemo_gym.py: small entrypoint tweaks to match the new helper.
  • Tests: tests/functional/grpo_async_gym_single_controller.sh covers the SC + NeMo-Gym combination end-to-end.

Part 4/4 of the #2819 split. See that PR for the full code and context.

@yuki-97
yuki-97 requested review from a team as code owners July 17, 2026 13:06
@copy-pr-bot

copy-pr-bot Bot commented Jul 17, 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.

@github-actions github-actions Bot added the CI Relating to CI label Jul 17, 2026
@yuki-97
yuki-97 marked this pull request as draft July 17, 2026 13:07
@yuki-97
yuki-97 force-pushed the yukih/sc-split-4 branch from 6afeaae to 62947e5 Compare July 18, 2026 10:02
@yuki-97
yuki-97 changed the base branch from main to yukih/sc-split-3 July 18, 2026 10:04
@yuki-97
yuki-97 force-pushed the yukih/sc-split-3 branch 2 times, most recently from 8025950 to 5aba114 Compare July 18, 2026 13:31
@yuki-97
yuki-97 force-pushed the yukih/sc-split-4 branch from 62947e5 to 7f1d6ce Compare July 18, 2026 15:25
@github-actions github-actions Bot removed the CI Relating to CI label Jul 18, 2026
yuki-97 added 4 commits July 18, 2026 08:29
Signed-off-by: Yuki Huang <yukih@nvidia.com>
Signed-off-by: Yuki Huang <yukih@nvidia.com>
This reverts commit 0eeab08.

Signed-off-by: Yuki Huang <yukih@nvidia.com>
Signed-off-by: Yuki Huang <yukih@nvidia.com>
@yuki-97
yuki-97 force-pushed the yukih/sc-split-4 branch from 7f1d6ce to 4278c73 Compare July 18, 2026 15:29
yuki-97 added 3 commits July 18, 2026 08:55
Signed-off-by: Yuki Huang <yukih@nvidia.com>
Signed-off-by: Yuki Huang <yukih@nvidia.com>
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