update readme

Former-commit-id: 1deda4750e0df6c46aeb33cf3f8b35baa537cc1d
This commit is contained in:
hiyouga
2024-12-23 14:08:59 +00:00
parent df42e438c1
commit a5346041bb
4 changed files with 85 additions and 39 deletions

View File

@@ -698,13 +698,13 @@ _register_template(
_register_template(
name="granite3",
format_user=StringFormatter(slots=["<|start_of_role|>user<|end_of_role|>{{content}}<|end_of_text|>\n<|start_of_role|>assistant<|end_of_role|>"]),
format_user=StringFormatter(
slots=[
"<|start_of_role|>user<|end_of_role|>{{content}}<|end_of_text|>\n<|start_of_role|>assistant<|end_of_role|>"
]
),
format_system=StringFormatter(slots=["<|start_of_role|>system<|end_of_role|>{{content}}<|end_of_text|>\n"]),
format_assistant=StringFormatter(slots=["{{content}}<|end_of_text|>\n"]),
format_separator=EmptyFormatter(slots=["\n"]),
stop_words=["<|end_of_text|>"],
replace_eos=True,
replace_jinja_template=True,
)