diff --git a/src/llmtuner/__init__.py b/src/llmtuner/__init__.py index 903e82ad..1a0189bb 100644 --- a/src/llmtuner/__init__.py +++ b/src/llmtuner/__init__.py @@ -7,5 +7,5 @@ from .train import export_model, run_exp from .webui import create_ui, create_web_demo -__version__ = "0.6.1" +__version__ = "0.6.2.dev0" __all__ = ["create_app", "ChatModel", "Evaluator", "export_model", "run_exp", "create_ui", "create_web_demo"] diff --git a/src/llmtuner/data/template.py b/src/llmtuner/data/template.py index cd645cf7..6cc12c56 100644 --- a/src/llmtuner/data/template.py +++ b/src/llmtuner/data/template.py @@ -414,7 +414,7 @@ _register_template( _register_template( name="baichuan", - format_user=StringFormatter(slots=["{{content}}"]), + format_user=StringFormatter(slots=[{"token": ""}, "{{content}}", {"token": ""}]), efficient_eos=True, )