model : add Kanana-2 model support (#19803)

* model: Add Kanana-2 model support

* lint: adjust spacing
This commit is contained in:
HelloKS
2026-02-23 00:15:02 +09:00
committed by GitHub
parent 9f0684f003
commit ae2368e74e
4 changed files with 8 additions and 3 deletions
+2 -1
View File
@@ -2027,7 +2027,8 @@ void llama_vocab::impl::load(llama_model_loader & ml, const LLM_KV & kv) {
pre_type = LLAMA_VOCAB_PRE_TYPE_QWEN2;
} else if (
tokenizer_pre == "gpt-4o" ||
tokenizer_pre == "llama4") {
tokenizer_pre == "llama4" ||
tokenizer_pre == "kanana2") {
pre_type = LLAMA_VOCAB_PRE_TYPE_GPT4O;
clean_spaces = false;
} else if (