From 35d52c41004ec615f6e86c70daf3cabb4138117e Mon Sep 17 00:00:00 2001 From: hiyouga Date: Tue, 18 Jul 2023 16:43:51 +0800 Subject: [PATCH] update baichuan template Former-commit-id: bdf91846da12c9d0aee26bf17f5431e4c0eb4bc8 --- src/llmtuner/extras/template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/llmtuner/extras/template.py b/src/llmtuner/extras/template.py index 665a684c..26e62101 100644 --- a/src/llmtuner/extras/template.py +++ b/src/llmtuner/extras/template.py @@ -202,7 +202,7 @@ Supports: https://huggingface.co/baichuan-inc/Baichuan-13B-Chat register_template( name="baichuan", prefix="", - prompt="{query}", + prompt=" {query} ", sep="", use_history=True )