-
Notifications
You must be signed in to change notification settings - Fork 4.9k
zero3: defer param release during retain_graph backward #7352 #8045
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
Draft
nathon-lee
wants to merge
26
commits into
deepspeedai:master
Choose a base branch
from
nathon-lee:test/zero-multi-loss-separate-backward-7352
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.
+150
−6
Draft
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
001f77c
Initial plan
Copilot b90aee5
Revert "fix: update 1 file reformatted."
Copilot b6da9af
Merge pull request #5 from nathon-lee/copilot/git-revert-ff886701
nathon-lee bb7f64f
Merge branch 'deepspeedai:master' into master
nathon-lee cbc816c
Initial plan
Copilot 5fcc9a7
Reapply "fix: update 1 file reformatted."
Copilot f7c5d75
Merge pull request #6 from nathon-lee/copilot/remove-commits-from-master
nathon-lee 18efbcc
Merge branch 'deepspeedai:master' into master
nathon-lee e2ac74d
Merge branch 'deepspeedai:master' into master
nathon-lee da07382
Merge branch 'deepspeedai:master' into master
nathon-lee 5d8875c
Merge branch 'deepspeedai:master' into master
nathon-lee 316b6dd
Merge branch 'deepspeedai:master' into master
nathon-lee 2020543
Merge branch 'deepspeedai:master' into master
nathon-lee 1a8694c
Merge branch 'deepspeedai:master' into master
nathon-lee d6725be
Merge branch 'deepspeedai:master' into master
nathon-lee a06c548
Merge branch 'deepspeedai:master' into master
nathon-lee 6959eb4
Merge branch 'deepspeedai:master' into master
nathon-lee e88eb3e
Merge branch 'deepspeedai:master' into master
nathon-lee 683bd0b
Merge branch 'deepspeedai:master' into master
nathon-lee b41bb4c
zero3: fix retained-graph second backward (#7352)
nathon-lee 5c75f99
zero3: cover manual scale().backward() for retain_graph release deferral
nathon-lee 7c5f269
refactor(zero3): replace offload optimizer back-reference with retain…
nathon-lee 3cfd153
fix: fix some format errs.
nathon-lee f53eaf0
Merge pull request #21 from nathon-lee/test/zero-multi-loss-separate-…
nathon-lee 563acb4
fix(engine): resolve ZeRO manual backward scale merge and preserve re…
nathon-lee 4849fd9
Merge branch 'master' into test/zero-multi-loss-separate-backward-7352
nathon-lee 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
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.
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.
You call
scale_if_losstwice?