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

sageattention in hunyuanvideo meet attention_mask #99

Open
Andy0422 opened this issue Feb 6, 2025 · 1 comment
Open

sageattention in hunyuanvideo meet attention_mask #99

Andy0422 opened this issue Feb 6, 2025 · 1 comment

Comments

@Andy0422
Copy link

Andy0422 commented Feb 6, 2025

How to handle the attention_mask in your sage kernel? e.g. hunyuanvideo calls AttnProcessor2.0. It seems the kernel does not have the attention_mask interface. Many thanks.

class HunyuanVideoAttnProcessor2_0:

       hidden_states = F.scaled_dot_product_attention(
            query, key, value, attn_mask=attention_mask, dropout_p=0.0, is_causal=False
        )
@jt-zhang
Copy link
Member

jt-zhang commented Feb 7, 2025

For HunyuanVideo, you can modify the source code in their Github Repository rather than using diffuser.

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