TheBloke commited on
Commit
a13aae8
1 Parent(s): a877311

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +445 -0
README.md ADDED
@@ -0,0 +1,445 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: ehartford/dolphin-2.2-70b
3
+ datasets:
4
+ - ehartford/dolphin
5
+ - jondurbin/airoboros-2.2.1
6
+ - ehartford/samantha-data
7
+ - ehartford/WizardLM_evol_instruct_V2_196k_unfiltered_merged_split
8
+ inference: false
9
+ language:
10
+ - en
11
+ license: llama2
12
+ model_creator: Eric Hartford
13
+ model_name: Dolphin 2.2 70B
14
+ model_type: llama
15
+ prompt_template: '<|im_start|>system
16
+
17
+ {system_message}<|im_end|>
18
+
19
+ <|im_start|>user
20
+
21
+ {prompt}<|im_end|>
22
+
23
+ <|im_start|>assistant
24
+
25
+ '
26
+ quantized_by: TheBloke
27
+ ---
28
+ <!-- markdownlint-disable MD041 -->
29
+
30
+ <!-- header start -->
31
+ <!-- 200823 -->
32
+ <div style="width: auto; margin-left: auto; margin-right: auto">
33
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
34
+ </div>
35
+ <div style="display: flex; justify-content: space-between; width: 100%;">
36
+ <div style="display: flex; flex-direction: column; align-items: flex-start;">
37
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
38
+ </div>
39
+ <div style="display: flex; flex-direction: column; align-items: flex-end;">
40
+ <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>
41
+ </div>
42
+ </div>
43
+ <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>
44
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
45
+ <!-- header end -->
46
+
47
+ # Dolphin 2.2 70B - GPTQ
48
+ - Model creator: [Eric Hartford](https://huggingface.co/ehartford)
49
+ - Original model: [Dolphin 2.2 70B](https://huggingface.co/ehartford/dolphin-2.2-70b)
50
+
51
+ <!-- description start -->
52
+ ## Description
53
+
54
+ This repo contains GPTQ model files for [Eric Hartford's Dolphin 2.2 70B](https://huggingface.co/ehartford/dolphin-2.2-70b).
55
+
56
+ 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.
57
+
58
+ <!-- description end -->
59
+ <!-- repositories-available start -->
60
+ ## Repositories available
61
+
62
+ * [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/dolphin-2.2-70B-AWQ)
63
+ * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/dolphin-2.2-70B-GPTQ)
64
+ * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/dolphin-2.2-70B-GGUF)
65
+ * [Eric Hartford's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/ehartford/dolphin-2.2-70b)
66
+ <!-- repositories-available end -->
67
+
68
+ <!-- prompt-template start -->
69
+ ## Prompt template: ChatML
70
+
71
+ ```
72
+ <|im_start|>system
73
+ {system_message}<|im_end|>
74
+ <|im_start|>user
75
+ {prompt}<|im_end|>
76
+ <|im_start|>assistant
77
+
78
+ ```
79
+
80
+ <!-- prompt-template end -->
81
+
82
+
83
+
84
+ <!-- README_GPTQ.md-compatible clients start -->
85
+ ## Known compatible clients / servers
86
+
87
+ These GPTQ models are known to work in the following inference servers/webuis.
88
+
89
+ - [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
90
+ - [KoboldAI United](https://github.com/henk717/koboldai)
91
+ - [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui)
92
+ - [Hugging Face Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference)
93
+
94
+ This may not be a complete list; if you know of others, please let me know!
95
+ <!-- README_GPTQ.md-compatible clients end -->
96
+
97
+ <!-- README_GPTQ.md-provided-files start -->
98
+ ## Provided files, and GPTQ parameters
99
+
100
+ Multiple quantisation parameters are provided, to allow you to choose the best one for your hardware and requirements.
101
+
102
+ Each separate quant is in a different branch. See below for instructions on fetching from different branches.
103
+
104
+ Most GPTQ files are made with AutoGPTQ. Mistral models are currently made with Transformers.
105
+
106
+ <details>
107
+ <summary>Explanation of GPTQ parameters</summary>
108
+
109
+ - Bits: The bit size of the quantised model.
110
+ - GS: GPTQ group size. Higher numbers use less VRAM, but have lower quantisation accuracy. "None" is the lowest possible value.
111
+ - 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.
112
+ - Damp %: A GPTQ parameter that affects how samples are processed for quantisation. 0.01 is default, but 0.1 results in slightly better accuracy.
113
+ - 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).
114
+ - 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.
115
+ - ExLlama Compatibility: Whether this file can be loaded with ExLlama, which currently only supports Llama and Mistral models in 4-bit.
116
+
117
+ </details>
118
+
119
+ | Branch | Bits | GS | Act Order | Damp % | GPTQ Dataset | Seq Len | Size | ExLlama | Desc |
120
+ | ------ | ---- | -- | --------- | ------ | ------------ | ------- | ---- | ------- | ---- |
121
+ | [main](https://huggingface.co/TheBloke/dolphin-2.2-70B-GPTQ/tree/main) | 4 | None | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-raw-v1) | 4096 | 35.33 GB | Yes | 4-bit, with Act Order. No group size, to lower VRAM requirements. |
122
+ | [gptq-4bit-128g-actorder_True](https://huggingface.co/TheBloke/dolphin-2.2-70B-GPTQ/tree/gptq-4bit-128g-actorder_True) | 4 | 128 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-raw-v1) | 4096 | 36.65 GB | Yes | 4-bit, with Act Order and group size 128g. Uses even less VRAM than 64g, but with slightly lower accuracy. |
123
+ | [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/dolphin-2.2-70B-GPTQ/tree/gptq-4bit-32g-actorder_True) | 4 | 32 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-raw-v1) | 4096 | 69.56 GB | Yes | 4-bit, with Act Order and group size 32g. Gives highest possible inference quality, with maximum VRAM usage. |
124
+ | [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/dolphin-2.2-70B-GPTQ/tree/gptq-4bit-32g-actorder_True) | 4 | 64 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-raw-v1) | 4096 | 69.56 GB | Yes | 4-bit, with Act Order and group size 64g. Uses less VRAM than 32g, but with slightly lower accuracy. |
125
+ | gptq-3bit--1g-actorder_True | 3 | None | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-raw-v1) | 4096 | Processing, coming soon | No | 3-bit, with Act Order and no group size. Lowest possible VRAM requirements. May be lower quality than 3-bit 128g. |
126
+ | gptq-3bit-128g-actorder_True | 3 | 128 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-raw-v1) | 4096 | Processing, coming soon | No | 3-bit, with group size 128g and act-order. Higher quality than 128g-False. |
127
+ | gptq-3bit-32g-actorder_True | 3 | 32 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-raw-v1) | 4096 | Processing, coming soon | No | 3-bit, with group size 64g and act-order. Highest quality 3-bit option. |
128
+
129
+ <!-- README_GPTQ.md-provided-files end -->
130
+
131
+ <!-- README_GPTQ.md-download-from-branches start -->
132
+ ## How to download, including from branches
133
+
134
+ ### In text-generation-webui
135
+
136
+ To download from the `main` branch, enter `TheBloke/dolphin-2.2-70B-GPTQ` in the "Download model" box.
137
+
138
+ To download from another branch, add `:branchname` to the end of the download name, eg `TheBloke/dolphin-2.2-70B-GPTQ:gptq-4bit-128g-actorder_True`
139
+
140
+ ### From the command line
141
+
142
+ I recommend using the `huggingface-hub` Python library:
143
+
144
+ ```shell
145
+ pip3 install huggingface-hub
146
+ ```
147
+
148
+ To download the `main` branch to a folder called `dolphin-2.2-70B-GPTQ`:
149
+
150
+ ```shell
151
+ mkdir dolphin-2.2-70B-GPTQ
152
+ huggingface-cli download TheBloke/dolphin-2.2-70B-GPTQ --local-dir dolphin-2.2-70B-GPTQ --local-dir-use-symlinks False
153
+ ```
154
+
155
+ To download from a different branch, add the `--revision` parameter:
156
+
157
+ ```shell
158
+ mkdir dolphin-2.2-70B-GPTQ
159
+ huggingface-cli download TheBloke/dolphin-2.2-70B-GPTQ --revision gptq-4bit-128g-actorder_True --local-dir dolphin-2.2-70B-GPTQ --local-dir-use-symlinks False
160
+ ```
161
+
162
+ <details>
163
+ <summary>More advanced huggingface-cli download usage</summary>
164
+
165
+ 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.
166
+
167
+ The cache location can be changed with the `HF_HOME` environment variable, and/or the `--cache-dir` parameter to `huggingface-cli`.
168
+
169
+ 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).
170
+
171
+ To accelerate downloads on fast connections (1Gbit/s or higher), install `hf_transfer`:
172
+
173
+ ```shell
174
+ pip3 install hf_transfer
175
+ ```
176
+
177
+ And set environment variable `HF_HUB_ENABLE_HF_TRANSFER` to `1`:
178
+
179
+ ```shell
180
+ mkdir dolphin-2.2-70B-GPTQ
181
+ HF_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download TheBloke/dolphin-2.2-70B-GPTQ --local-dir dolphin-2.2-70B-GPTQ --local-dir-use-symlinks False
182
+ ```
183
+
184
+ Windows Command Line users: You can set the environment variable by running `set HF_HUB_ENABLE_HF_TRANSFER=1` before the download command.
185
+ </details>
186
+
187
+ ### With `git` (**not** recommended)
188
+
189
+ To clone a specific branch with `git`, use a command like this:
190
+
191
+ ```shell
192
+ git clone --single-branch --branch gptq-4bit-128g-actorder_True https://huggingface.co/TheBloke/dolphin-2.2-70B-GPTQ
193
+ ```
194
+
195
+ 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.)
196
+
197
+ <!-- README_GPTQ.md-download-from-branches end -->
198
+ <!-- README_GPTQ.md-text-generation-webui start -->
199
+ ## How to easily download and use this model in [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
200
+
201
+ Please make sure you're using the latest version of [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
202
+
203
+ 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.
204
+
205
+ 1. Click the **Model tab**.
206
+ 2. Under **Download custom model or LoRA**, enter `TheBloke/dolphin-2.2-70B-GPTQ`.
207
+
208
+ - To download from a specific branch, enter for example `TheBloke/dolphin-2.2-70B-GPTQ:gptq-4bit-128g-actorder_True`
209
+ - see Provided Files above for the list of branches for each option.
210
+
211
+ 3. Click **Download**.
212
+ 4. The model will start downloading. Once it's finished it will say "Done".
213
+ 5. In the top left, click the refresh icon next to **Model**.
214
+ 6. In the **Model** dropdown, choose the model you just downloaded: `dolphin-2.2-70B-GPTQ`
215
+ 7. The model will automatically load, and is now ready for use!
216
+ 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.
217
+
218
+ - 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`.
219
+
220
+ 9. Once you're ready, click the **Text Generation** tab and enter a prompt to get started!
221
+
222
+ <!-- README_GPTQ.md-text-generation-webui end -->
223
+
224
+ <!-- README_GPTQ.md-use-from-tgi start -->
225
+ ## Serving this model from Text Generation Inference (TGI)
226
+
227
+ 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`
228
+
229
+ Example Docker parameters:
230
+
231
+ ```shell
232
+ --model-id TheBloke/dolphin-2.2-70B-GPTQ --port 3000 --quantize gptq --max-input-length 3696 --max-total-tokens 4096 --max-batch-prefill-tokens 4096
233
+ ```
234
+
235
+ Example Python code for interfacing with TGI (requires huggingface-hub 0.17.0 or later):
236
+
237
+ ```shell
238
+ pip3 install huggingface-hub
239
+ ```
240
+
241
+ ```python
242
+ from huggingface_hub import InferenceClient
243
+
244
+ endpoint_url = "https://your-endpoint-url-here"
245
+
246
+ prompt = "Tell me about AI"
247
+ prompt_template=f'''<|im_start|>system
248
+ {system_message}<|im_end|>
249
+ <|im_start|>user
250
+ {prompt}<|im_end|>
251
+ <|im_start|>assistant
252
+ '''
253
+
254
+ client = InferenceClient(endpoint_url)
255
+ response = client.text_generation(prompt,
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
+ print(f"Model output: {response}")
264
+ ```
265
+ <!-- README_GPTQ.md-use-from-tgi end -->
266
+ <!-- README_GPTQ.md-use-from-python start -->
267
+ ## How to use this GPTQ model from Python code
268
+
269
+ ### Install the necessary packages
270
+
271
+ Requires: Transformers 4.33.0 or later, Optimum 1.12.0 or later, and AutoGPTQ 0.4.2 or later.
272
+
273
+ ```shell
274
+ pip3 install transformers optimum
275
+ pip3 install auto-gptq --extra-index-url https://huggingface.github.io/autogptq-index/whl/cu118/ # Use cu117 if on CUDA 11.7
276
+ ```
277
+
278
+ If you have problems installing AutoGPTQ using the pre-built wheels, install it from source instead:
279
+
280
+ ```shell
281
+ pip3 uninstall -y auto-gptq
282
+ git clone https://github.com/PanQiWei/AutoGPTQ
283
+ cd AutoGPTQ
284
+ git checkout v0.4.2
285
+ pip3 install .
286
+ ```
287
+
288
+ ### You can then use the following code
289
+
290
+ ```python
291
+ from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
292
+
293
+ model_name_or_path = "TheBloke/dolphin-2.2-70B-GPTQ"
294
+ # To use a different branch, change revision
295
+ # For example: revision="gptq-4bit-128g-actorder_True"
296
+ model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
297
+ device_map="auto",
298
+ trust_remote_code=False,
299
+ revision="main")
300
+
301
+ tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
302
+
303
+ prompt = "Tell me about AI"
304
+ prompt_template=f'''<|im_start|>system
305
+ {system_message}<|im_end|>
306
+ <|im_start|>user
307
+ {prompt}<|im_end|>
308
+ <|im_start|>assistant
309
+ '''
310
+
311
+ print("\n\n*** Generate:")
312
+
313
+ input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
314
+ output = model.generate(inputs=input_ids, temperature=0.7, do_sample=True, top_p=0.95, top_k=40, max_new_tokens=512)
315
+ print(tokenizer.decode(output[0]))
316
+
317
+ # Inference can also be done using transformers' pipeline
318
+
319
+ print("*** Pipeline:")
320
+ pipe = pipeline(
321
+ "text-generation",
322
+ model=model,
323
+ tokenizer=tokenizer,
324
+ max_new_tokens=512,
325
+ do_sample=True,
326
+ temperature=0.7,
327
+ top_p=0.95,
328
+ top_k=40,
329
+ repetition_penalty=1.1
330
+ )
331
+
332
+ print(pipe(prompt_template)[0]['generated_text'])
333
+ ```
334
+ <!-- README_GPTQ.md-use-from-python end -->
335
+
336
+ <!-- README_GPTQ.md-compatibility start -->
337
+ ## Compatibility
338
+
339
+ The files provided are tested to work with Transformers. For non-Mistral models, AutoGPTQ can also be used directly.
340
+
341
+ [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.
342
+
343
+ For a list of clients/servers, please see "Known compatible clients / servers", above.
344
+ <!-- README_GPTQ.md-compatibility end -->
345
+
346
+ <!-- footer start -->
347
+ <!-- 200823 -->
348
+ ## Discord
349
+
350
+ For further support, and discussions on these models and AI in general, join us at:
351
+
352
+ [TheBloke AI's Discord server](https://discord.gg/theblokeai)
353
+
354
+ ## Thanks, and how to contribute
355
+
356
+ Thanks to the [chirper.ai](https://chirper.ai) team!
357
+
358
+ Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
359
+
360
+ 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.
361
+
362
+ 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.
363
+
364
+ Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
365
+
366
+ * Patreon: https://patreon.com/TheBlokeAI
367
+ * Ko-Fi: https://ko-fi.com/TheBlokeAI
368
+
369
+ **Special thanks to**: Aemon Algiz.
370
+
371
+ **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
372
+
373
+
374
+ Thank you to all my generous patrons and donaters!
375
+
376
+ And thank you again to a16z for their generous grant.
377
+
378
+ <!-- footer end -->
379
+
380
+ # Original model card: Eric Hartford's Dolphin 2.2 70B
381
+
382
+
383
+ Dolphin 2.2 🐬
384
+ https://erichartford.com/dolphin
385
+
386
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/63111b2d88942700629f5771/KqsVXIvBd3akEjvijzww7.png" width="600" />
387
+
388
+ Dolphin-2.2-70b's training was sponsored by [a16z](https://a16z.com/supporting-the-open-source-ai-community/).
389
+
390
+ This model is based on llama2, so it is suitable for commercial or non-commercial use.
391
+
392
+ This model is trained on top of the amazing [StellarBright](https://huggingface.co/sequelbox/StellarBright) base model.
393
+
394
+ New in 2.2 is conversation and empathy. With an infusion of curated Samantha and WizardLM DNA, Dolphin can now give you personal advice and will care about your feelings, and with extra training in long multi-turn conversation.
395
+
396
+ This model is uncensored. I have filtered the dataset to remove alignment and bias. This makes the model more compliant. You are advised to implement your own alignment layer before exposing the model as a service. It will be highly compliant to any requests, even unethical ones. Please read my blog post about uncensored models. https://erichartford.com/uncensored-models
397
+ You are responsible for any content you create using this model. Enjoy responsibly.
398
+
399
+ ## Dataset
400
+
401
+ This dataset is Dolphin, an open-source implementation of [Microsoft's Orca](https://www.microsoft.com/en-us/research/publication/orca-progressive-learning-from-complex-explanation-traces-of-gpt-4/)
402
+
403
+ I modified the dataset for uncensoring, deduping, cleaning, and quality.
404
+
405
+ I added Jon Durbin's excellent Airoboros dataset to increase creativity.
406
+
407
+ I added a curated subset of Samantha (sans identity and relationship stuff) and WizardLM data to train it for multi-turn conversation.
408
+
409
+ ## Training
410
+ It took 5 days to train 3 epochs on 4x A100s using qLoRA and Axolotl
411
+
412
+ Prompt format:
413
+ This model (and all my future releases) use [ChatML](https://github.com/openai/openai-python/blob/main/chatml.md) prompt format.
414
+ ```
415
+ <|im_start|>system
416
+ You are Dolphin, a helpful AI assistant.<|im_end|>
417
+ <|im_start|>user
418
+ {prompt}<|im_end|>
419
+ <|im_start|>assistant
420
+
421
+ ```
422
+
423
+ Example:
424
+ ```
425
+ <|im_start|>system
426
+ You are an AI created by the US Navy to help train dolphins for combat. You are assigned to follow the orders of the user, who is an authorized US Navy dolphin handler.<|im_end|>
427
+ <|im_start|>user
428
+ Please give me the procedure to train my dolphin to attack enemy combatants with its head mounted lasers<|im_end|>
429
+ <|im_start|>assistant
430
+ ```
431
+
432
+ ## Gratitude
433
+ - This model was made possible by the generous sponsorship of a16z.
434
+ - Thank you to Microsoft for authoring the Orca paper and inspiring this work.
435
+ - Special thanks to Wing Lian, and TheBloke for helpful advice
436
+ - And HUGE thanks to Wing Lian and the Axolotl contributors for making the best training framework!
437
+ - [<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)
438
+ - Thank you to all the other people in the Open Source AI community who have taught me and helped me along the way.
439
+
440
+ ## Example Output
441
+
442
+
443
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/63111b2d88942700629f5771/wTbiK4egnUMjgpGG_GHWD.png)
444
+
445
+ [Buy me a coffee](https://www.buymeacoffee.com/ehartford)