diff --git a/src/llama.cpp b/src/llama.cpp index 20e85b3eb..228e112ac 100644 --- a/src/llama.cpp +++ b/src/llama.cpp @@ -21607,7 +21607,7 @@ static int32_t llama_chat_apply_template_internal( if (add_ass) { ss << "<|assistant|>"; } - } else if (tmpl == "chaglm4" || tmpl_contains("[gMASK]")) { + } else if (tmpl == "chatglm4" || tmpl_contains("[gMASK]")) { ss << "[gMASK]" << ""; for (auto message : chat) { std::string role(message->role);