Fix sync() when fork(1) (#412)

This commit is contained in:
Liangsheng Yin
2024-05-08 15:15:18 +08:00
committed by GitHub
parent 4a1c6ae2ce
commit d5de20a3ee
3 changed files with 20 additions and 11 deletions

View File

@@ -232,9 +232,15 @@ register_chat_template(
name="c4ai-command-r",
default_system_prompt=None,
role_prefix_and_suffix={
"system": ("<|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|>", "<|END_OF_TURN_TOKEN|>"),
"system": (
"<|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|>",
"<|END_OF_TURN_TOKEN|>",
),
"user": ("<|START_OF_TURN_TOKEN|><|USER_TOKEN|>", "<|END_OF_TURN_TOKEN|>"),
"assistant": ("<|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>", "<|END_OF_TURN_TOKEN|>"),
"assistant": (
"<|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>",
"<|END_OF_TURN_TOKEN|>",
),
},
style=ChatTemplateStyle.PLAIN,
)