Repository navigation
Sequence parallel: one captured all-to-all for Ulysses; drop the all-gather exchange #897
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
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
26955cf
Sequence parallel: one all-to-all, captured; drop the all-gather exch…
NSagan271 3110916
CommGroup.all_to_all: accept negative dims; say what the compile boun…
NSagan271 538cbd7
Cosmos3: capture every tier under TP x SP
NSagan271 85a4761
test: rendezvous the SP exchange tests through a file store
dghosef 39dbf4b
sequence_parallel: say which helpers take a layout
dghosef 6f298da
Ulysses: one all-to-all for q, k and v
NSagan271 6eb3f3c
CommGroup.all_to_all: several tensors in one exchange, each back cont…
NSagan271 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
This is a bug for negative dims. On two ranks,
scatter_dim=-2orgather_dim=-3returns a wrong tensor with no error, where main returned the right one.unflattenadds a dim, somovedim(scatter_dim, 0)moves the piece's own dim instead of the rank dim, andmovedim(0, gather_dim)goes wrong the same way. It should be fixed ifall_to_allnormalize both dims first, asall_gatherdoes.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.
Thanks, reproduced on two gloo ranks: all four negative combinations wrong on this branch, all right on main. Fixed in 3110916 by normalizing both dims first, as
all_gatherdoes; the exchange tests now run with negative dims too, and four of them fail without the fix. No in-tree caller passed negative dims, so served output was unaffected.