-
Notifications
You must be signed in to change notification settings - Fork 117
feat: Multi turn async #506
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
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
Signed-off-by: Parth Chadha <pchadha@nvidia.com>
Signed-off-by: Parth Chadha <pchadha@nvidia.com>
Signed-off-by: Parth Chadha <pchadha@nvidia.com>
Signed-off-by: Parth Chadha <pchadha@nvidia.com>
Signed-off-by: Yuki Huang <yukih@nvidia.com>
Signed-off-by: Parth Chadha <pchadha@nvidia.com>
Signed-off-by: Parth Chadha <pchadha@nvidia.com>
Signed-off-by: Parth Chadha <pchadha@nvidia.com>
Signed-off-by: Parth Chadha <pchadha@nvidia.com>
Signed-off-by: Parth Chadha <pchadha@nvidia.com>
Signed-off-by: Yuki Huang <yukih@nvidia.com> Signed-off-by: Parth Chadha <pchadha@nvidia.com>
Signed-off-by: Parth Chadha <pchadha@nvidia.com>
…#389) Signed-off-by: Zhiyu Li <zhiyul@nvidia.com> Signed-off-by: ZhiyuLi-Nvidia <zhiyul@NVIDIA.com> Co-authored-by: Terry Kong <terrycurtiskong@gmail.com> Signed-off-by: Parth Chadha <pchadha@nvidia.com>
Signed-off-by: Yuki Huang <yukih@nvidia.com> Signed-off-by: Parth Chadha <pchadha@nvidia.com>
…ing 'hf') (#511) Signed-off-by: Sahil Jain <sahilj@nvidia.com> Signed-off-by: Parth Chadha <pchadha@nvidia.com>
Signed-off-by: Jonas yang <joyang@nvidia.com> Signed-off-by: Parth Chadha <pchadha@nvidia.com>
Signed-off-by: Sahil Jain <sahilj@nvidia.com> Signed-off-by: Terry Kong <terryk@nvidia.com> Co-authored-by: Yi-Fu Wu <yifu.wu@gmail.com> Co-authored-by: Terry Kong <terryk@nvidia.com> Signed-off-by: Parth Chadha <pchadha@nvidia.com>
Signed-off-by: Terry Kong <terryk@nvidia.com> Signed-off-by: Sahil Jain <48468750+SahilJain314@users.noreply.github.com> Co-authored-by: Sahil Jain <48468750+SahilJain314@users.noreply.github.com> Signed-off-by: Parth Chadha <pchadha@nvidia.com>
Signed-off-by: Parth Chadha <pchadha@nvidia.com>
…into pchadha/multi-turn-fully-async
Signed-off-by: Parth Chadha <pchadha@nvidia.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviewing in chunks
terrykong
reviewed
Jun 18, 2025
Signed-off-by: Parth Chadha <pchadha@nvidia.com>
Signed-off-by: Parth Chadha <pchadha@nvidia.com>
terrykong
reviewed
Jun 25, 2025
terrykong
previously approved these changes
Jun 25, 2025
Signed-off-by: Parth Chadha <pchadha@nvidia.com>
terrykong
approved these changes
Jun 25, 2025
therealnaveenkamal
pushed a commit
to therealnaveenkamal/RL
that referenced
this pull request
Jul 7, 2025
Signed-off-by: Parth Chadha <pchadha@nvidia.com> Signed-off-by: Yuki Huang <yukih@nvidia.com> Signed-off-by: Zhiyu Li <zhiyul@nvidia.com> Signed-off-by: ZhiyuLi-Nvidia <zhiyul@NVIDIA.com> Signed-off-by: Sahil Jain <sahilj@nvidia.com> Signed-off-by: Jonas yang <joyang@nvidia.com> Signed-off-by: Terry Kong <terryk@nvidia.com> Signed-off-by: Sahil Jain <48468750+SahilJain314@users.noreply.github.com> Co-authored-by: yuki <48991475+yuki-666@users.noreply.github.com> Co-authored-by: ZhiyuLi-Nvidia <zhiyul@NVIDIA.com> Co-authored-by: Terry Kong <terrycurtiskong@gmail.com> Co-authored-by: Sahil Jain <48468750+SahilJain314@users.noreply.github.com> Co-authored-by: Jonas Yang CN <joyang@nvidia.com> Co-authored-by: Yi-Fu Wu <yifu.wu@gmail.com> Co-authored-by: Terry Kong <terryk@nvidia.com> Co-authored-by: Yuki Huang <yukih@nvidia.com>
YzjiaoNvd
pushed a commit
to YzjiaoNvd/NeMo-RL
that referenced
this pull request
Jul 14, 2025
Signed-off-by: Parth Chadha <pchadha@nvidia.com> Signed-off-by: Yuki Huang <yukih@nvidia.com> Signed-off-by: Zhiyu Li <zhiyul@nvidia.com> Signed-off-by: ZhiyuLi-Nvidia <zhiyul@NVIDIA.com> Signed-off-by: Sahil Jain <sahilj@nvidia.com> Signed-off-by: Jonas yang <joyang@nvidia.com> Signed-off-by: Terry Kong <terryk@nvidia.com> Signed-off-by: Sahil Jain <48468750+SahilJain314@users.noreply.github.com> Co-authored-by: yuki <48991475+yuki-666@users.noreply.github.com> Co-authored-by: ZhiyuLi-Nvidia <zhiyul@NVIDIA.com> Co-authored-by: Terry Kong <terrycurtiskong@gmail.com> Co-authored-by: Sahil Jain <48468750+SahilJain314@users.noreply.github.com> Co-authored-by: Jonas Yang CN <joyang@nvidia.com> Co-authored-by: Yi-Fu Wu <yifu.wu@gmail.com> Co-authored-by: Terry Kong <terryk@nvidia.com> Co-authored-by: Yuki Huang <yukih@nvidia.com>
KiddoZhu
pushed a commit
that referenced
this pull request
Jul 28, 2025
Signed-off-by: Parth Chadha <pchadha@nvidia.com> Signed-off-by: Yuki Huang <yukih@nvidia.com> Signed-off-by: Zhiyu Li <zhiyul@nvidia.com> Signed-off-by: ZhiyuLi-Nvidia <zhiyul@NVIDIA.com> Signed-off-by: Sahil Jain <sahilj@nvidia.com> Signed-off-by: Jonas yang <joyang@nvidia.com> Signed-off-by: Terry Kong <terryk@nvidia.com> Signed-off-by: Sahil Jain <48468750+SahilJain314@users.noreply.github.com> Co-authored-by: yuki <48991475+yuki-666@users.noreply.github.com> Co-authored-by: ZhiyuLi-Nvidia <zhiyul@NVIDIA.com> Co-authored-by: Terry Kong <terrycurtiskong@gmail.com> Co-authored-by: Sahil Jain <48468750+SahilJain314@users.noreply.github.com> Co-authored-by: Jonas Yang CN <joyang@nvidia.com> Co-authored-by: Yi-Fu Wu <yifu.wu@gmail.com> Co-authored-by: Terry Kong <terryk@nvidia.com> Co-authored-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
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.
What does this PR do ?
Enables multi-turn rollouts with async engine.
Changes:
Worker Groups:
Allow consumers to handle async generators directly rather than blocking on result retrieval.
vllm:
VllmGeneration.generate_async()
:Returns AsyncGenerator now and coordinates multiple workers using queue-based async coordination.
Yields samples as they become available from any worker, not waiting for entire batches
VllmGenerationWorker.generate_async()
Now yields (original_index, BatchedDataDict) as individual samples complete
run_async_multi_turn_rollout()
: async rollout that processes each sample independently. Callsasync_generate_response_for_sample_turn()
to generate response for a single sample.Issues
List issues that this PR closes (syntax):
Usage
# Add a code snippet demonstrating how to use this
Before your PR is "Ready for review"
Pre checks:
Additional Information