-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
【Inference】Optimize top_p kernel performance #9132
【Inference】Optimize top_p kernel performance #9132
Conversation
Thanks for your contribution! |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #9132 +/- ##
===========================================
- Coverage 53.32% 53.25% -0.07%
===========================================
Files 652 652
Lines 105436 105595 +159
===========================================
+ Hits 56222 56237 +15
- Misses 49214 49358 +144 ☔ View full report in Codecov by Sentry. |
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.
后续需要增加使用文档。
PR types
New features
PR changes
APIs
Description
新增paddlenlp下top_p_sampling_reject算子,采用reject sampling进行采样,避免显式排序。
静态图可正确输出: