Pārlūkot izejas kodu

chat : fix yandex chat template (#15116)

Sigbjørn Skjæret 5 mēneši atpakaļ
vecāks
revīzija
65c797c4fa
2 mainītis faili ar 0 papildinājumiem un 2 dzēšanām
  1. 0 2
      src/llama-chat.cpp
  2. 0 0
      tests/test-chat-template.cpp

+ 0 - 2
src/llama-chat.cpp

@@ -625,8 +625,6 @@ int32_t llm_chat_apply_template(
     } else if (tmpl == LLM_CHAT_TEMPLATE_YANDEX) {
         // Yandex template ("\n\n" is defined as EOT token)
 
-        ss << "<s>";
-
         for (size_t i = 0; i < chat.size(); i++) {
             std::string role(chat[i]->role);
             if (role == "user") {

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
tests/test-chat-template.cpp


Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels