Tülu 3 is a leading instruction following model family, offering fully open-source data, code, and recipes by the The Allen Institute for AI.

8b 70b

6,836 2 days ago

13573ab95b75 · 272B
{{- range $i, $_ := .Messages }}
{{- $last := eq (len (slice $.Messages $i)) 1 -}}
<|{{ .Role }}|>
{{ .Content }}{{ if eq .Role "assistant" }}<|end_of_text|>{{ end }}{{ if not $last }}
{{ end }}
{{- if and (ne .Role "assistant") $last }}
<|assistant|>
{{ end }}
{{- end }}