-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Set bf16 black_list and white_list #55713
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
Sorry to inform you that 67a476a's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
BF16_WHITE_LIST = {'conv2d', 'einsum', 'matmul_v2'} | ||
BF16_BLACK_LIST = set() | ||
BF16_WHITE_LIST = {'conv2d', 'matmul', 'matmul_v2', 'mul'} | ||
BF16_BLACK_LIST = FP16_BLACK_LIST |
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.
einsum这个应该不能移除,之前是专门加上去的。可以考虑给bf16和fp16的白名单求个并集统一一下,一些历史原因导致没有统一。不过需要注意的白名单中的某些融合算子可能是只支持低精度,或者某种低精度
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.
好的
PaddlePaddle/Paddle#55713 修改了BF16默认黑白名单导致当前代码会报错。 因此需要手动将layer norm添加bf16 o1白名单 ![bd3f6f1c3d576870635f19e8a49f04f6](https://github.com/PaddlePaddle/PaddleMIX/assets/50394665/33d20150-fa49-43c8-b421-e89618ed43ea)
PaddlePaddle/Paddle#55713 修改了BF16默认黑白名单导致当前代码会报错。 因此需要手动将layer norm添加bf16 o1白名单 ![bd3f6f1c3d576870635f19e8a49f04f6](https://github.com/PaddlePaddle/PaddleMIX/assets/50394665/33d20150-fa49-43c8-b421-e89618ed43ea)
PR types
Others
PR changes
Others
Description
Pcard-70458
Others
统一AMP BF16 与 FP16 的 黑名单和 gray_list,默认白名单未修改