TheBloke clayp commited on
Commit
6b34cbe
1 Parent(s): 72c60db

Update the prompt template to match the Meta provided Llama 2 prompt template (#7)

Browse files

- Update the prompt template to match the Meta provided Llama 2 prompt template (0e901d98cd7bb86697dcab13f91005ca3f5ccdb2)


Co-authored-by: Clay P <[email protected]>

Files changed (1) hide show
  1. README.md +20 -3
README.md CHANGED
@@ -65,9 +65,26 @@ pip3 install git+https://github.com/huggingface/transformers
65
  ## Prompt template: Llama-2-Chat
66
 
67
  ```
68
- SYSTEM: 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.
69
- USER: {prompt}
70
- ASSISTANT:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  ```
72
 
73
  ## Provided files
 
65
  ## Prompt template: Llama-2-Chat
66
 
67
  ```
68
+ [INST] <<SYS>>
69
+ 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.
70
+
71
+ 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.
72
+ <</SYS>>
73
+
74
+ {prompt} [/INST]
75
+ ```
76
+
77
+ To continue a conversation:
78
+
79
+ ```
80
+ [INST] <<SYS>>
81
+ 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.
82
+
83
+ 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.
84
+ <</SYS>>
85
+
86
+ {prompt} [/INST] {model_reply_1}
87
+ [INST] {prompt_2} [/INST]
88
  ```
89
 
90
  ## Provided files