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

[sp] : fix the attention kernel for sp #6061

Merged
merged 11 commits into from
Sep 14, 2024
Merged

Conversation

wangbluo
Copy link
Contributor

📝 What does this PR do?

For cases where s_q * s_kv * element size >= 10 GB, dispatch only to the FlashAttentionDaoLoader kernel, and use an empty tensor as a placeholder for the attention_mask. Additionally, only causal and padded causal modes are supported.

@wangbluo wangbluo requested a review from a team as a code owner September 13, 2024 02:36
@wangbluo wangbluo merged commit 37e3523 into hpcaitech:main Sep 14, 2024
4 checks passed
@wangbluo wangbluo deleted the sp_fix branch September 26, 2024 10:06
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