-
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
[AMP] Allow to switch whether to use promote strategy to choose kernel for O2 training. #53742
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
❌ The PR is not created using PR's template. You can refer to this Demo. |
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 docs
…l for O2 training. (PaddlePaddle#53742) * Allow to switch whether to use promote strategy to choose kernel for O2 training. * Fix comparing error and add unittest.
…l for O2 training. (#53742) (#53841) Pcard-70458 cherry-pick #53742 中文文档:PaddlePaddle/docs#5882
PR types
Others
PR changes
APIs
Description
Pcard-70458
#51063 中将动态图AMP O2训练时,Kernel选择策略改成了
Promote to the Widest
方式。这种方式会导致一些模型在默认配置下,性能显著下降。故在auto_cast
接口中添加use_promote
参数来控制O2训练下的Kernel选择方法是否使用Promote策略。