fix: typo of chatglm4 chat tmpl (#8586)
Signed-off-by: thxCode <thxcode0824@gmail.com>
This commit is contained in:
parent
3d0e4367d9
commit
f299aa98ec
1 changed files with 1 additions and 1 deletions
|
@ -21607,7 +21607,7 @@ static int32_t llama_chat_apply_template_internal(
|
||||||
if (add_ass) {
|
if (add_ass) {
|
||||||
ss << "<|assistant|>";
|
ss << "<|assistant|>";
|
||||||
}
|
}
|
||||||
} else if (tmpl == "chaglm4" || tmpl_contains("[gMASK]<sop>")) {
|
} else if (tmpl == "chatglm4" || tmpl_contains("[gMASK]<sop>")) {
|
||||||
ss << "[gMASK]" << "<sop>";
|
ss << "[gMASK]" << "<sop>";
|
||||||
for (auto message : chat) {
|
for (auto message : chat) {
|
||||||
std::string role(message->role);
|
std::string role(message->role);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue