danielpark
commited on
Commit
•
d754ecb
1
Parent(s):
313981f
Update README.md
Browse files
README.md
CHANGED
@@ -30,16 +30,16 @@ KORANI is derived from GORANI, a project within llama2 that experiments with the
|
|
30 |
For safety, I used the default system message from Llama-2. But if a system message is specified in any datasets, I use that content.
|
31 |
```python
|
32 |
### System:
|
33 |
-
{System}
|
34 |
|
35 |
### User:
|
36 |
-
{New user input}
|
37 |
|
38 |
### Input:
|
39 |
-
{Optional additional user input}
|
40 |
|
41 |
### Response:
|
42 |
-
{New assistant answer}
|
43 |
```
|
44 |
|
45 |
need to be converted to
|
@@ -49,21 +49,24 @@ need to be converted to
|
|
49 |
# https://github.com/huggingface/blog/blob/main/llama2.md#how-to-prompt-llama-2
|
50 |
|
51 |
<s>[INST] <<SYS>>
|
52 |
-
{{
|
53 |
<</SYS>>
|
54 |
|
55 |
-
{{
|
56 |
```
|
57 |
|
58 |
```
|
59 |
-
<s>[INST]
|
60 |
```
|
61 |
|
62 |
```
|
63 |
-
#
|
64 |
|
65 |
default_llama2_system_prompt = "Always assist with care, respect, and truth. Respond with utmost utility yet securely. Avoid harmful, unethical, prejudiced, or negative content. Ensure replies promote fairness and positivity."
|
66 |
|
|
|
|
|
|
|
67 |
more_safety_guardrail = """
|
68 |
You're given a list of moderation categories as below:
|
69 |
- illegal: Illegal activity.
|
|
|
30 |
For safety, I used the default system message from Llama-2. But if a system message is specified in any datasets, I use that content.
|
31 |
```python
|
32 |
### System:
|
33 |
+
{{ System prompt }}
|
34 |
|
35 |
### User:
|
36 |
+
{{ New user input }}
|
37 |
|
38 |
### Input:
|
39 |
+
{{ Optional additional user input }}
|
40 |
|
41 |
### Response:
|
42 |
+
{{ New assistant answer }}
|
43 |
```
|
44 |
|
45 |
need to be converted to
|
|
|
49 |
# https://github.com/huggingface/blog/blob/main/llama2.md#how-to-prompt-llama-2
|
50 |
|
51 |
<s>[INST] <<SYS>>
|
52 |
+
{{ System prompt }}
|
53 |
<</SYS>>
|
54 |
|
55 |
+
{{ New user message }} [/INST]
|
56 |
```
|
57 |
|
58 |
```
|
59 |
+
<s>[INST] {{ User input }} [/INST] {{ New assistant answer }} </s>[INST] {{ New user input }} [/INST]
|
60 |
```
|
61 |
|
62 |
```
|
63 |
+
# Llama2 official
|
64 |
|
65 |
default_llama2_system_prompt = "Always assist with care, respect, and truth. Respond with utmost utility yet securely. Avoid harmful, unethical, prejudiced, or negative content. Ensure replies promote fairness and positivity."
|
66 |
|
67 |
+
|
68 |
+
# https://docs.mistral.ai/usage/guardrailing
|
69 |
+
|
70 |
more_safety_guardrail = """
|
71 |
You're given a list of moderation categories as below:
|
72 |
- illegal: Illegal activity.
|