mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-10 07:34:57 +08:00
fuse fp32 for GLM-4.5 e_score_correction_bias (#22143)
Signed-off-by: zRzRzRzRzRzRzR <2448370773@qq.com>
This commit is contained in:
parent
83f7bbb318
commit
d3c18c9cb0
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user