Update src/llama.cpp
This commit is contained in:
parent
8b0b64bb75
commit
337338813b
1 changed files with 1 additions and 1 deletions
|
@ -21715,7 +21715,7 @@ static int32_t llama_chat_apply_template_internal(
|
|||
}
|
||||
} else if (tmpl == "granite" || tmpl_contains("<|start_of_role|>")) {
|
||||
// IBM Granite template
|
||||
for (const auto & message: chat) {
|
||||
for (const auto & message : chat) {
|
||||
std::string role(message->role);
|
||||
ss << "<|start_of_role|>" << role << "<|end_of_role|>"
|
||||
<< message->content << "<|end_of_text|>\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue