TheBloke commited on
Commit
24f714c
1 Parent(s): 4fd1fde

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +482 -0
README.md ADDED
@@ -0,0 +1,482 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: uukuguy/speechless-mistral-dolphin-orca-platypus-samantha-7b
3
+ datasets:
4
+ - jondurbin/airoboros-2.2.1
5
+ - Open-Orca/OpenOrca
6
+ - garage-bAInd/Open-Platypus
7
+ - ehartford/samantha-data
8
+ inference: false
9
+ language:
10
+ - en
11
+ library_name: transformers
12
+ license: llama2
13
+ model-index:
14
+ - name: SpeechlessCoder
15
+ results:
16
+ - dataset:
17
+ name: HumanEval
18
+ type: openai_humaneval
19
+ metrics:
20
+ - name: pass@1
21
+ type: pass@1
22
+ value: 34.146
23
+ verified: false
24
+ task:
25
+ type: text-generation
26
+ model_creator: Jiangwen Su
27
+ model_name: Speechless Mistral Dolphin Orca Platypus Samantha 7B
28
+ model_type: mistral
29
+ pipeline_tag: text-generation
30
+ prompt_template: '<|im_start|>system
31
+
32
+ {system_message}<|im_end|>
33
+
34
+ <|im_start|>user
35
+
36
+ {prompt}<|im_end|>
37
+
38
+ <|im_start|>assistant
39
+
40
+ '
41
+ quantized_by: TheBloke
42
+ tags:
43
+ - llama-2
44
+ - code
45
+ ---
46
+ <!-- markdownlint-disable MD041 -->
47
+
48
+ <!-- header start -->
49
+ <!-- 200823 -->
50
+ <div style="width: auto; margin-left: auto; margin-right: auto">
51
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
52
+ </div>
53
+ <div style="display: flex; justify-content: space-between; width: 100%;">
54
+ <div style="display: flex; flex-direction: column; align-items: flex-start;">
55
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
56
+ </div>
57
+ <div style="display: flex; flex-direction: column; align-items: flex-end;">
58
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p>
59
+ </div>
60
+ </div>
61
+ <div style="text-align:center; margin-top: 0em; margin-bottom: 0em"><p style="margin-top: 0.25em; margin-bottom: 0em;">TheBloke's LLM work is generously supported by a grant from <a href="https://a16z.com">andreessen horowitz (a16z)</a></p></div>
62
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
63
+ <!-- header end -->
64
+
65
+ # Speechless Mistral Dolphin Orca Platypus Samantha 7B - GPTQ
66
+ - Model creator: [Jiangwen Su](https://huggingface.co/uukuguy)
67
+ - Original model: [Speechless Mistral Dolphin Orca Platypus Samantha 7B](https://huggingface.co/uukuguy/speechless-mistral-dolphin-orca-platypus-samantha-7b)
68
+
69
+ <!-- description start -->
70
+ # Description
71
+
72
+ This repo contains GPTQ model files for [Jiangwen Su's Speechless Mistral Dolphin Orca Platypus Samantha 7B](https://huggingface.co/uukuguy/speechless-mistral-dolphin-orca-platypus-samantha-7b).
73
+
74
+ Multiple GPTQ parameter permutations are provided; see Provided Files below for details of the options provided, their parameters, and the software used to create them.
75
+
76
+ These files were quantised using hardware kindly provided by [Massed Compute](https://massedcompute.com/).
77
+
78
+ <!-- description end -->
79
+ <!-- repositories-available start -->
80
+ ## Repositories available
81
+
82
+ * [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/speechless-mistral-dolphin-orca-platypus-samantha-7B-AWQ)
83
+ * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/speechless-mistral-dolphin-orca-platypus-samantha-7B-GPTQ)
84
+ * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/speechless-mistral-dolphin-orca-platypus-samantha-7B-GGUF)
85
+ * [Jiangwen Su's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/uukuguy/speechless-mistral-dolphin-orca-platypus-samantha-7b)
86
+ <!-- repositories-available end -->
87
+
88
+ <!-- prompt-template start -->
89
+ ## Prompt template: ChatML
90
+
91
+ ```
92
+ <|im_start|>system
93
+ {system_message}<|im_end|>
94
+ <|im_start|>user
95
+ {prompt}<|im_end|>
96
+ <|im_start|>assistant
97
+
98
+ ```
99
+
100
+ <!-- prompt-template end -->
101
+
102
+
103
+
104
+ <!-- README_GPTQ.md-compatible clients start -->
105
+ ## Known compatible clients / servers
106
+
107
+ These GPTQ models are known to work in the following inference servers/webuis.
108
+
109
+ - [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
110
+ - [KoboldAI United](https://github.com/henk717/koboldai)
111
+ - [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui)
112
+ - [Hugging Face Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference)
113
+
114
+ This may not be a complete list; if you know of others, please let me know!
115
+ <!-- README_GPTQ.md-compatible clients end -->
116
+
117
+ <!-- README_GPTQ.md-provided-files start -->
118
+ ## Provided files, and GPTQ parameters
119
+
120
+ Multiple quantisation parameters are provided, to allow you to choose the best one for your hardware and requirements.
121
+
122
+ Each separate quant is in a different branch. See below for instructions on fetching from different branches.
123
+
124
+ Most GPTQ files are made with AutoGPTQ. Mistral models are currently made with Transformers.
125
+
126
+ <details>
127
+ <summary>Explanation of GPTQ parameters</summary>
128
+
129
+ - Bits: The bit size of the quantised model.
130
+ - GS: GPTQ group size. Higher numbers use less VRAM, but have lower quantisation accuracy. "None" is the lowest possible value.
131
+ - Act Order: True or False. Also known as `desc_act`. True results in better quantisation accuracy. Some GPTQ clients have had issues with models that use Act Order plus Group Size, but this is generally resolved now.
132
+ - Damp %: A GPTQ parameter that affects how samples are processed for quantisation. 0.01 is default, but 0.1 results in slightly better accuracy.
133
+ - GPTQ dataset: The calibration dataset used during quantisation. Using a dataset more appropriate to the model's training can improve quantisation accuracy. Note that the GPTQ calibration dataset is not the same as the dataset used to train the model - please refer to the original model repo for details of the training dataset(s).
134
+ - Sequence Length: The length of the dataset sequences used for quantisation. Ideally this is the same as the model sequence length. For some very long sequence models (16+K), a lower sequence length may have to be used. Note that a lower sequence length does not limit the sequence length of the quantised model. It only impacts the quantisation accuracy on longer inference sequences.
135
+ - ExLlama Compatibility: Whether this file can be loaded with ExLlama, which currently only supports Llama and Mistral models in 4-bit.
136
+
137
+ </details>
138
+
139
+ | Branch | Bits | GS | Act Order | Damp % | GPTQ Dataset | Seq Len | Size | ExLlama | Desc |
140
+ | ------ | ---- | -- | --------- | ------ | ------------ | ------- | ---- | ------- | ---- |
141
+ | [main](https://huggingface.co/TheBloke/speechless-mistral-dolphin-orca-platypus-samantha-7B-GPTQ/tree/main) | 4 | 128 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-raw-v1) | 4096 | 4.16 GB | Yes | 4-bit, with Act Order and group size 128g. Uses even less VRAM than 64g, but with slightly lower accuracy. |
142
+ | [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/speechless-mistral-dolphin-orca-platypus-samantha-7B-GPTQ/tree/gptq-4bit-32g-actorder_True) | 4 | 32 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-raw-v1) | 4096 | 4.57 GB | Yes | 4-bit, with Act Order and group size 32g. Gives highest possible inference quality, with maximum VRAM usage. |
143
+ | [gptq-8bit--1g-actorder_True](https://huggingface.co/TheBloke/speechless-mistral-dolphin-orca-platypus-samantha-7B-GPTQ/tree/gptq-8bit--1g-actorder_True) | 8 | None | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-raw-v1) | 4096 | 7.52 GB | No | 8-bit, with Act Order. No group size, to lower VRAM requirements. |
144
+ | [gptq-8bit-128g-actorder_True](https://huggingface.co/TheBloke/speechless-mistral-dolphin-orca-platypus-samantha-7B-GPTQ/tree/gptq-8bit-128g-actorder_True) | 8 | 128 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-raw-v1) | 4096 | 7.68 GB | No | 8-bit, with group size 128g for higher inference quality and with Act Order for even higher accuracy. |
145
+ | [gptq-8bit-32g-actorder_True](https://huggingface.co/TheBloke/speechless-mistral-dolphin-orca-platypus-samantha-7B-GPTQ/tree/gptq-8bit-32g-actorder_True) | 8 | 32 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-raw-v1) | 4096 | 8.17 GB | No | 8-bit, with group size 32g and Act Order for maximum inference quality. |
146
+ | [gptq-4bit-64g-actorder_True](https://huggingface.co/TheBloke/speechless-mistral-dolphin-orca-platypus-samantha-7B-GPTQ/tree/gptq-4bit-64g-actorder_True) | 4 | 64 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-raw-v1) | 4096 | 4.29 GB | Yes | 4-bit, with Act Order and group size 64g. Uses less VRAM than 32g, but with slightly lower accuracy. |
147
+
148
+ <!-- README_GPTQ.md-provided-files end -->
149
+
150
+ <!-- README_GPTQ.md-download-from-branches start -->
151
+ ## How to download, including from branches
152
+
153
+ ### In text-generation-webui
154
+
155
+ To download from the `main` branch, enter `TheBloke/speechless-mistral-dolphin-orca-platypus-samantha-7B-GPTQ` in the "Download model" box.
156
+
157
+ To download from another branch, add `:branchname` to the end of the download name, eg `TheBloke/speechless-mistral-dolphin-orca-platypus-samantha-7B-GPTQ:gptq-4bit-32g-actorder_True`
158
+
159
+ ### From the command line
160
+
161
+ I recommend using the `huggingface-hub` Python library:
162
+
163
+ ```shell
164
+ pip3 install huggingface-hub
165
+ ```
166
+
167
+ To download the `main` branch to a folder called `speechless-mistral-dolphin-orca-platypus-samantha-7B-GPTQ`:
168
+
169
+ ```shell
170
+ mkdir speechless-mistral-dolphin-orca-platypus-samantha-7B-GPTQ
171
+ huggingface-cli download TheBloke/speechless-mistral-dolphin-orca-platypus-samantha-7B-GPTQ --local-dir speechless-mistral-dolphin-orca-platypus-samantha-7B-GPTQ --local-dir-use-symlinks False
172
+ ```
173
+
174
+ To download from a different branch, add the `--revision` parameter:
175
+
176
+ ```shell
177
+ mkdir speechless-mistral-dolphin-orca-platypus-samantha-7B-GPTQ
178
+ huggingface-cli download TheBloke/speechless-mistral-dolphin-orca-platypus-samantha-7B-GPTQ --revision gptq-4bit-32g-actorder_True --local-dir speechless-mistral-dolphin-orca-platypus-samantha-7B-GPTQ --local-dir-use-symlinks False
179
+ ```
180
+
181
+ <details>
182
+ <summary>More advanced huggingface-cli download usage</summary>
183
+
184
+ If you remove the `--local-dir-use-symlinks False` parameter, the files will instead be stored in the central Hugging Face cache directory (default location on Linux is: `~/.cache/huggingface`), and symlinks will be added to the specified `--local-dir`, pointing to their real location in the cache. This allows for interrupted downloads to be resumed, and allows you to quickly clone the repo to multiple places on disk without triggering a download again. The downside, and the reason why I don't list that as the default option, is that the files are then hidden away in a cache folder and it's harder to know where your disk space is being used, and to clear it up if/when you want to remove a download model.
185
+
186
+ The cache location can be changed with the `HF_HOME` environment variable, and/or the `--cache-dir` parameter to `huggingface-cli`.
187
+
188
+ For more documentation on downloading with `huggingface-cli`, please see: [HF -> Hub Python Library -> Download files -> Download from the CLI](https://huggingface.co/docs/huggingface_hub/guides/download#download-from-the-cli).
189
+
190
+ To accelerate downloads on fast connections (1Gbit/s or higher), install `hf_transfer`:
191
+
192
+ ```shell
193
+ pip3 install hf_transfer
194
+ ```
195
+
196
+ And set environment variable `HF_HUB_ENABLE_HF_TRANSFER` to `1`:
197
+
198
+ ```shell
199
+ mkdir speechless-mistral-dolphin-orca-platypus-samantha-7B-GPTQ
200
+ HF_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download TheBloke/speechless-mistral-dolphin-orca-platypus-samantha-7B-GPTQ --local-dir speechless-mistral-dolphin-orca-platypus-samantha-7B-GPTQ --local-dir-use-symlinks False
201
+ ```
202
+
203
+ Windows Command Line users: You can set the environment variable by running `set HF_HUB_ENABLE_HF_TRANSFER=1` before the download command.
204
+ </details>
205
+
206
+ ### With `git` (**not** recommended)
207
+
208
+ To clone a specific branch with `git`, use a command like this:
209
+
210
+ ```shell
211
+ git clone --single-branch --branch gptq-4bit-32g-actorder_True https://huggingface.co/TheBloke/speechless-mistral-dolphin-orca-platypus-samantha-7B-GPTQ
212
+ ```
213
+
214
+ Note that using Git with HF repos is strongly discouraged. It will be much slower than using `huggingface-hub`, and will use twice as much disk space as it has to store the model files twice (it stores every byte both in the intended target folder, and again in the `.git` folder as a blob.)
215
+
216
+ <!-- README_GPTQ.md-download-from-branches end -->
217
+ <!-- README_GPTQ.md-text-generation-webui start -->
218
+ ## How to easily download and use this model in [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
219
+
220
+ Please make sure you're using the latest version of [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
221
+
222
+ It is strongly recommended to use the text-generation-webui one-click-installers unless you're sure you know how to make a manual install.
223
+
224
+ 1. Click the **Model tab**.
225
+ 2. Under **Download custom model or LoRA**, enter `TheBloke/speechless-mistral-dolphin-orca-platypus-samantha-7B-GPTQ`.
226
+
227
+ - To download from a specific branch, enter for example `TheBloke/speechless-mistral-dolphin-orca-platypus-samantha-7B-GPTQ:gptq-4bit-32g-actorder_True`
228
+ - see Provided Files above for the list of branches for each option.
229
+
230
+ 3. Click **Download**.
231
+ 4. The model will start downloading. Once it's finished it will say "Done".
232
+ 5. In the top left, click the refresh icon next to **Model**.
233
+ 6. In the **Model** dropdown, choose the model you just downloaded: `speechless-mistral-dolphin-orca-platypus-samantha-7B-GPTQ`
234
+ 7. The model will automatically load, and is now ready for use!
235
+ 8. If you want any custom settings, set them and then click **Save settings for this model** followed by **Reload the Model** in the top right.
236
+
237
+ - Note that you do not need to and should not set manual GPTQ parameters any more. These are set automatically from the file `quantize_config.json`.
238
+
239
+ 9. Once you're ready, click the **Text Generation** tab and enter a prompt to get started!
240
+
241
+ <!-- README_GPTQ.md-text-generation-webui end -->
242
+
243
+ <!-- README_GPTQ.md-use-from-tgi start -->
244
+ ## Serving this model from Text Generation Inference (TGI)
245
+
246
+ It's recommended to use TGI version 1.1.0 or later. The official Docker container is: `ghcr.io/huggingface/text-generation-inference:1.1.0`
247
+
248
+ Example Docker parameters:
249
+
250
+ ```shell
251
+ --model-id TheBloke/speechless-mistral-dolphin-orca-platypus-samantha-7B-GPTQ --port 3000 --quantize gptq --max-input-length 3696 --max-total-tokens 4096 --max-batch-prefill-tokens 4096
252
+ ```
253
+
254
+ Example Python code for interfacing with TGI (requires huggingface-hub 0.17.0 or later):
255
+
256
+ ```shell
257
+ pip3 install huggingface-hub
258
+ ```
259
+
260
+ ```python
261
+ from huggingface_hub import InferenceClient
262
+
263
+ endpoint_url = "https://your-endpoint-url-here"
264
+
265
+ prompt = "Tell me about AI"
266
+ prompt_template=f'''<|im_start|>system
267
+ {system_message}<|im_end|>
268
+ <|im_start|>user
269
+ {prompt}<|im_end|>
270
+ <|im_start|>assistant
271
+ '''
272
+
273
+ client = InferenceClient(endpoint_url)
274
+ response = client.text_generation(prompt,
275
+ max_new_tokens=128,
276
+ do_sample=True,
277
+ temperature=0.7,
278
+ top_p=0.95,
279
+ top_k=40,
280
+ repetition_penalty=1.1)
281
+
282
+ print(f"Model output: {response}")
283
+ ```
284
+ <!-- README_GPTQ.md-use-from-tgi end -->
285
+ <!-- README_GPTQ.md-use-from-python start -->
286
+ ## Python code example: inference from this GPTQ model
287
+
288
+ ### Install the necessary packages
289
+
290
+ Requires: Transformers 4.33.0 or later, Optimum 1.12.0 or later, and AutoGPTQ 0.4.2 or later.
291
+
292
+ ```shell
293
+ pip3 install --upgrade transformers optimum
294
+ # If using PyTorch 2.1 + CUDA 12.x:
295
+ pip3 install --upgrade auto-gptq
296
+ # or, if using PyTorch 2.1 + CUDA 11.x:
297
+ pip3 install --upgrade auto-gptq --extra-index-url https://huggingface.github.io/autogptq-index/whl/cu118/
298
+ ```
299
+
300
+ If you are using PyTorch 2.0, you will need to install AutoGPTQ from source. Likewise if you have problems with the pre-built wheels, you should try building from source:
301
+
302
+ ```shell
303
+ pip3 uninstall -y auto-gptq
304
+ git clone https://github.com/PanQiWei/AutoGPTQ
305
+ cd AutoGPTQ
306
+ git checkout v0.5.1
307
+ pip3 install .
308
+ ```
309
+
310
+ ### Example Python code
311
+
312
+ ```python
313
+ from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
314
+
315
+ model_name_or_path = "TheBloke/speechless-mistral-dolphin-orca-platypus-samantha-7B-GPTQ"
316
+ # To use a different branch, change revision
317
+ # For example: revision="gptq-4bit-32g-actorder_True"
318
+ model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
319
+ device_map="auto",
320
+ trust_remote_code=False,
321
+ revision="main")
322
+
323
+ tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
324
+
325
+ prompt = "Tell me about AI"
326
+ prompt_template=f'''<|im_start|>system
327
+ {system_message}<|im_end|>
328
+ <|im_start|>user
329
+ {prompt}<|im_end|>
330
+ <|im_start|>assistant
331
+ '''
332
+
333
+ print("\n\n*** Generate:")
334
+
335
+ input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
336
+ output = model.generate(inputs=input_ids, temperature=0.7, do_sample=True, top_p=0.95, top_k=40, max_new_tokens=512)
337
+ print(tokenizer.decode(output[0]))
338
+
339
+ # Inference can also be done using transformers' pipeline
340
+
341
+ print("*** Pipeline:")
342
+ pipe = pipeline(
343
+ "text-generation",
344
+ model=model,
345
+ tokenizer=tokenizer,
346
+ max_new_tokens=512,
347
+ do_sample=True,
348
+ temperature=0.7,
349
+ top_p=0.95,
350
+ top_k=40,
351
+ repetition_penalty=1.1
352
+ )
353
+
354
+ print(pipe(prompt_template)[0]['generated_text'])
355
+ ```
356
+ <!-- README_GPTQ.md-use-from-python end -->
357
+
358
+ <!-- README_GPTQ.md-compatibility start -->
359
+ ## Compatibility
360
+
361
+ The files provided are tested to work with Transformers. For non-Mistral models, AutoGPTQ can also be used directly.
362
+
363
+ [ExLlama](https://github.com/turboderp/exllama) is compatible with Llama and Mistral models in 4-bit. Please see the Provided Files table above for per-file compatibility.
364
+
365
+ For a list of clients/servers, please see "Known compatible clients / servers", above.
366
+ <!-- README_GPTQ.md-compatibility end -->
367
+
368
+ <!-- footer start -->
369
+ <!-- 200823 -->
370
+ ## Discord
371
+
372
+ For further support, and discussions on these models and AI in general, join us at:
373
+
374
+ [TheBloke AI's Discord server](https://discord.gg/theblokeai)
375
+
376
+ ## Thanks, and how to contribute
377
+
378
+ Thanks to the [chirper.ai](https://chirper.ai) team!
379
+
380
+ Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
381
+
382
+ I've had a lot of people ask if they can contribute. I enjoy providing models and helping people, and would love to be able to spend even more time doing it, as well as expanding into new projects like fine tuning/training.
383
+
384
+ If you're able and willing to contribute it will be most gratefully received and will help me to keep providing more models, and to start work on new AI projects.
385
+
386
+ Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
387
+
388
+ * Patreon: https://patreon.com/TheBlokeAI
389
+ * Ko-Fi: https://ko-fi.com/TheBlokeAI
390
+
391
+ **Special thanks to**: Aemon Algiz.
392
+
393
+ **Patreon special mentions**: Brandon Frisco, LangChain4j, Spiking Neurons AB, transmissions 11, Joseph William Delisle, Nitin Borwankar, Willem Michiel, Michael Dempsey, vamX, Jeffrey Morgan, zynix, jjj, Omer Bin Jawed, Sean Connelly, jinyuan sun, Jeromy Smith, Shadi, Pawan Osman, Chadd, Elijah Stavena, Illia Dulskyi, Sebastain Graf, Stephen Murray, terasurfer, Edmond Seymore, Celu Ramasamy, Mandus, Alex, biorpg, Ajan Kanaga, Clay Pascal, Raven Klaugh, 阿明, K, ya boyyy, usrbinkat, Alicia Loh, John Villwock, ReadyPlayerEmma, Chris Smitley, Cap'n Zoog, fincy, GodLy, S_X, sidney chen, Cory Kujawski, OG, Mano Prime, AzureBlack, Pieter, Kalila, Spencer Kim, Tom X Nguyen, Stanislav Ovsiannikov, Michael Levine, Andrey, Trailburnt, Vadim, Enrico Ros, Talal Aujan, Brandon Phillips, Jack West, Eugene Pentland, Michael Davis, Will Dee, webtim, Jonathan Leane, Alps Aficionado, Rooh Singh, Tiffany J. Kim, theTransient, Luke @flexchar, Elle, Caitlyn Gatomon, Ari Malik, subjectnull, Johann-Peter Hartmann, Trenton Dambrowitz, Imad Khwaja, Asp the Wyvern, Emad Mostaque, Rainer Wilmers, Alexandros Triantafyllidis, Nicholas, Pedro Madruga, SuperWojo, Harry Royden McLaughlin, James Bentley, Olakabola, David Ziegler, Ai Maven, Jeff Scroggin, Nikolai Manek, Deo Leter, Matthew Berman, Fen Risland, Ken Nordquist, Manuel Alberto Morcote, Luke Pendergrass, TL, Fred von Graf, Randy H, Dan Guido, NimbleBox.ai, Vitor Caleffi, Gabriel Tamborski, knownsqashed, Lone Striker, Erik Bjäreholt, John Detwiler, Leonard Tan, Iucharbius
394
+
395
+
396
+ Thank you to all my generous patrons and donaters!
397
+
398
+ And thank you again to a16z for their generous grant.
399
+
400
+ <!-- footer end -->
401
+
402
+ # Original model card: Jiangwen Su's Speechless Mistral Dolphin Orca Platypus Samantha 7B
403
+
404
+
405
+ <p><h1> speechless-mistral-dolphin-orca-platypus-samantha-7b </h1></p>
406
+ This model is a merge of ehartford/dolphin-2.1-mistral-7b, Open-Orca/Mistral-7B-OpenOrca, bhenrym14/mistral-7b-platypus-fp16 and ehartford/samantha-1.2-mistral-7b.
407
+
408
+ I'm very sorry for giving such a long and peculiar name. Originally, it was just my lazy behavior during the process of making models to easily distinguish various model and dataset combinations. I didn't expect the [previous model](https://huggingface.co/uukuguy/speechless-llama2-hermes-orca-platypus-wizardlm-13b) ([Thebloke GPTQ Version](https://huggingface.co/TheBloke/Speechless-Llama2-Hermes-Orca-Platypus-WizardLM-13B-GPTQ)) to be so popular. This time, based on some guys's request, I am releasing a model based on Mistral, and I have also inherited the style of the super long name along with it. Welcome to try the model, please refrain from harsh criticism if you don't like it.
409
+
410
+ Code: https://github.com/uukuguy/speechless
411
+
412
+ ## HumanEval
413
+
414
+ | Metric | Value |
415
+ | --- | --- |
416
+ | humaneval-python | 34.146|
417
+
418
+ [Big Code Models Leaderboard](https://huggingface.co/spaces/bigcode/bigcode-models-leaderboard)
419
+
420
+ CodeLlama-34B-Python: 53.29
421
+
422
+ CodeLlama-34B-Instruct: 50.79
423
+
424
+ CodeLlama-13B-Instruct: 50.6
425
+
426
+ CodeLlama-34B: 45.11
427
+
428
+ CodeLlama-13B-Python: 42.89
429
+
430
+ CodeLlama-13B: 35.07
431
+
432
+ Mistral-7B-v0.1: 30.488
433
+
434
+ ## LM-Evaluation-Harness
435
+
436
+ [Open LLM Leaderboard](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
437
+
438
+ | Metric | Value |
439
+ | --- | --- |
440
+ | ARC | 64.33 |
441
+ | HellaSwag | 84.4|
442
+ | MMLU | 63.72 |
443
+ | TruthfulQA | 52.52|
444
+ | Winogrande | 78.37 |
445
+ | GSM8K | 21.38 |
446
+ | DROP | 8.66 |
447
+ | Average | 53.34 |
448
+
449
+ # Model Card for Mistral-7B-v0.1
450
+
451
+ The Mistral-7B-v0.1 Large Language Model (LLM) is a pretrained generative text model with 7 billion parameters.
452
+ Mistral-7B-v0.1 outperforms Llama 2 13B on all benchmarks we tested.
453
+
454
+ For full details of this model please read our [paper](https://arxiv.org/abs/2310.06825) and [release blog post](https://mistral.ai/news/announcing-mistral-7b/).
455
+
456
+ ## Model Architecture
457
+
458
+ Mistral-7B-v0.1 is a transformer model, with the following architecture choices:
459
+ - Grouped-Query Attention
460
+ - Sliding-Window Attention
461
+ - Byte-fallback BPE tokenizer
462
+
463
+ ## Troubleshooting
464
+
465
+ - If you see the following error:
466
+ ``
467
+ KeyError: 'mistral'
468
+ ``
469
+ - Or:
470
+ ``
471
+ NotImplementedError: Cannot copy out of meta tensor; no data!
472
+ ``
473
+
474
+ Ensure you are utilizing a stable version of Transformers, 4.34.0 or newer.
475
+
476
+ ## Notice
477
+
478
+ Mistral 7B is a pretrained base model and therefore does not have any moderation mechanisms.
479
+
480
+ ## The Mistral AI Team
481
+
482
+ Albert Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lélio Renard Lavaud, Lucile Saulnier, Marie-Anne Lachaux, Pierre Stock, Teven Le Scao, Thibaut Lavril, Thomas Wang, Timothée Lacroix, William El Sayed.`