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

use xformers for single frame model #47

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

KohakuBlueleaf
Copy link

After pytorch 2.2.0, flash attn 2 have been added to pytorch's sdp attn implementation. But it also drop the support of flash attn on Windows platform.

Since this project already require user to install xformers (which have flash attn 2 support on windows by default).
I recommend to use xformers instead of diffusers' default implementation (which use pytorch sdp).

Use xformers also avoid extra transpose operation for q/k/v and attn output.

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.

1 participant