Update README.md
Browse files
README.md
CHANGED
|
@@ -23,6 +23,24 @@ Make sure to update your transformers installation via pip install --upgrade tra
|
|
| 23 |
## Best use to test or prompt:
|
| 24 |
|
| 25 |
You need to prepare prompt in **alpaca** format to generate properly:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
```python
|
| 27 |
def format_test(x):
|
| 28 |
|
|
|
|
| 23 |
## Best use to test or prompt:
|
| 24 |
|
| 25 |
You need to prepare prompt in **alpaca** format to generate properly:
|
| 26 |
+
|
| 27 |
+
### Basic
|
| 28 |
+
```python
|
| 29 |
+
f"""Below is an instruction that describes a task. \
|
| 30 |
+
Write a response that appropriately completes the request.
|
| 31 |
+
|
| 32 |
+
### Instruction:
|
| 33 |
+
{x['instruction']}
|
| 34 |
+
|
| 35 |
+
### Input:
|
| 36 |
+
{x['input']}
|
| 37 |
+
|
| 38 |
+
### Response:
|
| 39 |
+
"""
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
### Here is example:
|
| 43 |
+
|
| 44 |
```python
|
| 45 |
def format_test(x):
|
| 46 |
|