Skip to content

Commit 7e0b6a7

Browse files
committed
py : also print the normalizers
1 parent acdce3c commit 7e0b6a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

convert-hf-to-gguf-update.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ def download_file_with_auth(url, token, save_path):
151151
# print the "pre_tokenizer" content from the tokenizer.json
152152
with open(f"models/tokenizers/{name}/tokenizer.json", "r", encoding="utf-8") as f:
153153
cfg = json.load(f)
154+
normalizer = cfg["normalizer"]
155+
logger.info("normalizer: " + json.dumps(normalizer, indent=4))
154156
pre_tokenizer = cfg["pre_tokenizer"]
155157
logger.info("pre_tokenizer: " + json.dumps(pre_tokenizer, indent=4))
156158

0 commit comments

Comments
 (0)