mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-11-05 18:32:14 +08:00
add simple german chatml template chatml_de
Former-commit-id: 9f1d67c09f1af2c7aa383adec66842cacde92e33
This commit is contained in:
parent
af258902c4
commit
d900ef1e23
@ -504,6 +504,16 @@ register_template(
|
|||||||
|
|
||||||
register_template(name="vanilla")
|
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(
|
register_template(
|
||||||
name="vicuna",
|
name="vicuna",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user