diff --git a/swift/llm/utils/template.py b/swift/llm/utils/template.py index 116ce55768..c4dfeac5c4 100644 --- a/swift/llm/utils/template.py +++ b/swift/llm/utils/template.py @@ -674,7 +674,7 @@ def register_template(template_type: str, [['eos_token_id']], [['eos_token_id']], '')) register_template( TemplateType.ziya, - Template([['bos_token_id', '{{SYSTEM}}']], [':{{QUERY}}\n:'], + Template([['bos_token_id'], '{{SYSTEM}}'], [':{{QUERY}}\n:'], ['\n'], [['eos_token_id']], '')) register_template(