Models
Docs
Pricing
Sign in
Download
Models
Download
Docs
Pricing
Sign in
seamon67
/
Devstral2-Small
:24b-q8_0
220
Downloads
Updated
3 weeks ago
Devstral 2 Small but with parameters and templates.
Devstral 2 Small but with parameters and templates.
Cancel
vision
tools
thinking
24b
Devstral2-Small:24b-q8_0
...
/
template
0806365e7737 · 1.7kB
{{- $lastUserIdx := -1 }}
{{- range $i, $msg := .Messages }}
{{- if eq $msg.Role "user" }}
{{- $lastUserIdx = $i }}
{{- end }}
{{- end }}
{{- range $index, $_ := .Messages }}
{{- $last := eq (len (slice $.Messages $index)) 1}}
{{- if and $.IsThinkSet (and $last .Thinking) -}}
<think>{{ .Thinking }}</think>
{{- end }}
{{- end }}
{{- if gt $lastUserIdx 0 }}
{{- range $i, $msg := slice $.Messages 0 $lastUserIdx }}
{{- if eq .Role "user" -}}
[INST]{{ .Content }}[/INST]
{{- end }}
{{- if eq .Role "assistant" }}
{{- if .Thinking }}<think>{{ .Thinking }}</think>
{{- end -}}
{{- if .Content }}{{ .Content }}</s>
{{- end -}}
{{- if .ToolCalls -}}
[TOOL_CALLS]
{{- range .ToolCalls }}{{ .Function.Name }}[ARGS]{{ .Function.Arguments }}
{{- end }}
</s>
{{- end -}}
{{- end }}
{{- if eq .Role "tool" -}}
[TOOL_RESULTS]{{ .Content }}[/TOOL_RESULTS]
{{- end }}
{{- end }}
{{- end }}
{{ if .Tools -}}
You may call one or more functions to assist with the user query.
[AVAILABLE_TOOLS]
{{- range .Tools }}
{"type": "function", "function": {{ .Function }}}
{{- end }}
[/AVAILABLE_TOOLS]
{{- end }}
{{ if .System -}}
[SYSTEM_PROMPT]{{ .System }}[/SYSTEM_PROMPT]
{{- end }}
{{ if ge $lastUserIdx 0 }}
{{- range $i, $msg := slice $.Messages $lastUserIdx }}
{{- if eq .Role "user" -}}
[INST]{{ .Content }}[/INST]
{{- end }}
{{- if eq .Role "assistant" }}
{{- if .Thinking }}<think>{{ .Thinking }}</think>
{{- end -}}
{{- if .Content }}{{ .Content }}</s>
{{- end -}}
{{- if .ToolCalls -}}
[TOOL_CALLS]
{{- range .ToolCalls }}{{ .Function.Name }}[ARGS]{{ .Function.Arguments }}
{{- end }}
</s>
{{- end -}}
{{- end }}
{{- if eq .Role "tool" -}}
[TOOL_RESULTS]{{ .Content }}[/TOOL_RESULTS]
{{- end }}
{{- end }}
{{- end }}<think>