gemma-instruct.gotmpl 433 Bytes
Newer Older
Michael Yang's avatar
Michael Yang committed
1
2
3
4
5
6
7
8
9
10
{{- if .Messages }}
{{- range $index, $_ := .Messages }}<start_of_turn>
{{- if eq .Role "user" }}user
{{- if and $.System (eq $index 0) }}
{{ $.System }}
{{- end }}
{{- else if eq .Role "assistant" }}model
{{- end }}
{{ .Content }}<end_of_turn>
{{ end }}<start_of_turn>model
Michael Yang's avatar
Michael Yang committed
11
{{ else -}}
Michael Yang's avatar
Michael Yang committed
12
<start_of_turn>user
Michael Yang's avatar
Michael Yang committed
13
14
{{ if .System }}{{ .System }}
{{ end }}{{ .Prompt }}<end_of_turn>
Michael Yang's avatar
Michael Yang committed
15
<start_of_turn>model
Michael Yang's avatar
Michael Yang committed
16
{{ .Response }}<end_of_turn>
Michael Yang's avatar
Michael Yang committed
17
{{ end -}}