TheBloke commited on
Commit
d1c152d
1 Parent(s): 9c5da57

Initial GGML model commit

Browse files
Files changed (1) hide show
  1. README.md +198 -0
README.md ADDED
@@ -0,0 +1,198 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ inference: false
3
+ license: other
4
+ model_type: llama
5
+ ---
6
+
7
+ <!-- header start -->
8
+ <div style="width: 100%;">
9
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
10
+ </div>
11
+ <div style="display: flex; justify-content: space-between; width: 100%;">
12
+ <div style="display: flex; flex-direction: column; align-items: flex-start;">
13
+ <p><a href="https://discord.gg/theblokeai">Chat & support: my new Discord server</a></p>
14
+ </div>
15
+ <div style="display: flex; flex-direction: column; align-items: flex-end;">
16
+ <p><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p>
17
+ </div>
18
+ </div>
19
+ <!-- header end -->
20
+
21
+ # Tap-M's Luna AI Llama2 Uncensored GGML
22
+
23
+ These files are GGML format model files for [Tap-M's Luna AI Llama2 Uncensored](https://huggingface.co/Tap-M/Luna-AI-Llama2-Uncensored).
24
+
25
+ GGML files are for CPU + GPU inference using [llama.cpp](https://github.com/ggerganov/llama.cpp) and libraries and UIs which support this format, such as:
26
+ * [KoboldCpp](https://github.com/LostRuins/koboldcpp), a powerful GGML web UI with full GPU acceleration out of the box. Especially good for story telling.
27
+ * [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui), a great web UI with GPU acceleration via the c_transformers backend.
28
+ * [LM Studio](https://lmstudio.ai/), a fully featured local GUI. Supports full GPU accel on macOS. Also supports Windows, without GPU accel.
29
+ * [text-generation-webui](https://github.com/oobabooga/text-generation-webui), the most popular web UI. Requires extra steps to enable GPU accel via llama.cpp backend.
30
+ * [ctransformers](https://github.com/marella/ctransformers), a Python library with LangChain support and OpenAI-compatible AI server.
31
+ * [llama-cpp-python](https://github.com/abetlen/llama-cpp-python), a Python library with OpenAI-compatible API server.
32
+
33
+ Many thanks to William Beauchamp from [Chai](https://chai-research.com/) for providing the hardware used to make and upload these files!
34
+
35
+ ## Repositories available
36
+
37
+ * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Luna-AI-Llama2-Uncensored-GPTQ)
38
+ * [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference](https://huggingface.co/TheBloke/Luna-AI-Llama2-Uncensored-GGML)
39
+ * [Original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/Tap-M/Luna-AI-Llama2-Uncensored)
40
+
41
+ ## Prompt template: User-Assistant
42
+
43
+ ```
44
+ USER: {prompt}
45
+ ASSISTANT:
46
+ ```
47
+
48
+ <!-- compatibility_ggml start -->
49
+ ## Compatibility
50
+
51
+ ### Original llama.cpp quant methods: `q4_0, q4_1, q5_0, q5_1, q8_0`
52
+
53
+ These are guaranteed to be compatible with any UIs, tools and libraries released since late May. They may be phased out soon, as they are largely superseded by the new k-quant methods.
54
+
55
+ ### New k-quant methods: `q2_K, q3_K_S, q3_K_M, q3_K_L, q4_K_S, q4_K_M, q5_K_S, q6_K`
56
+
57
+ These new quantisation methods are compatible with llama.cpp as of June 6th, commit `2d43387`.
58
+
59
+ They are now also compatible with recent releases of text-generation-webui, KoboldCpp, llama-cpp-python, ctransformers, rustformers and most others. For compatibility with other tools and libraries, please check their documentation.
60
+
61
+ ## Explanation of the new k-quant methods
62
+ <details>
63
+ <summary>Click to see details</summary>
64
+
65
+ The new methods available are:
66
+ * 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)
67
+ * 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.
68
+ * 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.
69
+ * GGML_TYPE_Q5_K - "type-1" 5-bit quantization. Same super-block structure as GGML_TYPE_Q4_K resulting in 5.5 bpw
70
+ * 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
71
+ * GGML_TYPE_Q8_K - "type-0" 8-bit quantization. Only used for quantizing intermediate results. The difference to the existing Q8_0 is that the block size is 256. All 2-6 bit dot products are implemented for this quantization type.
72
+
73
+ Refer to the Provided Files table below to see what files use which methods, and how.
74
+ </details>
75
+ <!-- compatibility_ggml end -->
76
+
77
+ ## Provided files
78
+ | Name | Quant method | Bits | Size | Max RAM required | Use case |
79
+ | ---- | ---- | ---- | ---- | ---- | ----- |
80
+ | luna-ai-llama2-uncensored.ggmlv3.q2_K.bin | q2_K | 2 | 2.87 GB| 5.37 GB | New k-quant method. Uses GGML_TYPE_Q4_K for the attention.vw and feed_forward.w2 tensors, GGML_TYPE_Q2_K for the other tensors. |
81
+ | luna-ai-llama2-uncensored.ggmlv3.q3_K_L.bin | q3_K_L | 3 | 3.60 GB| 6.10 GB | New k-quant method. Uses GGML_TYPE_Q5_K for the attention.wv, attention.wo, and feed_forward.w2 tensors, else GGML_TYPE_Q3_K |
82
+ | luna-ai-llama2-uncensored.ggmlv3.q3_K_M.bin | q3_K_M | 3 | 3.28 GB| 5.78 GB | New k-quant method. Uses GGML_TYPE_Q4_K for the attention.wv, attention.wo, and feed_forward.w2 tensors, else GGML_TYPE_Q3_K |
83
+ | luna-ai-llama2-uncensored.ggmlv3.q3_K_S.bin | q3_K_S | 3 | 2.95 GB| 5.45 GB | New k-quant method. Uses GGML_TYPE_Q3_K for all tensors |
84
+ | luna-ai-llama2-uncensored.ggmlv3.q4_0.bin | q4_0 | 4 | 3.79 GB| 6.29 GB | Original quant method, 4-bit. |
85
+ | luna-ai-llama2-uncensored.ggmlv3.q4_1.bin | q4_1 | 4 | 4.21 GB| 6.71 GB | Original quant method, 4-bit. Higher accuracy than q4_0 but not as high as q5_0. However has quicker inference than q5 models. |
86
+ | luna-ai-llama2-uncensored.ggmlv3.q4_K_M.bin | q4_K_M | 4 | 4.08 GB| 6.58 GB | New k-quant method. Uses GGML_TYPE_Q6_K for half of the attention.wv and feed_forward.w2 tensors, else GGML_TYPE_Q4_K |
87
+ | luna-ai-llama2-uncensored.ggmlv3.q4_K_S.bin | q4_K_S | 4 | 3.83 GB| 6.33 GB | New k-quant method. Uses GGML_TYPE_Q4_K for all tensors |
88
+ | luna-ai-llama2-uncensored.ggmlv3.q5_0.bin | q5_0 | 5 | 4.63 GB| 7.13 GB | Original quant method, 5-bit. Higher accuracy, higher resource usage and slower inference. |
89
+ | luna-ai-llama2-uncensored.ggmlv3.q5_1.bin | q5_1 | 5 | 5.06 GB| 7.56 GB | Original quant method, 5-bit. Even higher accuracy, resource usage and slower inference. |
90
+ | luna-ai-llama2-uncensored.ggmlv3.q5_K_M.bin | q5_K_M | 5 | 4.78 GB| 7.28 GB | New k-quant method. Uses GGML_TYPE_Q6_K for half of the attention.wv and feed_forward.w2 tensors, else GGML_TYPE_Q5_K |
91
+ | luna-ai-llama2-uncensored.ggmlv3.q5_K_S.bin | q5_K_S | 5 | 4.65 GB| 7.15 GB | New k-quant method. Uses GGML_TYPE_Q5_K for all tensors |
92
+ | luna-ai-llama2-uncensored.ggmlv3.q6_K.bin | q6_K | 6 | 5.53 GB| 8.03 GB | New k-quant method. Uses GGML_TYPE_Q8_K for all tensors - 6-bit quantization |
93
+ | luna-ai-llama2-uncensored.ggmlv3.q8_0.bin | q8_0 | 8 | 7.16 GB| 9.66 GB | Original quant method, 8-bit. Almost indistinguishable from float16. High resource use and slow. Not recommended for most users. |
94
+
95
+ **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.
96
+
97
+ ## How to run in `llama.cpp`
98
+
99
+ I use the following command line; adjust for your tastes and needs:
100
+
101
+ ```
102
+ ./main -t 10 -ngl 32 -m luna-ai-llama2-uncensored.ggmlv3.q4_0.bin --color -c 2048 --temp 0.7 --repeat_penalty 1.1 -n -1 -p "### Instruction: Write a story about llamas\n### Response:"
103
+ ```
104
+ Change `-t 10` to the number of physical CPU cores you have. For example if your system has 8 cores/16 threads, use `-t 8`.
105
+
106
+ Change `-ngl 32` to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.
107
+
108
+ If you want to have a chat-style conversation, replace the `-p <PROMPT>` argument with `-i -ins`
109
+
110
+ ## How to run in `text-generation-webui`
111
+
112
+ Further instructions here: [text-generation-webui/docs/llama.cpp-models.md](https://github.com/oobabooga/text-generation-webui/blob/main/docs/llama.cpp-models.md).
113
+
114
+ <!-- footer start -->
115
+ ## Discord
116
+
117
+ For further support, and discussions on these models and AI in general, join us at:
118
+
119
+ [TheBloke AI's Discord server](https://discord.gg/theblokeai)
120
+
121
+ ## Thanks, and how to contribute.
122
+
123
+ Thanks to the [chirper.ai](https://chirper.ai) team!
124
+
125
+ 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.
126
+
127
+ 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.
128
+
129
+ Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
130
+
131
+ * Patreon: https://patreon.com/TheBlokeAI
132
+ * Ko-Fi: https://ko-fi.com/TheBlokeAI
133
+
134
+ **Special thanks to**: Luke from CarbonQuill, Aemon Algiz.
135
+
136
+ **Patreon special mentions**: Space Cruiser, Nikolai Manek, Sam, Chris McCloskey, Rishabh Srivastava, Kalila, Spiking Neurons AB, Khalefa Al-Ahmad, WelcomeToTheClub, Chadd, Lone Striker, Viktor Bowallius, Edmond Seymore, Ai Maven, Chris Smitley, Dave, Alexandros Triantafyllidis, Luke @flexchar, Elle, ya boyyy, Talal Aujan, Alex , Jonathan Leane, Deep Realms, Randy H, subjectnull, Preetika Verma, Joseph William Delisle, Michael Levine, chris gileta, K, Oscar Rangel, LangChain4j, Trenton Dambrowitz, Eugene Pentland, Johann-Peter Hartmann, Femi Adebogun, Illia Dulskyi, senxiiz, Daniel P. Andersen, Sean Connelly, Artur Olbinski, RoA, Mano Prime, Derek Yates, Raven Klaugh, David Flickinger, Willem Michiel, Pieter, Willian Hasse, vamX, Luke Pendergrass, webtim, Ghost , Rainer Wilmers, Nathan LeClaire, Will Dee, Cory Kujawski, John Detwiler, Fred von Graf, biorpg, Iucharbius , Imad Khwaja, Pierre Kircher, terasurfer , Asp the Wyvern, John Villwock, theTransient, zynix , Gabriel Tamborski, Fen Risland, Gabriel Puliatti, Matthew Berman, Pyrater, SuperWojo, Stephen Murray, Karl Bernard, Ajan Kanaga, Greatston Gnanesh, Junyu Yang.
137
+
138
+ Thank you to all my generous patrons and donaters!
139
+
140
+ <!-- footer end -->
141
+
142
+ # Original model card: Tap-M's Luna AI Llama2 Uncensored
143
+
144
+
145
+ <div style="width: 800px; margin: auto;">
146
+
147
+ <h2>Model Description</h2>
148
+ <p>“Luna AI Llama2 Uncensored” is a Llama2 based Chat model <br />fine-tuned on over 40,000 long form chat discussions <br />
149
+ This model was fine-tuned by Tap, the creator of Luna AI. <br />
150
+ The result is an enhanced Llama2 7b model that rivals ChatGPT in performance <br />across a variety of tasks.</p>
151
+ <p>This model stands out for its long responses, low hallucination rate, and absence of censorship mechanisms. <br /></p>
152
+
153
+ <h2>Model Training</h2>
154
+ <p>The fine-tuning process was performed on an 8x a100 80GB machine.
155
+ <br />The model was trained almost entirely on synthetic outputs.
156
+ <br />This includes data from diverse sources which we included to create our custom dataset, it includes multiple rounds of chats between Human & AI.
157
+ </p>
158
+
159
+ <h2>Prompt Format</h2>
160
+ <p>The model follows the Vicuna 1.1/ OpenChat format:</p>
161
+
162
+ ```
163
+ USER: I have difficulties in making friends, and I really need someone to talk to. Would you be my friend?
164
+
165
+ ASSISTANT: Of course! Friends are always here for each other. What do you like to do?
166
+
167
+ ```
168
+
169
+
170
+ <h2>Future Plans</h2>
171
+ <p>The model is currently being uploaded in FP16 format, <br />and there are plans to convert the model to GGML and GPTQ 4bit quantizations.</p>
172
+
173
+ <h2>Benchmark Results</h2>
174
+
175
+ ||||||
176
+ |---:|---:|---:|---:|---:|
177
+ |Task|Version| Metric |Value |Stderr|
178
+ |arc_challenge|0|acc_norm|0.5512|0.0146|
179
+ |hellaswag|0||||
180
+ |mmlu|0||||
181
+ |truthfulqa_mc|1|mc2|0.4716|0.0155|
182
+ |Average|-|-|0.5114|0.0150|
183
+
184
+ <h2>Ethical considerations</h2>
185
+ <p>The data used to train the model is collected from various sources, mostly from the Web. <br />
186
+ As such, it contains offensive, harmful and biased content. <br />We thus expect the model to exhibit such biases from the training data.</p>
187
+
188
+ <h2>Human life</h2>
189
+ <p>The model is not intended to inform decisions about matters central to human life, <br />and should not be used in such a way.</p>
190
+
191
+ <h2>Risks and harms</h2>
192
+ <p>Risks and harms of large language models include the generation of harmful, offensive or biased content. <br />
193
+ These models are often prone to generating incorrect information, sometimes referred to as hallucinations.
194
+ <br /> We do not expect our model to be an exception in this regard.</p>
195
+
196
+ </div>
197
+
198
+