update template

Former-commit-id: 478cbb1aa72f218df37b5a4686db2248ad2605dd
This commit is contained in:
hoshi-hiyouga 2024-11-02 21:21:22 +08:00 committed by GitHub
parent d99e164cad
commit 8c2b7aa1ab

View File

@ -941,8 +941,9 @@ _register_template(
replace_eos=True,
)
_register_template(
name="phi-small",
name="phi_small",
format_user=StringFormatter(slots=["<|user|>\n{{content}}<|end|>\n<|assistant|>\n"]),
format_system=StringFormatter(slots=["<|system|>\n{{content}}<|end|>\n"]),
format_separator=EmptyFormatter(slots=["\n"]),
@ -951,6 +952,7 @@ _register_template(
replace_eos=True,
)
_register_template(
name="pixtral",
format_user=StringFormatter(slots=["[INST] {{content}} [/INST]"]),