fix yi template

This commit is contained in:
Yimi81 2024-05-27 13:11:25 +00:00
parent c1fdf81df6
commit dc07413e7d
1 changed files with 1 additions and 0 deletions

View File

@ -872,6 +872,7 @@ _register_template(
_register_template(
name="yi",
format_user=StringFormatter(slots=["<|im_start|>user\n{{content}}<|im_end|>\n<|im_start|>assistant\n"]),
format_system=StringFormatter(slots=["<|im_start|>system\n{{content}}<|im_end|>\n"]),
format_separator=EmptyFormatter(slots=["\n"]),
stop_words=["<|im_end|>"],
replace_eos=True,