mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-09-09 00:57:02 +08:00
[Model] fix DeepSeek e_score_correction_bias dtype to fp32 (#23640)
Signed-off-by: Jee Jee Li <pandaleefree@gmail.com>
This commit is contained in:
parent
d52358c1e0
commit
fdeb3dac13
@ -126,7 +126,7 @@ class DeepseekV2MoE(nn.Module):
|
|||||||
prefix=f"{prefix}.gate")
|
prefix=f"{prefix}.gate")
|
||||||
if config.topk_method == "noaux_tc":
|
if config.topk_method == "noaux_tc":
|
||||||
self.gate.e_score_correction_bias = nn.Parameter(
|
self.gate.e_score_correction_bias = nn.Parameter(
|
||||||
torch.empty(config.n_routed_experts))
|
torch.empty(config.n_routed_experts, dtype=torch.float32))
|
||||||
else:
|
else:
|
||||||
self.gate.e_score_correction_bias = None
|
self.gate.e_score_correction_bias = None
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user