fuse fp32 for GLM-4.5 e_score_correction_bias (#22143)
Signed-off-by: zRzRzRzRzRzRzR <2448370773@qq.com>
This commit is contained in:
@ -125,9 +125,8 @@ class Glm4MoE(nn.Module):
|
||||
quant_config=None,
|
||||
prefix=f"{prefix}.gate")
|
||||
|
||||
# noaux_tc is not set in transformers new config now
|
||||
self.gate.e_score_correction_bias = (nn.Parameter(
|
||||
torch.empty(config.n_routed_experts)))
|
||||
self.gate.e_score_correction_bias = nn.Parameter(
|
||||
torch.empty(config.n_routed_experts, dtype=torch.float32))
|
||||
|
||||
# Load balancing settings.
|
||||
vllm_config = get_current_vllm_config()
|
||||
|
||||
Reference in New Issue
Block a user