bobofrut commited on
Commit
a260469
1 Parent(s): 81fc1f2

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -11
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 a specific instruction 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
- <s>[INST] Your specific instruction here [/INST]Additional context or instruction details go here</s>
34
- ```
 
 
35
 
36
- - Begin your instruction with `<s>[INST]` followed by your specific request or command.
37
- - Close your instruction with `[/INST]`. If additional context or details are necessary, include them following the closing tag.
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