"git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "80d5f50d1c9024c07cb61c1c14e89bdc969c2369"
Unverified Commit eda8a32a authored by Bruce MacDonald's avatar Bruce MacDonald Committed by GitHub
Browse files

update chatml template format to latest in docs (#6344)

parent a0a40aa2
...@@ -112,15 +112,9 @@ Keep the following tips and best practices in mind when working with Go template ...@@ -112,15 +112,9 @@ Keep the following tips and best practices in mind when working with Go template
ChatML is a popular template format. It can be used for models such as Databrick's DBRX, Intel's Neural Chat, and Microsoft's Orca 2. ChatML is a popular template format. It can be used for models such as Databrick's DBRX, Intel's Neural Chat, and Microsoft's Orca 2.
```gotmpl ```gotmpl
{{- if .System }}<|im_start|>system
{{ .System }}<|im_end|>
{{ end }}
{{- range .Messages }}<|im_start|>{{ .Role }} {{- range .Messages }}<|im_start|>{{ .Role }}
{{ .Content }}<|im_end|> {{ .Content }}<|im_end|>
{{ end }}<|im_start|>assistant {{ end }}<|im_start|>assistant
{{ else }}
{{ if .System }}<|im_start|>system
{{ .System }}<|im_end|>
``` ```
### Example Tools ### Example Tools
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment