mirror of
https://github.com/huggingface/diffusers.git
synced 2025-12-09 22:14:43 +08:00
comment
This commit is contained in:
@@ -66,6 +66,7 @@ class FA3AttnProcessor:
|
||||
key = key.view(batch_size, -1, attn.heads, head_dim).contiguous()
|
||||
value = value.view(batch_size, -1, attn.heads, head_dim).contiguous()
|
||||
|
||||
# nasty hack to make the head number and head dim compatible with FA3.
|
||||
if attn.heads ==1 and head_dim == 512:
|
||||
factor = 8
|
||||
new_head_dim = head_dim // factor
|
||||
|
||||
Reference in New Issue
Block a user