[Feat] Add MUSA flash attention support via mate package (#2451)

Signed-off-by: Xiaodong Ye <yeahdongcn@gmail.com>
This commit is contained in:
R0CKSTAR authored and GitHub committed 2026-04-08 16:01:30 +08:00
1 parent c3c736d488
commit fb3c6bd9b1
5 files changed
+49 -6

No files matched your search

+8
View File
@@ -145,6 +145,14 @@ class RotaryEmbedding(CustomOp):
) -> torch.Tensor:
return self.forward_native(x, cos, sin)
def forward_musa(
self,
x: torch.Tensor,
cos: torch.Tensor,
sin: torch.Tensor,
) -> torch.Tensor:
return self.forward_native(x, cos, sin)
def forward_native(
self,
x: torch.Tensor,