Skip to content

LLM inference in C/C++

C++ ggml

convert : add missing return after setting tekken vocab (#25947)

Angel Galindob5746d28cee8
diff --git a/conversion/llama.py b/conversion/llama.py
index 9b3373f911..1aced49c54 100644
--- a/conversion/llama.py
+++ b/conversion/llama.py
@@ -119,7 +119,7 @@ class LlamaModel(TextModel):
path_tekken_json = self.dir_model / "tekken.json"
path_tokenizer_json = self.dir_model / "tokenizer.json"
if path_tekken_json.is_file() and not path_tokenizer_json.is_file():
- self._set_vocab_mistral()
+ return self._set_vocab_mistral()
tokenizer_config_file = self.dir_model / 'tokenizer_config.json'
if tokenizer_config_file.is_file():