-
Notifications
You must be signed in to change notification settings - Fork 3.1k
[Feat] Sage Attention Kernels Support for sm80, sm89, sm90 #9848
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
Conversation
Thanks for your contribution! |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #9848 +/- ##
===========================================
- Coverage 50.48% 50.35% -0.13%
===========================================
Files 755 756 +1
Lines 121257 121559 +302
===========================================
- Hits 61215 61214 -1
- Misses 60042 60345 +303 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
paddlenlp/experimental/transformers/fused_transformer_layers.py
Outdated
Show resolved
Hide resolved
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.
LGTM
PR types
New features | Others: add new kernels for LLM prefilling accelerating.
PR changes
See file changes in
csrc/gpu/sage_attn_kernels/*
Description
This PR added sage attention support kernels implemented for Paddle and PaddleNLP.
Sage Attention for 8-bit acceleration on attention inference, similar work to FA2 & FA3 but speed up 1.1 - 2.1 x compared to Flash Attention, with even lower gpu memory allocation. See SageAttention Official Repository and their paper (accepted by ICLR 2025) for more info.
This PR is currently working in progress.
Reviewing this PR may takes a lot...