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

About Flash attention and FlashAttention only supports Ampere GPUs or newer #47

Closed
xiatiandefeng666 opened this issue Feb 21, 2025 · 1 comment

Comments

@xiatiandefeng666
Copy link

Thank you very much for your work. I would like to know when my server is training the model, it prompts: FlashAttention only supports Ampere GPUs or newer, so can I train the model without changing the server? For example, without using FlashAttention,Thank you very much.

@RunsenXu
Copy link
Collaborator

Hi,

You could try using vanilla attention. Just comment this row:

replace_llama_attn_with_flash_attn()

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

No branches or pull requests

2 participants