mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-05-23 13:51:19 +08:00
[Bug] R1 Accuracy: Fix routed_scaling_factor Double Mul Issue (#24119)
Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
parent
457e471971
commit
930a24144c
@ -160,7 +160,8 @@ class DeepseekV2MoE(nn.Module):
|
|||||||
topk_group=config.topk_group,
|
topk_group=config.topk_group,
|
||||||
prefix=f"{prefix}.experts",
|
prefix=f"{prefix}.experts",
|
||||||
scoring_func=config.scoring_func,
|
scoring_func=config.scoring_func,
|
||||||
routed_scaling_factor=self.routed_scaling_factor,
|
# we do scaling outside, set factor to 1.0 to avoid double mul
|
||||||
|
routed_scaling_factor=1.0,
|
||||||
e_score_correction_bias=self.gate.e_score_correction_bias,
|
e_score_correction_bias=self.gate.e_score_correction_bias,
|
||||||
enable_eplb=self.enable_eplb,
|
enable_eplb=self.enable_eplb,
|
||||||
num_redundant_experts=self.n_redundant_experts)
|
num_redundant_experts=self.n_redundant_experts)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user