support chatglm3

This commit is contained in:
hiyouga committed 2023-10-27 19:16:28 +08:00
1 parent 3fe7df628d
commit 1c0ab9a908
3 files changed
+24 -2

No files matched your search

+22
View File
@@ -558,6 +558,28 @@ register_template(
)
r"""
Supports: https://huggingface.co/THUDM/chatglm3-6b
"""
register_template(
name="chatglm3",
prefix=[
{"token": "[gMASK]"},
{"token": "sop"},
"{{system}}"
],
prompt=[
{"token": "<|user|>"},
"\n",
"{{query}}",
{"token": "<|assistant|>"}
],
system="",
sep=[],
efficient_eos=True
)
r"""
Supports: https://huggingface.co/openchat/openchat_v3.2_super
"""