From 44e48e2b82929888b0880c00519102da4eb38ca8 Mon Sep 17 00:00:00 2001 From: "huangpan.foo" Date: Fri, 19 Jul 2024 15:02:54 +0800 Subject: [PATCH] update deepseek template --- src/llamafactory/data/template.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/llamafactory/data/template.py b/src/llamafactory/data/template.py index 3aa2f4f1..db0393d1 100644 --- a/src/llamafactory/data/template.py +++ b/src/llamafactory/data/template.py @@ -578,6 +578,7 @@ _register_template( _register_template( name="deepseek", format_user=StringFormatter(slots=["User: {{content}}\n\nAssistant:"]), + format_system=StringFormatter(slots=["{{content}}\n\n"]), format_prefix=EmptyFormatter(slots=[{"bos_token"}]), )