[Doc] Add map_batches shuffle section to shuffling data guide#62576
Merged
richardliaw merged 7 commits intoApr 15, 2026
Conversation
Add documentation for using map_batches as a distributed shuffle pipeline stage, with benchmark results comparing it to local buffer shuffle (80-90% vs 9-13% of baseline throughput). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a benchmark script and documentation for a distributed shuffling method using map_batches in Ray Data, highlighting its performance advantages over local buffer shuffling. The review feedback suggests allocating CPU resources to the shuffle task to prevent performance issues and improving error handling in the benchmark script by logging exceptions during metric retrieval.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Reviewed by Cursor Bugbot for commit d0c219d. Configure here.
Wrap map_batches in backticks to fix Vale.Spelling errors and use contraction "doesn't" per Google.Contractions style. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
richardliaw
reviewed
Apr 14, 2026
richardliaw
reviewed
Apr 14, 2026
richardliaw
reviewed
Apr 14, 2026
richardliaw
reviewed
Apr 14, 2026
richardliaw
requested changes
Apr 14, 2026
richardliaw
left a comment
Contributor
There was a problem hiding this comment.
changes to slim down the PR
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
richardliaw
reviewed
Apr 15, 2026
Co-authored-by: Richard Liaw <rliaw@berkeley.edu> Signed-off-by: Richard Liaw <rliaw@berkeley.edu>
Signed-off-by: Richard Liaw <rliaw@berkeley.edu>
richardliaw
approved these changes
Apr 15, 2026
HLDKNotFound
pushed a commit
to chichic21039/ray
that referenced
this pull request
Apr 22, 2026
…oject#62576) Add documentation for using map_batches as a distributed shuffle pipeline stage, with benchmark results comparing it to local buffer shuffle (80-90% vs 9-13% of baseline throughput). --------- Signed-off-by: Richard Liaw <rliaw@berkeley.edu> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Richard Liaw <rliaw@berkeley.edu>
Lucas61000
pushed a commit
to Lucas61000/ray
that referenced
this pull request
May 15, 2026
…oject#62576) Add documentation for using map_batches as a distributed shuffle pipeline stage, with benchmark results comparing it to local buffer shuffle (80-90% vs 9-13% of baseline throughput). --------- Signed-off-by: Richard Liaw <rliaw@berkeley.edu> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Richard Liaw <rliaw@berkeley.edu>
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.

Add documentation for using map_batches as a distributed shuffle pipeline stage, with benchmark results comparing it to local buffer shuffle (80-90% vs 9-13% of baseline throughput).