TheBloke commited on
Commit
9699aab
1 Parent(s): c175800

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +504 -0
README.md ADDED
@@ -0,0 +1,504 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: VAGOsolutions/SauerkrautLM-SOLAR-Instruct
3
+ datasets:
4
+ - argilla/distilabel-math-preference-dpo
5
+ inference: false
6
+ language:
7
+ - en
8
+ - de
9
+ library_name: transformers
10
+ license: cc-by-nc-4.0
11
+ model_creator: VAGO solutions
12
+ model_name: SauerkrautLM SOLAR Instruct
13
+ model_type: solar
14
+ pipeline_tag: text-generation
15
+ prompt_template: '### User:
16
+
17
+ {prompt}
18
+
19
+
20
+ ### Assistant:
21
+
22
+ '
23
+ quantized_by: TheBloke
24
+ tags:
25
+ - finetune
26
+ - dpo
27
+ - Instruct
28
+ - augmentation
29
+ - german
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
+ # SauerkrautLM SOLAR Instruct - GPTQ
51
+ - Model creator: [VAGO solutions](https://huggingface.co/VAGOsolutions)
52
+ - Original model: [SauerkrautLM SOLAR Instruct](https://huggingface.co/VAGOsolutions/SauerkrautLM-SOLAR-Instruct)
53
+
54
+ <!-- description start -->
55
+ # Description
56
+
57
+ This repo contains GPTQ model files for [VAGO solutions's SauerkrautLM SOLAR Instruct](https://huggingface.co/VAGOsolutions/SauerkrautLM-SOLAR-Instruct).
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/SauerkrautLM-SOLAR-Instruct-AWQ)
68
+ * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/SauerkrautLM-SOLAR-Instruct-GPTQ)
69
+ * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/SauerkrautLM-SOLAR-Instruct-GGUF)
70
+ * [VAGO solutions's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/VAGOsolutions/SauerkrautLM-SOLAR-Instruct)
71
+ <!-- repositories-available end -->
72
+
73
+ <!-- prompt-template start -->
74
+ ## Prompt template: User-Assistant-Newlines
75
+
76
+ ```
77
+ ### User:
78
+ {prompt}
79
+
80
+ ### Assistant:
81
+
82
+ ```
83
+
84
+ <!-- prompt-template end -->
85
+
86
+
87
+
88
+ <!-- README_GPTQ.md-compatible clients start -->
89
+ ## Known compatible clients / servers
90
+
91
+ GPTQ models are currently supported on Linux (NVidia/AMD) and Windows (NVidia only). macOS users: please use GGUF models.
92
+
93
+ These GPTQ models are known to work in the following inference servers/webuis.
94
+
95
+ - [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
96
+ - [KoboldAI United](https://github.com/henk717/koboldai)
97
+ - [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui)
98
+ - [Hugging Face Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference)
99
+
100
+ This may not be a complete list; if you know of others, please let me know!
101
+ <!-- README_GPTQ.md-compatible clients end -->
102
+
103
+ <!-- README_GPTQ.md-provided-files start -->
104
+ ## Provided files, and GPTQ parameters
105
+
106
+ Multiple quantisation parameters are provided, to allow you to choose the best one for your hardware and requirements.
107
+
108
+ Each separate quant is in a different branch. See below for instructions on fetching from different branches.
109
+
110
+ Most GPTQ files are made with AutoGPTQ. Mistral models are currently made with Transformers.
111
+
112
+ <details>
113
+ <summary>Explanation of GPTQ parameters</summary>
114
+
115
+ - Bits: The bit size of the quantised model.
116
+ - GS: GPTQ group size. Higher numbers use less VRAM, but have lower quantisation accuracy. "None" is the lowest possible value.
117
+ - 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.
118
+ - Damp %: A GPTQ parameter that affects how samples are processed for quantisation. 0.01 is default, but 0.1 results in slightly better accuracy.
119
+ - 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).
120
+ - 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.
121
+ - ExLlama Compatibility: Whether this file can be loaded with ExLlama, which currently only supports Llama and Mistral models in 4-bit.
122
+
123
+ </details>
124
+
125
+ | Branch | Bits | GS | Act Order | Damp % | GPTQ Dataset | Seq Len | Size | ExLlama | Desc |
126
+ | ------ | ---- | -- | --------- | ------ | ------------ | ------- | ---- | ------- | ---- |
127
+ | [main](https://huggingface.co/TheBloke/SauerkrautLM-SOLAR-Instruct-GPTQ/tree/main) | 4 | 128 | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 8192 | 5.98 GB | Yes | 4-bit, with Act Order and group size 128g. Uses even less VRAM than 64g, but with slightly lower accuracy. |
128
+ | [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/SauerkrautLM-SOLAR-Instruct-GPTQ/tree/gptq-4bit-32g-actorder_True) | 4 | 32 | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 8192 | 6.59 GB | Yes | 4-bit, with Act Order and group size 32g. Gives highest possible inference quality, with maximum VRAM usage. |
129
+ | [gptq-8bit--1g-actorder_True](https://huggingface.co/TheBloke/SauerkrautLM-SOLAR-Instruct-GPTQ/tree/gptq-8bit--1g-actorder_True) | 8 | None | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 8192 | 11.01 GB | No | 8-bit, with Act Order. No group size, to lower VRAM requirements. |
130
+ | [gptq-8bit-128g-actorder_True](https://huggingface.co/TheBloke/SauerkrautLM-SOLAR-Instruct-GPTQ/tree/gptq-8bit-128g-actorder_True) | 8 | 128 | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 8192 | 11.25 GB | No | 8-bit, with group size 128g for higher inference quality and with Act Order for even higher accuracy. |
131
+ | [gptq-8bit-32g-actorder_True](https://huggingface.co/TheBloke/SauerkrautLM-SOLAR-Instruct-GPTQ/tree/gptq-8bit-32g-actorder_True) | 8 | 32 | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 8192 | 11.99 GB | No | 8-bit, with group size 32g and Act Order for maximum inference quality. |
132
+ | [gptq-4bit-64g-actorder_True](https://huggingface.co/TheBloke/SauerkrautLM-SOLAR-Instruct-GPTQ/tree/gptq-4bit-64g-actorder_True) | 4 | 64 | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 8192 | 6.18 GB | Yes | 4-bit, with Act Order and group size 64g. Uses less VRAM than 32g, but with slightly lower accuracy. |
133
+
134
+ <!-- README_GPTQ.md-provided-files end -->
135
+
136
+ <!-- README_GPTQ.md-download-from-branches start -->
137
+ ## How to download, including from branches
138
+
139
+ ### In text-generation-webui
140
+
141
+ To download from the `main` branch, enter `TheBloke/SauerkrautLM-SOLAR-Instruct-GPTQ` in the "Download model" box.
142
+
143
+ To download from another branch, add `:branchname` to the end of the download name, eg `TheBloke/SauerkrautLM-SOLAR-Instruct-GPTQ:gptq-4bit-32g-actorder_True`
144
+
145
+ ### From the command line
146
+
147
+ I recommend using the `huggingface-hub` Python library:
148
+
149
+ ```shell
150
+ pip3 install huggingface-hub
151
+ ```
152
+
153
+ To download the `main` branch to a folder called `SauerkrautLM-SOLAR-Instruct-GPTQ`:
154
+
155
+ ```shell
156
+ mkdir SauerkrautLM-SOLAR-Instruct-GPTQ
157
+ huggingface-cli download TheBloke/SauerkrautLM-SOLAR-Instruct-GPTQ --local-dir SauerkrautLM-SOLAR-Instruct-GPTQ --local-dir-use-symlinks False
158
+ ```
159
+
160
+ To download from a different branch, add the `--revision` parameter:
161
+
162
+ ```shell
163
+ mkdir SauerkrautLM-SOLAR-Instruct-GPTQ
164
+ huggingface-cli download TheBloke/SauerkrautLM-SOLAR-Instruct-GPTQ --revision gptq-4bit-32g-actorder_True --local-dir SauerkrautLM-SOLAR-Instruct-GPTQ --local-dir-use-symlinks False
165
+ ```
166
+
167
+ <details>
168
+ <summary>More advanced huggingface-cli download usage</summary>
169
+
170
+ 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.
171
+
172
+ The cache location can be changed with the `HF_HOME` environment variable, and/or the `--cache-dir` parameter to `huggingface-cli`.
173
+
174
+ 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).
175
+
176
+ To accelerate downloads on fast connections (1Gbit/s or higher), install `hf_transfer`:
177
+
178
+ ```shell
179
+ pip3 install hf_transfer
180
+ ```
181
+
182
+ And set environment variable `HF_HUB_ENABLE_HF_TRANSFER` to `1`:
183
+
184
+ ```shell
185
+ mkdir SauerkrautLM-SOLAR-Instruct-GPTQ
186
+ HF_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download TheBloke/SauerkrautLM-SOLAR-Instruct-GPTQ --local-dir SauerkrautLM-SOLAR-Instruct-GPTQ --local-dir-use-symlinks False
187
+ ```
188
+
189
+ Windows Command Line users: You can set the environment variable by running `set HF_HUB_ENABLE_HF_TRANSFER=1` before the download command.
190
+ </details>
191
+
192
+ ### With `git` (**not** recommended)
193
+
194
+ To clone a specific branch with `git`, use a command like this:
195
+
196
+ ```shell
197
+ git clone --single-branch --branch gptq-4bit-32g-actorder_True https://huggingface.co/TheBloke/SauerkrautLM-SOLAR-Instruct-GPTQ
198
+ ```
199
+
200
+ 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.)
201
+
202
+ <!-- README_GPTQ.md-download-from-branches end -->
203
+ <!-- README_GPTQ.md-text-generation-webui start -->
204
+ ## How to easily download and use this model in [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
205
+
206
+ Please make sure you're using the latest version of [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
207
+
208
+ 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.
209
+
210
+ 1. Click the **Model tab**.
211
+ 2. Under **Download custom model or LoRA**, enter `TheBloke/SauerkrautLM-SOLAR-Instruct-GPTQ`.
212
+
213
+ - To download from a specific branch, enter for example `TheBloke/SauerkrautLM-SOLAR-Instruct-GPTQ:gptq-4bit-32g-actorder_True`
214
+ - see Provided Files above for the list of branches for each option.
215
+
216
+ 3. Click **Download**.
217
+ 4. The model will start downloading. Once it's finished it will say "Done".
218
+ 5. In the top left, click the refresh icon next to **Model**.
219
+ 6. In the **Model** dropdown, choose the model you just downloaded: `SauerkrautLM-SOLAR-Instruct-GPTQ`
220
+ 7. The model will automatically load, and is now ready for use!
221
+ 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.
222
+
223
+ - 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`.
224
+
225
+ 9. Once you're ready, click the **Text Generation** tab and enter a prompt to get started!
226
+
227
+ <!-- README_GPTQ.md-text-generation-webui end -->
228
+
229
+ <!-- README_GPTQ.md-use-from-tgi start -->
230
+ ## Serving this model from Text Generation Inference (TGI)
231
+
232
+ 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`
233
+
234
+ Example Docker parameters:
235
+
236
+ ```shell
237
+ --model-id TheBloke/SauerkrautLM-SOLAR-Instruct-GPTQ --port 3000 --quantize gptq --max-input-length 3696 --max-total-tokens 4096 --max-batch-prefill-tokens 4096
238
+ ```
239
+
240
+ Example Python code for interfacing with TGI (requires huggingface-hub 0.17.0 or later):
241
+
242
+ ```shell
243
+ pip3 install huggingface-hub
244
+ ```
245
+
246
+ ```python
247
+ from huggingface_hub import InferenceClient
248
+
249
+ endpoint_url = "https://your-endpoint-url-here"
250
+
251
+ prompt = "Tell me about AI"
252
+ prompt_template=f'''### User:
253
+ {prompt}
254
+
255
+ ### Assistant:
256
+ '''
257
+
258
+ client = InferenceClient(endpoint_url)
259
+ response = client.text_generation(prompt,
260
+ max_new_tokens=128,
261
+ do_sample=True,
262
+ temperature=0.7,
263
+ top_p=0.95,
264
+ top_k=40,
265
+ repetition_penalty=1.1)
266
+
267
+ print(f"Model output: {response}")
268
+ ```
269
+ <!-- README_GPTQ.md-use-from-tgi end -->
270
+ <!-- README_GPTQ.md-use-from-python start -->
271
+ ## Python code example: inference from this GPTQ model
272
+
273
+ ### Install the necessary packages
274
+
275
+ Requires: Transformers 4.33.0 or later, Optimum 1.12.0 or later, and AutoGPTQ 0.4.2 or later.
276
+
277
+ ```shell
278
+ pip3 install --upgrade transformers optimum
279
+ # If using PyTorch 2.1 + CUDA 12.x:
280
+ pip3 install --upgrade auto-gptq
281
+ # or, if using PyTorch 2.1 + CUDA 11.x:
282
+ pip3 install --upgrade auto-gptq --extra-index-url https://huggingface.github.io/autogptq-index/whl/cu118/
283
+ ```
284
+
285
+ 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:
286
+
287
+ ```shell
288
+ pip3 uninstall -y auto-gptq
289
+ git clone https://github.com/PanQiWei/AutoGPTQ
290
+ cd AutoGPTQ
291
+ git checkout v0.5.1
292
+ pip3 install .
293
+ ```
294
+
295
+ ### Example Python code
296
+
297
+ ```python
298
+ from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
299
+
300
+ model_name_or_path = "TheBloke/SauerkrautLM-SOLAR-Instruct-GPTQ"
301
+ # To use a different branch, change revision
302
+ # For example: revision="gptq-4bit-32g-actorder_True"
303
+ model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
304
+ device_map="auto",
305
+ trust_remote_code=False,
306
+ revision="main")
307
+
308
+ tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
309
+
310
+ prompt = "Write a story about llamas"
311
+ system_message = "You are a story writing assistant"
312
+ prompt_template=f'''### User:
313
+ {prompt}
314
+
315
+ ### Assistant:
316
+ '''
317
+
318
+ print("\n\n*** Generate:")
319
+
320
+ input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
321
+ output = model.generate(inputs=input_ids, temperature=0.7, do_sample=True, top_p=0.95, top_k=40, max_new_tokens=512)
322
+ print(tokenizer.decode(output[0]))
323
+
324
+ # Inference can also be done using transformers' pipeline
325
+
326
+ print("*** Pipeline:")
327
+ pipe = pipeline(
328
+ "text-generation",
329
+ model=model,
330
+ tokenizer=tokenizer,
331
+ max_new_tokens=512,
332
+ do_sample=True,
333
+ temperature=0.7,
334
+ top_p=0.95,
335
+ top_k=40,
336
+ repetition_penalty=1.1
337
+ )
338
+
339
+ print(pipe(prompt_template)[0]['generated_text'])
340
+ ```
341
+ <!-- README_GPTQ.md-use-from-python end -->
342
+
343
+ <!-- README_GPTQ.md-compatibility start -->
344
+ ## Compatibility
345
+
346
+ The files provided are tested to work with Transformers. For non-Mistral models, AutoGPTQ can also be used directly.
347
+
348
+ [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.
349
+
350
+ For a list of clients/servers, please see "Known compatible clients / servers", above.
351
+ <!-- README_GPTQ.md-compatibility end -->
352
+
353
+ <!-- footer start -->
354
+ <!-- 200823 -->
355
+ ## Discord
356
+
357
+ For further support, and discussions on these models and AI in general, join us at:
358
+
359
+ [TheBloke AI's Discord server](https://discord.gg/theblokeai)
360
+
361
+ ## Thanks, and how to contribute
362
+
363
+ Thanks to the [chirper.ai](https://chirper.ai) team!
364
+
365
+ Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
366
+
367
+ 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.
368
+
369
+ 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.
370
+
371
+ Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
372
+
373
+ * Patreon: https://patreon.com/TheBlokeAI
374
+ * Ko-Fi: https://ko-fi.com/TheBlokeAI
375
+
376
+ **Special thanks to**: Aemon Algiz.
377
+
378
+ **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
379
+
380
+
381
+ Thank you to all my generous patrons and donaters!
382
+
383
+ And thank you again to a16z for their generous grant.
384
+
385
+ <!-- footer end -->
386
+
387
+ # Original model card: VAGO solutions's SauerkrautLM SOLAR Instruct
388
+
389
+
390
+ ![SauerkrautLM](https://vago-solutions.de/wp-content/uploads/2023/12/sauerkrautlm-solar.png "SauerkrautLM-SOLAR-Instruct")
391
+ ## VAGO solutions SauerkrautLM-SOLAR-Instruct
392
+ Introducing **SauerkrautLM-SOLAR-Instruct** – our Sauerkraut version of the powerful [upstage/SOLAR-10.7B-Instruct-v1.0](https://huggingface.co/upstage/SOLAR-10.7B-Instruct-v1.0) !
393
+ Aligned with **DPO**
394
+
395
+ # Table of Contents
396
+ 1. [Overview of all SauerkrautLM-SOLAR-Instruct models](#all-sauerkrautlm-solar-instruct-models)
397
+ 2. [Model Details](#model-details)
398
+ - [Prompt template](#prompt-template)
399
+ - [Training Dataset](#training-dataset)
400
+ - [Data Contamination Test](#data-contamination-test-results)
401
+ 3. [Evaluation](#evaluation)
402
+ 5. [Disclaimer](#disclaimer)
403
+ 6. [Contact](#contact)
404
+ 7. [Collaborations](#collaborations)
405
+ 8. [Acknowledgement](#acknowledgement)
406
+
407
+
408
+ ## All SauerkrautLM-SOLAR-Instruct Models
409
+
410
+ | Model | HF | GPTQ | GGUF | AWQ |
411
+ |-------|-------|-------|-------|-------|
412
+ | SauerkrautLM-SOLAR-Instruct | [Link](https://huggingface.co/VAGOsolutions/SauerkrautLM-SOLAR-Instruct/) | coming soon | coming soon | coming soon |
413
+
414
+ ## Model Details
415
+ **SauerkrautLM-SOLAR-Instruct**
416
+ - **Model Type:** SauerkrautLM-SOLAR-Instruct is a finetuned Model based on [upstage/SOLAR-10.7B-Instruct-v1.0](https://huggingface.co/upstage/SOLAR-10.7B-Instruct-v1.0)
417
+ - **Language(s):** English, German
418
+ - **License:** cc-by-nc-4.0
419
+ - **Contact:** [Website](https://vago-solutions.de/#Kontakt) [David Golchinfar](mailto:golchinfar@vago-solutions.de)
420
+
421
+ ### Training Dataset:
422
+
423
+ SauerkrautLM-SOLAR-Instruct was trained with mix of German data augmentation and translated data.
424
+ Aligned through **DPO** with our **new German SauerkrautLM-DPO dataset** based on parts of the SFT SauerkrautLM dataset
425
+ as chosen answers and [Sauerkraut-7b-HerO](https://huggingface.co/VAGOsolutions/SauerkrautLM-7b-HerO) as rejected answers. Added with additional **translated Parts of the [HuggingFaceH4/ultrafeedback_binarized](https://huggingface.co/datasets/HuggingFaceH4/ultrafeedback_binarized)** (Our dataset do not contain any TruthfulQA prompts - check Data Contamination Test Results) and **[argilla/distilabel-math-preference-dpo](https://huggingface.co/datasets/argilla/distilabel-math-preference-dpo).**
426
+ We found, that only a simple translation of training data can lead to unnatural German phrasings.
427
+ Data augmentation techniques were used to grant grammatical, syntactical correctness and a more natural German wording in our training data.
428
+
429
+ We improved the German language skills on this model. Nevertheless, certain formulations may occur that are not entirely correct.
430
+
431
+
432
+
433
+
434
+
435
+ ### Data Contamination Test Results
436
+
437
+ Some models on the HuggingFace leaderboard had problems with wrong data getting mixed in.
438
+ We checked our SauerkrautLM-DPO dataset with a special test [1] on this model as target model and upstage/SOLAR-10.7B-Instruct-v1.0 as reference model.
439
+ The HuggingFace team used the same methods [2, 3].
440
+
441
+ Our results, with `result < 0.1, %:` being well below 0.9, indicate that our dataset is free from contamination.
442
+
443
+ *The data contamination test results of HellaSwag and Winograde will be added once [1] supports them.*
444
+
445
+ | Dataset | ARC | MMLU | TruthfulQA | GSM8K |
446
+ |------------------------------|-------|-------|-------|-------|
447
+ | **SauerkrautLM-DPO**| result < 0.1, %: 0.0 |result < 0.1, %: 0.09 | result < 0.1, %: 0.13 | result < 0.1, %: 0.16 |
448
+
449
+ [1] https://github.com/swj0419/detect-pretrain-code-contamination
450
+
451
+ [2] https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard/discussions/474#657f2245365456e362412a06
452
+
453
+ [3] https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard/discussions/265#657b6debf81f6b44b8966230
454
+
455
+ ### Prompt Template:
456
+ ```
457
+ ### User:
458
+ Hallo, wie geht es dir?
459
+
460
+ ### Assistant:
461
+ Hallo! Es freut mich, dass du mit mir kommunizierst. Ich bin hier, um zu helfen und deine Anfragen zu erfüllen. Du fragst, wie ich mich fühle. Als künstliche Intelligenz habe ich keine eigentlichen Emotionen im Sinne eines Menschen, aber ich funktioniere optimal und bin bereit, Dienste anzubieten.
462
+ Wie geht es dir momentan? Können wir zusammen etwas interessantes oder hilfreiches erledigen?
463
+
464
+ ```
465
+ *Prompt Example on Temp 0.5
466
+
467
+ ```
468
+ ### User:
469
+ Hello, how are you?
470
+
471
+ ### Assistant:
472
+ Hi there! I am an AI language model, so I don't have personal feelings or emotions in the traditional sense. However, I can assure you that my systems and processes are functioning well at this moment, allowing me to provide helpful responses for your queries.
473
+ How may I assist you today?
474
+
475
+ ```
476
+ *Prompt Example on Temp 0.5
477
+
478
+ ## Evaluation
479
+
480
+
481
+
482
+ | Metric | Value |
483
+ |-----------------------|---------------------------|
484
+ | Avg. | 74.21 |
485
+ | ARC (25-shot) | 70.82 |
486
+ | HellaSwag (10-shot) | 88.63 |
487
+ | MMLU (5-shot) | 66.2|
488
+ | TruthfulQA (0-shot) | 71.95 |
489
+ | Winogrande (5-shot) | 83.5 |
490
+ | GSM8K (5-shot) | 64.14 |
491
+
492
+ ## Disclaimer
493
+ We must inform users that despite our best efforts in data cleansing, the possibility of uncensored content slipping through cannot be entirely ruled out.
494
+ However, we cannot guarantee consistently appropriate behavior. Therefore, if you encounter any issues or come across inappropriate content, we kindly request that you inform us through the contact information provided.
495
+ Additionally, it is essential to understand that the licensing of these models does not constitute legal advice. We are not held responsible for the actions of third parties who utilize our models.
496
+  
497
+ ## Contact
498
+ If you are interested in customized LLMs for business applications, please get in contact with us via our website or contact us at [Dr. Daryoush Vaziri](mailto:vaziri@vago-solutions.de). We are also grateful for your feedback and suggestions.
499
+  
500
+ ## Collaborations
501
+ We are also keenly seeking support and investment for our startup, VAGO solutions, where we continuously advance the development of robust language models designed to address a diverse range of purposes and requirements. If the prospect of collaboratively navigating future challenges excites you, we warmly invite you to reach out to us.
502
+
503
+ ## Acknowledgement
504
+ Many thanks to [argilla](https://huggingface.co/datasets/argilla) and [Huggingface](https://huggingface.co) for providing such valuable datasets to the Open-Source community. And of course a big thanks to [upstage](https://huggingface.co/upstage) for providing the open source community with their latest technology!