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 xpu_fuse_pass error caused by weight sharing by other operators. #51039

Merged
merged 3 commits into from Mar 1, 2023

Conversation

csy0225
Copy link
Contributor

@csy0225 csy0225 commented Mar 1, 2023

PR types

Bug fixes

PR changes

Others

Describe

GPT 345M 模型中,遇到 lookup_table,matmul + elementwise_add 算子共享权重的情况。在 xpu_fuse_pass 中,会将 fc 中的权重量化成 int16,导致 lookup_table 算子中的权重无法使用。 因此在共享权重的情况下,不进行 matmul + elementwise_add 融合。

@paddle-bot
Copy link

paddle-bot bot commented Mar 1, 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

@zhupengyang zhupengyang left a comment

Choose a reason for hiding this comment

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

LGTM

@zhupengyang zhupengyang merged commit 1054b23 into PaddlePaddle:develop Mar 1, 2023
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.

None yet

2 participants