-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[FSDP][optim_state_dict] Fix _is_named_optimizer when the state is empty
#93303
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
Conversation
…empty Optimizer state is not eager initializaion -- only NamedOptimizer and KeyedOptimizer are. This PR makes it `_is_named_optimizer` work with regular optimizers. Differential Revision: [D42858589](https://our.internmc.facebook.com/intern/diff/D42858589/) [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/93303
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 FailuresAs of commit 7d37ddc: FLAKY - The following jobs failed but were likely due to flakiness present on master:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
…e state is empty" Optimizer state is not eager initializaion -- only NamedOptimizer and KeyedOptimizer are. This PR makes it `_is_named_optimizer` work with regular optimizers. Differential Revision: [D42858589](https://our.internmc.facebook.com/intern/diff/D42858589/) [ghstack-poisoned]
…e state is empty" Optimizer state is not eager initializaion -- only NamedOptimizer and KeyedOptimizer are. This PR makes it `_is_named_optimizer` work with regular optimizers. Differential Revision: [D42858589](https://our.internmc.facebook.com/intern/diff/D42858589/) [ghstack-poisoned]
…e state is empty" Optimizer state is not eager initializaion -- only NamedOptimizer and KeyedOptimizer are. This PR makes it `_is_named_optimizer` work with regular optimizers. Differential Revision: [D42858589](https://our.internmc.facebook.com/intern/diff/D42858589/) [ghstack-poisoned]
…e state is empty" Optimizer state is not eager initializaion -- only NamedOptimizer and KeyedOptimizer are. This PR makes it `_is_named_optimizer` work with regular optimizers. Differential Revision: [D42858589](https://our.internmc.facebook.com/intern/diff/D42858589/) [ghstack-poisoned]
…e state is empty" Optimizer state is not eager initializaion -- only NamedOptimizer and KeyedOptimizer are. This PR makes it `_is_named_optimizer` work with regular optimizers. Differential Revision: [D42858589](https://our.internmc.facebook.com/intern/diff/D42858589/) [ghstack-poisoned]
fduwjj
left a comment
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.
Thanks for the fix!
…e state is empty" Optimizer state is not eager initializaion -- only NamedOptimizer and KeyedOptimizer are. This PR makes it `_is_named_optimizer` work with regular optimizers. Differential Revision: [D42858589](https://our.internmc.facebook.com/intern/diff/D42858589/) [ghstack-poisoned]
…empty Pull Request resolved: #93303 Optimizer state is not eager initializaion -- only NamedOptimizer and KeyedOptimizer are. This PR makes it `_is_named_optimizer` work with regular optimizers. ghstack-source-id: 178827735 Differential Revision: [D42858589](https://our.internmc.facebook.com/intern/diff/D42858589/)
|
@pytorchbot merge -f "The failing test is not related" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Stack from ghstack (oldest at bottom):
_is_named_optimizerwhen the state is empty #93303Optimizer state is not eager initializaion -- only NamedOptimizer and KeyedOptimizer are. This PR makes it
_is_named_optimizerwork with regular optimizers.Differential Revision: D42858589