[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:
@@ -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|>:"]),
|
||||
|
||||
Reference in New Issue
Block a user