TheBloke commited on
Commit
f634a76
1 Parent(s): 951b516

Initial GGML model commit

Browse files
Files changed (1) hide show
  1. README.md +176 -0
README.md ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ inference: false
3
+ license: llama2
4
+ model_creator: grimpep
5
+ model_link: https://huggingface.co/grimpep/llama2-22B-GPLATTY
6
+ model_name: Llama2 22B GPLATTY
7
+ model_type: llama
8
+ quantized_by: TheBloke
9
+ tags:
10
+ - llama
11
+ - llama-2
12
+ ---
13
+
14
+ <!-- header start -->
15
+ <!-- 200823 -->
16
+ <div style="width: auto; margin-left: auto; margin-right: auto">
17
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
18
+ </div>
19
+ <div style="display: flex; justify-content: space-between; width: 100%;">
20
+ <div style="display: flex; flex-direction: column; align-items: flex-start;">
21
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
22
+ </div>
23
+ <div style="display: flex; flex-direction: column; align-items: flex-end;">
24
+ <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>
25
+ </div>
26
+ </div>
27
+ <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>
28
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
29
+ <!-- header end -->
30
+
31
+ # Llama2 22B GPLATTY - GGML
32
+ - Model creator: [grimpep](https://huggingface.co/grimpep)
33
+ - Original model: [Llama2 22B GPLATTY](https://huggingface.co/grimpep/llama2-22B-GPLATTY)
34
+
35
+ ## Description
36
+
37
+ This repo contains GGML format model files for [grimpep's Llama2 22B GPLATTY](https://huggingface.co/grimpep/llama2-22B-GPLATTY).
38
+
39
+ 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:
40
+ * [text-generation-webui](https://github.com/oobabooga/text-generation-webui), the most popular web UI. Supports NVidia CUDA GPU acceleration.
41
+ * [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.
42
+ * [LM Studio](https://lmstudio.ai/), a fully featured local GUI with GPU acceleration on both Windows (NVidia and AMD), and macOS.
43
+ * [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui), a great web UI with CUDA GPU acceleration via the c_transformers backend.
44
+ * [ctransformers](https://github.com/marella/ctransformers), a Python library with GPU accel, LangChain support, and OpenAI-compatible AI server.
45
+ * [llama-cpp-python](https://github.com/abetlen/llama-cpp-python), a Python library with GPU accel, LangChain support, and OpenAI-compatible API server.
46
+
47
+ ## Repositories available
48
+
49
+ * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Llama2-22B-GPLATTY-GPTQ)
50
+ * [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference](https://huggingface.co/TheBloke/Llama2-22B-GPLATTY-GGML)
51
+ * [grimpep's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/grimpep/llama2-22B-GPLATTY)
52
+
53
+ ## Prompt template: Alpaca
54
+
55
+ ```
56
+ Below is an instruction that describes a task. Write a response that appropriately completes the request.
57
+
58
+ ### Instruction:
59
+ {prompt}
60
+
61
+ ### Response:
62
+ ```
63
+
64
+ <!-- compatibility_ggml start -->
65
+ ## Compatibility
66
+
67
+ These quantised GGML files are compatible with llama.cpp as of June 6th, commit `2d43387`.
68
+
69
+ They should also be compatible with all UIs, libraries and utilities which use GGML.
70
+
71
+ ## Explanation of the new k-quant methods
72
+ <details>
73
+ <summary>Click to see details</summary>
74
+
75
+ The new methods available are:
76
+ * 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)
77
+ * 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.
78
+ * 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.
79
+ * GGML_TYPE_Q5_K - "type-1" 5-bit quantization. Same super-block structure as GGML_TYPE_Q4_K resulting in 5.5 bpw
80
+ * 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
81
+ * 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.
82
+
83
+ Refer to the Provided Files table below to see what files use which methods, and how.
84
+ </details>
85
+ <!-- compatibility_ggml end -->
86
+
87
+ ## Provided files
88
+
89
+ | Name | Quant method | Bits | Size | Max RAM required | Use case |
90
+ | ---- | ---- | ---- | ---- | ---- | ----- |
91
+ | [llama2-22b-gplatty.ggmlv3.q2_K.bin](https://huggingface.co/TheBloke/Llama2-22B-GPLATTY-GGML/blob/main/llama2-22b-gplatty.ggmlv3.q2_K.bin) | q2_K | 2 | 9.22 GB| 11.72 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. |
92
+ | [llama2-22b-gplatty.ggmlv3.q3_K_L.bin](https://huggingface.co/TheBloke/Llama2-22B-GPLATTY-GGML/blob/main/llama2-22b-gplatty.ggmlv3.q3_K_L.bin) | q3_K_L | 3 | 11.61 GB| 14.11 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 |
93
+ | [llama2-22b-gplatty.ggmlv3.q3_K_M.bin](https://huggingface.co/TheBloke/Llama2-22B-GPLATTY-GGML/blob/main/llama2-22b-gplatty.ggmlv3.q3_K_M.bin) | q3_K_M | 3 | 10.57 GB| 13.07 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 |
94
+ | [llama2-22b-gplatty.ggmlv3.q3_K_S.bin](https://huggingface.co/TheBloke/Llama2-22B-GPLATTY-GGML/blob/main/llama2-22b-gplatty.ggmlv3.q3_K_S.bin) | q3_K_S | 3 | 9.46 GB| 11.96 GB | New k-quant method. Uses GGML_TYPE_Q3_K for all tensors |
95
+ | [llama2-22b-gplatty.ggmlv3.q4_0.bin](https://huggingface.co/TheBloke/Llama2-22B-GPLATTY-GGML/blob/main/llama2-22b-gplatty.ggmlv3.q4_0.bin) | q4_0 | 4 | 12.34 GB| 14.84 GB | Original quant method, 4-bit. |
96
+ | [llama2-22b-gplatty.ggmlv3.q4_1.bin](https://huggingface.co/TheBloke/Llama2-22B-GPLATTY-GGML/blob/main/llama2-22b-gplatty.ggmlv3.q4_1.bin) | q4_1 | 4 | 13.69 GB| 16.19 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. |
97
+ | [llama2-22b-gplatty.ggmlv3.q4_K_M.bin](https://huggingface.co/TheBloke/Llama2-22B-GPLATTY-GGML/blob/main/llama2-22b-gplatty.ggmlv3.q4_K_M.bin) | q4_K_M | 4 | 13.18 GB| 15.68 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 |
98
+ | [llama2-22b-gplatty.ggmlv3.q4_K_S.bin](https://huggingface.co/TheBloke/Llama2-22B-GPLATTY-GGML/blob/main/llama2-22b-gplatty.ggmlv3.q4_K_S.bin) | q4_K_S | 4 | 12.34 GB| 14.84 GB | New k-quant method. Uses GGML_TYPE_Q4_K for all tensors |
99
+ | [llama2-22b-gplatty.ggmlv3.q5_0.bin](https://huggingface.co/TheBloke/Llama2-22B-GPLATTY-GGML/blob/main/llama2-22b-gplatty.ggmlv3.q5_0.bin) | q5_0 | 5 | 15.04 GB| 17.54 GB | Original quant method, 5-bit. Higher accuracy, higher resource usage and slower inference. |
100
+ | [llama2-22b-gplatty.ggmlv3.q5_1.bin](https://huggingface.co/TheBloke/Llama2-22B-GPLATTY-GGML/blob/main/llama2-22b-gplatty.ggmlv3.q5_1.bin) | q5_1 | 5 | 16.39 GB| 18.89 GB | Original quant method, 5-bit. Even higher accuracy, resource usage and slower inference. |
101
+ | [llama2-22b-gplatty.ggmlv3.q5_K_M.bin](https://huggingface.co/TheBloke/Llama2-22B-GPLATTY-GGML/blob/main/llama2-22b-gplatty.ggmlv3.q5_K_M.bin) | q5_K_M | 5 | 15.47 GB| 17.97 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 |
102
+ | [llama2-22b-gplatty.ggmlv3.q5_K_S.bin](https://huggingface.co/TheBloke/Llama2-22B-GPLATTY-GGML/blob/main/llama2-22b-gplatty.ggmlv3.q5_K_S.bin) | q5_K_S | 5 | 15.04 GB| 17.54 GB | New k-quant method. Uses GGML_TYPE_Q5_K for all tensors |
103
+ | [llama2-22b-gplatty.ggmlv3.q6_K.bin](https://huggingface.co/TheBloke/Llama2-22B-GPLATTY-GGML/blob/main/llama2-22b-gplatty.ggmlv3.q6_K.bin) | q6_K | 6 | 17.91 GB| 20.41 GB | New k-quant method. Uses GGML_TYPE_Q8_K for all tensors - 6-bit quantization |
104
+ | [llama2-22b-gplatty.ggmlv3.q8_0.bin](https://huggingface.co/TheBloke/Llama2-22B-GPLATTY-GGML/blob/main/llama2-22b-gplatty.ggmlv3.q8_0.bin) | q8_0 | 8 | 23.14 GB| 25.64 GB | Original quant method, 8-bit. Almost indistinguishable from float16. High resource use and slow. Not recommended for most users. |
105
+
106
+ **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.
107
+
108
+ ## How to run in `llama.cpp`
109
+
110
+ I use the following command line; adjust for your tastes and needs:
111
+
112
+ ```
113
+ ./main -t 10 -ngl 32 -m llama2-22b-gplatty.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:"
114
+ ```
115
+ 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`.
116
+
117
+ Change `-ngl 32` to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.
118
+
119
+ 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.
120
+
121
+ If you want to have a chat-style conversation, replace the `-p <PROMPT>` argument with `-i -ins`
122
+
123
+ 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)
124
+
125
+ ## How to run in `text-generation-webui`
126
+
127
+ Further instructions here: [text-generation-webui/docs/llama.cpp.md](https://github.com/oobabooga/text-generation-webui/blob/main/docs/llama.cpp.md).
128
+
129
+ <!-- footer start -->
130
+ <!-- 200823 -->
131
+ ## Discord
132
+
133
+ For further support, and discussions on these models and AI in general, join us at:
134
+
135
+ [TheBloke AI's Discord server](https://discord.gg/theblokeai)
136
+
137
+ ## Thanks, and how to contribute.
138
+
139
+ Thanks to the [chirper.ai](https://chirper.ai) team!
140
+
141
+ 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.
142
+
143
+ 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.
144
+
145
+ Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
146
+
147
+ * Patreon: https://patreon.com/TheBlokeAI
148
+ * Ko-Fi: https://ko-fi.com/TheBlokeAI
149
+
150
+ **Special thanks to**: Aemon Algiz.
151
+
152
+ **Patreon special mentions**: Sam, theTransient, Jonathan Leane, Steven Wood, webtim, Johann-Peter Hartmann, Geoffrey Montalvo, Gabriel Tamborski, Willem Michiel, John Villwock, Derek Yates, Mesiah Bishop, Eugene Pentland, Pieter, Chadd, Stephen Murray, Daniel P. Andersen, terasurfer, Brandon Frisco, Thomas Belote, Sid, Nathan LeClaire, Magnesian, Alps Aficionado, Stanislav Ovsiannikov, Alex, Joseph William Delisle, Nikolai Manek, Michael Davis, Junyu Yang, K, J, Spencer Kim, Stefan Sabev, Olusegun Samson, transmissions 11, Michael Levine, Cory Kujawski, Rainer Wilmers, zynix, Kalila, Luke @flexchar, Ajan Kanaga, Mandus, vamX, Ai Maven, Mano Prime, Matthew Berman, subjectnull, Vitor Caleffi, Clay Pascal, biorpg, alfie_i, 阿明, Jeffrey Morgan, ya boyyy, Raymond Fosdick, knownsqashed, Olakabola, Leonard Tan, ReadyPlayerEmma, Enrico Ros, Dave, Talal Aujan, Illia Dulskyi, Sean Connelly, senxiiz, Artur Olbinski, Elle, Raven Klaugh, Fen Risland, Deep Realms, Imad Khwaja, Fred von Graf, Will Dee, usrbinkat, SuperWojo, Alexandros Triantafyllidis, Swaroop Kallakuri, Dan Guido, John Detwiler, Pedro Madruga, Iucharbius, Viktor Bowallius, Asp the Wyvern, Edmond Seymore, Trenton Dambrowitz, Space Cruiser, Spiking Neurons AB, Pyrater, LangChain4j, Tony Hughes, Kacper Wikieł, Rishabh Srivastava, David Ziegler, Luke Pendergrass, Andrey, Gabriel Puliatti, Lone Striker, Sebastain Graf, Pierre Kircher, Randy H, NimbleBox.ai, Vadim, danny, Deo Leter
153
+
154
+
155
+ Thank you to all my generous patrons and donaters!
156
+
157
+ And thank you again to a16z for their generous grant.
158
+
159
+ <!-- footer end -->
160
+
161
+ # Original model card: grimpep's Llama2 22B GPLATTY
162
+
163
+
164
+ This model is an experiment using the frankenstein script from
165
+ https://huggingface.co/chargoddard/llama2-22b
166
+ I merged an already merged 13B Llama v2 model
167
+ GUACHAT + KIMIKO = https://huggingface.co/grimpep/13Bv2-llama-modelmerge
168
+
169
+ Then used https://huggingface.co/TheBloke/GPlatty-30B-SuperHOT-8K-fp16
170
+ as donor model.
171
+
172
+ It used 160GB of system ram to merge these models, they merge fast without swap.
173
+
174
+ No strange behaviour noticed when generating with this model (maybe more hallucinations than usual), but note that this is still all experimental.
175
+
176
+ This model might be more (didn't finetune it) more "ethically" aligned than https://huggingface.co/grimpep/llama2-22b-wizard_vicuna