Skip to content

Commit 243e4d1

Browse files
committed
fix
1 parent 1415cd8 commit 243e4d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

convert_hf_to_gguf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6606,6 +6606,8 @@ def get_tensors(self) -> Iterator[tuple[str, Tensor]]:
66066606
for name, tensor in super().get_tensors():
66076607
if name.startswith("model.backbone") or name.startswith("model.lm_head"):
66086608
name = name.removeprefix("model.")
6609+
if "ffn_pre_norm" in name:
6610+
name = name.replace("ffn_pre_norm", "ffn_norm")
66096611
yield name, tensor
66106612

66116613
if self.ssm_multipliers is not None:

0 commit comments

Comments
 (0)