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

Flash attn hotfix #951

Merged
merged 2 commits into from
Dec 13, 2023
Merged

Flash attn hotfix #951

merged 2 commits into from
Dec 13, 2023

Conversation

winglian
Copy link
Collaborator

transformers 4.36.0 changed to using SDPA for attention when flash attention isn't used. This breaks all of our monkey patches. This fix forces it to use the old attention modules.

@winglian winglian merged commit f1f60cb into main Dec 13, 2023
4 checks passed
@winglian winglian deleted the flash-attn-hotfix branch December 13, 2023 18:42
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

1 participant