Paragraph-Novel / Modelfile
quantilimited's picture
Trained with Unsloth
458a998 verified
Raw History Blame Contribute Delete
364 Bytes
FROM .
TEMPLATE """{{- range $i, $_ := .Messages }}
{{- $last := eq (len (slice $.Messages $i)) 1 }}
{{- if eq .Role "assistant" }}<|turn>model
<|channel>thought
<channel|>{{ .Content }}{{ if not $last }}<turn|>
{{ end }}
{{- else }}<|turn>{{ .Role }}
{{ .Content }}<turn|>
{{ if $last }}<|turn>model
<|channel>thought
<channel|>{{ end }}
{{- end }}
{{- end }}"""