mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-10-15 08:08:09 +08:00
Update template.py
Former-commit-id: af869e4c48eb426c4078415533f6dab89123a9d8
This commit is contained in:
parent
0d9e364a90
commit
1bb1ae834e
@ -761,16 +761,15 @@ _register_template(
|
|||||||
format_user=StringFormatter(
|
format_user=StringFormatter(
|
||||||
slots=[
|
slots=[
|
||||||
(
|
(
|
||||||
"<|start_header_id|>GPT4 Correct User<|end_header_id|>\n\n{{content}}<|eot_id|>"
|
"<|start_header_id|>GPT4 Correct User<|end_header_id|>\n\n{{content}}<|eot_id|>",
|
||||||
"<|start_header_id|>GPT4 Correct Assistant<|end_header_id|>\n\n"
|
"<|start_header_id|>GPT4 Correct Assistant<|end_header_id|>\n\n"
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
format_system=StringFormatter(
|
format_system=StringFormatter(slots=[{"bos_token"}, "{{content}}"]),
|
||||||
slots=[{"bos_token"}, "<|start_header_id|>System<|end_header_id|>\n\n{{content}}<|eot_id|>"]
|
|
||||||
),
|
|
||||||
stop_words=["<|eot_id|>"],
|
stop_words=["<|eot_id|>"],
|
||||||
replace_eos=True,
|
replace_eos=True,
|
||||||
|
force_system=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user