Skip to content

Commit

Permalink
flake--
Browse files Browse the repository at this point in the history
  • Loading branch information
CISC authored Apr 18, 2024
1 parent 57b9328 commit f153e7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gguf-py/scripts/gguf-new-metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def copy_with_new_metadata(reader: gguf.GGUFReader, writer: gguf.GGUFWriter, new
writer.add_val(val, field.types[0])

if gguf.Keys.Tokenizer.CHAT_TEMPLATE in new_metadata:
logger.debug(f'Adding chat template(s)')
logger.debug('Adding chat template(s)')
writer.add_chat_template(new_metadata[gguf.Keys.Tokenizer.CHAT_TEMPLATE])
del new_metadata[gguf.Keys.Tokenizer.CHAT_TEMPLATE]

Expand Down Expand Up @@ -150,8 +150,8 @@ def main() -> None:

if remove_metadata:
logger.warning('*** Warning *** Warning *** Warning **')
logger.warning(f'* Most metadata is required for a fully functional GGUF file,')
logger.warning(f'* removing crucial metadata may result in a corrupt output file!')
logger.warning('* Most metadata is required for a fully functional GGUF file,')
logger.warning('* removing crucial metadata may result in a corrupt output file!')

if not args.force:
logger.warning('* Enter exactly YES if you are positive you want to proceed:')
Expand Down

0 comments on commit f153e7e

Please sign in to comment.