1,486 6 months ago

Velvet is an Italian family of large language models (2B, 14B) developed from scratch, featuring a dense architecture.

tools 2b 14b
... /
template
38422c62e34c · 467B
<s>{{- if .Messages }}
{{- range $index, $_ := .Messages }}
{{- if eq .Role "user" }}<instruction>{{ if and $.System (eq (len (slice $.Messages $index)) 1) }}{{ $.System }}
{{ end }}{{ .Content }}</instruction>
{{- else if eq .Role "assistant" }}
{{- if .Content }}{{ .Content }}
{{- end }}</s>{{- end }}{{- end }}{{- else }}<instruction>{{ if .System }}{{ .System }}
{{ end }}{{ .Prompt }}</instruction>
{{- end }}{{ .Response }}
{{- if .Response }}</s>
{{- end }}