Fix trtllm_moe wrong correction bias (#10440)

This commit is contained in:
fzyzcjy
2025-09-15 01:02:05 -07:00
committed by GitHub
parent 50dc0c1e9c
commit 059c13de5c
2 changed files with 14 additions and 10 deletions
-8
View File
@@ -213,14 +213,6 @@ class TopK(CustomOp):
if use_grouped_topk:
assert num_expert_group is not None and topk_group is not None
if (
quant_config is not None
and quant_config.get_name() == "modelopt_fp4"
and should_use_flashinfer_trtllm_moe()
):
# https://github.com/sgl-project/sglang/pull/9834#discussion_r2324480643
correction_bias = correction_bias.to(torch.bfloat16)
self.topk_config = TopKConfig(
top_k=top_k,
use_grouped_topk=use_grouped_topk,