[model] update glm4.5 (#8770)

This commit is contained in:
Kingsley
2025-07-29 19:57:29 +08:00
committed by GitHub
parent 8efa506c16
commit 4e0bf35eb4
2 changed files with 41 additions and 16 deletions

View File

@@ -1096,10 +1096,12 @@ register_template(
format_assistant=StringFormatter(slots=["{{content}}<|end_of_text|>\n"]),
format_system=StringFormatter(slots=["<|start_of_role|>system<|end_of_role|>{{content}}<|end_of_text|>\n"]),
format_function=FunctionFormatter(slots=["{{content}}<|end_of_text|>\n"], tool_format="default"),
format_observation=StringFormatter(slots=["<|start_of_role|>tool<|end_of_role|>{{content}}<|end_of_text|>\n<|start_of_role|>assistant\n"]),
format_observation=StringFormatter(
slots=["<|start_of_role|>tool<|end_of_role|>{{content}}<|end_of_text|>\n<|start_of_role|>assistant\n"]
),
format_tools=ToolFormatter(tool_format="default"),
stop_words=["<|end_of_text|>"],
default_system=("You are Granite, developed by IBM. You are a helpful AI assistant.")
default_system=("You are Granite, developed by IBM. You are a helpful AI assistant."),
)