Skip to content

Commit 0192c12

Browse files
fix hunyuan_moe chat template
Signed-off-by: stevenkuang <[email protected]>
1 parent c7329b4 commit 0192c12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llama-chat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ int32_t llm_chat_apply_template(
701701
if (role == "system") {
702702
ss << "<|startoftext|>" << message->content << "<|extra_4|>";
703703
} else if (role == "assistant") {
704-
ss << "<|startoftext|>" << message->content << "<|eos|>";
704+
ss << message->content << "<|eos|>";
705705
} else {
706706
ss << "<|startoftext|>" << message->content << "<|extra_0|>";
707707
}

0 commit comments

Comments
 (0)