fix: use actual newline in ChatML generation prompt template
This commit is contained in:
parent
232e786cbe
commit
334848d8d8
1 changed files with 1 additions and 1 deletions
|
|
@ -666,7 +666,7 @@ def _fix_chat_template(chat_template):
|
|||
):
|
||||
after_endfor = (
|
||||
"{%" + dash + " if add_generation_prompt %}"
|
||||
+ "{{ '<|im_start|>assistant\\n' }}"
|
||||
+ "{{ '<|im_start|>assistant\n' }}"
|
||||
+ "{%" + dash + " endif %}"
|
||||
)
|
||||
chat_template = chat_template[: where + len(chosen_end)] + after_endfor
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue