add simple german chatml template chatml_de

This commit is contained in:
Johann-Peter Hartmann 2024-02-03 09:01:15 +01:00
parent 870182c3a9
commit b0ffde6e98
1 changed files with 10 additions and 0 deletions

View File

@ -504,6 +504,16 @@ register_template(
register_template(name="vanilla")
register_template(
name="chatml_de",
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"]),
default_system="Du bist ein freundlicher und hilfsbereiter KI-Assistent.",
stop_words=["<|im_end|>"],
replace_eos=True,
)
register_template(
name="vicuna",