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

need fix BlockDiagonalMask error for xformer 0.0.28.post1 #86

Open
SaiZyca opened this issue Dec 9, 2024 · 0 comments
Open

need fix BlockDiagonalMask error for xformer 0.0.28.post1 #86

SaiZyca opened this issue Dec 9, 2024 · 0 comments

Comments

@SaiZyca
Copy link

SaiZyca commented Dec 9, 2024

PixArt and SANA need fix code for newer xformers

  if (xformers.__version__).split(".")[2] >= "28":
      attn_bias = xformers.ops.fmha.attn_bias.BlockDiagonalMask.from_seqlens([N] * B, mask)
  else:
      attn_bias = xformers.ops.fmha.BlockDiagonalMask.from_seqlens([N] * B, mask)
city96 added a commit that referenced this issue Dec 11, 2024
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

1 participant