munish0838 commited on
Commit
679b508
1 Parent(s): 89906cd

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +80 -0
README.md ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: transformers
4
+ pipeline_tag: text-generation
5
+ tags:
6
+ - mistral
7
+ base_model: mistralai/Mistral-7B-v0.3
8
+ ---
9
+
10
+ # Mistral-7B-v0.3-GGUF
11
+ - This is quantized version of [mistralai/Mistral-7B-v0.3](https://huggingface.co/mistralai/Mistral-7B-v0.3) created using llama.cpp
12
+
13
+ # Model Description
14
+
15
+ The Mistral-7B-v0.3 Large Language Model (LLM) is a Mistral-7B-v0.2 with extended vocabulary.
16
+
17
+ Mistral-7B-v0.3 has the following changes compared to [Mistral-7B-v0.2](https://huggingface.co/mistralai/Mistral-7B-v0.2/edit/main/README.md)
18
+ - Extended vocabulary to 32768
19
+
20
+ ## Installation
21
+
22
+ It is recommended to use `mistralai/Mistral-7B-v0.3` with [mistral-inference](https://github.com/mistralai/mistral-inference). For HF transformers code snippets, please keep scrolling.
23
+
24
+ ```
25
+ pip install mistral_inference
26
+ ```
27
+
28
+ ### Demo
29
+
30
+ After installing `mistral_inference`, a `mistral-demo` CLI command should be available in your environment.
31
+
32
+ ```
33
+ mistral-demo $HOME/mistral_models/7B-v0.3
34
+ ```
35
+
36
+ Should give something along the following lines:
37
+
38
+ ```
39
+ This is a test of the emergency broadcast system. This is only a test.
40
+
41
+ If this were a real emergency, you would be told what to do.
42
+
43
+ This is a test
44
+ =====================
45
+ This is another test of the new blogging software. I’m not sure if I’m going to keep it or not. I’m not sure if I’m going to keep
46
+ =====================
47
+ This is a third test, mistral AI is very good at testing. 🙂
48
+
49
+ This is a third test, mistral AI is very good at testing. 🙂
50
+
51
+ This
52
+ =====================
53
+ ```
54
+
55
+ ## Generate with `transformers`
56
+
57
+ If you want to use Hugging Face `transformers` to generate text, you can do something like this.
58
+
59
+ ```py
60
+ from transformers import AutoModelForCausalLM, AutoTokenizer
61
+
62
+ model_id = "mistralai/Mistral-7B-v0.3"
63
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
64
+
65
+ model = AutoModelForCausalLM.from_pretrained(model_id)
66
+ inputs = tokenizer("Hello my name is", return_tensors="pt")
67
+
68
+ outputs = model.generate(**inputs, max_new_tokens=20)
69
+ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
70
+ ```
71
+
72
+ ## Limitations
73
+
74
+ The Mistral 7B Instruct model is a quick demonstration that the base model can be easily fine-tuned to achieve compelling performance.
75
+ It does not have any moderation mechanisms. We're looking forward to engaging with the community on ways to
76
+ make the model finely respect guardrails, allowing for deployment in environments requiring moderated outputs.
77
+
78
+ ## The Mistral AI Team
79
+
80
+ Albert Jiang, Alexandre Sablayrolles, Alexis Tacnet, Antoine Roux, Arthur Mensch, Audrey Herblin-Stoop, Baptiste Bout, Baudouin de Monicault, Blanche Savary, Bam4d, Caroline Feldman, Devendra Singh Chaplot, Diego de las Casas, Eleonore Arcelin, Emma Bou Hanna, Etienne Metzger, Gianna Lengyel, Guillaume Bour, Guillaume Lample, Harizo Rajaona, Jean-Malo Delignon, Jia Li, Justus Murke, Louis Martin, Louis Ternon, Lucile Saulnier, Lélio Renard Lavaud, Margaret Jennings, Marie Pellat, Marie Torelli, Marie-Anne Lachaux, Nicolas Schuhl, Patrick von Platen, Pierre Stock, Sandeep Subramanian, Sophia Yang, Szymon Antoniak, Teven Le Scao, Thibaut Lavril, Timothée Lacroix, Théophile Gervet, Thomas Wang, Valera Nemychnikova, William El Sayed, William Marshall