fix template

Former-commit-id: a87838ded1245b00016e7568635ed7146eadb207
This commit is contained in:
hiyouga 2024-02-22 12:09:21 +08:00
parent e1246cc507
commit 9f22befe4c

View File

@ -372,7 +372,7 @@ _register_template(
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|>"],
stop_words=["<|im_end|>", "<|im_start|>"],
replace_eos=True,
)
@ -383,7 +383,7 @@ _register_template(
format_system=StringFormatter(slots=["<|im_start|>system\n{{content}}<|im_end|>\n"]),
format_separator=EmptyFormatter(slots=["\n"]),
default_system="Du bist ein freundlicher und hilfsbereiter KI-Assistent.",
stop_words=["<|im_end|>"],
stop_words=["<|im_end|>", "<|im_start|>"],
replace_eos=True,
)