EnlistedGhost commited on
Commit
c5bfd9b
·
verified ·
1 Parent(s): 0494b9d

Updated config files with working versions for Model File(s)

Browse files
Files changed (1) hide show
  1. chat_template.json +2 -1
chat_template.json CHANGED
@@ -1,2 +1,3 @@
1
- { "chat_template": "{{- range $index, $_ := .Messages }}<|start_header_id|>{{ .Role }}<|end_header_id|>\n\n{{ .Content }}\n{{- if gt (len (slice $.Messages $index)) 1 }}<|eot_id|>\n{{- else if ne .Role \"assistant\" }}<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n{{ end }}\n{{- end }}"
 
2
  }
 
1
+ {
2
+ "chat_template": "<|start_header_id|>system<|end_header_id|>\n{{ .System }}<|eot_id|>\n{{- range $i, $_ := .Messages }}\n{{- $last := eq (len (slice $.Messages $i)) 1 }}\n{{- if eq .Role \"user\" }}<|start_header_id|>user<|end_header_id|>\n{{ .Content }}<|eot_id|>\n{{- end }}{{ if $last }}<|start_header_id|>assistant<|end_header_id|>\n{{ end }}\n{{- if eq .Role \"assistant\" }}<|start_header_id|>assistant<|end_header_id|>\n{{ .Content }}<|eot_id|>\n{{- end }}{{ if $last }}<|start_header_id|>assistant<|end_header_id|>\n{{ end }}\n{{- end }}"
3
  }