-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
fleet combine amp dgc recompute meta optimizer #27643
fleet combine amp dgc recompute meta optimizer #27643
Conversation
Thanks for your contribution! |
4d94b0a
to
0e1e098
Compare
0e1e098
to
0f154ee
Compare
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.
LGTM
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.
LGTM for recomputeOptimizer.
self.inner_opt = optimizer | ||
self.wrapped_opt = RO(optimizer) | ||
self.wrapped_opt = None | ||
# we do not allow meta optimizer to be inner optimizer currently | ||
self.meta_optimizers_white_list = [ | ||
"LarsOptimizer", | ||
"LambOptimizer", | ||
"GradientMergeOptimizer", |
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.
help remove this from the meta_optimizers_white_list
of RecomputeOptimizer.
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.
removed
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.
LGTM
PR types
Others
PR changes
Others
Describe
Refine amp&dgc&recompute&lars&lamb&local_sgd, make them can be an inner_opt of other meta optimizer.
Now the following strategies that can be combined: