Skip to content

Commit

Permalink
revert changes to convert-hf-to-gguf.py for get_name()
Browse files Browse the repository at this point in the history
  • Loading branch information
mofosyne committed May 1, 2024
1 parent fcc5a5e commit 6d42f3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion convert-hf-to-gguf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2181,7 +2181,7 @@ def write_tensors(self):
continue

# map tensor names
new_name = tensor_map.get_name(name, try_suffixes=(".weight", ".bias"))
new_name = tensor_map.get_name(name, try_suffixes=(".weight",))
if new_name is None:
raise ValueError(f"Can not map tensor {name!r}")

Expand Down

0 comments on commit 6d42f3d

Please sign in to comment.