fix gemma template

Former-commit-id: 6bf4c1274f4e9c91a6b37bd4c420c2369eaae65a
This commit is contained in:
hiyouga 2024-02-23 13:49:53 +08:00
parent 9f22befe4c
commit 223633556b

View File

@ -446,9 +446,10 @@ _register_template(
_register_template( _register_template(
name="gemma", name="gemma",
format_user=StringFormatter(slots=["<start_of_turn>user\n{{content}}<end_of_turn>\n<start_of_turn>model\n"]), format_user=StringFormatter(slots=["<start_of_turn>user\n{{content}}<end_of_turn>\n<start_of_turn>model\n"]),
format_system=StringFormatter(slots=["{{content}}"]), format_system=StringFormatter(slots=[{"bos_token"}, "{{content}}"]),
format_separator=EmptyFormatter(slots=["<end_of_turn>\n"]), format_separator=EmptyFormatter(slots=["<end_of_turn>\n"]),
efficient_eos=True, efficient_eos=True,
force_system=True,
) )