forked from go-skynet/model-gallery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
llama2-chat.yaml
32 lines (28 loc) · 1.34 KB
/
llama2-chat.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: "llama2-chat"
description: |
Llama 2 Chat -> Llama 2 is a collection of pretrained and fine-tuned generative text models ranging in scale from 7 billion to 70 billion parameters.
license: "https://ai.meta.com/llama/license/"
urls:
- https://ai.meta.com/llama/
config_file: |
name: llama2-chat
backend: "llama"
parameters:
top_k: 80
temperature: 0.2
top_p: 0.7
context_size: 4096
template:
chat_message: llama2-chat-message
system_prompt: |
You are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature.
If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
prompt_templates:
- name: "llama2-chat-message"
content: |
{{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}}