Repository navigation
refactor: unify per-prompt rollout to RolloutManager - #2567
Merged
Merged
Conversation
6 of 25 tasks
yuki-97
force-pushed
the
yukih/per-prompt-rollout-native-async
branch
from
June 3, 2026 06:21
4f25097 to
1ceeb56
Compare
yuki-97
force-pushed
the
yukih/per-prompt-rollout-refactor
branch
from
June 3, 2026 07:34
7db5775 to
a7dc06b
Compare
yuki-97
marked this pull request as ready for review
June 3, 2026 07:37
yuki-97
added a commit
that referenced
this pull request
Jun 8, 2026
terrykong
reviewed
Jun 9, 2026
terrykong
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for splitting this out — the unified RolloutManager factory reads cleanly and test_rollout_manager_raises_without_impl_params nicely covers all three assertion paths.
One substantive item (left as an inline comment): the NeMo-Gym truncation flag now compares against max_seq_len instead of the engine's max_model_len, which diverges from the pre-refactor behavior and from rollouts.py's NeMo-Gym metrics. It's latent (no production callers yet, and current tests/configs set the two values equal) but would mis-report truncation_rate once max_total_sequence_length != vllm_cfg.max_model_len.
Reviewed as the incremental diff on top of #2566.
Generated by Claude Code
yuki-97
force-pushed
the
yukih/per-prompt-rollout-native-async
branch
from
June 9, 2026 12:56
16eda62 to
ba23172
Compare
Signed-off-by: Yuki Huang <[email protected]>
Signed-off-by: Yuki Huang <[email protected]>
Signed-off-by: Yuki Huang <[email protected]>
Signed-off-by: Yuki Huang <[email protected]>
Signed-off-by: Yuki Huang <[email protected]>
yuki-97
force-pushed
the
yukih/per-prompt-rollout-refactor
branch
from
June 10, 2026 06:41
a7dc06b to
4757fe1
Compare
Signed-off-by: Yuki Huang <[email protected]>
Signed-off-by: Yuki Huang <[email protected]>
Contributor
Author
|
/ok to test b626095 |
yuki-97
commented
Jun 10, 2026
terrykong
approved these changes
Jun 10, 2026
pengdurice
pushed a commit
to pengdurice/RL
that referenced
this pull request
Jun 12, 2026
Signed-off-by: Yuki Huang <[email protected]>
5 of 29 tasks
ashors1
pushed a commit
that referenced
this pull request
Jun 27, 2026
Signed-off-by: Yuki Huang <[email protected]> Signed-off-by: Anna Shors <[email protected]>
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.
Issue
Part of RL-729. Based on #2566.
Summary
Refactors
AsyncRolloutManagerandAsyncNemoGymRolloutManagerinto a unifiedRolloutManagerfactory.AsyncRolloutImpl/AsyncNemoGymRolloutImplRolloutManagerthat acceptsuse_nemo_gym: booland routes to the appropriate impl, with assertions for required path-specific args**kwargsto both impl constructors to accept the combined parameter setTests
AsyncRolloutManager/AsyncNemoGymRolloutManagercallsites intests/unit/experience/test_rollouts.pyto useRolloutManagertest_rollout_manager_raises_without_impl_paramsto cover the three assertion paths