starcoder2-instruct.gotmpl 412 Bytes
Newer Older
Michael Yang's avatar
Michael Yang committed
1
2
3
4
5
6
7
8
9
10
11
12
13
{{- if .Messages }}
{{- if .System }}{{ .System }}

{{ end }}
{{- range .Messages }}
{{- if eq .Role "user" }}### Instruction
{{ .Content }}

{{ else if eq .Role "assistant" }}### Response
{{ .Content }}<|endoftext|>

{{ end }}
{{- end }}### Response
Michael Yang's avatar
Michael Yang committed
14
{{ else -}}
Michael Yang's avatar
Michael Yang committed
15
16
17
18
19
20
21
22
{{ if .System }}{{ .System }}

{{ end }}{{ if .Prompt }}### Instruction
{{ .Prompt }}

{{ end }}### Response
{{ .Response }}<|endoftext|>

Michael Yang's avatar
Michael Yang committed
23
{{ end -}}