Update README.md
Browse files
README.md
CHANGED
@@ -8,6 +8,17 @@ license: apache-2.0
|
|
8 |
<!-- Supervised finetuning of Mistral-7B-Instruct-v0.2 on ukrainian dataset-->
|
9 |
|
10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
## 💻 Usage
|
13 |
|
|
|
8 |
<!-- Supervised finetuning of Mistral-7B-Instruct-v0.2 on ukrainian dataset-->
|
9 |
|
10 |
|
11 |
+
## Instruction format
|
12 |
+
|
13 |
+
In order to leverage instruction fine-tuning, your prompt should be surrounded by `[INST]` and `[/INST]` tokens. The very first instruction should begin with a begin of sentence id. The next instructions should not. The assistant generation will be ended by the end-of-sentence token id.
|
14 |
+
|
15 |
+
E.g.
|
16 |
+
```
|
17 |
+
text = "<s>[INST]Відповідайте лише буквою правильної відповіді: Елементи експресіонізму наявні у творі: A. «Камінний хрест», B. «Інститутка», C. «Маруся», D. «Людина»[/INST]"
|
18 |
+
```
|
19 |
+
|
20 |
+
This format is available as a [chat template](https://huggingface.co/docs/transformers/main/chat_templating) via the `apply_chat_template()` method:
|
21 |
+
|
22 |
|
23 |
## 💻 Usage
|
24 |
|