TheBloke commited on
Commit
8e17a26
1 Parent(s): b4356c0

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +456 -0
README.md ADDED
@@ -0,0 +1,456 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: argilla/notux-8x7b-v1
3
+ datasets:
4
+ - argilla/ultrafeedback-binarized-preferences-cleaned
5
+ inference: false
6
+ language:
7
+ - en
8
+ - de
9
+ - es
10
+ - fr
11
+ - it
12
+ library_name: transformers
13
+ license: apache-2.0
14
+ model-index:
15
+ - name: notux-8x7b-v1
16
+ results: []
17
+ model_creator: Argilla
18
+ model_name: Notux 8X7B v1
19
+ model_type: mixtral
20
+ pipeline_tag: text-generation
21
+ prompt_template: '{prompt}
22
+
23
+ '
24
+ quantized_by: TheBloke
25
+ tags:
26
+ - dpo
27
+ - rlaif
28
+ - preference
29
+ - ultrafeedback
30
+ ---
31
+ <!-- markdownlint-disable MD041 -->
32
+
33
+ <!-- header start -->
34
+ <!-- 200823 -->
35
+ <div style="width: auto; margin-left: auto; margin-right: auto">
36
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
37
+ </div>
38
+ <div style="display: flex; justify-content: space-between; width: 100%;">
39
+ <div style="display: flex; flex-direction: column; align-items: flex-start;">
40
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
41
+ </div>
42
+ <div style="display: flex; flex-direction: column; align-items: flex-end;">
43
+ <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>
44
+ </div>
45
+ </div>
46
+ <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>
47
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
48
+ <!-- header end -->
49
+
50
+ # Notux 8X7B v1 - GPTQ
51
+ - Model creator: [Argilla](https://huggingface.co/argilla)
52
+ - Original model: [Notux 8X7B v1](https://huggingface.co/argilla/notux-8x7b-v1)
53
+
54
+ <!-- description start -->
55
+ # Description
56
+
57
+ This repo contains GPTQ model files for [Argilla's Notux 8X7B v1](https://huggingface.co/argilla/notux-8x7b-v1).
58
+
59
+ 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.
60
+
61
+ These files were quantised using hardware kindly provided by [Massed Compute](https://massedcompute.com/).
62
+
63
+ <!-- description end -->
64
+ <!-- repositories-available start -->
65
+ ## Repositories available
66
+
67
+ * [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/notux-8x7b-v1-AWQ)
68
+ * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/notux-8x7b-v1-GPTQ)
69
+ * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/notux-8x7b-v1-GGUF)
70
+ * [Argilla's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/argilla/notux-8x7b-v1)
71
+ <!-- repositories-available end -->
72
+
73
+ <!-- prompt-template start -->
74
+ ## Prompt template: Unknown
75
+
76
+ ```
77
+ {prompt}
78
+
79
+ ```
80
+
81
+ <!-- prompt-template end -->
82
+
83
+
84
+
85
+ <!-- README_GPTQ.md-compatible clients start -->
86
+ ## Known compatible clients / servers
87
+
88
+ GPTQ models are currently supported on Linux (NVidia/AMD) and Windows (NVidia only). macOS users: please use GGUF models.
89
+
90
+ These GPTQ models are known to work in the following inference servers/webuis.
91
+
92
+ - [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
93
+ - [KoboldAI United](https://github.com/henk717/koboldai)
94
+ - [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui)
95
+ - [Hugging Face Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference)
96
+
97
+ This may not be a complete list; if you know of others, please let me know!
98
+ <!-- README_GPTQ.md-compatible clients end -->
99
+
100
+ <!-- README_GPTQ.md-provided-files start -->
101
+ ## Provided files, and GPTQ parameters
102
+
103
+ Multiple quantisation parameters are provided, to allow you to choose the best one for your hardware and requirements.
104
+
105
+ Each separate quant is in a different branch. See below for instructions on fetching from different branches.
106
+
107
+ Most GPTQ files are made with AutoGPTQ. Mistral models are currently made with Transformers.
108
+
109
+ <details>
110
+ <summary>Explanation of GPTQ parameters</summary>
111
+
112
+ - Bits: The bit size of the quantised model.
113
+ - GS: GPTQ group size. Higher numbers use less VRAM, but have lower quantisation accuracy. "None" is the lowest possible value.
114
+ - 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.
115
+ - Damp %: A GPTQ parameter that affects how samples are processed for quantisation. 0.01 is default, but 0.1 results in slightly better accuracy.
116
+ - 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).
117
+ - 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.
118
+ - ExLlama Compatibility: Whether this file can be loaded with ExLlama, which currently only supports Llama and Mistral models in 4-bit.
119
+
120
+ </details>
121
+
122
+ | Branch | Bits | GS | Act Order | Damp % | GPTQ Dataset | Seq Len | Size | ExLlama | Desc |
123
+ | ------ | ---- | -- | --------- | ------ | ------------ | ------- | ---- | ------- | ---- |
124
+ | [main](https://huggingface.co/TheBloke/notux-8x7b-v1-GPTQ/tree/main) | 4 | None | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 8192 | 23.81 GB | No | 4-bit, with Act Order. No group size, to lower VRAM requirements. |
125
+ | [gptq-4bit-128g-actorder_True](https://huggingface.co/TheBloke/notux-8x7b-v1-GPTQ/tree/gptq-4bit-128g-actorder_True) | 4 | 128 | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 8192 | 24.70 GB | No | 4-bit, with Act Order and group size 128g. Uses even less VRAM than 64g, but with slightly lower accuracy. |
126
+ | [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/notux-8x7b-v1-GPTQ/tree/gptq-4bit-32g-actorder_True) | 4 | 32 | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 8192 | 27.42 GB | No | 4-bit, with Act Order and group size 32g. Gives highest possible inference quality, with maximum VRAM usage. |
127
+ | [gptq-3bit--1g-actorder_True](https://huggingface.co/TheBloke/notux-8x7b-v1-GPTQ/tree/gptq-3bit--1g-actorder_True) | 3 | None | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 8192 | 18.01 GB | No | 3-bit, with Act Order and no group size. Lowest possible VRAM requirements. May be lower quality than 3-bit 128g. |
128
+ | [gptq-3bit-128g-actorder_True](https://huggingface.co/TheBloke/notux-8x7b-v1-GPTQ/tree/gptq-3bit-128g-actorder_True) | 3 | 128 | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 8192 | 18.85 GB | No | 3-bit, with group size 128g and act-order. Higher quality than 128g-False. |
129
+ | [gptq-8bit--1g-actorder_True](https://huggingface.co/TheBloke/notux-8x7b-v1-GPTQ/tree/gptq-8bit--1g-actorder_True) | 8 | None | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 8192 | 47.04 GB | No | 8-bit, with Act Order. No group size, to lower VRAM requirements. |
130
+ | [gptq-8bit-128g-actorder_True](https://huggingface.co/TheBloke/notux-8x7b-v1-GPTQ/tree/gptq-8bit-128g-actorder_True) | 8 | 128 | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 8192 | 48.10 GB | No | 8-bit, with group size 128g for higher inference quality and with Act Order for even higher accuracy. |
131
+
132
+ <!-- README_GPTQ.md-provided-files end -->
133
+
134
+ <!-- README_GPTQ.md-download-from-branches start -->
135
+ ## How to download, including from branches
136
+
137
+ ### In text-generation-webui
138
+
139
+ To download from the `main` branch, enter `TheBloke/notux-8x7b-v1-GPTQ` in the "Download model" box.
140
+
141
+ To download from another branch, add `:branchname` to the end of the download name, eg `TheBloke/notux-8x7b-v1-GPTQ:gptq-4bit-128g-actorder_True`
142
+
143
+ ### From the command line
144
+
145
+ I recommend using the `huggingface-hub` Python library:
146
+
147
+ ```shell
148
+ pip3 install huggingface-hub
149
+ ```
150
+
151
+ To download the `main` branch to a folder called `notux-8x7b-v1-GPTQ`:
152
+
153
+ ```shell
154
+ mkdir notux-8x7b-v1-GPTQ
155
+ huggingface-cli download TheBloke/notux-8x7b-v1-GPTQ --local-dir notux-8x7b-v1-GPTQ --local-dir-use-symlinks False
156
+ ```
157
+
158
+ To download from a different branch, add the `--revision` parameter:
159
+
160
+ ```shell
161
+ mkdir notux-8x7b-v1-GPTQ
162
+ huggingface-cli download TheBloke/notux-8x7b-v1-GPTQ --revision gptq-4bit-128g-actorder_True --local-dir notux-8x7b-v1-GPTQ --local-dir-use-symlinks False
163
+ ```
164
+
165
+ <details>
166
+ <summary>More advanced huggingface-cli download usage</summary>
167
+
168
+ 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.
169
+
170
+ The cache location can be changed with the `HF_HOME` environment variable, and/or the `--cache-dir` parameter to `huggingface-cli`.
171
+
172
+ 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).
173
+
174
+ To accelerate downloads on fast connections (1Gbit/s or higher), install `hf_transfer`:
175
+
176
+ ```shell
177
+ pip3 install hf_transfer
178
+ ```
179
+
180
+ And set environment variable `HF_HUB_ENABLE_HF_TRANSFER` to `1`:
181
+
182
+ ```shell
183
+ mkdir notux-8x7b-v1-GPTQ
184
+ HF_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download TheBloke/notux-8x7b-v1-GPTQ --local-dir notux-8x7b-v1-GPTQ --local-dir-use-symlinks False
185
+ ```
186
+
187
+ Windows Command Line users: You can set the environment variable by running `set HF_HUB_ENABLE_HF_TRANSFER=1` before the download command.
188
+ </details>
189
+
190
+ ### With `git` (**not** recommended)
191
+
192
+ To clone a specific branch with `git`, use a command like this:
193
+
194
+ ```shell
195
+ git clone --single-branch --branch gptq-4bit-128g-actorder_True https://huggingface.co/TheBloke/notux-8x7b-v1-GPTQ
196
+ ```
197
+
198
+ 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.)
199
+
200
+ <!-- README_GPTQ.md-download-from-branches end -->
201
+ <!-- README_GPTQ.md-text-generation-webui start -->
202
+ ## How to easily download and use this model in [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
203
+
204
+ Please make sure you're using the latest version of [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
205
+
206
+ 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.
207
+
208
+ 1. Click the **Model tab**.
209
+ 2. Under **Download custom model or LoRA**, enter `TheBloke/notux-8x7b-v1-GPTQ`.
210
+
211
+ - To download from a specific branch, enter for example `TheBloke/notux-8x7b-v1-GPTQ:gptq-4bit-128g-actorder_True`
212
+ - see Provided Files above for the list of branches for each option.
213
+
214
+ 3. Click **Download**.
215
+ 4. The model will start downloading. Once it's finished it will say "Done".
216
+ 5. In the top left, click the refresh icon next to **Model**.
217
+ 6. In the **Model** dropdown, choose the model you just downloaded: `notux-8x7b-v1-GPTQ`
218
+ 7. The model will automatically load, and is now ready for use!
219
+ 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.
220
+
221
+ - 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`.
222
+
223
+ 9. Once you're ready, click the **Text Generation** tab and enter a prompt to get started!
224
+
225
+ <!-- README_GPTQ.md-text-generation-webui end -->
226
+
227
+ <!-- README_GPTQ.md-use-from-tgi start -->
228
+ ## Serving this model from Text Generation Inference (TGI)
229
+
230
+ 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`
231
+
232
+ Example Docker parameters:
233
+
234
+ ```shell
235
+ --model-id TheBloke/notux-8x7b-v1-GPTQ --port 3000 --quantize gptq --max-input-length 3696 --max-total-tokens 4096 --max-batch-prefill-tokens 4096
236
+ ```
237
+
238
+ Example Python code for interfacing with TGI (requires huggingface-hub 0.17.0 or later):
239
+
240
+ ```shell
241
+ pip3 install huggingface-hub
242
+ ```
243
+
244
+ ```python
245
+ from huggingface_hub import InferenceClient
246
+
247
+ endpoint_url = "https://your-endpoint-url-here"
248
+
249
+ prompt = "Tell me about AI"
250
+ prompt_template=f'''{prompt}
251
+ '''
252
+
253
+ client = InferenceClient(endpoint_url)
254
+ response = client.text_generation(
255
+ prompt_template,
256
+ max_new_tokens=128,
257
+ do_sample=True,
258
+ temperature=0.7,
259
+ top_p=0.95,
260
+ top_k=40,
261
+ repetition_penalty=1.1
262
+ )
263
+
264
+ print(f"Model output: {response}")
265
+ ```
266
+ <!-- README_GPTQ.md-use-from-tgi end -->
267
+ <!-- README_GPTQ.md-use-from-python start -->
268
+ ## Python code example: inference from this GPTQ model
269
+
270
+ ### Install the necessary packages
271
+
272
+ Requires: Transformers 4.33.0 or later, Optimum 1.12.0 or later, and AutoGPTQ 0.4.2 or later.
273
+
274
+ ```shell
275
+ pip3 install --upgrade transformers optimum
276
+ # If using PyTorch 2.1 + CUDA 12.x:
277
+ pip3 install --upgrade auto-gptq
278
+ # or, if using PyTorch 2.1 + CUDA 11.x:
279
+ pip3 install --upgrade auto-gptq --extra-index-url https://huggingface.github.io/autogptq-index/whl/cu118/
280
+ ```
281
+
282
+ 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:
283
+
284
+ ```shell
285
+ pip3 uninstall -y auto-gptq
286
+ git clone https://github.com/PanQiWei/AutoGPTQ
287
+ cd AutoGPTQ
288
+ git checkout v0.5.1
289
+ pip3 install .
290
+ ```
291
+
292
+ ### Example Python code
293
+
294
+ ```python
295
+ from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
296
+
297
+ model_name_or_path = "TheBloke/notux-8x7b-v1-GPTQ"
298
+ # To use a different branch, change revision
299
+ # For example: revision="gptq-4bit-128g-actorder_True"
300
+ model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
301
+ device_map="auto",
302
+ trust_remote_code=False,
303
+ revision="main")
304
+
305
+ tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
306
+
307
+ prompt = "Write a story about llamas"
308
+ system_message = "You are a story writing assistant"
309
+ prompt_template=f'''{prompt}
310
+ '''
311
+
312
+ print("\n\n*** Generate:")
313
+
314
+ input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
315
+ output = model.generate(inputs=input_ids, temperature=0.7, do_sample=True, top_p=0.95, top_k=40, max_new_tokens=512)
316
+ print(tokenizer.decode(output[0]))
317
+
318
+ # Inference can also be done using transformers' pipeline
319
+
320
+ print("*** Pipeline:")
321
+ pipe = pipeline(
322
+ "text-generation",
323
+ model=model,
324
+ tokenizer=tokenizer,
325
+ max_new_tokens=512,
326
+ do_sample=True,
327
+ temperature=0.7,
328
+ top_p=0.95,
329
+ top_k=40,
330
+ repetition_penalty=1.1
331
+ )
332
+
333
+ print(pipe(prompt_template)[0]['generated_text'])
334
+ ```
335
+ <!-- README_GPTQ.md-use-from-python end -->
336
+
337
+ <!-- README_GPTQ.md-compatibility start -->
338
+ ## Compatibility
339
+
340
+ The files provided are tested to work with Transformers. For non-Mistral models, AutoGPTQ can also be used directly.
341
+
342
+ [ExLlama](https://github.com/turboderp/exllama) is compatible with Llama architecture models (including Mistral, Yi, DeepSeek, SOLAR, etc) in 4-bit. Please see the Provided Files table above for per-file compatibility.
343
+
344
+ For a list of clients/servers, please see "Known compatible clients / servers", above.
345
+ <!-- README_GPTQ.md-compatibility end -->
346
+
347
+ <!-- footer start -->
348
+ <!-- 200823 -->
349
+ ## Discord
350
+
351
+ For further support, and discussions on these models and AI in general, join us at:
352
+
353
+ [TheBloke AI's Discord server](https://discord.gg/theblokeai)
354
+
355
+ ## Thanks, and how to contribute
356
+
357
+ Thanks to the [chirper.ai](https://chirper.ai) team!
358
+
359
+ Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
360
+
361
+ 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.
362
+
363
+ 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.
364
+
365
+ Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
366
+
367
+ * Patreon: https://patreon.com/TheBlokeAI
368
+ * Ko-Fi: https://ko-fi.com/TheBlokeAI
369
+
370
+ **Special thanks to**: Aemon Algiz.
371
+
372
+ **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
373
+
374
+
375
+ Thank you to all my generous patrons and donaters!
376
+
377
+ And thank you again to a16z for their generous grant.
378
+
379
+ <!-- footer end -->
380
+
381
+ # Original model card: Argilla's Notux 8X7B v1
382
+
383
+
384
+ <div align="center">
385
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/60f0608166e5701b80ed3f02/dj-spsk9eXMMXVGxK6jRz.png" alt="A banner representing Notus, the wind god of the south, in a mythical and artistic style. The banner features a strong, swirling breeze, embodying the warm, wet character of the southern wind. Gracefully flowing across the scene are several paper planes, caught in the gentle yet powerful gusts of Notus. The background is a blend of warm colors, symbolizing the heat of the south, with hints of blue and green to represent the moisture carried by this wind. The overall atmosphere is one of dynamic movement and warmth."/>
386
+ </div>
387
+
388
+
389
+ # Model Card for Notux 8x7B-v1
390
+
391
+ This model is a preference-tuned version of [mistralai/Mixtral-8x7B-Instruct-v0.1](https://huggingface.co/mistralai/Mixtral-8x7B-Instruct-v0.1) on the [argilla/ultrafeedback-binarized-preferences-cleaned](https://huggingface.co/datasets/argilla/ultrafeedback-binarized-preferences-cleaned) dataset using DPO (Direct Preference Optimization).
392
+
393
+ As of Dec 26th 2023, it outperforms `Mixtral-8x7B-Instruct-v0.1` and is the top ranked MoE (Mixture of Experts) model on the [Hugging Face Open LLM Leaderboard](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard).
394
+
395
+ This is part of the Notus family of models and experiments, where the Argilla team investigates data-first and preference tuning methods like dDPO (distilled DPO). This model is the result of our first experiment at tuning a MoE model that has already been fine-tuned with DPO (i.e., Mixtral-8x7B-Instruct-v0.1).
396
+
397
+ ## Model Details
398
+
399
+ ### Model Description
400
+
401
+ - **Developed by:** Argilla (based on MistralAI previous efforts)
402
+ - **Shared by:** Argilla
403
+ - **Model type:** Pretrained generative Sparse Mixture of Experts
404
+ - **Language(s) (NLP):** English, Spanish, Italian, German, and French
405
+ - **License:** MIT
406
+ - **Finetuned from model:** [mistralai/Mixtral-8x7B-Instruct-v0.1](https://huggingface.co/mistralai/Mixtral-8x7B-Instruct-v0.1)
407
+
408
+ ### Model Sources
409
+
410
+ - **Repository:** https://github.com/argilla-io/notus
411
+ - **Paper:** N/A
412
+
413
+ ## Training Details
414
+
415
+ ### Training Hardware
416
+
417
+ We used a VM with 8 x H100 80GB hosted in runpod.io for 1 epoch (~10hr).
418
+
419
+ ### Training Data
420
+
421
+ We used a new iteration of the Argilla UltraFeedback preferences dataset named [argilla/ultrafeedback-binarized-preferences-cleaned](https://huggingface.co/datasets/argilla/ultrafeedback-binarized-preferences-cleaned).
422
+
423
+ ## Training procedure
424
+
425
+ ### Training hyperparameters
426
+
427
+ The following hyperparameters were used during training:
428
+ - learning_rate: 5e-07
429
+ - train_batch_size: 8
430
+ - eval_batch_size: 4
431
+ - seed: 42
432
+ - distributed_type: multi-GPU
433
+ - num_devices: 8
434
+ - total_train_batch_size: 64
435
+ - total_eval_batch_size: 32
436
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
437
+ - lr_scheduler_type: linear
438
+ - lr_scheduler_warmup_ratio: 0.1
439
+ - num_epochs: 1
440
+
441
+ ### Training results
442
+
443
+ | Training Loss | Epoch | Step | Validation Loss | Rewards/chosen | Rewards/rejected | Rewards/accuracies | Rewards/margins | Logps/rejected | Logps/chosen | Logits/rejected | Logits/chosen |
444
+ |:-------------:|:-----:|:----:|:---------------:|:--------------:|:----------------:|:------------------:|:---------------:|:--------------:|:------------:|:---------------:|:-------------:|
445
+ | 0.4384 | 0.22 | 200 | 0.4556 | -0.3275 | -1.9448 | 0.7937 | 1.6174 | -405.7994 | -397.8617 | -1.3157 | -1.4511 |
446
+ | 0.4064 | 0.43 | 400 | 0.4286 | -0.2163 | -2.2090 | 0.8254 | 1.9927 | -408.4409 | -396.7496 | -0.7660 | -0.6539 |
447
+ | 0.3952 | 0.65 | 600 | 0.4275 | -0.1311 | -2.1603 | 0.8016 | 2.0291 | -407.9537 | -395.8982 | -0.6783 | -0.7206 |
448
+ | 0.3909 | 0.87 | 800 | 0.4167 | -0.2273 | -2.3146 | 0.8135 | 2.0872 | -409.4968 | -396.8602 | -0.8458 | -0.7738 |
449
+
450
+
451
+ ### Framework versions
452
+
453
+ - Transformers 4.36.0
454
+ - Pytorch 2.1.0+cu118
455
+ - Datasets 2.14.6
456
+ - Tokenizers 0.15.0