Removed 'mistral-v2' option as no (open) models ever used it

This commit is contained in:
juk 2024-11-29 14:30:01 +00:00
parent 534e96ca56
commit 0427e6563b
2 changed files with 1 additions and 3 deletions

View file

@ -21878,7 +21878,7 @@ static int32_t llama_chat_apply_template_internal(
ss << " " << content << "</s>";
}
}
} else if (tmpl == "mistral-v1" || tmpl == "mistral-v2" || tmpl == "mistral-v3" || tmpl == "mistral-v3-tekken"
} else if (tmpl == "mistral-v1" || tmpl == "mistral-v3" || tmpl == "mistral-v3-tekken"
|| tmpl_contains("' [INST] ' + system_message") // catches official v1 template
|| tmpl_contains("[AVAILABLE_TOOLS]")) { // catches official 2/v3/v3-tekken templates
// Official mistral v1/v2/v3/v3-tekken templates

View file

@ -171,7 +171,6 @@ int main(void) {
};
assert(fmt_sys("chatml") == "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n");
assert(fmt_sys("mistral-v1") == " [INST] You are a helpful assistant\n\n");
assert(fmt_sys("mistral-v2") == "[INST] You are a helpful assistant\n\n");
assert(fmt_sys("mistral-v3") == "[INST] You are a helpful assistant\n\n");
assert(fmt_sys("mistral-v3-tekken") == "[INST]You are a helpful assistant\n\n");
assert(fmt_sys("mistral-v7") == "[SYSTEM_PROMPT] You are a helpful assistant[/SYSTEM_PROMPT]");
@ -196,7 +195,6 @@ int main(void) {
};
assert(fmt_single("chatml") == "\n<|im_start|>user\nHow are you<|im_end|>\n<|im_start|>assistant\n");
assert(fmt_single("mistral-v1") == " [INST] How are you [/INST]");
assert(fmt_single("mistral-v2") == "[INST] How are you[/INST]");
assert(fmt_single("mistral-v3") == "[INST] How are you[/INST]");
assert(fmt_single("mistral-v3-tekken") == "[INST]How are you[/INST]");
assert(fmt_single("mistral-v7") == "[INST] How are you[/INST]");