Skip to content

Commit 25c463c

Browse files
committed
llama-model: add chat template warning for mistral-v7-tekken
1 parent 9190da2 commit 25c463c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/llama-model.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13786,6 +13786,7 @@ const char * llama_model_chat_template(const llama_model * model, const char * n
1378613786
// one-off fix for very popular models (so we are not flooded with issues)
1378713787
// do not extend this list unless absolutely necessary
1378813788
// Mistral-Small-2503 does not have built-in chat template
13789+
LLAMA_LOG_WARN("llama_model_chat_template: Couldn't find chat template (tried key %s), falling back to mistral-v7-tekken\n", key.c_str());
1378913790
llama_vocab_pre_type pre_type = model->vocab.get_pre_type();
1379013791
if (pre_type == LLAMA_VOCAB_PRE_TYPE_TEKKEN && model->layers.size() == 40) {
1379113792
return "mistral-v7-tekken";

0 commit comments

Comments
 (0)