mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-23 22:32:54 +08:00
[data] fix template (#7349)
This commit is contained in:
parent
48a6584fb1
commit
1d2131e5cb
@ -777,15 +777,17 @@ register_template(
|
||||
|
||||
register_template(
|
||||
name="default",
|
||||
format_user=StringFormatter(slots=["Human: {{content}}\nAssistant:"]),
|
||||
format_user=StringFormatter(slots=["Human: {{content}}", {"eos_token"}, "\nAssistant:"]),
|
||||
format_assistant=StringFormatter(slots=["{{content}}", {"eos_token"}, "\n"]),
|
||||
format_system=StringFormatter(slots=["System: {{content}}\n"]),
|
||||
format_system=StringFormatter(slots=["System: {{content}}", {"eos_token"}, "\n"]),
|
||||
replace_jinja_template=True,
|
||||
)
|
||||
|
||||
|
||||
register_template(
|
||||
name="empty",
|
||||
format_assistant=StringFormatter(slots=["{{content}}"]),
|
||||
replace_jinja_template=True,
|
||||
)
|
||||
|
||||
|
||||
@ -809,6 +811,7 @@ register_template(
|
||||
name="fewshot",
|
||||
format_assistant=StringFormatter(slots=["{{content}}\n\n"]),
|
||||
efficient_eos=True,
|
||||
replace_jinja_template=True,
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user