[new feat] ascend backend support fia fusion kernel (#8328)

Co-authored-by: Even Zhou <even.y.zhou@outlook.com>
This commit is contained in:
ZhengdQin
2025-08-25 23:13:08 -07:00
committed by GitHub
co-authored by Even Zhou
parent e2e378caba
commit f92b729d52
9 changed files with 509 additions and 128 deletions
+1 -1
View File
@@ -304,7 +304,7 @@ class TopK(CustomOp):
global_num_experts = router_logits.shape[-1]
# NOTE: now npu_moe_gating_top_k can only support `group_count=256` pattern
if global_num_experts == 256 and self.topk_config.renormalize is False:
if global_num_experts == 256 and self.topk_config.renormalize is True:
routed_scaling_factor = self.topk_config.routed_scaling_factor or 1
router_logits = router_logits.to(torch.float32)