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

[AMP] Support AMP-O2 for bfloat16 #45541

Merged
merged 7 commits into from
Sep 14, 2022

Conversation

zhangbo9674
Copy link
Contributor

@zhangbo9674 zhangbo9674 commented Aug 30, 2022

PR types

New features

PR changes

Others

Describe

AMP-O2支持bfloat16数据类型
中文文档:PaddlePaddle/docs#5273

@paddle-bot
Copy link

paddle-bot bot commented Aug 30, 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.

lanxianghit
lanxianghit previously approved these changes Sep 13, 2022
@@ -93,6 +93,9 @@
BF16_WHITE_LIST = {'conv2d', 'matmul_v2'}
BF16_BLACK_LIST = {' '}

PURE_BF16_WHITE_LIST = {' '}
Copy link
Contributor

Choose a reason for hiding this comment

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

why use ' ' instead of ''

Copy link
Contributor Author

@zhangbo9674 zhangbo9674 Sep 13, 2022

Choose a reason for hiding this comment

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

Changed from' 'to ''

Copy link
Contributor

@zhiqiu zhiqiu left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@Ligoml Ligoml left a comment

Choose a reason for hiding this comment

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

LGTM for docs
decorate的API描述部分遗漏了bf16的描述,后续补一个pr吧

@zhangbo9674 zhangbo9674 merged commit e8809d9 into PaddlePaddle:develop Sep 14, 2022
aoyulong pushed a commit that referenced this pull request Apr 9, 2023
* Cherry-pick the register of bfloat16 for amp_kernel, pull request #45541.

* Cherry-pick the master_grad support of adamw, pull request #51141.

* add bf16 for some ops in static mode (#51582)

* Add bfloat16 support for some api in static mode.

* Fix codestyle.

* Revert the change of layer_function_generator.py.

---------

Co-authored-by: Shaojie WANG <wsjmessi@163.com>
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.

4 participants