Skip to content

Commit 8cc746a

Browse files
authored
fix: disable SageAttention for Hunyuan3D v2.1 DiT (Comfy-Org#12772)
1 parent 9a870b5 commit 8cc746a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

comfy/ldm/hunyuan3dv2_1/hunyuandit.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ def forward(self, x, y):
343343
k.reshape(b, s2, self.num_heads * self.head_dim),
344344
v,
345345
heads=self.num_heads,
346+
low_precision_attention=False,
346347
)
347348

348349
out = self.out_proj(x)
@@ -412,6 +413,7 @@ def forward(self, x):
412413
key.reshape(B, N, self.num_heads * self.head_dim),
413414
value,
414415
heads=self.num_heads,
416+
low_precision_attention=False,
415417
)
416418

417419
x = self.out_proj(x)

0 commit comments

Comments
 (0)