mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-11-06 02:42:15 +08:00
fix phi template
Former-commit-id: 14a1ff665eaebfc618229efbe96f09848d52faec
This commit is contained in:
parent
53d43dea9e
commit
0ef6c579be
@ -747,8 +747,10 @@ _register_template(
|
|||||||
name="phi",
|
name="phi",
|
||||||
format_user=StringFormatter(slots=["<|user|>\n{{content}}<|end|>\n<|assistant|>\n"]),
|
format_user=StringFormatter(slots=["<|user|>\n{{content}}<|end|>\n<|assistant|>\n"]),
|
||||||
format_system=StringFormatter(slots=[{"bos_token"}, "<|system|>\n{{content}}<|end|>\n"]),
|
format_system=StringFormatter(slots=[{"bos_token"}, "<|system|>\n{{content}}<|end|>\n"]),
|
||||||
format_separator=EmptyFormatter(slots=["<|end|>\n"]),
|
format_separator=EmptyFormatter(slots=["\n"]),
|
||||||
default_system="You are a helpful AI assistant.",
|
default_system="You are a helpful AI assistant.",
|
||||||
|
stop_words=["<|end|>"],
|
||||||
|
replace_eos=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user