From: Frank Mai Date: Fri, 19 Jul 2024 09:44:41 +0000 (+0800) Subject: fix: typo of chatglm4 chat tmpl (#8586) X-Git-Tag: upstream/0.0.4488~1069 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=f299aa98ecc19cbc574e9d698e03999e89de3d3d;p=pkg%2Fggml%2Fsources%2Fllama.cpp fix: typo of chatglm4 chat tmpl (#8586) Signed-off-by: thxCode --- diff --git a/src/llama.cpp b/src/llama.cpp index 20e85b3e..228e112a 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);