"tests/vscode:/vscode.git/clone" did not exist on "fe851fbc27e4aebbbf1bd39b8538fc8807504bc9"
starcoder2-instruct.gotmpl 424 Bytes
Newer Older
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 }}
Michael Yang's avatar
Michael Yang committed
9

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

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

17
18
{{ end }}
{{- end }}### Response