Skip to content

Commit

Permalink
py : add check for '.attn.masked_bias' layers to GPT2model (ggml-org#…
Browse files Browse the repository at this point in the history
  • Loading branch information
MirrorAzure authored Feb 2, 2024
1 parent b05102f commit 2d40085
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 @@ -1138,7 +1138,7 @@ def write_tensors(self):

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", ".attn.bias")):
if name.endswith((".attention.masked_bias", ".attention.bias", ".attention.rotary_emb.inv_freq", ".attn.bias", ".attn.masked_bias")):
continue

if name.endswith((".c_attn.weight", ".c_proj.weight", ".c_fc.weight", ".c_proj.weight")):
Expand Down

0 comments on commit 2d40085

Please sign in to comment.