Skip to content

refine optimizer create accumulators #50188

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

wanghuancoder
Copy link
Contributor

@wanghuancoder wanghuancoder commented Feb 3, 2023

PR types

Performance optimization

PR changes

Others

Describe

重复的create accumulators造成了optimizer的性能下降。本PR优化一下。
以adam举例优化前timeline如下:
1675408073189
优化后timeline如下:
1675408131656

@paddle-bot
Copy link

paddle-bot bot commented Feb 3, 2023

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

Copy link
Contributor

@veyron95 veyron95 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wanghuancoder wanghuancoder merged commit 244e754 into PaddlePaddle:develop Feb 6, 2023
veyron95 added a commit that referenced this pull request Feb 23, 2023
veyron95 added a commit to veyron95/Paddle that referenced this pull request Feb 23, 2023
phlrain pushed a commit that referenced this pull request Feb 24, 2023
* Revert "fixoptminizer _set_auxiliary_var bug (#50335)"

This reverts commit c44005f.

* Revert "refine optimizer create accumulators (#50188)"

This reverts commit 244e754.

* Revert "fix found_inf bug for custom optimizer (#50158)"

This reverts commit 64573f9.

* Revert "refine amp scaler found_inf (#49864)"

This reverts commit 382e9a0.

* fix code format

* fix conflict
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants