Skip to content
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

fix lars optitmizer bug #40892

Merged
merged 3 commits into from
Mar 25, 2022
Merged

fix lars optitmizer bug #40892

merged 3 commits into from
Mar 25, 2022

Conversation

firestonelib
Copy link
Contributor

@firestonelib firestonelib commented Mar 24, 2022

PR types

Bug fixes

PR changes

OPs

Describe

Fix lars optimizer lars_weight_decay=0 bug:
When lars_weight_decay=0, we got local_learning_rate = learning_rate * lars_coeff * ||param|| / ||gradient||, but the formula in lars_momentum_op.cu when lars_weight_decay =0 equals to local_learning_rate = learning_rate.

image

@paddle-bot-old
Copy link

paddle-bot-old bot commented Mar 24, 2022

✅ This PR's description meets the template requirements!
Please wait for other CI results.

@paddle-bot-old
Copy link

你的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.

JamesLim-sy
JamesLim-sy previously approved these changes Mar 24, 2022
Copy link
Contributor

@JamesLim-sy JamesLim-sy left a comment

Choose a reason for hiding this comment

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

LGTM

wangxicoding
wangxicoding previously approved these changes Mar 25, 2022
Copy link
Contributor

@wangxicoding wangxicoding left a comment

Choose a reason for hiding this comment

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

LGTM

jzhang533
jzhang533 previously approved these changes Mar 25, 2022
Copy link
Contributor

@jzhang533 jzhang533 left a comment

Choose a reason for hiding this comment

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

LGTM

XiaoguangHu01
XiaoguangHu01 previously approved these changes Mar 25, 2022
Copy link
Contributor

@XiaoguangHu01 XiaoguangHu01 left a comment

Choose a reason for hiding this comment

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

LGTM

TCChenlong
TCChenlong previously approved these changes Mar 25, 2022
@fuyinno4 fuyinno4 merged commit c006a60 into PaddlePaddle:develop Mar 25, 2022
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.

7 participants