[model] support HY-MT model (#9746)

Co-authored-by: Yaowei Zheng <hiyouga@buaa.edu.cn>
This commit is contained in:
Hertz
2026-01-11 16:25:56 +08:00
committed by GitHub
parent 9f73a6eb23
commit 15b87f3125
4 changed files with 27 additions and 2 deletions

View File

@@ -1138,6 +1138,16 @@ register_template(
)
register_template(
name="hunyuan1_5",
format_user=StringFormatter(slots=["<hy_User>{{content}}<hy_place▁holder▁no▁8>"]),
format_assistant=StringFormatter(slots=["{{content}}<hy_place▁holder▁no▁2>"]),
format_system=StringFormatter(slots=["{{content}}<hy_place▁holder▁no▁3>"]),
format_prefix=EmptyFormatter(slots=["<hy_begin▁of▁sentence>"]),
stop_words=["<hy_place▁holder▁no▁2>"],
)
register_template(
name="intern2",
format_user=StringFormatter(slots=["<|im_start|>user\n{{content}}<|im_end|>\n<|im_start|>assistant\n"]),

View File

@@ -1157,6 +1157,21 @@ register_model_group(
)
register_model_group(
models={
"HY-MT1.5-1.8B-Instruct": {
DownloadSource.DEFAULT: "tencent/HY-MT1.5-1.8B",
DownloadSource.MODELSCOPE: "Tencent-Hunyuan/HY-MT1.5-1.8B",
},
"HY-MT1.5-7B-Instruct": {
DownloadSource.DEFAULT: "tencent/HY-MT1.5-7B",
DownloadSource.MODELSCOPE: "Tencent-Hunyuan/HY-MT1.5-7B",
},
},
template="hunyuan1_5",
)
register_model_group(
models={
"Index-1.9B-Base": {