add TeleChat-12B/TeleChat-12B-v2 models

Former-commit-id: 0dd632fe9e
This commit is contained in:
hzhaoy
2024-05-29 15:00:37 +08:00
parent 2540ce58c0
commit ce1be3da4b
2 changed files with 26 additions and 0 deletions

View File

@@ -918,3 +918,13 @@ _register_template(
format_user=StringFormatter(slots=["<human>:{{content}}\n<bot>:"]),
format_separator=EmptyFormatter(slots=["\n"]),
)
_register_template(
name="telechat",
format_user=StringFormatter(slots=["<_user>{{content}}<_bot>"]),
format_system=StringFormatter(slots=["<_system>{{content}}<_end>"]),
default_system="",
stop_words=["<_end>"],
replace_eos=True,
)