Skip to content

Commit

Permalink
*.py: accidentally corrected the wrong line
Browse files Browse the repository at this point in the history
  • Loading branch information
mofosyne committed May 2, 2024
1 parent 154ad12 commit 08e2b77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions convert-hf-to-gguf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,7 @@ def write_tensors(self):
data = data_torch.squeeze().numpy()

# 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 Expand Up @@ -2181,7 +2181,7 @@ def write_tensors(self):
continue

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

Expand Down

0 comments on commit 08e2b77

Please sign in to comment.