[model] support Hy3-Preview (#10432)

This commit is contained in:
Hertz
2026-04-29 23:21:13 +08:00
committed by GitHub
parent 3475198d1e
commit f7f3bfcbd7
3 changed files with 28 additions and 0 deletions

View File

@@ -833,6 +833,19 @@ register_template(
)
register_template(
name="hy3",
format_user=StringFormatter(slots=["<hy_User>{{content}}<hy_Assistant>"]),
format_assistant=StringFormatter(slots=["{{content}}<hy_eos>"]),
format_system=StringFormatter(slots=["{{content}}"]),
format_prefix=EmptyFormatter(slots=[{"bos_token"}]),
stop_words=["<hy_eos>"],
replace_eos=True,
thought_words=("<think>", "</think>"),
template_class=ReasoningTemplate,
)
register_template(
name="deepseekcoder",
format_user=StringFormatter(slots=["### Instruction:\n{{content}}\n### Response:"]),