Ported kimi-k2 support from llama.cpp (#609)

Original patch by @gabriellarson:
https://github.com/ggml-org/llama.cpp/pull/14654

Co-authored-by: anikifoss <anikifoss>
This commit is contained in:
Aleksey Nikiforov
2025-07-14 12:43:52 -04:00
committed by GitHub
parent 4f56069442
commit da8998c6c6
5 changed files with 223 additions and 1 deletions

View File

@@ -112,6 +112,7 @@ extern "C" {
LLAMA_VOCAB_PRE_TYPE_FALCON_E = 35,
LLAMA_VOCAB_PRE_TYPE_SEED_CODER = 36, //llama.cpp lists this as 35
LLAMA_VOCAB_PRE_TYPE_HUNYUAN = 37, //llama.cpp lists this as 36
LLAMA_VOCAB_PRE_TYPE_KIMI_K2 = 38, //llama.cpp lists this as 37
};
// note: these values should be synchronized with ggml_rope