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

Switch to using Cuda Flash Attn for Alibi #1183

Merged
merged 2 commits into from
Mar 13, 2024
Merged

Conversation

haileyschoelkopf
Copy link
Contributor

Since 2.4.0.post1, Flash-attn has supported alibi_slopes in its cuda kernels, removing the need for using the triton backend. This PR switches over to using the cuda flash functions rather than triton for compatible flash versions, but retains compatibility for Alibi + flash<2.4.0 via triton for now with a warning.

Future PRs could potentially add the updated Triton implementation from the triton repo which could be faster on H100s, as this is distinct from the triton impl. in the flash attention repo.

@Quentin-Anthony Quentin-Anthony merged commit 03186de into main Mar 13, 2024
2 checks passed
@Quentin-Anthony Quentin-Anthony deleted the flash-alibi-cuda branch March 13, 2024 01:33
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.

None yet

2 participants