File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -124,8 +124,8 @@ llm_chat_template llm_chat_detect_template(const std::string & tmpl) {
124124 return LLM_CHAT_TEMPLATE_PHI_3;
125125 } else if (tmpl_contains (" <|assistant|>" ) && tmpl_contains (" <|user|>" )) {
126126 if (tmpl_contains (" [gMASK]<sop>" )) { /* new GLM4 0414 models */
127- return LLM_CHAT_TEMPLATE_CHATGML_4;
128- }
127+ return LLM_CHAT_TEMPLATE_CHATGML_4;
128+ }
129129 return tmpl_contains (" </s>" ) ? LLM_CHAT_TEMPLATE_FALCON_3 : LLM_CHAT_TEMPLATE_GLMEDGE;
130130 } else if (tmpl_contains (" <|{{ item['role'] }}|>" ) && tmpl_contains (" <|begin_of_image|>" )) {
131131 return LLM_CHAT_TEMPLATE_GLMEDGE;
@@ -158,7 +158,7 @@ llm_chat_template llm_chat_detect_template(const std::string & tmpl) {
158158 } else if (tmpl_contains (" [gMASK]sop" )) {
159159 // chatglm3-6b
160160 return LLM_CHAT_TEMPLATE_CHATGML_3;
161- } else if (tmpl_contains (" [gMASK]<sop>" )) {
161+ } else if (tmpl_contains (" [gMASK]<sop>" )) { /* old GLM4 models */
162162 return LLM_CHAT_TEMPLATE_CHATGML_4;
163163 } else if (tmpl_contains (LU8 (" <用户>" ))) {
164164 // MiniCPM-3B-OpenHermes-2.5-v2-GGUF
You can’t perform that action at this time.
0 commit comments