GitHub
186K
Download
Models
Docs
Pricing
Sign in
Download
Models
Docs
Pricing
Sign in
MichelRosselli
/
emma-6
:f32
41
Downloads
Updated
3 days ago
Emma-6 is an open-source Italian Large Language Model developed by Egomnia S.p.A.
Emma-6 is an open-source Italian Large Language Model developed by Egomnia S.p.A.
Cancel
emma-6:f32
...
/
template
b6b07fe9491f ยท 462B
{{- range $i, $m := .Messages }}
{{- $last := eq (len (slice $.Messages $i)) 1 }}
{{- $c := $m.Content }}
{{- if and $c (eq (slice $c 0 1) " ") }}{{ $c = slice $c 1 }}{{ end }}
{{- if eq $m.Role "system" }}{{ if and (eq $i 0) $c }} <|system|> {{ $c }}{{ end }}
{{- else if eq $m.Role "user" }} <|user|> {{ $c }}
{{- else if eq $m.Role "assistant" }} <|assistant|> {{ $c }}
{{- end }}
{{- if and $last (ne $m.Role "assistant") }} <|assistant|>{{ end }}
{{- end }}