4,184 3 months ago

This is an uncensored version of mistralai/magistral-Small-2506 created with abliteration

thinking 24b
d7be94e9f19c · 568B
{{- range $i, $_ := .Messages }}
{{- $last := eq (len (slice $.Messages $i)) 1}}
{{- if eq .Role "system" }}[SYSTEM_PROMPT]{{ .Content }}[/SYSTEM_PROMPT]
{{- else if eq .Role "user" }}[INST]{{ .Content }}[/INST]
{{- else if eq .Role "assistant" }}
{{- if and $.IsThinkSet (and $last .Thinking) -}}
<think>
{{ .Thinking }}
</think>
{{- end }}
{{- if .Content }}{{ .Content }}
{{- end }}
{{- if not $last }}</s>
{{- end }}
{{- end }}
{{- if and $last (ne .Role "assistant") }}
{{- if and $.IsThinkSet (not $.Think) -}}
<think>
</think>
{{- end }}
{{- end }}
{{- end }}