reasoning model that is post trained for reasoning, human chat preferences, and tasks, such as RAG and tool calling.
558 Pulls Updated 2 weeks ago
bec6e991b64c · 501B
{{- "<|start_header_id|>system<|end_header_id>\n\n" -}}
{{- if and (gt (len .Messages) 0) (eq (index .Messages 0).Role "system") -}}
{{- (index .Messages 0).Content -}}
{{- end -}}
{{- "<|eot_id>" -}}
{{- range $i, $msg := .Messages -}}
{{- if or (gt $i 0) (ne $msg.Role "system") -}}
{{- "<|start_header_id|>" -}}
{{- $msg.Role -}}
{{- "<|end_header_id>\n\n" -}}
{{- $msg.Content -}}
{{- "<|eot_id>" -}}
{{- end -}}
{{- end -}}
{{- "<|start_header_id|>assistant<|end_header_id>\n\n" -}}