-
Notifications
You must be signed in to change notification settings - Fork 8
Avoid nn.Linear decomposition by replacing view -> mm -> view with einsum #26
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
29 commits
Select commit
Hold shift + click to select a range
d65d06e
[WIP] Replace view -> mm -> view with matmul
fmassa d7398c0
Merge branch 'main' of github.com:pytorch-labs/autoparallel into fmas…
fmassa e7f2003
Fix matmul propagation rule
fmassa 7cc87e1
Merge branch 'main' of github.com:pytorch-labs/autoparallel into fmas…
fmassa eadc2c3
Merge branch 'main' of github.com:meta-pytorch/autoparallel into fmas…
fmassa d7dabee
Move function to graph_utils.py
fmassa 99abc4e
Pull improvements from https://github.com/meta-pytorch/autoparallel/p…
fmassa 48ae195
Fix equation for einsum
fmassa 2a2a4d8
Cleanup code now that PyTorch has fixed _gen_einsum_strategies
fmassa b5a5098
Generalize to more than 3d
fmassa 840690b
Generalize backward pass as well and make everything call into einsum
fmassa 1d443b8
Add note about future work
fmassa d6c8ae0
Add einsum flops and generalize creation of sharded tensors
fmassa 12155e2
Disable erroneous sdpa rule from backward
fmassa 25fdd8e
Account for compute cost in collectives as well
fmassa d1281a4
Account for compute cost in collectives as well
fmassa 299f184
Merge branch 'main' of github.com:meta-pytorch/autoparallel into fmas…
fmassa a56c784
Support getitem as well
fmassa 851cf00
Improve comments and suppose 80% efficiency
fmassa 8396a09
Merge branch 'main' of github.com:meta-pytorch/autoparallel into fmas…
fmassa 5f4f730
Suppose 70% efficiency for comms
fmassa 2e46457
Merge branch 'fmassa/compute_cost_in_comms' of github.com:meta-pytorc…
fmassa a8f435c
Merge branch 'main' of github.com:meta-pytorch/autoparallel into fmas…
fmassa b4ae76d
Merge branch 'fmassa/compute_cost_in_comms' of github.com:meta-pytorc…
fmassa e025188
Merge branch 'main' of github.com:meta-pytorch/autoparallel into fmas…
fmassa 10219c9
Merge branch 'fmassa/compute_cost_in_comms' of github.com:meta-pytorc…
fmassa e3c5e9f
Add comment and set it to false by default
fmassa 4b43944
Revert changes from another PR
fmassa 5d434fd
Add spaces back
fmassa 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
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.
Uh oh!
There was an error while loading. Please reload this page.