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

This commit is contained in:
hzhaoy committed 2024-05-29 15:00:37 +08:00
1 parent 4728fe62d1
commit 0dd632fe9e
2 files changed
+26

No files matched your search

+10
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,
)