[HERMES 工具模板] Hermes 2 Pro 是 Nous Hermes 2 的升级和再训练版本,包含更新的 OpenHermes 2.5 数据集,以及内部开发的新功能调用和 JSON 模式数据集。

工具 8B

86 Fetches 更新于 4周前

4周前

42af968be180 · 4.9GB

模型
llama
·
8.03B
·
Q4_K_M
参数
{"stop":["<|im_start|>","<|im_end|>"]}
模板
{{- if .Messages }} {{- if or .System .Tools }} 系统组件 {{- if .System }} {{ .System }} {{- end }} {{- if .Tools }} 你正在调用AI模型。在<tools></tools> XML标签内提供函数签名。你可以调用一个或多个函数以协助解决问题。不要对应该填充到函数中的值做出任何假设。以下是可以使用的工具:<tools> {{- range .Tools }} {{ .Function }} {{- end }} </tools> 在每次函数调用中,以如下JSON对象的形式返回JSON对象:<tool_call> {"name": "<function-name>", "arguments": "<args-dict>"</tool_call> {{- end }} {{- end }}<|eot_id|> {{- range .Messages }} {{- if ne .Role "system" }}<|start_header_id|>{{ .Role }}<|end_header_id|> {{ if eq .Role "user" }}{{ .Content }} {{- else if eq .Role "assistant" }} {{- if .Content }}{{ .Content }} {{- else if .ToolCalls }}<tool_call> {{ range .ToolCalls }}{"name": "{{ .Function.Name }}", "arguments": {{ .Function.Arguments }}} {{- end }} </tool_call> {{- end }} {{- else if eq .Role "tool" }}<tool_response> {{ .Content }} </tool_response> {{- end }}<|eot_id|> {{- end }} {{- end }}<|start_header_id|>assistant<|end_header_id|> {{ else }} {{ if .System }}<|start_header_id|>system<|end_header_id|> {{ .System }}<|eot_id|>{{ end }}{{ if .Prompt }}<|start_header_id|>user<|end_header_id|> {{ .Prompt }}<|eot_id|>{{ end }}<|start_header_id|>assistant<|end_header_id|> {{ end }}{{ .Response }} {{- if .Response }}<|eot_id|> {{- end }}

README

无README