preserved tokens

This commit is contained in:
Concedo 2026-09-20 10:35:37 +08:00
parent 1e300ce8b1
commit 1859dbed49

View file

@ -3182,6 +3182,7 @@ void llama_vocab::impl::load(llama_model_loader & ml, const LLM_KV & kv) {
|| t.first == "[THINK]" || t.first == "[/THINK]"
|| t.first == "<|eom|>" // muse-glimmer mid-turn delimiter
|| t.first == "<think>" || t.first == "</think>"
|| t.first == "<function" || t.first == "<param" || t.first == "</param>" || t.first == "</function>" //minicpm5
// || t.first == "<|tool_calls_section_begin|>" || t.first == "<|tool_calls_section_end|>" // kimi-k2
|| t.first == "<|tool_call_begin|>" || t.first == "<|tool_call_argument_begin|>" // kimi-k2
|| t.first == "[CALL_ID]" || t.first == "[TOOL_CONTENT]" || t.first == "[TOOL_CALLS]" || t.first == "[ARGS]") {