We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ff4d9f commit db214faCopy full SHA for db214fa
convert-hf-to-gguf.py
@@ -323,8 +323,7 @@ def _set_vocab_sentencepiece(self):
323
toktypes: list[int] = []
324
325
if not tokenizer_path.is_file():
326
- print(f'Error: Missing {tokenizer_path}', file=sys.stderr)
327
- sys.exit(1)
+ raise FileNotFoundError(f"File not found: {tokenizer_path}")
328
329
tokenizer = SentencePieceProcessor(str(tokenizer_path))
330
vocab_size = self.hparams.get('vocab_size', tokenizer.vocab_size())
0 commit comments