TheBloke commited on
Commit
d6b73a0
1 Parent(s): a77c9ea

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +539 -0
README.md ADDED
@@ -0,0 +1,539 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 - GGUF
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 GGUF format model files for [Disco Research's DiscoLM 70B](https://huggingface.co/DiscoResearch/DiscoLM-70b).
68
+
69
+ These files were quantised using hardware kindly provided by [Massed Compute](https://massedcompute.com/).
70
+
71
+ <!-- description end -->
72
+ <!-- README_GGUF.md-about-gguf start -->
73
+ ### About GGUF
74
+
75
+ GGUF is a new format introduced by the llama.cpp team on August 21st 2023. It is a replacement for GGML, which is no longer supported by llama.cpp.
76
+
77
+ Here is an incomplete list of clients and libraries that are known to support GGUF:
78
+
79
+ * [llama.cpp](https://github.com/ggerganov/llama.cpp). The source project for GGUF. Offers a CLI and a server option.
80
+ * [text-generation-webui](https://github.com/oobabooga/text-generation-webui), the most widely used web UI, with many features and powerful extensions. Supports GPU acceleration.
81
+ * [KoboldCpp](https://github.com/LostRuins/koboldcpp), a fully featured web UI, with GPU accel across all platforms and GPU architectures. Especially good for story telling.
82
+ * [GPT4All](https://gpt4all.io/index.html), a free and open source local running GUI, supporting Windows, Linux and macOS with full GPU accel.
83
+ * [LM Studio](https://lmstudio.ai/), an easy-to-use and powerful local GUI for Windows and macOS (Silicon), with GPU acceleration. Linux available, in beta as of 27/11/2023.
84
+ * [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui), a great web UI with many interesting and unique features, including a full model library for easy model selection.
85
+ * [Faraday.dev](https://faraday.dev/), an attractive and easy to use character-based chat GUI for Windows and macOS (both Silicon and Intel), with GPU acceleration.
86
+ * [llama-cpp-python](https://github.com/abetlen/llama-cpp-python), a Python library with GPU accel, LangChain support, and OpenAI-compatible API server.
87
+ * [candle](https://github.com/huggingface/candle), a Rust ML framework with a focus on performance, including GPU support, and ease of use.
88
+ * [ctransformers](https://github.com/marella/ctransformers), a Python library with GPU accel, LangChain support, and OpenAI-compatible AI server. Note, as of time of writing (November 27th 2023), ctransformers has not been updated in a long time and does not support many recent models.
89
+
90
+ <!-- README_GGUF.md-about-gguf end -->
91
+ <!-- repositories-available start -->
92
+ ## Repositories available
93
+
94
+ * [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/DiscoLM-70B-AWQ)
95
+ * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/DiscoLM-70B-GPTQ)
96
+ * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/DiscoLM-70B-GGUF)
97
+ * [Disco Research's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/DiscoResearch/DiscoLM-70b)
98
+ <!-- repositories-available end -->
99
+
100
+ <!-- prompt-template start -->
101
+ ## Prompt template: ChatML
102
+
103
+ ```
104
+ <|im_start|>system
105
+ {system_message}<|im_end|>
106
+ <|im_start|>user
107
+ {prompt}<|im_end|>
108
+ <|im_start|>assistant
109
+
110
+ ```
111
+
112
+ <!-- prompt-template end -->
113
+
114
+
115
+ <!-- compatibility_gguf start -->
116
+ ## Compatibility
117
+
118
+ These quantised GGUFv2 files are compatible with llama.cpp from August 27th onwards, as of commit [d0cee0d](https://github.com/ggerganov/llama.cpp/commit/d0cee0d36d5be95a0d9088b674dbb27354107221)
119
+
120
+ They are also compatible with many third party UIs and libraries - please see the list at the top of this README.
121
+
122
+ ## Explanation of quantisation methods
123
+
124
+ <details>
125
+ <summary>Click to see details</summary>
126
+
127
+ The new methods available are:
128
+
129
+ * GGML_TYPE_Q2_K - "type-1" 2-bit quantization in super-blocks containing 16 blocks, each block having 16 weight. Block scales and mins are quantized with 4 bits. This ends up effectively using 2.5625 bits per weight (bpw)
130
+ * GGML_TYPE_Q3_K - "type-0" 3-bit quantization in super-blocks containing 16 blocks, each block having 16 weights. Scales are quantized with 6 bits. This end up using 3.4375 bpw.
131
+ * GGML_TYPE_Q4_K - "type-1" 4-bit quantization in super-blocks containing 8 blocks, each block having 32 weights. Scales and mins are quantized with 6 bits. This ends up using 4.5 bpw.
132
+ * GGML_TYPE_Q5_K - "type-1" 5-bit quantization. Same super-block structure as GGML_TYPE_Q4_K resulting in 5.5 bpw
133
+ * GGML_TYPE_Q6_K - "type-0" 6-bit quantization. Super-blocks with 16 blocks, each block having 16 weights. Scales are quantized with 8 bits. This ends up using 6.5625 bpw
134
+
135
+ Refer to the Provided Files table below to see what files use which methods, and how.
136
+ </details>
137
+ <!-- compatibility_gguf end -->
138
+
139
+ <!-- README_GGUF.md-provided-files start -->
140
+ ## Provided files
141
+
142
+ | Name | Quant method | Bits | Size | Max RAM required | Use case |
143
+ | ---- | ---- | ---- | ---- | ---- | ----- |
144
+ | [discolm-70b.Q2_K.gguf](https://huggingface.co/TheBloke/DiscoLM-70B-GGUF/blob/main/discolm-70b.Q2_K.gguf) | Q2_K | 2 | 29.28 GB| 31.78 GB | smallest, significant quality loss - not recommended for most purposes |
145
+ | [discolm-70b.Q3_K_S.gguf](https://huggingface.co/TheBloke/DiscoLM-70B-GGUF/blob/main/discolm-70b.Q3_K_S.gguf) | Q3_K_S | 3 | 29.92 GB| 32.42 GB | very small, high quality loss |
146
+ | [discolm-70b.Q3_K_M.gguf](https://huggingface.co/TheBloke/DiscoLM-70B-GGUF/blob/main/discolm-70b.Q3_K_M.gguf) | Q3_K_M | 3 | 33.19 GB| 35.69 GB | very small, high quality loss |
147
+ | [discolm-70b.Q3_K_L.gguf](https://huggingface.co/TheBloke/DiscoLM-70B-GGUF/blob/main/discolm-70b.Q3_K_L.gguf) | Q3_K_L | 3 | 36.15 GB| 38.65 GB | small, substantial quality loss |
148
+ | [discolm-70b.Q4_0.gguf](https://huggingface.co/TheBloke/DiscoLM-70B-GGUF/blob/main/discolm-70b.Q4_0.gguf) | Q4_0 | 4 | 38.87 GB| 41.37 GB | legacy; small, very high quality loss - prefer using Q3_K_M |
149
+ | [discolm-70b.Q4_K_S.gguf](https://huggingface.co/TheBloke/DiscoLM-70B-GGUF/blob/main/discolm-70b.Q4_K_S.gguf) | Q4_K_S | 4 | 39.07 GB| 41.57 GB | small, greater quality loss |
150
+ | [discolm-70b.Q4_K_M.gguf](https://huggingface.co/TheBloke/DiscoLM-70B-GGUF/blob/main/discolm-70b.Q4_K_M.gguf) | Q4_K_M | 4 | 41.42 GB| 43.92 GB | medium, balanced quality - recommended |
151
+ | [discolm-70b.Q5_0.gguf](https://huggingface.co/TheBloke/DiscoLM-70B-GGUF/blob/main/discolm-70b.Q5_0.gguf) | Q5_0 | 5 | 47.46 GB| 49.96 GB | legacy; medium, balanced quality - prefer using Q4_K_M |
152
+ | [discolm-70b.Q5_K_S.gguf](https://huggingface.co/TheBloke/DiscoLM-70B-GGUF/blob/main/discolm-70b.Q5_K_S.gguf) | Q5_K_S | 5 | 47.46 GB| 49.96 GB | large, low quality loss - recommended |
153
+ | [discolm-70b.Q5_K_M.gguf](https://huggingface.co/TheBloke/DiscoLM-70B-GGUF/blob/main/discolm-70b.Q5_K_M.gguf) | Q5_K_M | 5 | 48.75 GB| 51.25 GB | large, very low quality loss - recommended |
154
+ | discolm-70b.Q6_K.gguf | Q6_K | 6 | 56.59 GB| 59.09 GB | very large, extremely low quality loss |
155
+ | discolm-70b.Q8_0.gguf | Q8_0 | 8 | 73.29 GB| 75.79 GB | very large, extremely low quality loss - not recommended |
156
+
157
+ **Note**: the above RAM figures assume no GPU offloading. If layers are offloaded to the GPU, this will reduce RAM usage and use VRAM instead.
158
+
159
+ ### Q6_K and Q8_0 files are split and require joining
160
+
161
+ **Note:** HF does not support uploading files larger than 50GB. Therefore I have uploaded the Q6_K and Q8_0 files as split files.
162
+
163
+ <details>
164
+ <summary>Click for instructions regarding Q6_K and Q8_0 files</summary>
165
+
166
+ ### q6_K
167
+ Please download:
168
+ * `discolm-70b.Q6_K.gguf-split-a`
169
+ * `discolm-70b.Q6_K.gguf-split-b`
170
+
171
+ ### q8_0
172
+ Please download:
173
+ * `discolm-70b.Q8_0.gguf-split-a`
174
+ * `discolm-70b.Q8_0.gguf-split-b`
175
+
176
+ To join the files, do the following:
177
+
178
+ Linux and macOS:
179
+ ```
180
+ cat discolm-70b.Q6_K.gguf-split-* > discolm-70b.Q6_K.gguf && rm discolm-70b.Q6_K.gguf-split-*
181
+ cat discolm-70b.Q8_0.gguf-split-* > discolm-70b.Q8_0.gguf && rm discolm-70b.Q8_0.gguf-split-*
182
+ ```
183
+ Windows command line:
184
+ ```
185
+ COPY /B discolm-70b.Q6_K.gguf-split-a + discolm-70b.Q6_K.gguf-split-b discolm-70b.Q6_K.gguf
186
+ del discolm-70b.Q6_K.gguf-split-a discolm-70b.Q6_K.gguf-split-b
187
+
188
+ COPY /B discolm-70b.Q8_0.gguf-split-a + discolm-70b.Q8_0.gguf-split-b discolm-70b.Q8_0.gguf
189
+ del discolm-70b.Q8_0.gguf-split-a discolm-70b.Q8_0.gguf-split-b
190
+ ```
191
+
192
+ </details>
193
+ <!-- README_GGUF.md-provided-files end -->
194
+
195
+ <!-- README_GGUF.md-how-to-download start -->
196
+ ## How to download GGUF files
197
+
198
+ **Note for manual downloaders:** You almost never want to clone the entire repo! Multiple different quantisation formats are provided, and most users only want to pick and download a single file.
199
+
200
+ The following clients/libraries will automatically download models for you, providing a list of available models to choose from:
201
+
202
+ * LM Studio
203
+ * LoLLMS Web UI
204
+ * Faraday.dev
205
+
206
+ ### In `text-generation-webui`
207
+
208
+ Under Download Model, you can enter the model repo: TheBloke/DiscoLM-70B-GGUF and below it, a specific filename to download, such as: discolm-70b.Q4_K_M.gguf.
209
+
210
+ Then click Download.
211
+
212
+ ### On the command line, including multiple files at once
213
+
214
+ I recommend using the `huggingface-hub` Python library:
215
+
216
+ ```shell
217
+ pip3 install huggingface-hub
218
+ ```
219
+
220
+ Then you can download any individual model file to the current directory, at high speed, with a command like this:
221
+
222
+ ```shell
223
+ huggingface-cli download TheBloke/DiscoLM-70B-GGUF discolm-70b.Q4_K_M.gguf --local-dir . --local-dir-use-symlinks False
224
+ ```
225
+
226
+ <details>
227
+ <summary>More advanced huggingface-cli download usage (click to read)</summary>
228
+
229
+ You can also download multiple files at once with a pattern:
230
+
231
+ ```shell
232
+ huggingface-cli download TheBloke/DiscoLM-70B-GGUF --local-dir . --local-dir-use-symlinks False --include='*Q4_K*gguf'
233
+ ```
234
+
235
+ 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).
236
+
237
+ To accelerate downloads on fast connections (1Gbit/s or higher), install `hf_transfer`:
238
+
239
+ ```shell
240
+ pip3 install hf_transfer
241
+ ```
242
+
243
+ And set environment variable `HF_HUB_ENABLE_HF_TRANSFER` to `1`:
244
+
245
+ ```shell
246
+ HF_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download TheBloke/DiscoLM-70B-GGUF discolm-70b.Q4_K_M.gguf --local-dir . --local-dir-use-symlinks False
247
+ ```
248
+
249
+ Windows Command Line users: You can set the environment variable by running `set HF_HUB_ENABLE_HF_TRANSFER=1` before the download command.
250
+ </details>
251
+ <!-- README_GGUF.md-how-to-download end -->
252
+
253
+ <!-- README_GGUF.md-how-to-run start -->
254
+ ## Example `llama.cpp` command
255
+
256
+ Make sure you are using `llama.cpp` from commit [d0cee0d](https://github.com/ggerganov/llama.cpp/commit/d0cee0d36d5be95a0d9088b674dbb27354107221) or later.
257
+
258
+ ```shell
259
+ ./main -ngl 35 -m discolm-70b.Q4_K_M.gguf --color -c 8192 --temp 0.7 --repeat_penalty 1.1 -n -1 -p "<|im_start|>system\n{system_message}<|im_end|>\n<|im_start|>user\n{prompt}<|im_end|>\n<|im_start|>assistant"
260
+ ```
261
+
262
+ Change `-ngl 32` to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.
263
+
264
+ Change `-c 8192` to the desired sequence length. For extended sequence models - eg 8K, 16K, 32K - the necessary RoPE scaling parameters are read from the GGUF file and set by llama.cpp automatically. Note that longer sequence lengths require much more resources, so you may need to reduce this value.
265
+
266
+ If you want to have a chat-style conversation, replace the `-p <PROMPT>` argument with `-i -ins`
267
+
268
+ For other parameters and how to use them, please refer to [the llama.cpp documentation](https://github.com/ggerganov/llama.cpp/blob/master/examples/main/README.md)
269
+
270
+ ## How to run in `text-generation-webui`
271
+
272
+ Further instructions can be found in the text-generation-webui documentation, here: [text-generation-webui/docs/04 ‐ Model Tab.md](https://github.com/oobabooga/text-generation-webui/blob/main/docs/04%20%E2%80%90%20Model%20Tab.md#llamacpp).
273
+
274
+ ## How to run from Python code
275
+
276
+ You can use GGUF models from Python using the [llama-cpp-python](https://github.com/abetlen/llama-cpp-python) or [ctransformers](https://github.com/marella/ctransformers) libraries. Note that at the time of writing (Nov 27th 2023), ctransformers has not been updated for some time and is not compatible with some recent models. Therefore I recommend you use llama-cpp-python.
277
+
278
+ ### How to load this model in Python code, using llama-cpp-python
279
+
280
+ For full documentation, please see: [llama-cpp-python docs](https://abetlen.github.io/llama-cpp-python/).
281
+
282
+ #### First install the package
283
+
284
+ Run one of the following commands, according to your system:
285
+
286
+ ```shell
287
+ # Base ctransformers with no GPU acceleration
288
+ pip install llama-cpp-python
289
+ # With NVidia CUDA acceleration
290
+ CMAKE_ARGS="-DLLAMA_CUBLAS=on" pip install llama-cpp-python
291
+ # Or with OpenBLAS acceleration
292
+ CMAKE_ARGS="-DLLAMA_BLAS=ON -DLLAMA_BLAS_VENDOR=OpenBLAS" pip install llama-cpp-python
293
+ # Or with CLBLast acceleration
294
+ CMAKE_ARGS="-DLLAMA_CLBLAST=on" pip install llama-cpp-python
295
+ # Or with AMD ROCm GPU acceleration (Linux only)
296
+ CMAKE_ARGS="-DLLAMA_HIPBLAS=on" pip install llama-cpp-python
297
+ # Or with Metal GPU acceleration for macOS systems only
298
+ CMAKE_ARGS="-DLLAMA_METAL=on" pip install llama-cpp-python
299
+
300
+ # In windows, to set the variables CMAKE_ARGS in PowerShell, follow this format; eg for NVidia CUDA:
301
+ $env:CMAKE_ARGS = "-DLLAMA_OPENBLAS=on"
302
+ pip install llama-cpp-python
303
+ ```
304
+
305
+ #### Simple llama-cpp-python example code
306
+
307
+ ```python
308
+ from llama_cpp import Llama
309
+
310
+ # Set gpu_layers to the number of layers to offload to GPU. Set to 0 if no GPU acceleration is available on your system.
311
+ llm = Llama(
312
+ model_path="./discolm-70b.Q4_K_M.gguf", # Download the model file first
313
+ n_ctx=8192, # The max sequence length to use - note that longer sequence lengths require much more resources
314
+ n_threads=8, # The number of CPU threads to use, tailor to your system and the resulting performance
315
+ n_gpu_layers=35 # The number of layers to offload to GPU, if you have GPU acceleration available
316
+ )
317
+
318
+ # Simple inference example
319
+ output = llm(
320
+ "<|im_start|>system\n{system_message}<|im_end|>\n<|im_start|>user\n{prompt}<|im_end|>\n<|im_start|>assistant", # Prompt
321
+ max_tokens=512, # Generate up to 512 tokens
322
+ stop=["</s>"], # Example stop token - not necessarily correct for this specific model! Please check before using.
323
+ echo=True # Whether to echo the prompt
324
+ )
325
+
326
+ # Chat Completion API
327
+
328
+ llm = Llama(model_path="./discolm-70b.Q4_K_M.gguf", chat_format="llama-2") # Set chat_format according to the model you are using
329
+ llm.create_chat_completion(
330
+ messages = [
331
+ {"role": "system", "content": "You are a story writing assistant."},
332
+ {
333
+ "role": "user",
334
+ "content": "Write a story about llamas."
335
+ }
336
+ ]
337
+ )
338
+ ```
339
+
340
+ ## How to use with LangChain
341
+
342
+ Here are guides on using llama-cpp-python and ctransformers with LangChain:
343
+
344
+ * [LangChain + llama-cpp-python](https://python.langchain.com/docs/integrations/llms/llamacpp)
345
+ * [LangChain + ctransformers](https://python.langchain.com/docs/integrations/providers/ctransformers)
346
+
347
+ <!-- README_GGUF.md-how-to-run end -->
348
+
349
+ <!-- footer start -->
350
+ <!-- 200823 -->
351
+ ## Discord
352
+
353
+ For further support, and discussions on these models and AI in general, join us at:
354
+
355
+ [TheBloke AI's Discord server](https://discord.gg/theblokeai)
356
+
357
+ ## Thanks, and how to contribute
358
+
359
+ Thanks to the [chirper.ai](https://chirper.ai) team!
360
+
361
+ Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
362
+
363
+ 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.
364
+
365
+ 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.
366
+
367
+ Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
368
+
369
+ * Patreon: https://patreon.com/TheBlokeAI
370
+ * Ko-Fi: https://ko-fi.com/TheBlokeAI
371
+
372
+ **Special thanks to**: Aemon Algiz.
373
+
374
+ **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
375
+
376
+
377
+ Thank you to all my generous patrons and donaters!
378
+
379
+ And thank you again to a16z for their generous grant.
380
+
381
+ <!-- footer end -->
382
+
383
+ <!-- original-model-card start -->
384
+ # Original model card: Disco Research's DiscoLM 70B
385
+
386
+
387
+
388
+ ![EM Logo](imgs/disco_leo.jpeg)
389
+
390
+ # DiscoLM 70b
391
+
392
+ **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
393
+ text, strengthening it's multilingual capabilities while retaining (and partially improving) English capabilities.
394
+ This was then further finetuned on a combination of some the most popular open-source instruction sets.
395
+ DiscoLM 70b is a [DiscoResearch](https://huggingface.co/DiscoResearch) project and was trained by [Björn Plüster](https://huggingface.co/bjoernp).
396
+
397
+ 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!
398
+
399
+ <img src="https://hessian.ai/wp-content/themes/hessianai/img/hessian-ai-logo.svg" width="120">
400
+
401
+ ## Table of Contents
402
+
403
+ 1. [Download](#download)
404
+ 2. [Benchmarks](#benchmarks)
405
+ 3. [Prompt Format](#prompt-format)
406
+ 4. [Dataset](#dataset)
407
+ 5. [Acknowledgements](#acknowledgements)
408
+ 6. [Contact](#contact)
409
+ 7. [About DiscoResearch](#about-discoresearch)
410
+ 8. [Disclaimer](#disclaimer)
411
+
412
+ ## Download
413
+
414
+ | Huggingface | GPTQ | GGUF | AWQ | *Base Model* |
415
+ |-------|-------|-------|-------|-------|
416
+ | [Link](https://huggingface.co/DiscoResearch/DiscoLM-70b) | soon | soon | soon | [LeoLM 70b](https://huggingface.co/LeoLM/leo-hessianai-70b) |
417
+
418
+ ## Benchmarks
419
+
420
+ ### Hugginface Leaderboard
421
+
422
+ This models is still an early Alpha and we can't guarantee that there isn't any contamination.
423
+ However, the average of **71.24** would earn the #2 spot on the HF leaderboard at the time of writing.
424
+
425
+ | Metric | Value |
426
+ |-----------------------|-------|
427
+ | ARC (25-shot) | 68.77 |
428
+ | HellaSwag (10-shot) | 85.41 |
429
+ | MMLU (5-shot) | 68.64 |
430
+ | TruthfulQA (0-shot) | 57.69 |
431
+ | Winogrande (5-shot) | 83.27 |
432
+ | GSM8k (5-shot) | 63.68 |
433
+ | **Avg.** | **71.24** |
434
+
435
+ 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.
436
+
437
+ ### FastEval
438
+
439
+ | Metric | Value |
440
+ |-----------------------|-------|
441
+ | GSM8K | 70.6 |
442
+ | Math | 17.8 |
443
+ | BBH | 63.4 |
444
+ | MMLU | 64.7 |
445
+ | **Avg.** | **48.87** |
446
+
447
+ Screenshot of the current (sadly no longer maintained) FastEval CoT leaderboard:
448
+ ![FastEval Leaderboard](imgs/cot_leaderboard.png)
449
+
450
+ ### MTBench
451
+
452
+ ```json
453
+ {
454
+ "first_turn": 7.9,
455
+ "second_turn": 7.0625,
456
+ "categories": {
457
+ "writing": 9.55,
458
+ "roleplay": 8.35,
459
+ "reasoning": 6.15,
460
+ "math": 4.7,
461
+ "coding": 4.8,
462
+ "extraction": 7.35,
463
+ "stem": 9.1,
464
+ "humanities": 9.85
465
+ },
466
+ "average": 7.48125
467
+ }
468
+ ```
469
+ Screenshot of the current FastEval MT Bench leaderboard:
470
+ ![FastEval Leaderboard](imgs/mtbench_leaderboard.png)
471
+ ## Prompt Format
472
+
473
+ This model follows the ChatML format:
474
+
475
+ ```
476
+ <|im_start|>system
477
+ You are DiscoLM, a helpful assistant.
478
+ <|im_end|>
479
+ <|im_start|>user
480
+ Please tell me possible reasons to call a research collective "Disco Research"<|im_end|>
481
+ <|im_start|>assistant
482
+ ```
483
+
484
+ 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:
485
+
486
+ ```python
487
+ chat = [
488
+ {"role": "system", "content": "You are DiscoLM, a helpful assistant."},
489
+ {"role": "user", "content": "Please tell me possible reasons to call a research collective Disco Research"}
490
+ ]
491
+ tokenizer.apply_chat_template(chat, tokenize=False, add_generation_prompt=True)
492
+ ```
493
+
494
+ 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()`.
495
+
496
+ ## Dataset
497
+
498
+ The dataset curation for DiscoLM 70b followed a "brute force"/"PoC" approach.
499
+
500
+ The following datasets were used for training DiscoLM 70b:
501
+
502
+ * [SlimOrca-Dedup](https://huggingface.co/datasets/Open-Orca/SlimOrca-Dedup)
503
+ * [OpenSchnabeltier](https://huggingface.co/datasets/LeoLM/OpenSchnabeltier) translated to DE from [OpenPlatypus](https://huggingface.co/datasets/garage-bAInd/Open-Platypus)
504
+ * [OpenHermes](https://huggingface.co/datasets/teknium/openhermes)
505
+ * [MetaMathQA](https://huggingface.co/datasets/meta-math/MetaMathQA)
506
+ * [UltraChat DE](https://huggingface.co/datasets/bjoernp/ultrachat_de) translated to DE from [UltraChat](https://huggingface.co/datasets/HuggingFaceH4/ultrachat_200k)
507
+ * [Synthia v.1.3](https://huggingface.co/datasets/migtissera/Synthia-v1.3)
508
+ * [German_Songs](https://huggingface.co/datasets/LeoLM/German_Songs)
509
+ * [German_Poems](https://huggingface.co/datasets/LeoLM/German_Poems)
510
+ * Capybara Dataset by [Nous Research](https://huggingface.co/NousResearch/)
511
+
512
+ Many thanks for all dataset providers/curators!
513
+
514
+ ## Contact
515
+
516
+ Best way to reach us is on our [Discord](https://discord.gg/4pAqJP7W).
517
+
518
+ ## About DiscoResearch
519
+
520
+ 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!
521
+
522
+ ## Acknowledgements
523
+
524
+ 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.
525
+ [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.
526
+ 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.
527
+
528
+ We are standing on the shoulders of giants; many thanks in no particular order to [Laion](https://laion.ai) for LeoLM 70b
529
+ (especially to [Christoph Schuhmann](https://laion.ai) who got us all connected),
530
+ [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!).
531
+
532
+ [<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)
533
+
534
+ ## Disclaimer
535
+
536
+ The license on this model does not constitute legal advice. We are not responsible for the actions of third parties who use this model.
537
+ This model should only be used for research purposes. The original Llama2 license and all restrictions of datasets used to train this model apply.
538
+
539
+ <!-- original-model-card end -->