Former-commit-id: ba559a659a82d1e2ffb8ea7939fe4d6b4b37fd92
This commit is contained in:
hiyouga 2024-04-19 22:40:01 +08:00
parent ac7ec7ed10
commit 97c3f9e22c

View File

@ -661,13 +661,18 @@ _register_template(
name="llama3", name="llama3",
format_user=StringFormatter( format_user=StringFormatter(
slots=[ slots=[
"<|start_header_id|>user<|end_header_id|>\n\n{{content}}<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n" (
"<|start_header_id|>user<|end_header_id|>\n\n{{content}}<|eot_id|>"
"<|start_header_id|>assistant<|end_header_id|>\n\n"
)
] ]
), ),
format_system=StringFormatter(slots=[{"bos_token"}, "{{content}}"]), format_system=StringFormatter(
slots=[{"bos_token"}, "<|start_header_id|>system<|end_header_id|>\n\n{{content}}<|eot_id|>"]
),
default_system="You are a helpful assistant.",
stop_words=["<|eot_id|>"], stop_words=["<|eot_id|>"],
replace_eos=True, replace_eos=True,
force_system=True,
) )