server: format_llama2: remove BOS
This commit is contained in:
parent
269437e4eb
commit
7efef47d2e
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ inline std::string format_llama2(std::vector<json> messages)
|
||||||
|
|
||||||
for (auto it = messages.begin(); it != messages.end(); ++it) {
|
for (auto it = messages.begin(); it != messages.end(); ++it) {
|
||||||
if (!is_inside_turn) {
|
if (!is_inside_turn) {
|
||||||
output << "<s>[INST] ";
|
output << "[INST] ";
|
||||||
}
|
}
|
||||||
std::string role = json_value(*it, "role", std::string("user"));
|
std::string role = json_value(*it, "role", std::string("user"));
|
||||||
std::string content = json_value(*it, "content", std::string(""));
|
std::string content = json_value(*it, "content", std::string(""));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue