]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
fix: typo of chatglm4 chat tmpl (#8586)
authorFrank Mai <redacted>
Fri, 19 Jul 2024 09:44:41 +0000 (17:44 +0800)
committerGitHub <redacted>
Fri, 19 Jul 2024 09:44:41 +0000 (11:44 +0200)
Signed-off-by: thxCode <redacted>
src/llama.cpp

index 20e85b3ebe5dfa47efd3adedb3c7ef3b1af9b069..228e112acfe94244aa8afc82aaa67bf5fe3e3044 100644 (file)
@@ -21607,7 +21607,7 @@ static int32_t llama_chat_apply_template_internal(
         if (add_ass) {
             ss << "<|assistant|>";
         }
-    } else if (tmpl == "chaglm4" || tmpl_contains("[gMASK]<sop>")) {
+    } else if (tmpl == "chatglm4" || tmpl_contains("[gMASK]<sop>")) {
         ss << "[gMASK]" << "<sop>";
         for (auto message : chat) {
             std::string role(message->role);