forked from pytorch/xla
-
Notifications
You must be signed in to change notification settings - Fork 0
[Experimental] Add initial implementation of GSPMD->Shardy pass within PyTorch/XLA #1
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 all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
3e683dc
Add some more functions to OpSharding pybinding
hshahTT 9d21f15
Add some log statements
hshahTT bcbbc92
Merge branch 'master' of https://github.com/pytorch/xla into hshah/op…
hshahTT 99be1d9
Add some working code for V2 sharding for TILED types (need to clean up)
hshahTT 9331e24
Add some code to handle Partial sharding in V2 format (doesn't work yet)
hshahTT af5cd2d
Code mostly works now, some partition specs with tuples are facing is…
hshahTT 35e7fa6
Merge branch 'master' of https://github.com/pytorch/xla into hshah/op…
hshahTT ee0f1fb
Add gspmd->shardy pass within pjrt client
hshahTT fb6b25b
Merge branch 'master' of https://github.com/pytorch/xla into hshah/op…
hshahTT 9c009ee
Merge branch 'hshah/op-sharding-v2' of github.com:hshahTT/pytorch-xla…
hshahTT db5e795
Merge branch 'master' of https://github.com/pytorch/xla into hshah/op…
hshahTT cfbd78f
Merge branch 'hshah/op-sharding-v2' of github.com:hshahTT/pytorch-xla…
hshahTT 582d7cc
Remove previous v2 implementations
hshahTT a3d3297
Merge branch 'hshah/opsharding-v2' of github.com:tenstorrent/pytorch-…
hshahTT cba7922
Add some more functions to OpSharding pybinding
hshahTT 39cf5f1
Add some log statements
hshahTT d20c68a
Add some working code for V2 sharding for TILED types (need to clean up)
hshahTT 4c47abd
Add some code to handle Partial sharding in V2 format (doesn't work yet)
hshahTT 0456513
Code mostly works now, some partition specs with tuples are facing is…
hshahTT 18da0db
Remove previous v2 implementations
hshahTT c47024f
Merge branch 'hshah/opsharding-v2' of github.com:tenstorrent/pytorch-…
hshahTT 87572da
Cleanup code
hshahTT 4b50249
Merge branch 'master' of https://github.com/pytorch/xla into hshah/ad…
hshahTT ea1b945
Fix formatting
hshahTT 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
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
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.
should this be hidden under a different env var or does shardy inherently only understand V2?
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.
Shardy only understands V2. I wasn't able to get the pass working with a V1 graph, and also Kevin mentioned that V2 is a required work item for getting the Shardy pass working: pytorch#9348 (comment)
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.
ok, awesome, then it can remain under the
CONVERT_SHLO_TO_SHARDYflag.