TheBloke commited on
Commit
c0425de
1 Parent(s): a9e50c2

Initial GGML model commit

Browse files
Files changed (1) hide show
  1. README.md +219 -0
README.md ADDED
@@ -0,0 +1,219 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ inference: false
3
+ license: llama2
4
+ model_creator: Zaraki Quem Parte
5
+ model_link: https://huggingface.co/zarakiquemparte/zarafusionex-1.1-l2-7b
6
+ model_name: Zaraufsionex 1.1 L2 7B
7
+ model_type: llama
8
+ quantized_by: TheBloke
9
+ tags:
10
+ - llama2
11
+ ---
12
+
13
+ <!-- header start -->
14
+ <!-- 200823 -->
15
+ <div style="width: auto; margin-left: auto; margin-right: auto">
16
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
17
+ </div>
18
+ <div style="display: flex; justify-content: space-between; width: 100%;">
19
+ <div style="display: flex; flex-direction: column; align-items: flex-start;">
20
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
21
+ </div>
22
+ <div style="display: flex; flex-direction: column; align-items: flex-end;">
23
+ <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>
24
+ </div>
25
+ </div>
26
+ <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>
27
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
28
+ <!-- header end -->
29
+
30
+ # Zaraufsionex 1.1 L2 7B - GGML
31
+ - Model creator: [Zaraki Quem Parte](https://huggingface.co/zarakiquemparte)
32
+ - Original model: [Zaraufsionex 1.1 L2 7B](https://huggingface.co/zarakiquemparte/zarafusionex-1.1-l2-7b)
33
+
34
+ ## Description
35
+
36
+ This repo contains GGML format model files for [Zaraki Quem Parte's Zaraufsionex 1.1 L2 7B](https://huggingface.co/zarakiquemparte/zarafusionex-1.1-l2-7b).
37
+
38
+ ### Important note regarding GGML files.
39
+
40
+ The GGML format has now been superseded by GGUF. As of August 21st 2023, [llama.cpp](https://github.com/ggerganov/llama.cpp) no longer supports GGML models. Third party clients and libraries are expected to still support it for a time, but many may also drop support.
41
+
42
+ ### About GGML
43
+
44
+ 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:
45
+ * [text-generation-webui](https://github.com/oobabooga/text-generation-webui), the most popular web UI. Supports NVidia CUDA GPU acceleration.
46
+ * [KoboldCpp](https://github.com/LostRuins/koboldcpp), a powerful GGML web UI with GPU acceleration on all platforms (CUDA and OpenCL). Especially good for story telling.
47
+ * [LM Studio](https://lmstudio.ai/), a fully featured local GUI with GPU acceleration on both Windows (NVidia and AMD), and macOS.
48
+ * [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui), a great web UI with CUDA GPU acceleration via the c_transformers backend.
49
+ * [ctransformers](https://github.com/marella/ctransformers), a Python library with GPU accel, LangChain support, and OpenAI-compatible AI server.
50
+ * [llama-cpp-python](https://github.com/abetlen/llama-cpp-python), a Python library with GPU accel, LangChain support, and OpenAI-compatible API server.
51
+
52
+ ## Repositories available
53
+
54
+ * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Zarafusionex-1.1-L2-7B-GPTQ)
55
+ * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/Zarafusionex-1.1-L2-7B-GGUF)
56
+ * [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference (deprecated)](https://huggingface.co/TheBloke/Zarafusionex-1.1-L2-7B-GGML)
57
+ * [Zaraki Quem Parte's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/zarakiquemparte/zarafusionex-1.1-l2-7b)
58
+
59
+ ## Prompt template: Alpaca
60
+
61
+ ```
62
+ Below is an instruction that describes a task. Write a response that appropriately completes the request.
63
+
64
+ ### Instruction:
65
+ {prompt}
66
+
67
+ ### Response:
68
+ ```
69
+
70
+ <!-- compatibility_ggml start -->
71
+ ## Compatibility
72
+
73
+ These quantised GGML files are compatible with llama.cpp between June 6th (commit `2d43387`) and August 21st 2023.
74
+
75
+ For support with latest llama.cpp, please use GGUF files instead.
76
+
77
+ The final llama.cpp commit with support for GGML was: [dadbed99e65252d79f81101a392d0d6497b86caa](https://github.com/ggerganov/llama.cpp/commit/dadbed99e65252d79f81101a392d0d6497b86caa)
78
+
79
+ As of August 23rd 2023 they are still compatible with all UIs, libraries and utilities which use GGML. This may change in the future.
80
+
81
+ ## Explanation of the new k-quant methods
82
+ <details>
83
+ <summary>Click to see details</summary>
84
+
85
+ The new methods available are:
86
+ * 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)
87
+ * 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.
88
+ * 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.
89
+ * GGML_TYPE_Q5_K - "type-1" 5-bit quantization. Same super-block structure as GGML_TYPE_Q4_K resulting in 5.5 bpw
90
+ * 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
91
+ * 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.
92
+
93
+ Refer to the Provided Files table below to see what files use which methods, and how.
94
+ </details>
95
+ <!-- compatibility_ggml end -->
96
+
97
+ ## Provided files
98
+
99
+ | Name | Quant method | Bits | Size | Max RAM required | Use case |
100
+ | ---- | ---- | ---- | ---- | ---- | ----- |
101
+ | [zarafusionex-1.1-l2-7b.ggmlv3.Q2_K.bin](https://huggingface.co/TheBloke/Zarafusionex-1.1-L2-7B-GGML/blob/main/zarafusionex-1.1-l2-7b.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. |
102
+ | [zarafusionex-1.1-l2-7b.ggmlv3.Q3_K_S.bin](https://huggingface.co/TheBloke/Zarafusionex-1.1-L2-7B-GGML/blob/main/zarafusionex-1.1-l2-7b.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 |
103
+ | [zarafusionex-1.1-l2-7b.ggmlv3.Q3_K_M.bin](https://huggingface.co/TheBloke/Zarafusionex-1.1-L2-7B-GGML/blob/main/zarafusionex-1.1-l2-7b.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 |
104
+ | [zarafusionex-1.1-l2-7b.ggmlv3.Q3_K_L.bin](https://huggingface.co/TheBloke/Zarafusionex-1.1-L2-7B-GGML/blob/main/zarafusionex-1.1-l2-7b.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 |
105
+ | [zarafusionex-1.1-l2-7b.ggmlv3.Q4_0.bin](https://huggingface.co/TheBloke/Zarafusionex-1.1-L2-7B-GGML/blob/main/zarafusionex-1.1-l2-7b.ggmlv3.Q4_0.bin) | Q4_0 | 4 | 3.83 GB| 6.33 GB | Original quant method, 4-bit. |
106
+ | [zarafusionex-1.1-l2-7b.ggmlv3.Q4_K_S.bin](https://huggingface.co/TheBloke/Zarafusionex-1.1-L2-7B-GGML/blob/main/zarafusionex-1.1-l2-7b.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 |
107
+ | [zarafusionex-1.1-l2-7b.ggmlv3.Q4_K_M.bin](https://huggingface.co/TheBloke/Zarafusionex-1.1-L2-7B-GGML/blob/main/zarafusionex-1.1-l2-7b.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 |
108
+ | [zarafusionex-1.1-l2-7b.ggmlv3.Q4_1.bin](https://huggingface.co/TheBloke/Zarafusionex-1.1-L2-7B-GGML/blob/main/zarafusionex-1.1-l2-7b.ggmlv3.Q4_1.bin) | Q4_1 | 4 | 4.24 GB| 6.74 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. |
109
+ | [zarafusionex-1.1-l2-7b.ggmlv3.Q5_0.bin](https://huggingface.co/TheBloke/Zarafusionex-1.1-L2-7B-GGML/blob/main/zarafusionex-1.1-l2-7b.ggmlv3.Q5_0.bin) | Q5_0 | 5 | 4.65 GB| 7.15 GB | Original quant method, 5-bit. Higher accuracy, higher resource usage and slower inference. |
110
+ | [zarafusionex-1.1-l2-7b.ggmlv3.Q5_K_S.bin](https://huggingface.co/TheBloke/Zarafusionex-1.1-L2-7B-GGML/blob/main/zarafusionex-1.1-l2-7b.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 |
111
+ | [zarafusionex-1.1-l2-7b.ggmlv3.Q5_K_M.bin](https://huggingface.co/TheBloke/Zarafusionex-1.1-L2-7B-GGML/blob/main/zarafusionex-1.1-l2-7b.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 |
112
+ | [zarafusionex-1.1-l2-7b.ggmlv3.Q5_1.bin](https://huggingface.co/TheBloke/Zarafusionex-1.1-L2-7B-GGML/blob/main/zarafusionex-1.1-l2-7b.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. |
113
+ | [zarafusionex-1.1-l2-7b.ggmlv3.Q6_K.bin](https://huggingface.co/TheBloke/Zarafusionex-1.1-L2-7B-GGML/blob/main/zarafusionex-1.1-l2-7b.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 |
114
+ | [zarafusionex-1.1-l2-7b.ggmlv3.Q8_0.bin](https://huggingface.co/TheBloke/Zarafusionex-1.1-L2-7B-GGML/blob/main/zarafusionex-1.1-l2-7b.ggmlv3.Q8_0.bin) | Q8_0 | 8 | 7.13 GB| 9.63 GB | Original quant method, 8-bit. Almost indistinguishable from float16. High resource use and slow. Not recommended for most users. |
115
+
116
+ **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.
117
+
118
+ ## How to run in `llama.cpp`
119
+
120
+ Make sure you are using `llama.cpp` from commit [dadbed99e65252d79f81101a392d0d6497b86caa](https://github.com/ggerganov/llama.cpp/commit/dadbed99e65252d79f81101a392d0d6497b86caa) or earlier.
121
+
122
+ For compatibility with latest llama.cpp, please use GGUF files instead.
123
+
124
+ ```
125
+ ./main -t 10 -ngl 32 -m zarafusionex-1.1-l2-7b.ggmlv3.q4_K_M.bin --color -c 2048 --temp 0.7 --repeat_penalty 1.1 -n -1 -p "### Instruction: Write a story about llamas\n### Response:"
126
+ ```
127
+ 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`.
128
+
129
+ Change `-ngl 32` to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.
130
+
131
+ Change `-c 2048` to the desired sequence length for this model. For example, `-c 4096` for a Llama 2 model. For models that use RoPE, add `--rope-freq-base 10000 --rope-freq-scale 0.5` for doubled context, or `--rope-freq-base 10000 --rope-freq-scale 0.25` for 4x context.
132
+
133
+ If you want to have a chat-style conversation, replace the `-p <PROMPT>` argument with `-i -ins`
134
+
135
+ 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)
136
+
137
+ ## How to run in `text-generation-webui`
138
+
139
+ Further instructions here: [text-generation-webui/docs/llama.cpp.md](https://github.com/oobabooga/text-generation-webui/blob/main/docs/llama.cpp.md).
140
+
141
+ <!-- footer start -->
142
+ <!-- 200823 -->
143
+ ## Discord
144
+
145
+ For further support, and discussions on these models and AI in general, join us at:
146
+
147
+ [TheBloke AI's Discord server](https://discord.gg/theblokeai)
148
+
149
+ ## Thanks, and how to contribute.
150
+
151
+ Thanks to the [chirper.ai](https://chirper.ai) team!
152
+
153
+ 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.
154
+
155
+ 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.
156
+
157
+ Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
158
+
159
+ * Patreon: https://patreon.com/TheBlokeAI
160
+ * Ko-Fi: https://ko-fi.com/TheBlokeAI
161
+
162
+ **Special thanks to**: Aemon Algiz.
163
+
164
+ **Patreon special mentions**: Kacper Wikieł, knownsqashed, Leonard Tan, Asp the Wyvern, Daniel P. Andersen, Luke Pendergrass, Stanislav Ovsiannikov, RoA, Dave, Ai Maven, Kalila, Will Dee, Imad Khwaja, Nitin Borwankar, Joseph William Delisle, Tony Hughes, Cory Kujawski, Rishabh Srivastava, Russ Johnson, Stephen Murray, Lone Striker, Johann-Peter Hartmann, Elle, J, Deep Realms, SuperWojo, Raven Klaugh, Sebastain Graf, ReadyPlayerEmma, Alps Aficionado, Mano Prime, Derek Yates, Gabriel Puliatti, Mesiah Bishop, Magnesian, Sean Connelly, biorpg, Iucharbius, Olakabola, Fen Risland, Space Cruiser, theTransient, Illia Dulskyi, Thomas Belote, Spencer Kim, Pieter, John Detwiler, Fred von Graf, Michael Davis, Swaroop Kallakuri, subjectnull, Clay Pascal, Subspace Studios, Chris Smitley, Enrico Ros, usrbinkat, Steven Wood, alfie_i, David Ziegler, Willem Michiel, Matthew Berman, Andrey, Pyrater, Jeffrey Morgan, vamX, LangChain4j, Luke @flexchar, Trenton Dambrowitz, Pierre Kircher, Alex, Sam, James Bentley, Edmond Seymore, Eugene Pentland, Pedro Madruga, Rainer Wilmers, Dan Guido, Nathan LeClaire, Spiking Neurons AB, Talal Aujan, zynix, Artur Olbinski, Michael Levine, 阿明, K, John Villwock, Nikolai Manek, Femi Adebogun, senxiiz, Deo Leter, NimbleBox.ai, Viktor Bowallius, Geoffrey Montalvo, Mandus, Ajan Kanaga, ya boyyy, Jonathan Leane, webtim, Brandon Frisco, danny, Alexandros Triantafyllidis, Gabriel Tamborski, Randy H, terasurfer, Vadim, Junyu Yang, Vitor Caleffi, Chadd, transmissions 11
165
+
166
+
167
+ Thank you to all my generous patrons and donaters!
168
+
169
+ And thank you again to a16z for their generous grant.
170
+
171
+ <!-- footer end -->
172
+
173
+ # Original model card: Zaraki Quem Parte's Zaraufsionex 1.1 L2 7B
174
+
175
+ # Model Card: Zarafusionex 1.1 L2 7b
176
+ This model uses [Nous Hermes Llama2 7b](https://huggingface.co/NousResearch/Nous-Hermes-llama-2-7b) (53%) as a base with [Stable Beluga 7b](https://huggingface.co/stabilityai/StableBeluga-7B) (47%) and the result of this merge was merged with [LimaRP LLama2 7B Lora version of the day 07/23/2023](https://huggingface.co/lemonilia/limarp-llama2).
177
+
178
+ This merge of models(hermes and stable beluga) was done with this [script](https://github.com/zarakiquemparte/zaraki-tools/blob/main/merge-cli.py)
179
+
180
+ This merge of Lora with Model was done with this [script](https://github.com/zarakiquemparte/zaraki-tools/blob/main/apply-lora.py)
181
+
182
+ Merge illustration:
183
+
184
+ ![illustration](zarafusionex-merge-illustration.png)
185
+
186
+ ## Usage:
187
+
188
+ Since this is a merge between Nous Hermes, Stable Beluga and LimaRP, the following instruction formats should work:
189
+
190
+ Alpaca 2:
191
+
192
+ ```
193
+ ### Instruction:
194
+ <prompt>
195
+
196
+ ### Response:
197
+ <leave a newline blank for model to respond>
198
+ ```
199
+
200
+ LimaRP instruction format:
201
+
202
+ ```
203
+ <<SYSTEM>>
204
+ <character card and system prompt>
205
+
206
+ <<USER>>
207
+ <prompt>
208
+
209
+ <<AIBOT>>
210
+ <leave a newline blank for model to respond>
211
+ ```
212
+
213
+ ## Bias, Risks, and Limitations
214
+
215
+ This model is not intended for supplying factual information or advice in any form
216
+
217
+ ## Training Details
218
+
219
+ This model is merged and can be reproduced using the tools mentioned above. Please refer to all provided links for extra model-specific details.