[assets] update readme (#8529)

This commit is contained in:
Yaowei Zheng
2025-07-02 17:42:27 +08:00
committed by GitHub
parent bede213da7
commit 906b31fd47
7 changed files with 40 additions and 27 deletions

View File

@@ -1014,7 +1014,7 @@ register_template(
)
# part copied from glm4 template
# copied from glm4 template
register_template(
name="glm4v",
format_user=StringFormatter(slots=["<|user|>\n{{content}}<|assistant|>"]),
@@ -1024,11 +1024,10 @@ register_template(
format_observation=StringFormatter(slots=["<|observation|>\n{{content}}<|assistant|>"]),
format_tools=ToolFormatter(tool_format="glm4"),
format_prefix=EmptyFormatter(slots=["[gMASK]<sop>"]),
stop_words=["<|user|>", "<|observation|>"],
stop_words=["<|user|>", "<|observation|>", "</answer>"],
efficient_eos=True,
mm_plugin=get_mm_plugin(name="glm4v", image_token="<|image|>", video_token="<|video|>"),
template_class=ReasoningTemplate,
thought_words=("<think>", "</think>"),
)