a reasoning model finetuned from Qwen2.5-32B-Instruct on just 1,000 examples. It matches o1-preview & exhibits test-time scaling via budget forcing. available in [F16, q8_0, q6_K, q4_K_S]
tools
71 Pulls Updated 8 weeks ago
2517d2dee545 · 2.3kB
{{- /* System message and tools handling */}}
{{- if .Tools}}
<|im_start|>system
{{- if and (gt (len .Messages) 0) (eq (index .Messages 0).Role "system")}}
{{- (index .Messages 0).Content -}}
{{- else}}
You are s1.1, created by simplescaling. You are a helpful assistant that can think before reaching final answer.
{{- end}}
# Tools
You may call one or more functions to assist with the user query.
You are provided with function signatures within <tools></tools> XML tags:
<tools>
{{- range .Tools}}
{{- json .}}
{{- end}}
</tools>
For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:
<tool_call>
{"name": <function-name>, "arguments": <args-json-object>}
</tool_call><|im_end|>
{{- else}}
{{- if and (gt (len .Messages) 0) (eq (index .Messages 0).Role "system")}}
<|im_start|>system
{{- (index .Messages 0).Content}}<|im_end|>
{{- else}}
<|im_start|>system
You are s1.1, created by simplescaling. You are a helpful assistant that can think before reaching final answer.<|im_end|>
{{- end}}
{{- end}}
{{- /* Message processing */}}
{{- range $index, $message := .Messages}}
{{- /* Skip first system message if tools are present */}}
{{- if and $.Tools (eq $index 0) (eq .Role "system")}}{{continue}}{{end}}
{{- if or (eq .Role "user") (and (eq .Role "system") (ne $index 0)) (and (eq .Role "assistant") (not .ToolCalls))}}
<|im_start|>{{.Role}}
{{.Content}}<|im_end|>
{{- else if eq .Role "assistant"}}
<|im_start|>assistant
{{- if .Content}}{{.Content}}{{- end}}
{{- range .ToolCalls}}
<tool_call>
{"name": "{{.Function.Name}}", "arguments": {{.Function.Arguments | json}}}
</tool_call>
{{- end}}<|im_end|>
{{- else if eq .Role "tool"}}
{{- /* Simplified tool response grouping */}}
<|im_start|>user
<tool_response>
{{.Content}}
</tool_response>
<|im_end|>
{{- end}}
{{- end}}
{{- /* Generation prompt */}}
{{- if .AddGenerationPrompt}}<|im_start|>assistant
{{- end}}