Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

Commit

Permalink
update chat message template
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-gray101 committed Jul 31, 2023
1 parent 0ffecda commit 5890977
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions llama2-chat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ prompt_templates:
content: |
{{if eq .RoleName "assistant"}}{{.Content}}{{else}}
[INST]
{{if .SystemPrompt}}{{.SystemPrompt}}{{else if eq .RoleName "system"}}<<SYS>>{{.Content}}<</SYS>>
{{else if .Content}}{{.Content}}{{end}}
{{if eq .RoleName "system"}}<<SYS>>{{.Content}}<</SYS>>{{else if and (.SystemPrompt) (eq .MessageIndex 0)}}<<SYS>>{{.SystemPrompt}}<</SYS>>{{end}}
{{if .Content}}{{.Content}}{{end}}
[/INST]
{{end}}

0 comments on commit 5890977

Please sign in to comment.