Skip to content

feat: add AsyncNemoGymRolloutManager for gym per-prompt rollouts - #2528

Merged
yuki-97 merged 15 commits into
mainfrom
yukih/per-prompt-rollout-gym
Jun 3, 2026
Merged

yuki-97 merged 15 commits into
mainfrom
yukih/per-prompt-rollout-gym

Conversation

@yuki-97

@yuki-97 yuki-97 commented May 19, 2026

Copy link
Copy Markdown
Contributor

Issue

Part of RL-729.

Summary

Introduces a per-prompt rollout abstraction for the NeMo-Gym path.

  • Add nemo_rl/experience/interfaces.py with Completion and PromptGroupRecord dataclasses
  • Add AsyncNemoGymRolloutManager in nemo_rl/experience/rollout_manager.py — takes one DatumSpec, runs num_generations_per_prompt rollouts via a single run_rollouts call, and returns a PromptGroupRecord
  • Unit tests for AsyncNemoGymRolloutManager standalone behavior, and parity tests against the original run_async_nemo_gym_rollout

Test plan

  • pytest tests/unit/experience/test_rollouts.py

@yuki-97
yuki-97 requested review from a team as code owners May 19, 2026 08:05
@copy-pr-bot

copy-pr-bot Bot commented May 19, 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.

@yuki-97 yuki-97 added the CI:Lfast Runs a fast test suite and re-use nightly `main` container (but sync dependencies to PRs version) label May 19, 2026
@yuki-97

yuki-97 commented May 19, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test f53d93f

@yuki-97

yuki-97 commented May 19, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 9b6b705

@yuki-97

yuki-97 commented May 23, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 45b4e5b

@yuki-97 yuki-97 added the CI:L1 Run doctests, unit tests, and functional tests label May 31, 2026
@yuki-97

yuki-97 commented May 31, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 202022b

yuki-97 added 2 commits May 31, 2026 23:07
Signed-off-by: Yuki Huang <[email protected]>
Signed-off-by: Yuki Huang <[email protected]>
@yuki-97

yuki-97 commented Jun 1, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test c877252

terrykong
terrykong previously approved these changes Jun 1, 2026
Signed-off-by: Yuki Huang <[email protected]>
@yuki-97

yuki-97 commented Jun 1, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test c8e4155

@yuki-97
yuki-97 merged commit ab079b8 into main Jun 3, 2026
132 of 134 checks passed
@yuki-97
yuki-97 deleted the yukih/per-prompt-rollout-gym branch June 3, 2026 04:30
pengdurice pushed a commit to pengdurice/RL that referenced this pull request Jun 12, 2026

This branch was previously deployed

3 inactive (1 outdated) deployments
public — c8e41555 Deployed Jun 1, 2026 by copy-pr-bot[bot] via release / finalize / publish-docs #567
test — c8e41555 Deployed Jun 1, 2026 by copy-pr-bot[bot] via Wait in test approval queue #11842
nemo-ci — 45b4e5b3 Deployed May 23, 2026 by copy-pr-bot[bot] via Docs_Tests #11630
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI:L1 Run doctests, unit tests, and functional tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants