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

Commit

Permalink
Merge pull request #18 from dave-gray101/llama2-chat-template
Browse files Browse the repository at this point in the history
update chat message template
  • Loading branch information
mudler committed Jul 31, 2023
2 parents 0ffecda + 5890977 commit 09b798c
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 09b798c

Please sign in to comment.