From abc04be06ef63029810874d91e85c340fed9757b Mon Sep 17 00:00:00 2001 From: hiyouga Date: Sat, 10 Feb 2024 16:44:47 +0800 Subject: [PATCH] update default template Former-commit-id: a5fb2806cd6669a16320ef5bc9fb610c5ef8fd9b --- src/llmtuner/data/template.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/llmtuner/data/template.py b/src/llmtuner/data/template.py index 47c25863..4b2e2e51 100644 --- a/src/llmtuner/data/template.py +++ b/src/llmtuner/data/template.py @@ -420,6 +420,7 @@ _register_template( _register_template( name="default", format_user=StringFormatter(slots=["Human: {{content}}\nAssistant: "]), + format_system=StringFormatter(slots=["{{content}}\n"]), format_separator=EmptyFormatter(slots=["\n"]), )