Update src/llama.cpp
Co-authored-by: Xuan Son Nguyen <thichthat@gmail.com>
This commit is contained in:
parent
a6679d94bc
commit
26f0911aee
1 changed files with 1 additions and 1 deletions
|
@ -21717,7 +21717,7 @@ static int32_t llama_chat_apply_template_internal(
|
||||||
// IBM Granite template
|
// IBM Granite template
|
||||||
for (const auto& message : chat) {
|
for (const auto& message : chat) {
|
||||||
std::string role(message->role);
|
std::string role(message->role);
|
||||||
ss << "<|start_of_role|>" << role << "<|end_of_role|>" << "\n"
|
ss << "<|start_of_role|>" << role << "<|end_of_role|>\n"
|
||||||
<< message->content << "<|end_of_text|>\n";
|
<< message->content << "<|end_of_text|>\n";
|
||||||
}
|
}
|
||||||
if (add_ass) {
|
if (add_ass) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue