starcoder2-instruct.gotmpl 424 Bytes
Newer Older
xuxzh1's avatar
update  
xuxzh1 committed
1
2
3
4
5
6
7
8
{{- $system := "" }}
{{- range .Messages }}
{{- if eq .Role "system" }}
{{- if not $system }}{{ $system = .Content }}
{{- else }}{{ $system = printf "%s\n\n%s" $system .Content }}
{{- end }}
{{- else if eq .Role "user" }}
{{- if $system }}{{ $system }}
xuxzh1's avatar
init  
xuxzh1 committed
9

xuxzh1's avatar
update  
xuxzh1 committed
10
11
12
{{ $system = "" }}
{{- end }}### Instruction
{{ .Content }}
xuxzh1's avatar
init  
xuxzh1 committed
13

xuxzh1's avatar
update  
xuxzh1 committed
14
15
{{ else if eq .Role "assistant" }}### Response
{{ .Content }}<|endoftext|>
xuxzh1's avatar
init  
xuxzh1 committed
16

xuxzh1's avatar
update  
xuxzh1 committed
17
18
{{ end }}
{{- end }}### Response