Add a CUDA kernel for fusing mapping and weighted sum for MoE. (#6916)

Co-authored-by: Elfie Guo <elfiegxf@gmail.com>
This commit is contained in:
Elfie GuoandElfie Guo authored and GitHub committed 2025-06-07 15:24:39 -07:00
1 parent 62fec60d81
commit 3e56f557fd
7 files changed
+146 -12

No files matched your search

+11
View File
@@ -178,6 +178,17 @@ def prepare_moe_input(
)
def apply_shuffle_mul_sum(
input,
output,
permutation,
factors,
):
torch.ops.sgl_kernel.apply_shuffle_mul_sum.default(
input, output, permutation, factors
)
def cutlass_fp4_group_mm(
a_fp4,
b_fp4,