Skip to content

Commit

Permalink
flake-- (sigh)
Browse files Browse the repository at this point in the history
  • Loading branch information
CISC authored Sep 25, 2024
1 parent b7e3c18 commit 6dff288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gguf-py/scripts/gguf_new_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def copy_with_new_metadata(reader: gguf.GGUFReader, writer: gguf.GGUFWriter, new

# Skip old chat templates if we have new ones
if (field.name.startswith(gguf.Keys.Tokenizer.CHAT_TEMPLATE) and gguf.Keys.Tokenizer.CHAT_TEMPLATE in new_metadata) \
or (field.name.startswith(gguf.Keys.Tokenizer.INVERSE_TEMPLATE) and gguf.Keys.Tokenizer.INVERSE_TEMPLATE in new_metadata):
or (field.name.startswith(gguf.Keys.Tokenizer.INVERSE_TEMPLATE) and gguf.Keys.Tokenizer.INVERSE_TEMPLATE in new_metadata):
logger.debug(f'Skipping {field.name}')
continue

Expand Down

0 comments on commit 6dff288

Please sign in to comment.