[Hardware] Enable CosyVoice3 on Moore Threads MUSA (#5164)
Signed-off-by: Xiaodong Ye <xiaodong.ye@mthreads.com>
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user