Repository navigation
feat: add AsyncRolloutManager for native async per-prompt rollouts - #2566
Conversation
904ec08 to
e1e70f1
Compare
4f25097 to
1ceeb56
Compare
|
/ok to test 1bcc539 |
terrykong
left a comment
There was a problem hiding this comment.
AsyncRolloutManager review
Thanks for this — it's a clean, faithful port. Two independent passes verified the "pure mirror" claim line-by-line against run_sample_multi_turn_rollout / async_generate_response_for_sample_turn / generate_responses_async (truncation/overflow, stop-string & metadata updates, token accounting, logprobs slicing, gen_leader_worker_idx, and _response_truncated handling all match), and both new tests pass on a real GPU. The for/else max_turns_reached refactor is behaviorally equivalent to the original's turn_count >= max_rollout_turns, and the interfaces.py type-widening is safe (Optional/VLMMessageLogType are both imported; env_extras=None is unreachable in both manager paths).
One item is worth fixing before merge — the new tests are missing the @pytest.mark.skipif GPU guard that all sibling vLLM tests carry, so they'd error (not skip) on a CPU/no-GPU runner. The rest are low-severity suggestions and informational notes (validation guard, a clearer multi-reward failure, a verified truncation test, and two optional notes).
Generated by Claude Code
|
/ok to test 16eda62 |
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]>
… support for now Signed-off-by: Yuki Huang <[email protected]>
Signed-off-by: Yuki Huang <[email protected]>
Signed-off-by: Yuki Huang <[email protected]>
…nc and cleanup unused Signed-off-by: Yuki Huang <[email protected]>
Signed-off-by: Yuki Huang <[email protected]>
Signed-off-by: Yuki Huang <[email protected]>
…Manager Signed-off-by: Yuki Huang <[email protected]>
Signed-off-by: Yuki Huang <[email protected]>
16eda62 to
ba23172
Compare
|
/ok to test ba23172 |
…VIDIA-NeMo#2566) Signed-off-by: Yuki Huang <[email protected]>
Issue
Part of RL-729. Based on #2528.
Summary
Adds
AsyncRolloutManagertorollout_manager.pyto support native async per-prompt multi-turn rollouts.run_rolloutfans outnum_generations_per_promptconcurrent_run_single_rolloutcoroutines viaasyncio.gatherand returns aPromptGroupRecord._run_single_rolloutis a pure mirror ofrun_sample_multi_turn_rollout(multi-reward support dropped for now)._generate_responsemirrorsasync_generate_response_for_sample_turn+generate_responses_async, with simplified logic (single-sample path, no batching indirection).Tests
tests/unit/experience/test_rollouts.pywith unit tests forAsyncRolloutManager.