Skip to content

Commit 08f30c9

Browse files
authored
Update convert_hf_to_gguf.py
1 parent a6c22f0 commit 08f30c9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

convert_hf_to_gguf.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4106,7 +4106,6 @@ def modify_tensors(
41064106
return [(new_name, data_torch)]
41074107

41084108
# Handle shared expert tensors
4109-
# What are these MTP tensors? If we preserve them do they need to be "noop" or whatever?
41104109
if ".mlp.shared_experts." in name:
41114110
new_name = name.replace("model.layers.", "blk.").replace(".mlp.shared_experts.", ".ffn_")
41124111
if "gate_proj" in new_name:
@@ -4144,7 +4143,7 @@ def modify_tensors(
41444143
or ".hnorm." in name
41454144
):
41464145
new_name = name.replace("model.layers.", "blk.").replace("model.", "").replace(".weight", "")
4147-
logger.debug(f"Skipping MTP tensor: {new_name}")
4146+
# logger.debug(f"Skipping MTP tensor: {new_name}")
41484147
return [(new_name, data_torch)]
41494148

41504149
# GLM tensor mapping - handle directly without map_tensor_name

0 commit comments

Comments
 (0)