Skip to content

Commit 94ec7dc

Browse files
committed
[fix] fix expert_bias convert hf to gguf for ling mini 2.0
1 parent 3fe7676 commit 94ec7dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

convert_hf_to_gguf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7917,7 +7917,7 @@ def modify_tensors(self, data_torch: Tensor, name: str, bid: int | None) -> Iter
79177917
'attention.dense': 'self_attn.dense',
79187918
'attention.key_layernorm': 'self_attn.key_layernorm',
79197919
'attention.query_layernorm': 'self_attn.query_layernorm',
7920-
'mlp.gate.expert_bias': 'mlp.gate.e_score_correction',
7920+
'mlp.gate.expert_bias': 'mlp.gate.e_score_correction.bias',
79217921
}
79227922
for k, v in pre_tensor_name_mapping.items():
79237923
name = name.replace(k, v)

0 commit comments

Comments
 (0)