"git@developer.sourcefind.cn:change/sglang.git" did not exist on "9f78f391ae6386989646d88dd0137d921cc3f473"
Unverified Commit 76d17c7e authored by lambert0312's avatar lambert0312 Committed by GitHub
Browse files

Fix shared experts fusion error without quantization (#5632)

parent 70d040f9
......@@ -1604,7 +1604,7 @@ class DeepseekV2ForCausalLM(nn.Module):
if self.n_share_experts_fusion > 0:
weights_list = list(weights)
weights_dict = dict(weights_list)
if self.quant_config.get_name() == "w8a8_int8":
if self.quant_config is None or self.quant_config.get_name() == "w8a8_int8":
suffix_list = [
"down_proj.weight",
"down_proj.weight_scale",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment