Skip to content

Extend forward fast layer_norm kernel to support more dimensions. #43118

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

Merged
merged 14 commits into from
Jun 2, 2022

Conversation

limin2021
Copy link
Contributor

@limin2021 limin2021 commented May 31, 2022

PR types

Function optimization

PR changes

OPs

Describe

Before, fast layer_norm kernel can only support cases when cols is 1024(#39167). To make full use of the fast kernel, , #42282 and this PR try to extend to more col values.

性能:
da0184eb19b84744314d0711f843a027

4f25d471d0cc172d103da1e9c2b565bf

@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.

@limin2021 limin2021 closed this Jun 1, 2022
@limin2021 limin2021 reopened this Jun 1, 2022
@sneaxiy sneaxiy self-requested a review June 2, 2022 02:03
Copy link
Collaborator

@sneaxiy sneaxiy left a comment

Choose a reason for hiding this comment

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

LGTM.

@limin2021 limin2021 merged commit 85baa3c into PaddlePaddle:develop Jun 2, 2022
fuyou765 pushed a commit to fuyou765/Paddle that referenced this pull request Jun 7, 2022
…ddlePaddle#43118)

* extend forward fast_ln_kernel to support more column values.
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