Skip to content

Commit 9b5d9a8

Browse files
committed
revert
1 parent b374360 commit 9b5d9a8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

convert_hf_to_gguf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2002,6 +2002,11 @@ def set_vocab(self):
20022002
self._set_vocab_mistral()
20032003
return
20042004

2005+
path_tekken_json = self.dir_model / "tekken.json"
2006+
path_tokenizer_json = self.dir_model / "tokenizer.json"
2007+
if path_tekken_json.is_file() and not path_tokenizer_json.is_file():
2008+
return self.set_vocab_tekken()
2009+
20052010
try:
20062011
self._set_vocab_sentencepiece()
20072012
except FileNotFoundError:

0 commit comments

Comments
 (0)