moe preprocess op support 160 experts and fused_moe triton kernel name add K (#3121)

This commit is contained in:
chen
2025-08-01 10:46:20 +08:00
committed by GitHub
parent 1d93565082
commit a2f5cc54f8
3 changed files with 47 additions and 99 deletions

View File

@@ -134,7 +134,7 @@ class KernelInterface:
*args: positional arguments
**kwargs: keyword arguments
"""
op_name = "haha" + str(kwargs["N"])
op_name = f'haha_N{str(kwargs["N"])}_K{str(kwargs["K"])}'
if op_name in self.func_map.keys():
return self.func_map[op_name](*args)