mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-11-05 18:32:14 +08:00
fix phi-small template
Former-commit-id: 48fb6bae6245dc6d5f72ebfc1c2bd9ffacd51b86
This commit is contained in:
parent
41362e65e4
commit
9f27e644e4
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user