llama : return mistral-v7-tekken as default template only (#14390)

This commit is contained in:
Sigbjørn Skjæret 2025-06-26 15:01:14 +02:00 committed by GitHub
parent e8215dbb96
commit b25346221d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -14377,7 +14377,7 @@ const char * llama_model_chat_template(const llama_model * model, const char * n
// do not extend this list unless absolutely necessary // do not extend this list unless absolutely necessary
// Mistral-Small-2503 does not have built-in chat template // Mistral-Small-2503 does not have built-in chat template
llama_vocab_pre_type pre_type = model->vocab.get_pre_type(); llama_vocab_pre_type pre_type = model->vocab.get_pre_type();
if (pre_type == LLAMA_VOCAB_PRE_TYPE_TEKKEN && model->layers.size() == 40) { if (!name && pre_type == LLAMA_VOCAB_PRE_TYPE_TEKKEN && model->layers.size() == 40) {
return "mistral-v7-tekken"; return "mistral-v7-tekken";
} }