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

Support bfloat16 for adamw and adam optimizer. Fit the lr for pure bf16 training with tensor fusion. #48041

Merged
merged 5 commits into from
Nov 17, 2022

Conversation

FeixLiu
Copy link
Contributor

@FeixLiu FeixLiu commented Nov 16, 2022

PR types

Others

PR changes

Others

Describe

Support bfloat16 for adamw, and suit the lr for pure bf16 training.

@paddle-bot
Copy link

paddle-bot bot commented Nov 16, 2022

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

sneaxiy
sneaxiy previously approved these changes Nov 16, 2022
@FeixLiu FeixLiu changed the title Support bfloat16 for adamw, and suit the lr for pure bf16 training. Support bfloat16 for adamw and adam optimizer. Fit the lr for pure bf16 training with tensor fusion. Nov 17, 2022
@sneaxiy sneaxiy merged commit e5ed525 into PaddlePaddle:develop Nov 17, 2022
@FeixLiu FeixLiu deleted the support_bfloat16_for_adamw branch November 17, 2022 03:24
Xreki added a commit to Xreki/Paddle that referenced this pull request Apr 9, 2023
aoyulong pushed a commit that referenced this pull request Apr 11, 2023
* Fix scale kernel for low precision, cherry pick #50998.

* Fix the FP16 precision problem of add_n. (#50129)

* Change squared_l2_norm to reuse ReduceKernel, and register fp16 and bf16 kernel, which is cherry pick #48315.

* Cherry-pick the fix of MPTypeTrait in KP, which is implemented in #50993.

* Cherry-pick the multi-precision support of AdamW for bf16, #48041.

* Fix compiling error.

* Cherry-pick the fix of CubTensorReduceImpl for bfloat16 in #50993.

* Fix unittest.

---------

Co-authored-by: liuruyan <[email protected]>
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