"test/torchaudio_unittest/batch_consistency_test.py" did not exist on "03da871ffa00e39e6e6f8f6a9d4b011200ee6661"
llama2-chat.gotmpl 363 Bytes
Newer Older
Michael Yang's avatar
Michael Yang committed
1
2
3
4
5
6
7
8
9
10
11
12
{{- if .Messages }}
{{- range $index, $_ := .Messages }}
{{- if eq .Role "user" }}[INST] {{ if eq $index 0 }}<<SYS>>
{{- if $.System }}
{{ $.System }}
{{ end }}<</SYS>>

{{ end }}{{ .Content }}
{{- else }} [/INST] {{ .Content }}</s><s>
{{- end }}
{{- end }} [/INST]
{{- else }}
Michael Yang's avatar
Michael Yang committed
13
14
[INST] <<SYS>>{{ .System }}<</SYS>>

Michael Yang's avatar
Michael Yang committed
15
16
{{ .Prompt }} [/INST] {{ .Response }}
{{- end }}