Skip to content

Commit 72855db

Browse files
Fix potential rope issue. (#9710)
1 parent f48d05a commit 72855db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

comfy/ldm/audio/dit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ def forward(
632632
# Attention layers
633633

634634
if self.rotary_pos_emb is not None:
635-
rotary_pos_emb = self.rotary_pos_emb.forward_from_seq_len(x.shape[1], dtype=x.dtype, device=x.device)
635+
rotary_pos_emb = self.rotary_pos_emb.forward_from_seq_len(x.shape[1], dtype=torch.float, device=x.device)
636636
else:
637637
rotary_pos_emb = None
638638

0 commit comments

Comments
 (0)