-
Notifications
You must be signed in to change notification settings - Fork 34.1k
Deprecates AdamW and adds --optim
#14744
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 54 commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
32392af
Add AdamW deprecation warning
manuelciosici c637f37
Add --optim to Trainer
manuelciosici b4d0b6d
Update src/transformers/optimization.py
manuelciosici bcc2408
Update src/transformers/optimization.py
manuelciosici 460eff4
Update src/transformers/optimization.py
manuelciosici 6dc78a6
Update src/transformers/optimization.py
manuelciosici 68dd581
Update src/transformers/training_args.py
manuelciosici 9560350
Update src/transformers/training_args.py
manuelciosici 01f1c7b
Update src/transformers/training_args.py
stas00 0c79a5f
Merge remote-tracking branch 'origin/master' into deprecate_adamw
stas00 7ec094f
fix style
stas00 1c9cccf
fix
stas00 9807d35
Regroup adamws together
manuelciosici 7a063ab
Change --adafactor to --optim adafactor
manuelciosici d599a38
Use Enum for optimizer values
manuelciosici 1f9210c
fixup! Change --adafactor to --optim adafactor
manuelciosici a80b39e
fixup! Change --adafactor to --optim adafactor
manuelciosici fdf40b2
fixup! Change --adafactor to --optim adafactor
manuelciosici d5dc69a
Merge branch 'master' into deprecate_adamw
manuelciosici 0acba0c
fixup! Use Enum for optimizer values
manuelciosici 2b7d9dd
Improved documentation for --adafactor
manuelciosici 7c3139a
Add mention of no_deprecation_warning
manuelciosici 234f7d1
Rename OptimizerOptions to OptimizerNames
manuelciosici 1786d42
Use choices for --optim
manuelciosici 210ed37
Move optimizer selection code to a function and add a unit test
manuelciosici 7e62da9
Change optimizer names
manuelciosici 0e7f955
Rename method
manuelciosici 12a9e37
Rename method
manuelciosici c5853b0
Remove TODO comment
manuelciosici d59aa52
Rename variable
manuelciosici e7ffd71
Rename variable
manuelciosici b64fc03
Rename function
manuelciosici c5b5443
Rename variable
manuelciosici 91aff78
Parameterize the tests for supported optimizers
manuelciosici f3505db
Refactor
manuelciosici 91c35f2
Attempt to make tests pass on CircleCI
manuelciosici bcd8a0d
Add a test with apex
manuelciosici f8cb39c
rework to add apex to parameterized; add actual train test
stas00 98f0f2f
fix import when torch is not available
stas00 eba41bd
fix optim_test_params when torch is not available
stas00 aaee305
fix optim_test_params when torch is not available
stas00 071198c
re-org
stas00 182dac8
small re-org
stas00 2b46361
fix test_fused_adam_no_apex
stas00 470a1d7
Update src/transformers/training_args.py
manuelciosici cb85474
Update src/transformers/training_args.py
manuelciosici b2675f8
Update src/transformers/training_args.py
manuelciosici 1e8acec
Remove .value from OptimizerNames
manuelciosici b32a194
Rename optimizer strings s|--adam_|--adamw_|
manuelciosici b839e80
Also rename Enum options
manuelciosici e73249c
small fix
stas00 7ac8dc0
Fix instantiation of OptimizerNames. Remove redundant test
manuelciosici a2363cd
Use ExplicitEnum instead of Enum
manuelciosici ea02877
Add unit test with string optimizer
manuelciosici ec92011
Change optimizer default to string value
manuelciosici 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.