-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Fix gradient norm tracking and gradient clipping #9287
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
89 commits
Select commit
Hold shift + click to select a range
a890c4d
WIP
carmocca cb4533b
Progress
carmocca 5335611
Merge branch 'master' into bugfix/track-grad-norm
carmocca 1b9a4cb
Undo test change
carmocca 14a9a93
Fix plugin closure execution order
carmocca 7fe78fd
Update CHANGELOG
carmocca 73b03d4
Fix manual optimization on AMP and skipping backward
carmocca d8a57e7
Fix for deepspeed
carmocca b945c1d
Typo
carmocca 5696fb1
Hook test for manual closure
carmocca 35a7bbc
Add skipping test with AMP
carmocca 9b7df18
You are hideous, apex
carmocca 1ba6432
Add deepspeed test
carmocca 33ecf13
Update CHANGELOG
carmocca d09e753
Fix for broken master
carmocca df99e8d
Add RunIf
carmocca 45947a7
Merge branch 'bugfix/plugin-closure-execution' into bugfix/track-grad…
carmocca 904d6d3
FIXMEs
carmocca fd93617
Merge branch 'master' into bugfix/track-grad-norm
carmocca fd902be
Rename
carmocca b4eb544
Fix grad norm
carmocca 6b78ff5
add a simple test
awaelchli 452bbb5
update test
awaelchli e7370a0
update test
awaelchli efac53f
update test
awaelchli ff435ac
Merge branch 'master' into bugfix/track-grad-norm
awaelchli 2a8e286
fix merge conflicts
awaelchli d79e0c7
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] abad9dc
Merge branch 'master' into bugfix/track-grad-norm
carmocca 5ba5711
Sea of changes
carmocca 1ad85fe
Undo change
carmocca 2951698
Introduce TPUPrecisionPlugin
carmocca d587f4d
Merge gradient clipping customization changes
carmocca 7817eb6
Undo changes
carmocca 92c6429
Undo changes
carmocca f650272
Resolve FIXME
carmocca f44d9af
Undo change
carmocca 5ac6376
Merge branch 'master' into bugfix/track-grad-norm
carmocca 5d90455
Undo change
carmocca 0594879
Undo change
carmocca 3a77d04
Fix FIXMEs
carmocca b544e9c
Fix FIXME
carmocca da5a2e8
Merge branch 'master' into bugfix/track-grad-norm
carmocca a13a32d
Correct value
carmocca fc75821
Merge branch 'master' into bugfix/track-grad-norm
carmocca bb2c504
Merge branch 'master' into bugfix/track-grad-norm
carmocca 9cb9873
Merge branch 'master' into bugfix/track-grad-norm
carmocca 0f42fa5
Bad merge
carmocca b32d5ac
Fix circular imports
carmocca 6c40167
Merge branch 'master' into bugfix/track-grad-norm
carmocca 569e103
WIP
carmocca 1f98d7b
Fixing clipping
carmocca aeed0ff
Merge branch 'master' into bugfix/track-grad-norm
carmocca 2d5040c
Fixes
carmocca 18886db
Merge branch 'master' into bugfix/track-grad-norm
carmocca f73539f
Bad merge
carmocca fa8901a
Move optimizer step and clipping into the `PrecisionPlugin`
carmocca 8f8b601
Fix AMP
carmocca 7eb639e
Update CHANGELOG
carmocca 1a3e226
Fix tests
carmocca e52cef6
Underscore
carmocca df00f15
Merge branch 'refactotr/move-opt-step' into bugfix/track-grad-norm
carmocca b9cdc55
Progress
carmocca a5caefe
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] e62ed4f
Remove pre_optimizer_step
carmocca e7060a4
Missed one
carmocca b24a533
Merge branch 'refactotr/move-opt-step' into bugfix/track-grad-norm
carmocca f82900d
Progress
carmocca f1f1709
Progress
carmocca 818ca75
Fix test
carmocca a9b2cd0
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 981ef1d
Merge branch 'master' into bugfix/track-grad-norm
carmocca 6e84b2f
Update FIXMEs
carmocca a0cc715
Fix test
carmocca d934e72
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] e6d1f97
Fix test
carmocca f3d126e
Merge branch 'master' into bugfix/track-grad-norm
carmocca f068c04
DeepSpeed warning. mypy
carmocca 3ce645f
Rename
carmocca 9aae00d
Finish tests
carmocca 0b488f8
Merge branch 'bugfix/track-grad-norm' of https://github.com/PyTorchLi…
carmocca a272f1d
Update CHANGELOG
carmocca 737f3c5
Dumb fixes
carmocca 6a4d1c8
accelerator=auto
carmocca 8a30bc5
Apply suggestions from code review
carmocca c41d46b
Update on comments
carmocca a36d396
Use ClassifModule
carmocca e83bbb9
Merge branch 'master' into bugfix/track-grad-norm
carmocca 3067fb4
Merge branch 'master' into bugfix/track-grad-norm
carmocca 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
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.