RichardErkhov commited on
Commit
b089d0b
1 Parent(s): f0fd612

uploaded readme

Browse files
Files changed (1) hide show
  1. README.md +128 -0
README.md ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Quantization made by Richard Erkhov.
2
+
3
+ [Github](https://github.com/RichardErkhov)
4
+
5
+ [Discord](https://discord.gg/pvy7H8DZMG)
6
+
7
+ [Request more models](https://github.com/RichardErkhov/quant_request)
8
+
9
+
10
+ Mistral-7B-v0.3 - GGUF
11
+ - Model creator: https://huggingface.co/MaziyarPanahi/
12
+ - Original model: https://huggingface.co/MaziyarPanahi/Mistral-7B-v0.3/
13
+
14
+
15
+ | Name | Quant method | Size |
16
+ | ---- | ---- | ---- |
17
+ | [Mistral-7B-v0.3.Q2_K.gguf](https://huggingface.co/RichardErkhov/MaziyarPanahi_-_Mistral-7B-v0.3-gguf/blob/main/Mistral-7B-v0.3.Q2_K.gguf) | Q2_K | 2.54GB |
18
+ | [Mistral-7B-v0.3.IQ3_XS.gguf](https://huggingface.co/RichardErkhov/MaziyarPanahi_-_Mistral-7B-v0.3-gguf/blob/main/Mistral-7B-v0.3.IQ3_XS.gguf) | IQ3_XS | 2.82GB |
19
+ | [Mistral-7B-v0.3.IQ3_S.gguf](https://huggingface.co/RichardErkhov/MaziyarPanahi_-_Mistral-7B-v0.3-gguf/blob/main/Mistral-7B-v0.3.IQ3_S.gguf) | IQ3_S | 2.97GB |
20
+ | [Mistral-7B-v0.3.Q3_K_S.gguf](https://huggingface.co/RichardErkhov/MaziyarPanahi_-_Mistral-7B-v0.3-gguf/blob/main/Mistral-7B-v0.3.Q3_K_S.gguf) | Q3_K_S | 2.95GB |
21
+ | [Mistral-7B-v0.3.IQ3_M.gguf](https://huggingface.co/RichardErkhov/MaziyarPanahi_-_Mistral-7B-v0.3-gguf/blob/main/Mistral-7B-v0.3.IQ3_M.gguf) | IQ3_M | 3.06GB |
22
+ | [Mistral-7B-v0.3.Q3_K.gguf](https://huggingface.co/RichardErkhov/MaziyarPanahi_-_Mistral-7B-v0.3-gguf/blob/main/Mistral-7B-v0.3.Q3_K.gguf) | Q3_K | 3.28GB |
23
+ | [Mistral-7B-v0.3.Q3_K_M.gguf](https://huggingface.co/RichardErkhov/MaziyarPanahi_-_Mistral-7B-v0.3-gguf/blob/main/Mistral-7B-v0.3.Q3_K_M.gguf) | Q3_K_M | 3.28GB |
24
+ | [Mistral-7B-v0.3.Q3_K_L.gguf](https://huggingface.co/RichardErkhov/MaziyarPanahi_-_Mistral-7B-v0.3-gguf/blob/main/Mistral-7B-v0.3.Q3_K_L.gguf) | Q3_K_L | 3.56GB |
25
+ | [Mistral-7B-v0.3.IQ4_XS.gguf](https://huggingface.co/RichardErkhov/MaziyarPanahi_-_Mistral-7B-v0.3-gguf/blob/main/Mistral-7B-v0.3.IQ4_XS.gguf) | IQ4_XS | 3.68GB |
26
+ | [Mistral-7B-v0.3.Q4_0.gguf](https://huggingface.co/RichardErkhov/MaziyarPanahi_-_Mistral-7B-v0.3-gguf/blob/main/Mistral-7B-v0.3.Q4_0.gguf) | Q4_0 | 3.83GB |
27
+ | [Mistral-7B-v0.3.IQ4_NL.gguf](https://huggingface.co/RichardErkhov/MaziyarPanahi_-_Mistral-7B-v0.3-gguf/blob/main/Mistral-7B-v0.3.IQ4_NL.gguf) | IQ4_NL | 3.87GB |
28
+ | [Mistral-7B-v0.3.Q4_K_S.gguf](https://huggingface.co/RichardErkhov/MaziyarPanahi_-_Mistral-7B-v0.3-gguf/blob/main/Mistral-7B-v0.3.Q4_K_S.gguf) | Q4_K_S | 3.86GB |
29
+ | [Mistral-7B-v0.3.Q4_K.gguf](https://huggingface.co/RichardErkhov/MaziyarPanahi_-_Mistral-7B-v0.3-gguf/blob/main/Mistral-7B-v0.3.Q4_K.gguf) | Q4_K | 4.07GB |
30
+ | [Mistral-7B-v0.3.Q4_K_M.gguf](https://huggingface.co/RichardErkhov/MaziyarPanahi_-_Mistral-7B-v0.3-gguf/blob/main/Mistral-7B-v0.3.Q4_K_M.gguf) | Q4_K_M | 4.07GB |
31
+ | [Mistral-7B-v0.3.Q4_1.gguf](https://huggingface.co/RichardErkhov/MaziyarPanahi_-_Mistral-7B-v0.3-gguf/blob/main/Mistral-7B-v0.3.Q4_1.gguf) | Q4_1 | 4.24GB |
32
+ | [Mistral-7B-v0.3.Q5_0.gguf](https://huggingface.co/RichardErkhov/MaziyarPanahi_-_Mistral-7B-v0.3-gguf/blob/main/Mistral-7B-v0.3.Q5_0.gguf) | Q5_0 | 4.66GB |
33
+ | [Mistral-7B-v0.3.Q5_K_S.gguf](https://huggingface.co/RichardErkhov/MaziyarPanahi_-_Mistral-7B-v0.3-gguf/blob/main/Mistral-7B-v0.3.Q5_K_S.gguf) | Q5_K_S | 4.66GB |
34
+ | [Mistral-7B-v0.3.Q5_K.gguf](https://huggingface.co/RichardErkhov/MaziyarPanahi_-_Mistral-7B-v0.3-gguf/blob/main/Mistral-7B-v0.3.Q5_K.gguf) | Q5_K | 4.78GB |
35
+ | [Mistral-7B-v0.3.Q5_K_M.gguf](https://huggingface.co/RichardErkhov/MaziyarPanahi_-_Mistral-7B-v0.3-gguf/blob/main/Mistral-7B-v0.3.Q5_K_M.gguf) | Q5_K_M | 4.78GB |
36
+ | [Mistral-7B-v0.3.Q5_1.gguf](https://huggingface.co/RichardErkhov/MaziyarPanahi_-_Mistral-7B-v0.3-gguf/blob/main/Mistral-7B-v0.3.Q5_1.gguf) | Q5_1 | 5.07GB |
37
+ | [Mistral-7B-v0.3.Q6_K.gguf](https://huggingface.co/RichardErkhov/MaziyarPanahi_-_Mistral-7B-v0.3-gguf/blob/main/Mistral-7B-v0.3.Q6_K.gguf) | Q6_K | 5.54GB |
38
+ | [Mistral-7B-v0.3.Q8_0.gguf](https://huggingface.co/RichardErkhov/MaziyarPanahi_-_Mistral-7B-v0.3-gguf/blob/main/Mistral-7B-v0.3.Q8_0.gguf) | Q8_0 | 7.17GB |
39
+
40
+
41
+
42
+
43
+ Original model description:
44
+ ---
45
+ license: apache-2.0
46
+ ---
47
+
48
+ # Model Card for Mistral-7B-v0.3
49
+
50
+ The Mistral-7B-v0.3 Large Language Model (LLM) is a Mistral-7B-v0.2 with extended vocabulary.
51
+
52
+ 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)
53
+ - Extended vocabulary to 32768
54
+
55
+ ## Installation
56
+
57
+ 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.
58
+
59
+ ```
60
+ pip install mistral_inference
61
+ ```
62
+
63
+ ## Download
64
+
65
+ ```py
66
+ from huggingface_hub import snapshot_download
67
+ from pathlib import Path
68
+
69
+ mistral_models_path = Path.home().joinpath('mistral_models', '7B-v0.3')
70
+ mistral_models_path.mkdir(parents=True, exist_ok=True)
71
+
72
+ snapshot_download(repo_id="mistralai/Mistral-7B-v0.3", allow_patterns=["params.json", "consolidated.safetensors", "tokenizer.model.v3"], local_dir=mistral_models_path)
73
+ ```
74
+
75
+ ### Demo
76
+
77
+ After installing `mistral_inference`, a `mistral-demo` CLI command should be available in your environment.
78
+
79
+ ```
80
+ mistral-demo $HOME/mistral_models/7B-v0.3
81
+ ```
82
+
83
+ Should give something along the following lines:
84
+
85
+ ```
86
+ This is a test of the emergency broadcast system. This is only a test.
87
+
88
+ If this were a real emergency, you would be told what to do.
89
+
90
+ This is a test
91
+ =====================
92
+ 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
93
+ =====================
94
+ This is a third test, mistral AI is very good at testing. 🙂
95
+
96
+ This is a third test, mistral AI is very good at testing. 🙂
97
+
98
+ This
99
+ =====================
100
+ ```
101
+
102
+ ## Generate with `transformers`
103
+
104
+ If you want to use Hugging Face `transformers` to generate text, you can do something like this.
105
+
106
+ ```py
107
+ from transformers import AutoModelForCausalLM, AutoTokenizer
108
+
109
+ model_id = "mistralai/Mistral-7B-v0.3"
110
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
111
+
112
+ model = AutoModelForCausalLM.from_pretrained(model_id)
113
+ inputs = tokenizer("Hello my name is", return_tensors="pt")
114
+
115
+ outputs = model.generate(**inputs, max_new_tokens=20)
116
+ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
117
+ ```
118
+
119
+ ## Limitations
120
+
121
+ The Mistral 7B Instruct model is a quick demonstration that the base model can be easily fine-tuned to achieve compelling performance.
122
+ It does not have any moderation mechanisms. We're looking forward to engaging with the community on ways to
123
+ make the model finely respect guardrails, allowing for deployment in environments requiring moderated outputs.
124
+
125
+ ## The Mistral AI Team
126
+
127
+ 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
128
+