forked from p04798526/LLaMA-Factory-Mirror
Merge pull request #3925 from Yimi81/feat-fix-yi-template
fix yi template
This commit is contained in:
commit
50912484d3
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue