Skip to content

Commit

Permalink
Remove .attention from skipped tensors to match more accurately (#7051)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartowski1182 committed May 2, 2024
1 parent 6ecf318 commit 60325fa
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 @@ -1427,7 +1427,7 @@ def write_tensors(self):
experts = dict()
for name, data_torch in self.get_tensors():
# we don't need these
if name.endswith((".attention.masked_bias", ".attention.bias", ".attention.rotary_emb.inv_freq")):
if name.endswith((".attention.masked_bias", ".attention.bias", ".rotary_emb.inv_freq")):
continue

old_dtype = data_torch.dtype
Expand Down

0 comments on commit 60325fa

Please sign in to comment.