-
Notifications
You must be signed in to change notification settings - Fork 4.8k
fix: add setup_context for torch.func compatibility #7916
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
Open
roycho96
wants to merge
24
commits into
deepspeedai:master
Choose a base branch
from
roycho96:fix/support-func-torch
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 14 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
33db7c4
fix: fix LinearFunctionForZeroStage3 to support torch.func transforms
roycho96 39b1755
fix: always pass bias arg in zero3_linear_wrap to avoid setup_context…
roycho96 6df37af
fix: remove @autocast_custom_fwd from forward, move autocast state to…
roycho96 c0b9694
fix(zero3): replace custom_bwd with explicit autocast for functorch-s…
zhangj1an 5e83d05
fix(zero): use setup_context for offload pre/post backward Functions
zhangj1an 7483701
Merge branch 'master' into fix/support-func-torch
zhangj1an a1e798d
run pre-commit checks
zhangj1an 8762d00
update unit tests to reproduce main branch error
zhangj1an dd037da
add reproduce scripts
zhangj1an 01ee5a6
Merge branch 'master' into fix/support-func-torch
zhangj1an f69c1f1
update reproduce script
zhangj1an e58ac18
update reproduce script to skip repeated env setup
zhangj1an 3121a7f
update reproduce script to remove duplicated code
zhangj1an 60d20da
update reproduce script to print test env
zhangj1an bb245b2
drop PyTorch < 2.0 support and fix autocast backward in ZeRO linear
roycho96 04c456f
change PyTorch version in README
roycho96 703aad3
resolve conflict with master
tohtana 8468149
Merge pull request #1 from tohtana/tohtana/pr7916-merge-master-resolve
zhangj1an e309a6f
remove repro scripts
zhangj1an e425569
update unit test
zhangj1an 39f7e3c
drop support for pytorch<2.0
zhangj1an 39c9a73
Merge branch 'master' into fix/support-func-torch
zhangj1an a5aa09a
Merge branch 'master' into fix/support-func-torch
roycho96 10906ae
Merge branch 'master' into fix/support-func-torch
roycho96 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
Some comments aren't visible on the classic Files Changed page.
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
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.
Uh oh!
There was an error while loading. Please reload this page.