]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
convert.py : clarifying error message (#2718)
authorAlex Petenchea <redacted>
Tue, 22 Aug 2023 18:58:16 +0000 (21:58 +0300)
committerGitHub <redacted>
Tue, 22 Aug 2023 18:58:16 +0000 (21:58 +0300)
convert.py

index 71978d67161836a03538b964a2f6ba24b2b667b9..e720889fd515a40824fd3406fa2160fd55f155e7 100644 (file)
@@ -964,7 +964,7 @@ def load_vocab(path: Path, vocabtype: Optional[str]) -> Union[BpeVocab, Sentence
             path = path3
         else:
             raise FileNotFoundError(
-                f"Could not find tokenizer.model in {path} or its parent; "
+                f"Could not find {vocab_file} in {path} or its parent; "
                 "if it's in another directory, pass the directory as --vocab-dir")
 
     print(f"Loading vocab file '{path}', type '{vocabtype}'")