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

[CINN]Softmax optimization based on bucket splitting strategy #71263

Merged
merged 3 commits into from
Feb 28, 2025

Conversation

xkkkkkk23
Copy link
Contributor

@xkkkkkk23 xkkkkkk23 commented Feb 25, 2025

PR Category

CINN

PR Types

Improvements

Description

softmax算子初始编译后只会产生一个kernel,其中分配1024个线程,这对于小规模输入来说,有大量资源闲置浪费,修改后,细化分桶,为不同规模输入分配不同的线程组合及计算策略。其次,kernel中的for循环的判断条件需要每次重复进行计算,严重拉慢运算速度,修改后为其设置定值,提升速度。

Pcard-85711

Copy link

paddle-bot bot commented Feb 25, 2025

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

@paddle-bot paddle-bot bot added the contributor External developers label Feb 25, 2025
@swgu98 swgu98 requested review from liuruyan and removed request for liuruyan February 25, 2025 08:54
@xkkkkkk23 xkkkkkk23 force-pushed the develop branch 10 times, most recently from f757909 to f13317f Compare February 26, 2025 06:57
@xkkkkkk23 xkkkkkk23 force-pushed the develop branch 12 times, most recently from 07f676a to 27490cb Compare February 27, 2025 05:06
@lshpku lshpku merged commit 4e50e5c into PaddlePaddle:develop Feb 28, 2025
33 checks passed
Enigmatisms pushed a commit to Enigmatisms/Paddle that referenced this pull request Mar 6, 2025
…Paddle#71263)

* [CINN]Softmax optimization based on bucket splitting strategy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants