fix phi-small template

Former-commit-id: 48fb6bae6245dc6d5f72ebfc1c2bd9ffacd51b86
This commit is contained in:
menibrief 2024-09-18 23:52:30 +03:00 committed by GitHub
parent f34322afd7
commit a7feab45d5

View File

@ -821,6 +821,15 @@ _register_template(
replace_eos=True,
)
_register_template(
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"]),
format_prefix=EmptyFormatter(slots=[{"<|endoftext|>"}]),
stop_words=["<|end|>"],
replace_eos=True,
)
_register_template(
name="qwen",