teven commited on
Commit
4cf4c86
·
1 Parent(s): 62ad1c1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +25 -0
README.md CHANGED
@@ -1,3 +1,28 @@
1
  ---
2
  license: apache-2.0
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ pipeline_tag: text-generation
4
  ---
5
+
6
+ # Model Card for Mistral-7B-Instruct-v0.1
7
+
8
+ The Mistral-7B-Instruct-v0.1 Large Language Model (LLM) is a instruct fine-tuned version of [Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1) generative text model with 7 billion parameters.
9
+
10
+ For full details of this model please read our [Release blog post](https://mistral.ai/news/announcing-mistral-7b-v0.1/)
11
+
12
+ ## Instruction format
13
+
14
+ 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.
15
+
16
+ E.g.
17
+
18
+ ```bash
19
+ from transformers import AutoTokenizer
20
+
21
+ tokenizer = AutoTokenizer.from_pretrained("[mistralai/](https://huggingface.co/mistralai/Mistral-7B-v0.1)Mistral-7B-Instruct-v0.1")
22
+ instructions = ["[INST] What is your favourite condiment? [/INST]",
23
+ "[INST] Do you have mayonnaise recipes? [/INST]",
24
+ "[INST] This is healthy, right? [/INST]"]
25
+
26
+ encodeds = [tokenizer.encode(instruction, add_special_tokens=i==0)
27
+ for i, instruction in enumerate(instructions)]
28
+ ```