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]>
README.md
CHANGED
@@ -65,9 +65,26 @@ pip3 install git+https://github.com/huggingface/transformers
|
|
65 |
## Prompt template: Llama-2-Chat
|
66 |
|
67 |
```
|
68 |
-
|
69 |
-
|
70 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|