mistral-instruct.gotmpl 218 Bytes
Newer Older
xuxzh1's avatar
update  
xuxzh1 committed
1
2
[INST] {{ range $index, $_ := .Messages }}
{{- if eq .Role "system" }}{{ .Content }}
xuxzh1's avatar
init  
xuxzh1 committed
3

xuxzh1's avatar
update  
xuxzh1 committed
4
5
6
{{ else if eq .Role "user" }}{{ .Content }}[/INST]
{{- else if eq .Role "assistant" }} {{ .Content }}</s>[INST] {{ end }}
{{- end }}