TheBloke commited on
Commit
511c46e
1 Parent(s): c9eb12b

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +552 -0
README.md ADDED
@@ -0,0 +1,552 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: DiscoResearch/DiscoLM-70b
3
+ datasets:
4
+ - Open-Orca/SlimOrca-Dedup
5
+ - teknium/openhermes
6
+ - meta-math/MetaMathQA
7
+ - migtissera/Synthia-v1.3
8
+ - THUDM/AgentInstruct
9
+ - LeoLM/German_Songs
10
+ - LeoLM/German_Poems
11
+ - LeoLM/OpenSchnabeltier
12
+ - bjoernp/ultrachat_de
13
+ inference: false
14
+ language:
15
+ - en
16
+ - de
17
+ library_name: transformers
18
+ license: llama2
19
+ model_creator: Disco Research
20
+ model_name: DiscoLM 70B
21
+ model_type: llama
22
+ pipeline_tag: text-generation
23
+ prompt_template: '<|im_start|>system
24
+
25
+ {system_message}<|im_end|>
26
+
27
+ <|im_start|>user
28
+
29
+ {prompt}<|im_end|>
30
+
31
+ <|im_start|>assistant
32
+
33
+ '
34
+ quantized_by: TheBloke
35
+ tags:
36
+ - goliath
37
+ - deutsch
38
+ - llama2
39
+ - discoresearch
40
+ ---
41
+ <!-- markdownlint-disable MD041 -->
42
+
43
+ <!-- header start -->
44
+ <!-- 200823 -->
45
+ <div style="width: auto; margin-left: auto; margin-right: auto">
46
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
47
+ </div>
48
+ <div style="display: flex; justify-content: space-between; width: 100%;">
49
+ <div style="display: flex; flex-direction: column; align-items: flex-start;">
50
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
51
+ </div>
52
+ <div style="display: flex; flex-direction: column; align-items: flex-end;">
53
+ <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>
54
+ </div>
55
+ </div>
56
+ <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>
57
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
58
+ <!-- header end -->
59
+
60
+ # DiscoLM 70B - GPTQ
61
+ - Model creator: [Disco Research](https://huggingface.co/DiscoResearch)
62
+ - Original model: [DiscoLM 70B](https://huggingface.co/DiscoResearch/DiscoLM-70b)
63
+
64
+ <!-- description start -->
65
+ # Description
66
+
67
+ This repo contains GPTQ model files for [Disco Research's DiscoLM 70B](https://huggingface.co/DiscoResearch/DiscoLM-70b).
68
+
69
+ 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.
70
+
71
+ These files were quantised using hardware kindly provided by [Massed Compute](https://massedcompute.com/).
72
+
73
+ <!-- description end -->
74
+ <!-- repositories-available start -->
75
+ ## Repositories available
76
+
77
+ * [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/DiscoLM-70B-AWQ)
78
+ * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/DiscoLM-70B-GPTQ)
79
+ * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/DiscoLM-70B-GGUF)
80
+ * [Disco Research's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/DiscoResearch/DiscoLM-70b)
81
+ <!-- repositories-available end -->
82
+
83
+ <!-- prompt-template start -->
84
+ ## Prompt template: ChatML
85
+
86
+ ```
87
+ <|im_start|>system
88
+ {system_message}<|im_end|>
89
+ <|im_start|>user
90
+ {prompt}<|im_end|>
91
+ <|im_start|>assistant
92
+
93
+ ```
94
+
95
+ <!-- prompt-template end -->
96
+
97
+
98
+
99
+ <!-- README_GPTQ.md-compatible clients start -->
100
+ ## Known compatible clients / servers
101
+
102
+ GPTQ models are currently supported on Linux (NVidia/AMD) and Windows (NVidia only). macOS users: please use GGUF models.
103
+
104
+ These GPTQ models are known to work in the following inference servers/webuis.
105
+
106
+ - [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
107
+ - [KoboldAI United](https://github.com/henk717/koboldai)
108
+ - [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui)
109
+ - [Hugging Face Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference)
110
+
111
+ This may not be a complete list; if you know of others, please let me know!
112
+ <!-- README_GPTQ.md-compatible clients end -->
113
+
114
+ <!-- README_GPTQ.md-provided-files start -->
115
+ ## Provided files, and GPTQ parameters
116
+
117
+ Multiple quantisation parameters are provided, to allow you to choose the best one for your hardware and requirements.
118
+
119
+ Each separate quant is in a different branch. See below for instructions on fetching from different branches.
120
+
121
+ Most GPTQ files are made with AutoGPTQ. Mistral models are currently made with Transformers.
122
+
123
+ <details>
124
+ <summary>Explanation of GPTQ parameters</summary>
125
+
126
+ - Bits: The bit size of the quantised model.
127
+ - GS: GPTQ group size. Higher numbers use less VRAM, but have lower quantisation accuracy. "None" is the lowest possible value.
128
+ - 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.
129
+ - Damp %: A GPTQ parameter that affects how samples are processed for quantisation. 0.01 is default, but 0.1 results in slightly better accuracy.
130
+ - 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).
131
+ - 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.
132
+ - ExLlama Compatibility: Whether this file can be loaded with ExLlama, which currently only supports Llama and Mistral models in 4-bit.
133
+
134
+ </details>
135
+
136
+ | Branch | Bits | GS | Act Order | Damp % | GPTQ Dataset | Seq Len | Size | ExLlama | Desc |
137
+ | ------ | ---- | -- | --------- | ------ | ------------ | ------- | ---- | ------- | ---- |
138
+ | [main](https://huggingface.co/TheBloke/DiscoLM-70B-GPTQ/tree/main) | 4 | None | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 8192 | 35.33 GB | Yes | 4-bit, with Act Order. No group size, to lower VRAM requirements. |
139
+ | [gptq-4bit-128g-actorder_True](https://huggingface.co/TheBloke/DiscoLM-70B-GPTQ/tree/gptq-4bit-128g-actorder_True) | 4 | 128 | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 8192 | 36.65 GB | Yes | 4-bit, with Act Order and group size 128g. Uses even less VRAM than 64g, but with slightly lower accuracy. |
140
+ | [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/DiscoLM-70B-GPTQ/tree/gptq-4bit-32g-actorder_True) | 4 | 32 | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 8192 | 40.66 GB | Yes | 4-bit, with Act Order and group size 32g. Gives highest possible inference quality, with maximum VRAM usage. |
141
+ | [gptq-3bit--1g-actorder_True](https://huggingface.co/TheBloke/DiscoLM-70B-GPTQ/tree/gptq-3bit--1g-actorder_True) | 3 | None | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 8192 | 26.78 GB | No | 3-bit, with Act Order and no group size. Lowest possible VRAM requirements. May be lower quality than 3-bit 128g. |
142
+ | [gptq-3bit-128g-actorder_True](https://huggingface.co/TheBloke/DiscoLM-70B-GPTQ/tree/gptq-3bit-128g-actorder_True) | 3 | 128 | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 8192 | 28.03 GB | No | 3-bit, with group size 128g and act-order. Higher quality than 128g-False. |
143
+ | [gptq-3bit-32g-actorder_True](https://huggingface.co/TheBloke/DiscoLM-70B-GPTQ/tree/gptq-3bit-32g-actorder_True) | 3 | 32 | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 8192 | 31.84 GB | No | 3-bit, with group size 64g and act-order. Highest quality 3-bit option. |
144
+
145
+ <!-- README_GPTQ.md-provided-files end -->
146
+
147
+ <!-- README_GPTQ.md-download-from-branches start -->
148
+ ## How to download, including from branches
149
+
150
+ ### In text-generation-webui
151
+
152
+ To download from the `main` branch, enter `TheBloke/DiscoLM-70B-GPTQ` in the "Download model" box.
153
+
154
+ To download from another branch, add `:branchname` to the end of the download name, eg `TheBloke/DiscoLM-70B-GPTQ:gptq-4bit-128g-actorder_True`
155
+
156
+ ### From the command line
157
+
158
+ I recommend using the `huggingface-hub` Python library:
159
+
160
+ ```shell
161
+ pip3 install huggingface-hub
162
+ ```
163
+
164
+ To download the `main` branch to a folder called `DiscoLM-70B-GPTQ`:
165
+
166
+ ```shell
167
+ mkdir DiscoLM-70B-GPTQ
168
+ huggingface-cli download TheBloke/DiscoLM-70B-GPTQ --local-dir DiscoLM-70B-GPTQ --local-dir-use-symlinks False
169
+ ```
170
+
171
+ To download from a different branch, add the `--revision` parameter:
172
+
173
+ ```shell
174
+ mkdir DiscoLM-70B-GPTQ
175
+ huggingface-cli download TheBloke/DiscoLM-70B-GPTQ --revision gptq-4bit-128g-actorder_True --local-dir DiscoLM-70B-GPTQ --local-dir-use-symlinks False
176
+ ```
177
+
178
+ <details>
179
+ <summary>More advanced huggingface-cli download usage</summary>
180
+
181
+ 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.
182
+
183
+ The cache location can be changed with the `HF_HOME` environment variable, and/or the `--cache-dir` parameter to `huggingface-cli`.
184
+
185
+ 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).
186
+
187
+ To accelerate downloads on fast connections (1Gbit/s or higher), install `hf_transfer`:
188
+
189
+ ```shell
190
+ pip3 install hf_transfer
191
+ ```
192
+
193
+ And set environment variable `HF_HUB_ENABLE_HF_TRANSFER` to `1`:
194
+
195
+ ```shell
196
+ mkdir DiscoLM-70B-GPTQ
197
+ HF_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download TheBloke/DiscoLM-70B-GPTQ --local-dir DiscoLM-70B-GPTQ --local-dir-use-symlinks False
198
+ ```
199
+
200
+ Windows Command Line users: You can set the environment variable by running `set HF_HUB_ENABLE_HF_TRANSFER=1` before the download command.
201
+ </details>
202
+
203
+ ### With `git` (**not** recommended)
204
+
205
+ To clone a specific branch with `git`, use a command like this:
206
+
207
+ ```shell
208
+ git clone --single-branch --branch gptq-4bit-128g-actorder_True https://huggingface.co/TheBloke/DiscoLM-70B-GPTQ
209
+ ```
210
+
211
+ 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.)
212
+
213
+ <!-- README_GPTQ.md-download-from-branches end -->
214
+ <!-- README_GPTQ.md-text-generation-webui start -->
215
+ ## How to easily download and use this model in [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
216
+
217
+ Please make sure you're using the latest version of [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
218
+
219
+ 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.
220
+
221
+ 1. Click the **Model tab**.
222
+ 2. Under **Download custom model or LoRA**, enter `TheBloke/DiscoLM-70B-GPTQ`.
223
+
224
+ - To download from a specific branch, enter for example `TheBloke/DiscoLM-70B-GPTQ:gptq-4bit-128g-actorder_True`
225
+ - see Provided Files above for the list of branches for each option.
226
+
227
+ 3. Click **Download**.
228
+ 4. The model will start downloading. Once it's finished it will say "Done".
229
+ 5. In the top left, click the refresh icon next to **Model**.
230
+ 6. In the **Model** dropdown, choose the model you just downloaded: `DiscoLM-70B-GPTQ`
231
+ 7. The model will automatically load, and is now ready for use!
232
+ 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.
233
+
234
+ - 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`.
235
+
236
+ 9. Once you're ready, click the **Text Generation** tab and enter a prompt to get started!
237
+
238
+ <!-- README_GPTQ.md-text-generation-webui end -->
239
+
240
+ <!-- README_GPTQ.md-use-from-tgi start -->
241
+ ## Serving this model from Text Generation Inference (TGI)
242
+
243
+ 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`
244
+
245
+ Example Docker parameters:
246
+
247
+ ```shell
248
+ --model-id TheBloke/DiscoLM-70B-GPTQ --port 3000 --quantize gptq --max-input-length 3696 --max-total-tokens 4096 --max-batch-prefill-tokens 4096
249
+ ```
250
+
251
+ Example Python code for interfacing with TGI (requires huggingface-hub 0.17.0 or later):
252
+
253
+ ```shell
254
+ pip3 install huggingface-hub
255
+ ```
256
+
257
+ ```python
258
+ from huggingface_hub import InferenceClient
259
+
260
+ endpoint_url = "https://your-endpoint-url-here"
261
+
262
+ prompt = "Tell me about AI"
263
+ prompt_template=f'''<|im_start|>system
264
+ {system_message}<|im_end|>
265
+ <|im_start|>user
266
+ {prompt}<|im_end|>
267
+ <|im_start|>assistant
268
+ '''
269
+
270
+ client = InferenceClient(endpoint_url)
271
+ response = client.text_generation(prompt,
272
+ max_new_tokens=128,
273
+ do_sample=True,
274
+ temperature=0.7,
275
+ top_p=0.95,
276
+ top_k=40,
277
+ repetition_penalty=1.1)
278
+
279
+ print(f"Model output: {response}")
280
+ ```
281
+ <!-- README_GPTQ.md-use-from-tgi end -->
282
+ <!-- README_GPTQ.md-use-from-python start -->
283
+ ## Python code example: inference from this GPTQ model
284
+
285
+ ### Install the necessary packages
286
+
287
+ Requires: Transformers 4.33.0 or later, Optimum 1.12.0 or later, and AutoGPTQ 0.4.2 or later.
288
+
289
+ ```shell
290
+ pip3 install --upgrade transformers optimum
291
+ # If using PyTorch 2.1 + CUDA 12.x:
292
+ pip3 install --upgrade auto-gptq
293
+ # or, if using PyTorch 2.1 + CUDA 11.x:
294
+ pip3 install --upgrade auto-gptq --extra-index-url https://huggingface.github.io/autogptq-index/whl/cu118/
295
+ ```
296
+
297
+ 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:
298
+
299
+ ```shell
300
+ pip3 uninstall -y auto-gptq
301
+ git clone https://github.com/PanQiWei/AutoGPTQ
302
+ cd AutoGPTQ
303
+ git checkout v0.5.1
304
+ pip3 install .
305
+ ```
306
+
307
+ ### Example Python code
308
+
309
+ ```python
310
+ from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
311
+
312
+ model_name_or_path = "TheBloke/DiscoLM-70B-GPTQ"
313
+ # To use a different branch, change revision
314
+ # For example: revision="gptq-4bit-128g-actorder_True"
315
+ model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
316
+ device_map="auto",
317
+ trust_remote_code=False,
318
+ revision="main")
319
+
320
+ tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
321
+
322
+ prompt = "Tell me about AI"
323
+ prompt_template=f'''<|im_start|>system
324
+ {system_message}<|im_end|>
325
+ <|im_start|>user
326
+ {prompt}<|im_end|>
327
+ <|im_start|>assistant
328
+ '''
329
+
330
+ print("\n\n*** Generate:")
331
+
332
+ input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
333
+ output = model.generate(inputs=input_ids, temperature=0.7, do_sample=True, top_p=0.95, top_k=40, max_new_tokens=512)
334
+ print(tokenizer.decode(output[0]))
335
+
336
+ # Inference can also be done using transformers' pipeline
337
+
338
+ print("*** Pipeline:")
339
+ pipe = pipeline(
340
+ "text-generation",
341
+ model=model,
342
+ tokenizer=tokenizer,
343
+ max_new_tokens=512,
344
+ do_sample=True,
345
+ temperature=0.7,
346
+ top_p=0.95,
347
+ top_k=40,
348
+ repetition_penalty=1.1
349
+ )
350
+
351
+ print(pipe(prompt_template)[0]['generated_text'])
352
+ ```
353
+ <!-- README_GPTQ.md-use-from-python end -->
354
+
355
+ <!-- README_GPTQ.md-compatibility start -->
356
+ ## Compatibility
357
+
358
+ The files provided are tested to work with Transformers. For non-Mistral models, AutoGPTQ can also be used directly.
359
+
360
+ [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.
361
+
362
+ For a list of clients/servers, please see "Known compatible clients / servers", above.
363
+ <!-- README_GPTQ.md-compatibility end -->
364
+
365
+ <!-- footer start -->
366
+ <!-- 200823 -->
367
+ ## Discord
368
+
369
+ For further support, and discussions on these models and AI in general, join us at:
370
+
371
+ [TheBloke AI's Discord server](https://discord.gg/theblokeai)
372
+
373
+ ## Thanks, and how to contribute
374
+
375
+ Thanks to the [chirper.ai](https://chirper.ai) team!
376
+
377
+ Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
378
+
379
+ 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.
380
+
381
+ 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.
382
+
383
+ Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
384
+
385
+ * Patreon: https://patreon.com/TheBlokeAI
386
+ * Ko-Fi: https://ko-fi.com/TheBlokeAI
387
+
388
+ **Special thanks to**: Aemon Algiz.
389
+
390
+ **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
391
+
392
+
393
+ Thank you to all my generous patrons and donaters!
394
+
395
+ And thank you again to a16z for their generous grant.
396
+
397
+ <!-- footer end -->
398
+
399
+ # Original model card: Disco Research's DiscoLM 70B
400
+
401
+
402
+
403
+ ![EM Logo](imgs/disco_leo.jpeg)
404
+
405
+ # DiscoLM 70b
406
+
407
+ **DiscoLM 70b** is a 70b model based on [Laion's LeoLM 70b](https://huggingface.co/LeoLM/leo-hessianai-70b) which underwent additional continued pretraining for 65b tokens of German
408
+ text, strengthening it's multilingual capabilities while retaining (and partially improving) English capabilities.
409
+ This was then further finetuned on a combination of some the most popular open-source instruction sets.
410
+ DiscoLM 70b is a [DiscoResearch](https://huggingface.co/DiscoResearch) project and was trained by [Björn Plüster](https://huggingface.co/bjoernp).
411
+
412
+ The model was trained with compute provided by [HessianAI](https://hessian.ai/) - we are very grateful for their support; please check out their wesbite and projects!
413
+
414
+ <img src="https://hessian.ai/wp-content/themes/hessianai/img/hessian-ai-logo.svg" width="120">
415
+
416
+ ## Table of Contents
417
+
418
+ 1. [Download](#download)
419
+ 2. [Benchmarks](#benchmarks)
420
+ 3. [Prompt Format](#prompt-format)
421
+ 4. [Dataset](#dataset)
422
+ 5. [Acknowledgements](#acknowledgements)
423
+ 6. [Contact](#contact)
424
+ 7. [About DiscoResearch](#about-discoresearch)
425
+ 8. [Disclaimer](#disclaimer)
426
+
427
+ ## Download
428
+
429
+ | Huggingface | GPTQ | GGUF | AWQ | *Base Model* |
430
+ |-------|-------|-------|-------|-------|
431
+ | [Link](https://huggingface.co/DiscoResearch/DiscoLM-70b) | soon | soon | soon | [LeoLM 70b](https://huggingface.co/LeoLM/leo-hessianai-70b) |
432
+
433
+ ## Benchmarks
434
+
435
+ ### Hugginface Leaderboard
436
+
437
+ This models is still an early Alpha and we can't guarantee that there isn't any contamination.
438
+ However, the average of **71.24** would earn the #2 spot on the HF leaderboard at the time of writing.
439
+
440
+ | Metric | Value |
441
+ |-----------------------|-------|
442
+ | ARC (25-shot) | 68.77 |
443
+ | HellaSwag (10-shot) | 85.41 |
444
+ | MMLU (5-shot) | 68.64 |
445
+ | TruthfulQA (0-shot) | 57.69 |
446
+ | Winogrande (5-shot) | 83.27 |
447
+ | GSM8k (5-shot) | 63.68 |
448
+ | **Avg.** | **71.24** |
449
+
450
+ We use [Language Model Evaluation Harness](https://github.com/EleutherAI/lm-evaluation-harness) to run the benchmark tests above, using the same version as the HuggingFace LLM Leaderboard.
451
+
452
+ ### FastEval
453
+
454
+ | Metric | Value |
455
+ |-----------------------|-------|
456
+ | GSM8K | 70.6 |
457
+ | Math | 17.8 |
458
+ | BBH | 63.4 |
459
+ | MMLU | 64.7 |
460
+ | **Avg.** | **48.87** |
461
+
462
+ Screenshot of the current (sadly no longer maintained) FastEval CoT leaderboard:
463
+ ![FastEval Leaderboard](imgs/cot_leaderboard.png)
464
+
465
+ ### MTBench
466
+
467
+ ```json
468
+ {
469
+ "first_turn": 7.9,
470
+ "second_turn": 7.0625,
471
+ "categories": {
472
+ "writing": 9.55,
473
+ "roleplay": 8.35,
474
+ "reasoning": 6.15,
475
+ "math": 4.7,
476
+ "coding": 4.8,
477
+ "extraction": 7.35,
478
+ "stem": 9.1,
479
+ "humanities": 9.85
480
+ },
481
+ "average": 7.48125
482
+ }
483
+ ```
484
+ Screenshot of the current FastEval MT Bench leaderboard:
485
+ ![FastEval Leaderboard](imgs/mtbench_leaderboard.png)
486
+ ## Prompt Format
487
+
488
+ This model follows the ChatML format:
489
+
490
+ ```
491
+ <|im_start|>system
492
+ You are DiscoLM, a helpful assistant.
493
+ <|im_end|>
494
+ <|im_start|>user
495
+ Please tell me possible reasons to call a research collective "Disco Research"<|im_end|>
496
+ <|im_start|>assistant
497
+ ```
498
+
499
+ This formatting is also available via a pre-defined Transformers chat template, which means that lists of messages can be formatted for you with the apply_chat_template() method:
500
+
501
+ ```python
502
+ chat = [
503
+ {"role": "system", "content": "You are DiscoLM, a helpful assistant."},
504
+ {"role": "user", "content": "Please tell me possible reasons to call a research collective Disco Research"}
505
+ ]
506
+ tokenizer.apply_chat_template(chat, tokenize=False, add_generation_prompt=True)
507
+ ```
508
+
509
+ If you use `tokenize=True` and `return_tensors="pt"` instead, then you will get a tokenized and formatted conversation ready to pass to `model.generate()`.
510
+
511
+ ## Dataset
512
+
513
+ The dataset curation for DiscoLM 70b followed a "brute force"/"PoC" approach.
514
+
515
+ The following datasets were used for training DiscoLM 70b:
516
+
517
+ * [SlimOrca-Dedup](https://huggingface.co/datasets/Open-Orca/SlimOrca-Dedup)
518
+ * [OpenSchnabeltier](https://huggingface.co/datasets/LeoLM/OpenSchnabeltier) translated to DE from [OpenPlatypus](https://huggingface.co/datasets/garage-bAInd/Open-Platypus)
519
+ * [OpenHermes](https://huggingface.co/datasets/teknium/openhermes)
520
+ * [MetaMathQA](https://huggingface.co/datasets/meta-math/MetaMathQA)
521
+ * [UltraChat DE](https://huggingface.co/datasets/bjoernp/ultrachat_de) translated to DE from [UltraChat](https://huggingface.co/datasets/HuggingFaceH4/ultrachat_200k)
522
+ * [Synthia v.1.3](https://huggingface.co/datasets/migtissera/Synthia-v1.3)
523
+ * [German_Songs](https://huggingface.co/datasets/LeoLM/German_Songs)
524
+ * [German_Poems](https://huggingface.co/datasets/LeoLM/German_Poems)
525
+ * Capybara Dataset by [Nous Research](https://huggingface.co/NousResearch/)
526
+
527
+ Many thanks for all dataset providers/curators!
528
+
529
+ ## Contact
530
+
531
+ Best way to reach us is on our [Discord](https://discord.gg/4pAqJP7W).
532
+
533
+ ## About DiscoResearch
534
+
535
+ DiscoResearch is an aspiring open research community. Disco should be a place where researchers from many communities can come together to combine their expertise and create innovative and groundbreaking LLMs. Come join our Discord, share your opinions and ideas, and advance open LLM research with us!
536
+
537
+ ## Acknowledgements
538
+
539
+ Disco 70b is a [DiscoResearch](https://huggingface.co/DiscoResearch) project and was trained by [Björn Plüster](https://huggingface.co/bjoernp). [Jan Harries](https://huggingface.co/jphme) helped with technical adivce, logistics and the Model Card.
540
+ [AutoMeta](https://huggingface.co/Alignment-Lab-AI) also provided helpful technical advice and rounded up his connections to select a set of high-quality datasets.
541
+ The model was trained with compute provided by [HessianAI](https://hessian.ai/) - many thanks in particular to [Patrick Schramowski](https://huggingface.co/PSaiml) for his support.
542
+
543
+ We are standing on the shoulders of giants; many thanks in no particular order to [Laion](https://laion.ai) for LeoLM 70b
544
+ (especially to [Christoph Schuhmann](https://laion.ai) who got us all connected),
545
+ [TheBloke](https://huggingface.co/TheBloke) for providing quantized versions, [winglian](https://huggingface.co/winglian) for Axolotl which was used to train the model and the SlimOrca dataset, [garage-bAInd](https://huggingface.co/garage-bAInd), [Teknium](https://huggingface.co/teknium), [Migel Tissera](https://huggingface.co/migtissera), [MetaMath](https://huggingface.co/meta-math) for their great datasets (please contact us if we forgot to mention you here!).
546
+
547
+ [<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)
548
+
549
+ ## Disclaimer
550
+
551
+ The license on this model does not constitute legal advice. We are not responsible for the actions of third parties who use this model.
552
+ This model should only be used for research purposes. The original Llama2 license and all restrictions of datasets used to train this model apply.