Optimize topk sigmoid in minimax_m2 (#14047)

Co-authored-by: xuebi <xuebi@minimaxi.com>
This commit is contained in:
Roger Young
2025-12-02 14:07:12 +08:00
committed by GitHub
co-authored by xuebi
parent 73df525382
commit 3dabd609fb
2 changed files with 38 additions and 13 deletions
-3
View File
@@ -167,9 +167,6 @@ class MiniMaxM2MoE(nn.Module):
top_k=config.num_experts_per_tok,
renormalize=True,
scoring_func=config.scoring_func,
use_grouped_topk=True, # TODO: Use "grouped top-k" flag only for hardcoded sigmoid scoring
num_expert_group=1,
topk_group=1,
correction_bias=self.e_score_correction_bias,
routed_scaling_factor=1.0,
)