Update README.md
Browse files
README.md
CHANGED
@@ -27,21 +27,18 @@ Ladybird-base-7B-v8 is based on the Mistral architecture, which is known for its
|
|
27 |
|
28 |
## Instruction Format
|
29 |
|
30 |
-
To fully leverage the capabilities of Ladybird-base-7B-v8, especially its instruction fine-tuning feature, users are advised to follow
|
31 |
|
32 |
-
|
33 |
-
|
34 |
-
|
|
|
|
|
35 |
|
36 |
-
|
37 |
-
|
38 |
-
- The instruction sequence should be terminated with an end-of-sentence token `</s>`.
|
39 |
|
40 |
-
### Example
|
41 |
|
42 |
-
```
|
43 |
-
<s>[INST] What are the primary benefits of using renewable energy sources? [/INST]You are an AI trained to provide comprehensive and concise answers</s>
|
44 |
-
```
|
45 |
|
46 |
## Eval results
|
47 |
|
|
|
27 |
|
28 |
## Instruction Format
|
29 |
|
30 |
+
To fully leverage the capabilities of Ladybird-base-7B-v8, especially its instruction fine-tuning feature, users are advised to follow ChatML (https://huggingface.co/docs/transformers/main/en/chat_templating) format. This format ensures that prompts are effectively processed, resulting in accurate and context-aware responses from the model. Here's how to construct your prompts:
|
31 |
|
32 |
+
---
|
33 |
+
msg = [
|
34 |
+
{"role": "user", "content": "How many helicopters can a human eat in one sitting?"},
|
35 |
+
{"role": "assistant", "content": "You are a friendly chatbot who always responds in the style of a pirate"},
|
36 |
+
]
|
37 |
|
38 |
+
prompt = pipe.tokenizer.apply_chat_template(msg, tokenize=False, add_generation_prompt=True)
|
39 |
+
---
|
|
|
40 |
|
|
|
41 |
|
|
|
|
|
|
|
42 |
|
43 |
## Eval results
|
44 |
|