From f299aa98ecc19cbc574e9d698e03999e89de3d3d Mon Sep 17 00:00:00 2001 From: Frank Mai Date: Fri, 19 Jul 2024 17:44:41 +0800 Subject: [PATCH] fix: typo of chatglm4 chat tmpl (#8586) Signed-off-by: thxCode --- src/llama.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);