Commit c3acb64
authored
Fixed system message in chat mode. (#2343)
When system message is not in the history tokenizer inserts default
system message during applying of chat template.
Adding to the history empty system message breaks this logic which leads
to empty system message in the resulting model input.
This affects chat accuracy.
Ticket: CVS-1690851 parent 035b591 commit c3acb64
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
315 | 318 | | |
316 | 319 | | |
317 | 320 | | |
| |||
324 | 327 | | |
325 | 328 | | |
326 | 329 | | |
| 330 | + | |
327 | 331 | | |
328 | 332 | | |
329 | 333 | | |
| |||
0 commit comments