Created
September 8, 2023 13:33
-
-
Save hajowieland/f8093f4583652f7ddb685c7c7f7b03e9 to your computer and use it in GitHub Desktop.
llama2-chat-message.tmpl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {{if eq .RoleName "assistant"}}{{.Content}}{{else}} | |
| [INST] | |
| {{if eq .RoleName "system"}}<<SYS>>{{.Content}}<</SYS>>{{else if and (.SystemPrompt) (eq .MessageIndex 0)}}<<SYS>>{{.SystemPrompt}}<</SYS>>{{end}} | |
| {{if .Content}}{{.Content}}{{end}} | |
| [/INST] | |
| {{end}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment