From b681f24f43d2b5dc008831b876c3a53c4e422f70 Mon Sep 17 00:00:00 2001 From: hoshi-hiyouga Date: Mon, 19 Aug 2024 23:40:16 +0800 Subject: [PATCH] Update template.py Former-commit-id: c6822a217e1c296f4aedd9a2c7610acd1dbd443e --- src/llamafactory/data/template.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/llamafactory/data/template.py b/src/llamafactory/data/template.py index 442abf96..1f859be6 100644 --- a/src/llamafactory/data/template.py +++ b/src/llamafactory/data/template.py @@ -787,7 +787,10 @@ _register_template( format_user=StringFormatter(slots=["<|im_start|>question\n{{content}}<|im_end|>\n<|im_start|>answer\n"]), format_system=StringFormatter(slots=["<|im_start|>system\n{{content}}<|im_end|>\n"]), format_separator=EmptyFormatter(slots=["\n"]), - default_system="You are a helpful assistant.", + default_system=( + "You are an AI assistant named Sailor created by Sea AI Lab. " + "Your answer should be friendly, unbiased, faithful, informative and detailed." + ), stop_words=["<|im_end|>"], replace_eos=True, )