GitHub
186.4K
Download
Models
Docs
Pricing
Sign in
Download
Models
Docs
Pricing
Sign in
tugraph
/
CodeLlama-7b-Cypher-hf
:latest
35
Downloads
Updated
1 year ago
Cancel
CodeLlama-7b-Cypher-hf:latest
...
/
template
3f74e056f96c ยท 412B
{{- $system := "" }}[INST] {{ 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" }}<<SYS>>
{{- if $system }}
{{ $system }}
{{ $system = "" }}
{{- end }}<</SYS>>
{{ .Content }} [/INST]
{{- else if eq .Role "assistant" }} {{ .Content }}</s><s>[INST] {{ end }}
{{- end }}