[Hardware] Enable CosyVoice3 on Moore Threads MUSA (#5164)

Signed-off-by: Xiaodong Ye <xiaodong.ye@mthreads.com>
This commit is contained in:
R0CKSTAR authored and GitHub committed 2026-07-29 02:46:27 +00:00
1 parent fa41fdf252
commit ab0da662c0
6 files changed
+42 -8

No files matched your search

@@ -135,8 +135,8 @@ class DiTAttention(nn.Module):
# The diffusion Attention layer expects (batch, seq, heads, head_dim)
out = self.attn(query, key, value, attn_metadata=None)
# Reshape back: (batch, seq, dim)
out = out.view(batch_size, seq_len, self.inner_dim)
# Some attention backends return a non-contiguous layout.
out = out.reshape(batch_size, seq_len, self.inner_dim)
out = out.to(query.dtype)
# Output projection