Skip to content

Commit 3ac27c6

Browse files
authored
feat: smaller tokenizers (MinishLab#243)
1 parent 15207a8 commit 3ac27c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

model2vec/hf_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def save_pretrained(
4040
folder_path = folder_path / subfolder if subfolder else folder_path
4141
folder_path.mkdir(exist_ok=True, parents=True)
4242
save_file({"embeddings": embeddings}, folder_path / "model.safetensors")
43-
tokenizer.save(str(folder_path / "tokenizer.json"))
43+
tokenizer.save(str(folder_path / "tokenizer.json"), pretty=False)
4444
json.dump(config, open(folder_path / "config.json", "w"), indent=4)
4545

4646
# Create modules.json

0 commit comments

Comments
 (0)