mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-04-05 15:27:06 +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")
|
||||
if config.topk_method == "noaux_tc":
|
||||
self.gate.e_score_correction_bias = nn.Parameter(
|
||||
torch.empty(config.n_routed_experts))
|
||||
torch.empty(config.n_routed_experts, dtype=torch.float32))
|
||||
else:
|
||||
self.gate.e_score_correction_bias = None
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user