]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
model : fix hunyuan moe chat template (#14584)
authorstevenkuang <redacted>
Tue, 8 Jul 2025 16:29:29 +0000 (00:29 +0800)
committerGitHub <redacted>
Tue, 8 Jul 2025 16:29:29 +0000 (18:29 +0200)
Signed-off-by: stevenkuang <redacted>
src/llama-chat.cpp

index d05335a685b494755ffc527865cd1592d589b131..cbc19d3c40c30e2cec9ca96b2631ce6aab4fdd84 100644 (file)
@@ -680,9 +680,6 @@ int32_t llm_chat_apply_template(
                 ss << "<|startoftext|>" << message->content << "<|extra_0|>";
             }
         }
-        if (add_ass) {
-            ss << "<|startoftext|>";
-        }
     } else {
         // template not supported
         return -1;