[model] support hunyuan 7b (#7317)

* [Model]supported tencent-hunyuan model

* [Model]supported tencent-hunyuan model(fix)

* [Model]supported tencent-hunyuan model(fix)
This commit is contained in:
Hertz
2025-03-15 20:55:24 +08:00
committed by GitHub
parent a44a53ebec
commit ec1154662b
4 changed files with 23 additions and 0 deletions

View File

@@ -876,6 +876,16 @@ register_template(
)
register_template(
name="hunyuan",
format_user=StringFormatter(slots=["<|bos|>user\n{{content}}<|eos|>\n<|bos|>assistant\n"]),
format_assistant=StringFormatter(slots=["{{content}}<|eos|>\n"]),
format_system=StringFormatter(slots=["<|bos|>system\n{{content}}<|eos|>\n"]),
format_prefix=EmptyFormatter(slots=["<|bos|>"] ),
stop_words=["<|eos|>"]
)
register_template(
name="intern",
format_user=StringFormatter(slots=["<|User|>:{{content}}\n<|Bot|>:"]),