-
Notifications
You must be signed in to change notification settings - Fork 47
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
How to disable flash_attention #6
Comments
Hi @lqniunjunlper and @Sunwood-ai-labs , Thanks for the interest in our work. In place of flash_attention you can use default PyTorch attention. Just replace line "from flash_attn import flash_attn_func" with "torch.nn.functional.scaled_dot_product_attention" . |
@OmkarThawakar Thanks, it's worked! |
same |
Do you solve the problem? |
+1, @OmkarThawakar did u solve it? |
When i run test code, got the error:
RuntimeError: FlashAttention only supports Ampere GPUs or newer.
The text was updated successfully, but these errors were encountered: