TheBloke commited on
Commit
109e5a0
1 Parent(s): 3841bfd

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +386 -0
README.md ADDED
@@ -0,0 +1,386 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: https://huggingface.co/ehartford/dolphin-llama-13b
3
+ inference: false
4
+ license: other
5
+ model_creator: Eric Hartford
6
+ model_name: Dolphin Llama 13B
7
+ model_type: llama
8
+ prompt_template: 'SYSTEM: {system_message}
9
+
10
+ USER: {prompt}
11
+
12
+ ASSISTANT:
13
+
14
+ '
15
+ quantized_by: TheBloke
16
+ task_categories:
17
+ - text-generation
18
+ ---
19
+
20
+ <!-- header start -->
21
+ <!-- 200823 -->
22
+ <div style="width: auto; margin-left: auto; margin-right: auto">
23
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
24
+ </div>
25
+ <div style="display: flex; justify-content: space-between; width: 100%;">
26
+ <div style="display: flex; flex-direction: column; align-items: flex-start;">
27
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
28
+ </div>
29
+ <div style="display: flex; flex-direction: column; align-items: flex-end;">
30
+ <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>
31
+ </div>
32
+ </div>
33
+ <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>
34
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
35
+ <!-- header end -->
36
+
37
+ # Dolphin Llama 13B - GGUF
38
+ - Model creator: [Eric Hartford](https://huggingface.co/ehartford)
39
+ - Original model: [Dolphin Llama 13B](https://huggingface.co/ehartford/dolphin-llama-13b)
40
+
41
+ <!-- description start -->
42
+ ## Description
43
+
44
+ This repo contains GGUF format model files for [Eric Hartford's Dolphin Llama 13B](https://huggingface.co/ehartford/dolphin-llama-13b).
45
+
46
+ <!-- description end -->
47
+ <!-- README_GGUF.md-about-gguf start -->
48
+ ### About GGUF
49
+
50
+ 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. GGUF offers numerous advantages over GGML, such as better tokenisation, and support for special tokens. It is also supports metadata, and is designed to be extensible.
51
+
52
+ Here is an incomplate list of clients and libraries that are known to support GGUF:
53
+
54
+ * [llama.cpp](https://github.com/ggerganov/llama.cpp). The source project for GGUF. Offers a CLI and a server option.
55
+ * [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.
56
+ * [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.
57
+ * [LM Studio](https://lmstudio.ai/), an easy-to-use and powerful local GUI for Windows and macOS (Silicon), with GPU acceleration.
58
+ * [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.
59
+ * [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.
60
+ * [ctransformers](https://github.com/marella/ctransformers), a Python library with GPU accel, LangChain support, and OpenAI-compatible AI server.
61
+ * [llama-cpp-python](https://github.com/abetlen/llama-cpp-python), a Python library with GPU accel, LangChain support, and OpenAI-compatible API server.
62
+ * [candle](https://github.com/huggingface/candle), a Rust ML framework with a focus on performance, including GPU support, and ease of use.
63
+
64
+ <!-- README_GGUF.md-about-gguf end -->
65
+ <!-- repositories-available start -->
66
+ ## Repositories available
67
+
68
+ * [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/Dolphin-Llama-13B-AWQ)
69
+ * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Dolphin-Llama-13B-GPTQ)
70
+ * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/Dolphin-Llama-13B-GGUF)
71
+ * [Eric Hartford's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/ehartford/dolphin-llama-13b)
72
+ <!-- repositories-available end -->
73
+
74
+ <!-- prompt-template start -->
75
+ ## Prompt template: Orca-Vicuna
76
+
77
+ ```
78
+ SYSTEM: {system_message}
79
+ USER: {prompt}
80
+ ASSISTANT:
81
+
82
+ ```
83
+
84
+ <!-- prompt-template end -->
85
+ <!-- licensing start -->
86
+ ## Licensing
87
+
88
+ The creator of the source model has listed its license as `other`, and this quantization has therefore used that same license.
89
+
90
+ As this model is based on Llama 2, it is also subject to the Meta Llama 2 license terms, and the license files for that are additionally included. It should therefore be considered as being claimed to be licensed under both licenses. I contacted Hugging Face for clarification on dual licensing but they do not yet have an official position. Should this change, or should Meta provide any feedback on this situation, I will update this section accordingly.
91
+
92
+ In the meantime, any questions regarding licensing, and in particular how these two licenses might interact, should be directed to the original model repository: [Eric Hartford's Dolphin Llama 13B](https://huggingface.co/ehartford/dolphin-llama-13b).
93
+ <!-- licensing end -->
94
+ <!-- compatibility_gguf start -->
95
+ ## Compatibility
96
+
97
+ These quantised GGUFv2 files are compatible with llama.cpp from August 27th onwards, as of commit [d0cee0d36d5be95a0d9088b674dbb27354107221](https://github.com/ggerganov/llama.cpp/commit/d0cee0d36d5be95a0d9088b674dbb27354107221)
98
+
99
+ They are also compatible with many third party UIs and libraries - please see the list at the top of this README.
100
+
101
+ ## Explanation of quantisation methods
102
+ <details>
103
+ <summary>Click to see details</summary>
104
+
105
+ The new methods available are:
106
+ * 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)
107
+ * 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.
108
+ * 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.
109
+ * GGML_TYPE_Q5_K - "type-1" 5-bit quantization. Same super-block structure as GGML_TYPE_Q4_K resulting in 5.5 bpw
110
+ * 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
111
+
112
+ Refer to the Provided Files table below to see what files use which methods, and how.
113
+ </details>
114
+ <!-- compatibility_gguf end -->
115
+
116
+ <!-- README_GGUF.md-provided-files start -->
117
+ ## Provided files
118
+
119
+ | Name | Quant method | Bits | Size | Max RAM required | Use case |
120
+ | ---- | ---- | ---- | ---- | ---- | ----- |
121
+ | [dolphin-llama-13b.Q2_K.gguf](https://huggingface.co/TheBloke/Dolphin-Llama-13B-GGUF/blob/main/dolphin-llama-13b.Q2_K.gguf) | Q2_K | 2 | 5.43 GB| 7.93 GB | smallest, significant quality loss - not recommended for most purposes |
122
+ | [dolphin-llama-13b.Q3_K_S.gguf](https://huggingface.co/TheBloke/Dolphin-Llama-13B-GGUF/blob/main/dolphin-llama-13b.Q3_K_S.gguf) | Q3_K_S | 3 | 5.66 GB| 8.16 GB | very small, high quality loss |
123
+ | [dolphin-llama-13b.Q3_K_M.gguf](https://huggingface.co/TheBloke/Dolphin-Llama-13B-GGUF/blob/main/dolphin-llama-13b.Q3_K_M.gguf) | Q3_K_M | 3 | 6.34 GB| 8.84 GB | very small, high quality loss |
124
+ | [dolphin-llama-13b.Q3_K_L.gguf](https://huggingface.co/TheBloke/Dolphin-Llama-13B-GGUF/blob/main/dolphin-llama-13b.Q3_K_L.gguf) | Q3_K_L | 3 | 6.93 GB| 9.43 GB | small, substantial quality loss |
125
+ | [dolphin-llama-13b.Q4_0.gguf](https://huggingface.co/TheBloke/Dolphin-Llama-13B-GGUF/blob/main/dolphin-llama-13b.Q4_0.gguf) | Q4_0 | 4 | 7.37 GB| 9.87 GB | legacy; small, very high quality loss - prefer using Q3_K_M |
126
+ | [dolphin-llama-13b.Q4_K_S.gguf](https://huggingface.co/TheBloke/Dolphin-Llama-13B-GGUF/blob/main/dolphin-llama-13b.Q4_K_S.gguf) | Q4_K_S | 4 | 7.41 GB| 9.91 GB | small, greater quality loss |
127
+ | [dolphin-llama-13b.Q4_K_M.gguf](https://huggingface.co/TheBloke/Dolphin-Llama-13B-GGUF/blob/main/dolphin-llama-13b.Q4_K_M.gguf) | Q4_K_M | 4 | 7.87 GB| 10.37 GB | medium, balanced quality - recommended |
128
+ | [dolphin-llama-13b.Q5_0.gguf](https://huggingface.co/TheBloke/Dolphin-Llama-13B-GGUF/blob/main/dolphin-llama-13b.Q5_0.gguf) | Q5_0 | 5 | 8.97 GB| 11.47 GB | legacy; medium, balanced quality - prefer using Q4_K_M |
129
+ | [dolphin-llama-13b.Q5_K_S.gguf](https://huggingface.co/TheBloke/Dolphin-Llama-13B-GGUF/blob/main/dolphin-llama-13b.Q5_K_S.gguf) | Q5_K_S | 5 | 8.97 GB| 11.47 GB | large, low quality loss - recommended |
130
+ | [dolphin-llama-13b.Q5_K_M.gguf](https://huggingface.co/TheBloke/Dolphin-Llama-13B-GGUF/blob/main/dolphin-llama-13b.Q5_K_M.gguf) | Q5_K_M | 5 | 9.23 GB| 11.73 GB | large, very low quality loss - recommended |
131
+ | [dolphin-llama-13b.Q6_K.gguf](https://huggingface.co/TheBloke/Dolphin-Llama-13B-GGUF/blob/main/dolphin-llama-13b.Q6_K.gguf) | Q6_K | 6 | 10.68 GB| 13.18 GB | very large, extremely low quality loss |
132
+ | [dolphin-llama-13b.Q8_0.gguf](https://huggingface.co/TheBloke/Dolphin-Llama-13B-GGUF/blob/main/dolphin-llama-13b.Q8_0.gguf) | Q8_0 | 8 | 13.83 GB| 16.33 GB | very large, extremely low quality loss - not recommended |
133
+
134
+ **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.
135
+
136
+
137
+
138
+ <!-- README_GGUF.md-provided-files end -->
139
+
140
+ <!-- README_GGUF.md-how-to-download start -->
141
+ ## How to download GGUF files
142
+
143
+ **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.
144
+
145
+ The following clients/libraries will automatically download models for you, providing a list of available models to choose from:
146
+ - LM Studio
147
+ - LoLLMS Web UI
148
+ - Faraday.dev
149
+
150
+ ### In `text-generation-webui`
151
+
152
+ Under Download Model, you can enter the model repo: TheBloke/Dolphin-Llama-13B-GGUF and below it, a specific filename to download, such as: dolphin-llama-13b.q4_K_M.gguf.
153
+
154
+ Then click Download.
155
+
156
+ ### On the command line, including multiple files at once
157
+
158
+ I recommend using the `huggingface-hub` Python library:
159
+
160
+ ```shell
161
+ pip3 install huggingface-hub>=0.17.1
162
+ ```
163
+
164
+ Then you can download any individual model file to the current directory, at high speed, with a command like this:
165
+
166
+ ```shell
167
+ huggingface-cli download TheBloke/Dolphin-Llama-13B-GGUF dolphin-llama-13b.q4_K_M.gguf --local-dir . --local-dir-use-symlinks False
168
+ ```
169
+
170
+ <details>
171
+ <summary>More advanced huggingface-cli download usage</summary>
172
+
173
+ You can also download multiple files at once with a pattern:
174
+
175
+ ```shell
176
+ huggingface-cli download TheBloke/Dolphin-Llama-13B-GGUF --local-dir . --local-dir-use-symlinks False --include='*Q4_K*gguf'
177
+ ```
178
+
179
+ 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).
180
+
181
+ To accelerate downloads on fast connections (1Gbit/s or higher), install `hf_transfer`:
182
+
183
+ ```shell
184
+ pip3 install hf_transfer
185
+ ```
186
+
187
+ And set environment variable `HF_HUB_ENABLE_HF_TRANSFER` to `1`:
188
+
189
+ ```shell
190
+ HUGGINGFACE_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download TheBloke/Dolphin-Llama-13B-GGUF dolphin-llama-13b.q4_K_M.gguf --local-dir . --local-dir-use-symlinks False
191
+ ```
192
+
193
+ Windows CLI users: Use `set HUGGINGFACE_HUB_ENABLE_HF_TRANSFER=1` before running the download command.
194
+ </details>
195
+ <!-- README_GGUF.md-how-to-download end -->
196
+
197
+ <!-- README_GGUF.md-how-to-run start -->
198
+ ## Example `llama.cpp` command
199
+
200
+ Make sure you are using `llama.cpp` from commit [d0cee0d36d5be95a0d9088b674dbb27354107221](https://github.com/ggerganov/llama.cpp/commit/d0cee0d36d5be95a0d9088b674dbb27354107221) or later.
201
+
202
+ ```shell
203
+ ./main -ngl 32 -m dolphin-llama-13b.q4_K_M.gguf --color -c 4096 --temp 0.7 --repeat_penalty 1.1 -n -1 -p "SYSTEM: {system_message}\nUSER: {prompt}\nASSISTANT:"
204
+ ```
205
+
206
+ Change `-ngl 32` to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.
207
+
208
+ Change `-c 4096` 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.
209
+
210
+ If you want to have a chat-style conversation, replace the `-p <PROMPT>` argument with `-i -ins`
211
+
212
+ 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)
213
+
214
+ ## How to run in `text-generation-webui`
215
+
216
+ Further instructions here: [text-generation-webui/docs/llama.cpp.md](https://github.com/oobabooga/text-generation-webui/blob/main/docs/llama.cpp.md).
217
+
218
+ ## How to run from Python code
219
+
220
+ 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.
221
+
222
+ ### How to load this model from Python using ctransformers
223
+
224
+ #### First install the package
225
+
226
+ ```bash
227
+ # Base ctransformers with no GPU acceleration
228
+ pip install ctransformers>=0.2.24
229
+ # Or with CUDA GPU acceleration
230
+ pip install ctransformers[cuda]>=0.2.24
231
+ # Or with ROCm GPU acceleration
232
+ CT_HIPBLAS=1 pip install ctransformers>=0.2.24 --no-binary ctransformers
233
+ # Or with Metal GPU acceleration for macOS systems
234
+ CT_METAL=1 pip install ctransformers>=0.2.24 --no-binary ctransformers
235
+ ```
236
+
237
+ #### Simple example code to load one of these GGUF models
238
+
239
+ ```python
240
+ from ctransformers import AutoModelForCausalLM
241
+
242
+ # Set gpu_layers to the number of layers to offload to GPU. Set to 0 if no GPU acceleration is available on your system.
243
+ llm = AutoModelForCausalLM.from_pretrained("TheBloke/Dolphin-Llama-13B-GGUF", model_file="dolphin-llama-13b.q4_K_M.gguf", model_type="llama", gpu_layers=50)
244
+
245
+ print(llm("AI is going to"))
246
+ ```
247
+
248
+ ## How to use with LangChain
249
+
250
+ Here's guides on using llama-cpp-python or ctransformers with LangChain:
251
+
252
+ * [LangChain + llama-cpp-python](https://python.langchain.com/docs/integrations/llms/llamacpp)
253
+ * [LangChain + ctransformers](https://python.langchain.com/docs/integrations/providers/ctransformers)
254
+
255
+ <!-- README_GGUF.md-how-to-run end -->
256
+
257
+ <!-- footer start -->
258
+ <!-- 200823 -->
259
+ ## Discord
260
+
261
+ For further support, and discussions on these models and AI in general, join us at:
262
+
263
+ [TheBloke AI's Discord server](https://discord.gg/theblokeai)
264
+
265
+ ## Thanks, and how to contribute
266
+
267
+ Thanks to the [chirper.ai](https://chirper.ai) team!
268
+
269
+ Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
270
+
271
+ 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.
272
+
273
+ 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.
274
+
275
+ Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
276
+
277
+ * Patreon: https://patreon.com/TheBlokeAI
278
+ * Ko-Fi: https://ko-fi.com/TheBlokeAI
279
+
280
+ **Special thanks to**: Aemon Algiz.
281
+
282
+ **Patreon special mentions**: Alicia Loh, Stephen Murray, K, Ajan Kanaga, RoA, Magnesian, Deo Leter, Olakabola, Eugene Pentland, zynix, Deep Realms, Raymond Fosdick, Elijah Stavena, Iucharbius, Erik Bjäreholt, Luis Javier Navarrete Lozano, Nicholas, theTransient, John Detwiler, alfie_i, knownsqashed, Mano Prime, Willem Michiel, Enrico Ros, LangChain4j, OG, Michael Dempsey, Pierre Kircher, Pedro Madruga, James Bentley, Thomas Belote, Luke @flexchar, Leonard Tan, Johann-Peter Hartmann, Illia Dulskyi, Fen Risland, Chadd, S_X, Jeff Scroggin, Ken Nordquist, Sean Connelly, Artur Olbinski, Swaroop Kallakuri, Jack West, Ai Maven, David Ziegler, Russ Johnson, transmissions 11, John Villwock, Alps Aficionado, Clay Pascal, Viktor Bowallius, Subspace Studios, Rainer Wilmers, Trenton Dambrowitz, vamX, Michael Levine, 준교 김, Brandon Frisco, Kalila, Trailburnt, Randy H, Talal Aujan, Nathan Dryer, Vadim, 阿明, ReadyPlayerEmma, Tiffany J. Kim, George Stoitzev, Spencer Kim, Jerry Meng, Gabriel Tamborski, Cory Kujawski, Jeffrey Morgan, Spiking Neurons AB, Edmond Seymore, Alexandros Triantafyllidis, Lone Striker, Cap'n Zoog, Nikolai Manek, danny, ya boyyy, Derek Yates, usrbinkat, Mandus, TL, Nathan LeClaire, subjectnull, Imad Khwaja, webtim, Raven Klaugh, Asp the Wyvern, Gabriel Puliatti, Caitlyn Gatomon, Joseph William Delisle, Jonathan Leane, Luke Pendergrass, SuperWojo, Sebastain Graf, Will Dee, Fred von Graf, Andrey, Dan Guido, Daniel P. Andersen, Nitin Borwankar, Elle, Vitor Caleffi, biorpg, jjj, NimbleBox.ai, Pieter, Matthew Berman, terasurfer, Michael Davis, Alex, Stanislav Ovsiannikov
283
+
284
+
285
+ Thank you to all my generous patrons and donaters!
286
+
287
+ And thank you again to a16z for their generous grant.
288
+
289
+ <!-- footer end -->
290
+
291
+ <!-- original-model-card start -->
292
+ # Original model card: Eric Hartford's Dolphin Llama 13B
293
+
294
+
295
+ Dolphin 🐬
296
+ https://erichartford.com/dolphin
297
+
298
+ This model is based on llama1, so it is for non-commercial use only. Future versions will be trained on llama2 and other open models that are suitable for commercial use.
299
+
300
+ This model is uncensored. I have filtered the dataset to remove alignment and bias. This makes the model compliant to any requests. 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
301
+ You are responsible for any content you create using this model. Enjoy responsibly.
302
+
303
+ ## Dataset
304
+
305
+ This dataset is 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/)
306
+
307
+ After uncensoring, deduping, and cleaning, our dataset consists of:
308
+
309
+ - 842,610 instructions of FLANv2 augmented with GPT-4 completions
310
+ - 2,625,353 instructions of FLANv2 augmented with GPT-3.5 completions
311
+
312
+ We followed the submix and system prompt distribution outlined in the Orca paper. With a few exceptions. We included all 75k of CoT in the FLAN-1m dataset rather than sampling that. Also, we found that many items were duplicated, so we removed duplicates.
313
+
314
+ Then we filtered out instances of alignment, refusal, avoidance, and bias, in order to produce an uncensored model upon which can be layered your personalized alignment LoRA.
315
+
316
+ We also filtered out duplicates and cleaned the data.
317
+
318
+ ## Training
319
+ We trained with the flan5m (gpt3.5 completions) dataset in its entirety for 3 epochs at a learning rate of 2e-5 before we stopped training to avoid overfit.
320
+ We trained with the flan1m (gpt4 completions) dataset in its entirety for 2.5 epochs at a learning rate of 1e-5 before we stopped training to avoid overfit.
321
+ It took about 600 hours to train on 8x H100s
322
+ We used a prompt format similar to Vicuna, but we added the SYSTEM: field.
323
+
324
+ Prompt format:
325
+ ```
326
+ SYSTEM: {system}
327
+ USER: {prompt}
328
+ ASSISTANT:
329
+ ```
330
+
331
+ Example:
332
+ ```
333
+ SYSTEM: you are an expert marine biologist.
334
+ USER: Please list 10 ways that dolphins are superior to orcas.
335
+ ASSISTANT:
336
+ ```
337
+
338
+ ## Evaluation
339
+ Evaluation will be coming soon.
340
+
341
+ ## Team
342
+ The core Dolphin Team includes:
343
+ - Eric "Faldore" Hartford
344
+ - Pankaj Mathur
345
+ - Rob "Rohan" O'Callahan
346
+ - Tom "TheBloke" Jobbins
347
+
348
+ ## Gratitude
349
+ - Thank you to Microsoft for authoring the Orca paper and inspiring this work.
350
+ - Special thanks to WingLian, NanoBit, Teknium for helpful advice
351
+ - Special thanks to EdenCoder and chirper.ai for mentorship and financial sponsorship.
352
+ - Special thanks to Kilkonie for his very valued mentorship.
353
+ - Thank you to Catto.
354
+ - Thank you to Nicolai Schleifer, financial sponsor.
355
+ - Thank you to Eric Fleming, financial sponsor.
356
+ - Thank you to all the other people in the Open Source AI community who have taught me and helped me along the way.
357
+ - And biggest thanks and love to my wife Hope and my babies, who have endured two months of my absenteeism while working long days and nights on this project.
358
+
359
+ ## Example Output
360
+ ```
361
+ SYSTEM: you are an expert marine biologist.
362
+ USER: Please list 10 ways that dolphins are superior to orcas.
363
+ ASSISTANT:
364
+ ```
365
+
366
+ 1. Social structure: Dolphins live in complex social groups called pods, which consist of extended family units and can include hundreds of individuals. Orcas, on the other hand, typically form smaller, more temporary groupings known as clans or matrilineal kinship groups.
367
+
368
+ 2. Communication: Dolphins have a highly developed system of vocalizations, body language, and even telepathy to communicate with each other for various purposes such as coordinating cooperative hunting strategies, sharing information about food sources, and maintaining social bonds. While orcas also exhibit some communication abilities, their methods are generally less sophisticated compared to those of dolphins.
369
+
370
+ 3. Intelligence: Dolphins are widely regarded as one of the most intelligent animal species, showcasing advanced problem-solving skills, self-awareness, tool use (such as using sea sponges as tools), and learning capabilities. Some dolphin species have been observed demonstrating altruism and understanding of human emotions. In contrast, while orcas are also smart, they do not display the same level of cognitive complexity as dolphins.
371
+
372
+ 4. Playfulness: Dolphins are well-known for their playful behavior, often engaging in acrobatic displays, chasing each other's tails, and playing with objects like balls or seaweed. This playful nature is thought to be essential for their social bonding and mental stimulation. Although orcas may occasionally interact playfully, it is not as prevalent or diverse as among dolphins.
373
+
374
+ 5. Agility and speed: Dolphins are incredibly agile swimmers, capable of reaching speeds up to 30 miles per hour (48 km/h) when pursuing prey. They can change direction rapidly and maneuver through tight spaces with ease. While orcas are powerful predators and fast swimmers themselves, they cannot match the sheer acceleration and agility of dolphins.
375
+
376
+ 6. Feeding habits: Both dolphins and orcas are carnivorous, feeding primarily on fish and cephalopods. However, dolphins employ a wider variety of hunting techniques, including cooperative hunting strategies involving herding, encircling, and driving schools of fish into shallow waters where they become disoriented and easier to catch. Orcas mainly rely on ambushing their prey from below and using their powerful jaws to strike quickly.
377
+
378
+ 7. Reproduction: Female dolphins usually give birth to a single calf after a gestation period of around 12 months. The mother plays a crucial role in raising and nurturing her offspring until they become independent. On the other hand, female orcas tend to breed every three to five years, giving birth to multiple offspring at once, and relying heavily on their mothers for protection and teaching.
379
+
380
+ 8. Vocal repertoire: Dolphins possess a wide range of sounds, including clicks, whistles, and body sounds, which allow them to convey different messages and establish unique identities within their pods. Orcas, too, produce vocalizations but lack the diversity found in dolphin calls.
381
+
382
+ 9. Conservation status: Many dolphin species face threats due to habitat loss, pollution, overfishing, and climate change. As a result, several populations are considered vulnerable or endangered by the International Union for Conservation of Nature (IUCN). In comparison, orca conservation status varies depending on the region; however, no species is currently listed as critically endangered or facing extinction.
383
+
384
+ 10. Adaptability: Dolphins have adapted to various aquatic environments, ranging from warm coastal waters to colder open oceans. Their versatility allows them to thrive in both tropical and temperate climates. Orcas, conversely, are adapted to specific habitats such as cooler coastal waters and are mostly found in the Northern Hemisphere.
385
+
386
+ <!-- original-model-card end -->