marcsun13 HF staff TheBloke commited on
Commit
3901bec
0 Parent(s):

Duplicate from TheBlokeAI/Mixtral-tiny-GPTQ

Browse files

Co-authored-by: Tom Jobbins <TheBloke@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,356 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: hf-internal-testing/Mixtral-tiny
3
+ inference: false
4
+ model_creator: Hugging Face Internal Testing Organization
5
+ model_name: Mixtral Tiny
6
+ model_type: mixtral
7
+ prompt_template: '{prompt}
8
+
9
+ '
10
+ quantized_by: TheBloke
11
+ ---
12
+ <!-- markdownlint-disable MD041 -->
13
+
14
+ <!-- header start -->
15
+ <!-- 200823 -->
16
+ <div style="width: auto; margin-left: auto; margin-right: auto">
17
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
18
+ </div>
19
+ <div style="display: flex; justify-content: space-between; width: 100%;">
20
+ <div style="display: flex; flex-direction: column; align-items: flex-start;">
21
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
22
+ </div>
23
+ <div style="display: flex; flex-direction: column; align-items: flex-end;">
24
+ <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>
25
+ </div>
26
+ </div>
27
+ <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>
28
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
29
+ <!-- header end -->
30
+
31
+ # Mixtral Tiny - GPTQ
32
+ - Model creator: [Hugging Face Internal Testing Organization](https://huggingface.co/hf-internal-testing)
33
+ - Original model: [Mixtral Tiny](https://huggingface.co/hf-internal-testing/Mixtral-tiny)
34
+
35
+ <!-- description start -->
36
+ # Description
37
+
38
+ This repo contains GPTQ model files for [Hugging Face Internal Testing Organization's Mixtral Tiny](https://huggingface.co/hf-internal-testing/Mixtral-tiny).
39
+
40
+ 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.
41
+
42
+ <!-- description end -->
43
+ <!-- repositories-available start -->
44
+ ## Repositories available
45
+
46
+ * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Mixtral-tiny-GPTQ)
47
+ * [Hugging Face Internal Testing Organization's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/hf-internal-testing/Mixtral-tiny)
48
+ <!-- repositories-available end -->
49
+
50
+ <!-- prompt-template start -->
51
+ ## Prompt template: None
52
+
53
+ ```
54
+ {prompt}
55
+
56
+ ```
57
+
58
+ <!-- prompt-template end -->
59
+
60
+
61
+
62
+ <!-- README_GPTQ.md-compatible clients start -->
63
+ ## Known compatible clients / servers
64
+
65
+ GPTQ models are currently supported on Linux (NVidia/AMD) and Windows (NVidia only). macOS users: please use GGUF models.
66
+
67
+ These GPTQ models are known to work in the following inference servers/webuis.
68
+
69
+ - [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
70
+ - [KoboldAI United](https://github.com/henk717/koboldai)
71
+ - [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui)
72
+ - [Hugging Face Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference)
73
+
74
+ This may not be a complete list; if you know of others, please let me know!
75
+ <!-- README_GPTQ.md-compatible clients end -->
76
+
77
+ <!-- README_GPTQ.md-provided-files start -->
78
+ ## Provided files, and GPTQ parameters
79
+
80
+ Multiple quantisation parameters are provided, to allow you to choose the best one for your hardware and requirements.
81
+
82
+ Each separate quant is in a different branch. See below for instructions on fetching from different branches.
83
+
84
+ Most GPTQ files are made with AutoGPTQ. Mistral models are currently made with Transformers.
85
+
86
+ <details>
87
+ <summary>Explanation of GPTQ parameters</summary>
88
+
89
+ - Bits: The bit size of the quantised model.
90
+ - GS: GPTQ group size. Higher numbers use less VRAM, but have lower quantisation accuracy. "None" is the lowest possible value.
91
+ - 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.
92
+ - Damp %: A GPTQ parameter that affects how samples are processed for quantisation. 0.01 is default, but 0.1 results in slightly better accuracy.
93
+ - 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).
94
+ - 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.
95
+ - ExLlama Compatibility: Whether this file can be loaded with ExLlama, which currently only supports Llama and Mistral models in 4-bit.
96
+
97
+ </details>
98
+
99
+ | Branch | Bits | GS | Act Order | Damp % | GPTQ Dataset | Seq Len | Size | ExLlama | Desc |
100
+ | ------ | ---- | -- | --------- | ------ | ------------ | ------- | ---- | ------- | ---- |
101
+ | main | 4 | 128 | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 4096 | 0.23 GB | No | 4-bit, with Act Order and group size 128g. Uses even less VRAM than 64g, but with slightly lower accuracy. |
102
+ | gptq-4bit-32g-actorder_True | 4 | 32 | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 4096 | 0.24 GB | No | 4-bit, with Act Order and group size 32g. Gives highest possible inference quality, with maximum VRAM usage. |
103
+ | gptq-8bit--1g-actorder_True | 8 | None | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 4096 | 0.31 GB | No | 8-bit, with Act Order. No group size, to lower VRAM requirements. |
104
+ | gptq-8bit-128g-actorder_True | 8 | 128 | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 4096 | 0.32 GB | No | 8-bit, with group size 128g for higher inference quality and with Act Order for even higher accuracy. |
105
+ | gptq-8bit-32g-actorder_True | 8 | 32 | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 4096 | 0.33 GB | No | 8-bit, with group size 32g and Act Order for maximum inference quality. |
106
+ | gptq-4bit-64g-actorder_True | 4 | 64 | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 4096 | 0.23 GB | No | 4-bit, with Act Order and group size 64g. Uses less VRAM than 32g, but with slightly lower accuracy. |
107
+
108
+ <!-- README_GPTQ.md-provided-files end -->
109
+
110
+ <!-- README_GPTQ.md-download-from-branches start -->
111
+ ## How to download, including from branches
112
+
113
+ ### In text-generation-webui
114
+
115
+ To download from the `main` branch, enter `TheBloke/Mixtral-tiny-GPTQ` in the "Download model" box.
116
+
117
+ To download from another branch, add `:branchname` to the end of the download name, eg `TheBloke/Mixtral-tiny-GPTQ:gptq-4bit-32g-actorder_True`
118
+
119
+ ### From the command line
120
+
121
+ I recommend using the `huggingface-hub` Python library:
122
+
123
+ ```shell
124
+ pip3 install huggingface-hub
125
+ ```
126
+
127
+ To download the `main` branch to a folder called `Mixtral-tiny-GPTQ`:
128
+
129
+ ```shell
130
+ mkdir Mixtral-tiny-GPTQ
131
+ huggingface-cli download TheBloke/Mixtral-tiny-GPTQ --local-dir Mixtral-tiny-GPTQ --local-dir-use-symlinks False
132
+ ```
133
+
134
+ To download from a different branch, add the `--revision` parameter:
135
+
136
+ ```shell
137
+ mkdir Mixtral-tiny-GPTQ
138
+ huggingface-cli download TheBloke/Mixtral-tiny-GPTQ --revision gptq-4bit-32g-actorder_True --local-dir Mixtral-tiny-GPTQ --local-dir-use-symlinks False
139
+ ```
140
+
141
+ <details>
142
+ <summary>More advanced huggingface-cli download usage</summary>
143
+
144
+ 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.
145
+
146
+ The cache location can be changed with the `HF_HOME` environment variable, and/or the `--cache-dir` parameter to `huggingface-cli`.
147
+
148
+ 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).
149
+
150
+ To accelerate downloads on fast connections (1Gbit/s or higher), install `hf_transfer`:
151
+
152
+ ```shell
153
+ pip3 install hf_transfer
154
+ ```
155
+
156
+ And set environment variable `HF_HUB_ENABLE_HF_TRANSFER` to `1`:
157
+
158
+ ```shell
159
+ mkdir Mixtral-tiny-GPTQ
160
+ HF_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download TheBloke/Mixtral-tiny-GPTQ --local-dir Mixtral-tiny-GPTQ --local-dir-use-symlinks False
161
+ ```
162
+
163
+ Windows Command Line users: You can set the environment variable by running `set HF_HUB_ENABLE_HF_TRANSFER=1` before the download command.
164
+ </details>
165
+
166
+ ### With `git` (**not** recommended)
167
+
168
+ To clone a specific branch with `git`, use a command like this:
169
+
170
+ ```shell
171
+ git clone --single-branch --branch gptq-4bit-32g-actorder_True https://huggingface.co/TheBloke/Mixtral-tiny-GPTQ
172
+ ```
173
+
174
+ 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.)
175
+
176
+ <!-- README_GPTQ.md-download-from-branches end -->
177
+ <!-- README_GPTQ.md-text-generation-webui start -->
178
+ ## How to easily download and use this model in [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
179
+
180
+ Please make sure you're using the latest version of [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
181
+
182
+ 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.
183
+
184
+ 1. Click the **Model tab**.
185
+ 2. Under **Download custom model or LoRA**, enter `TheBloke/Mixtral-tiny-GPTQ`.
186
+
187
+ - To download from a specific branch, enter for example `TheBloke/Mixtral-tiny-GPTQ:gptq-4bit-32g-actorder_True`
188
+ - see Provided Files above for the list of branches for each option.
189
+
190
+ 3. Click **Download**.
191
+ 4. The model will start downloading. Once it's finished it will say "Done".
192
+ 5. In the top left, click the refresh icon next to **Model**.
193
+ 6. In the **Model** dropdown, choose the model you just downloaded: `Mixtral-tiny-GPTQ`
194
+ 7. The model will automatically load, and is now ready for use!
195
+ 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.
196
+
197
+ - 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`.
198
+
199
+ 9. Once you're ready, click the **Text Generation** tab and enter a prompt to get started!
200
+
201
+ <!-- README_GPTQ.md-text-generation-webui end -->
202
+
203
+ <!-- README_GPTQ.md-use-from-tgi start -->
204
+ ## Serving this model from Text Generation Inference (TGI)
205
+
206
+ 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`
207
+
208
+ Example Docker parameters:
209
+
210
+ ```shell
211
+ --model-id TheBloke/Mixtral-tiny-GPTQ --port 3000 --quantize gptq --max-input-length 3696 --max-total-tokens 4096 --max-batch-prefill-tokens 4096
212
+ ```
213
+
214
+ Example Python code for interfacing with TGI (requires huggingface-hub 0.17.0 or later):
215
+
216
+ ```shell
217
+ pip3 install huggingface-hub
218
+ ```
219
+
220
+ ```python
221
+ from huggingface_hub import InferenceClient
222
+
223
+ endpoint_url = "https://your-endpoint-url-here"
224
+
225
+ prompt = "Tell me about AI"
226
+ prompt_template=f'''{prompt}
227
+ '''
228
+
229
+ client = InferenceClient(endpoint_url)
230
+ response = client.text_generation(prompt,
231
+ max_new_tokens=128,
232
+ do_sample=True,
233
+ temperature=0.7,
234
+ top_p=0.95,
235
+ top_k=40,
236
+ repetition_penalty=1.1)
237
+
238
+ print(f"Model output: {response}")
239
+ ```
240
+ <!-- README_GPTQ.md-use-from-tgi end -->
241
+ <!-- README_GPTQ.md-use-from-python start -->
242
+ ## Python code example: inference from this GPTQ model
243
+
244
+ ### Install the necessary packages
245
+
246
+ Requires: Transformers 4.33.0 or later, Optimum 1.12.0 or later, and AutoGPTQ 0.4.2 or later.
247
+
248
+ ```shell
249
+ pip3 install --upgrade transformers optimum
250
+ # If using PyTorch 2.1 + CUDA 12.x:
251
+ pip3 install --upgrade auto-gptq
252
+ # or, if using PyTorch 2.1 + CUDA 11.x:
253
+ pip3 install --upgrade auto-gptq --extra-index-url https://huggingface.github.io/autogptq-index/whl/cu118/
254
+ ```
255
+
256
+ 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:
257
+
258
+ ```shell
259
+ pip3 uninstall -y auto-gptq
260
+ git clone https://github.com/PanQiWei/AutoGPTQ
261
+ cd AutoGPTQ
262
+ git checkout v0.5.1
263
+ pip3 install .
264
+ ```
265
+
266
+ ### Example Python code
267
+
268
+ ```python
269
+ from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
270
+
271
+ model_name_or_path = "TheBloke/Mixtral-tiny-GPTQ"
272
+ # To use a different branch, change revision
273
+ # For example: revision="gptq-4bit-32g-actorder_True"
274
+ model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
275
+ device_map="auto",
276
+ trust_remote_code=False,
277
+ revision="main")
278
+
279
+ tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
280
+
281
+ prompt = "Tell me about AI"
282
+ prompt_template=f'''{prompt}
283
+ '''
284
+
285
+ print("\n\n*** Generate:")
286
+
287
+ input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
288
+ output = model.generate(inputs=input_ids, temperature=0.7, do_sample=True, top_p=0.95, top_k=40, max_new_tokens=512)
289
+ print(tokenizer.decode(output[0]))
290
+
291
+ # Inference can also be done using transformers' pipeline
292
+
293
+ print("*** Pipeline:")
294
+ pipe = pipeline(
295
+ "text-generation",
296
+ model=model,
297
+ tokenizer=tokenizer,
298
+ max_new_tokens=512,
299
+ do_sample=True,
300
+ temperature=0.7,
301
+ top_p=0.95,
302
+ top_k=40,
303
+ repetition_penalty=1.1
304
+ )
305
+
306
+ print(pipe(prompt_template)[0]['generated_text'])
307
+ ```
308
+ <!-- README_GPTQ.md-use-from-python end -->
309
+
310
+ <!-- README_GPTQ.md-compatibility start -->
311
+ ## Compatibility
312
+
313
+ The files provided are tested to work with Transformers. For non-Mistral models, AutoGPTQ can also be used directly.
314
+
315
+ [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.
316
+
317
+ For a list of clients/servers, please see "Known compatible clients / servers", above.
318
+ <!-- README_GPTQ.md-compatibility end -->
319
+
320
+ <!-- footer start -->
321
+ <!-- 200823 -->
322
+ ## Discord
323
+
324
+ For further support, and discussions on these models and AI in general, join us at:
325
+
326
+ [TheBloke AI's Discord server](https://discord.gg/theblokeai)
327
+
328
+ ## Thanks, and how to contribute
329
+
330
+ Thanks to the [chirper.ai](https://chirper.ai) team!
331
+
332
+ Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
333
+
334
+ 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.
335
+
336
+ 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.
337
+
338
+ Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
339
+
340
+ * Patreon: https://patreon.com/TheBlokeAI
341
+ * Ko-Fi: https://ko-fi.com/TheBlokeAI
342
+
343
+ **Special thanks to**: Aemon Algiz.
344
+
345
+ **Patreon special mentions**: Michael Levine, 阿明, Trailburnt, Nikolai Manek, John Detwiler, Randy H, Will Dee, Sebastain Graf, NimbleBox.ai, Eugene Pentland, Emad Mostaque, Ai Maven, Jim Angel, Jeff Scroggin, Michael Davis, Manuel Alberto Morcote, Stephen Murray, Robert, Justin Joy, Luke @flexchar, Brandon Frisco, Elijah Stavena, S_X, Dan Guido, Undi ., Komninos Chatzipapas, Shadi, theTransient, Lone Striker, Raven Klaugh, jjj, Cap'n Zoog, Michel-Marie MAUDET (LINAGORA), Matthew Berman, David, Fen Risland, Omer Bin Jawed, Luke Pendergrass, Kalila, OG, Erik Bjäreholt, Rooh Singh, Joseph William Delisle, Dan Lewis, TL, John Villwock, AzureBlack, Brad, Pedro Madruga, Caitlyn Gatomon, K, jinyuan sun, Mano Prime, Alex, Jeffrey Morgan, Alicia Loh, Illia Dulskyi, Chadd, transmissions 11, fincy, Rainer Wilmers, ReadyPlayerEmma, knownsqashed, Mandus, biorpg, Deo Leter, Brandon Phillips, SuperWojo, Sean Connelly, Iucharbius, Jack West, Harry Royden McLaughlin, Nicholas, terasurfer, Vitor Caleffi, Duane Dunston, Johann-Peter Hartmann, David Ziegler, Olakabola, Ken Nordquist, Trenton Dambrowitz, Tom X Nguyen, Vadim, Ajan Kanaga, Leonard Tan, Clay Pascal, Alexandros Triantafyllidis, JM33133, Xule, vamX, ya boyyy, subjectnull, Talal Aujan, Alps Aficionado, wassieverse, Ari Malik, James Bentley, Woland, Spencer Kim, Michael Dempsey, Fred von Graf, Elle, zynix, William Richards, Stanislav Ovsiannikov, Edmond Seymore, Jonathan Leane, Martin Kemka, usrbinkat, Enrico Ros
346
+
347
+
348
+ Thank you to all my generous patrons and donaters!
349
+
350
+ And thank you again to a16z for their generous grant.
351
+
352
+ <!-- footer end -->
353
+
354
+ # Original model card: Hugging Face Internal Testing Organization's Mixtral Tiny
355
+
356
+ No original model card was available.
config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/workspace/process/hf-internal-testing_mixtral-tiny/source",
3
+ "architectures": [
4
+ "MixtralForCausalLM"
5
+ ],
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 1,
8
+ "eos_token_id": 2,
9
+ "hidden_act": "silu",
10
+ "hidden_size": 1024,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 3584,
13
+ "max_position_embeddings": 131072,
14
+ "model_type": "mixtral",
15
+ "num_attention_heads": 32,
16
+ "num_experts_per_tok": 2,
17
+ "num_hidden_layers": 2,
18
+ "num_key_value_heads": 8,
19
+ "num_local_experts": 8,
20
+ "output_router_logits": false,
21
+ "pad_token_id": 0,
22
+ "pretraining_tp": 1,
23
+ "rms_norm_eps": 1e-05,
24
+ "rope_theta": 10000.0,
25
+ "router_aux_loss_coef": 0.001,
26
+ "sliding_window": 4096,
27
+ "tie_word_embeddings": false,
28
+ "torch_dtype": "float16",
29
+ "transformers_version": "4.36.0.dev0",
30
+ "use_cache": true,
31
+ "vocab_size": 32000,
32
+ "quantization_config": {
33
+ "bits": 4,
34
+ "group_size": 128,
35
+ "damp_percent": 0.1,
36
+ "desc_act": true,
37
+ "sym": true,
38
+ "true_sequential": true,
39
+ "model_name_or_path": null,
40
+ "model_file_base_name": "model",
41
+ "quant_method": "gptq"
42
+ }
43
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "transformers_version": "4.36.0.dev0"
6
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b407869971afeac96a2f915a7a1762923f47cf6212c38a5ff5f57590f9aa7395
3
+ size 226060152
quantize_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bits": 4,
3
+ "group_size": 128,
4
+ "damp_percent": 0.1,
5
+ "desc_act": true,
6
+ "sym": true,
7
+ "true_sequential": true,
8
+ "model_name_or_path": null,
9
+ "model_file_base_name": "model"
10
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
3
+ size 493443
tokenizer_config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "added_tokens_decoder": {
5
+ "0": {
6
+ "content": "<unk>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "1": {
14
+ "content": "<s>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ }
29
+ },
30
+ "additional_special_tokens": [],
31
+ "bos_token": "<s>",
32
+ "clean_up_tokenization_spaces": false,
33
+ "eos_token": "</s>",
34
+ "legacy": true,
35
+ "model_max_length": 1000000000000000019884624838656,
36
+ "pad_token": null,
37
+ "sp_model_kwargs": {},
38
+ "spaces_between_special_tokens": false,
39
+ "tokenizer_class": "LlamaTokenizer",
40
+ "unk_token": "<unk>",
41
+ "use_default_system_prompt": false
42
+ }