Transformers
llama
text-generation-inference
TheBloke commited on
Commit
33ef1d8
1 Parent(s): dec41ca

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: llama2
4
+ model_creator: Kai Howard
5
+ model_link: https://huggingface.co/totally-not-an-llm/PuddleJumper-13b
6
+ model_name: PuddleJumper 13B
7
+ model_type: llama
8
+ quantized_by: TheBloke
9
+ ---
10
+
11
+ <!-- header start -->
12
+ <!-- 200823 -->
13
+ <div style="width: auto; margin-left: auto; margin-right: auto">
14
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
15
+ </div>
16
+ <div style="display: flex; justify-content: space-between; width: 100%;">
17
+ <div style="display: flex; flex-direction: column; align-items: flex-start;">
18
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
19
+ </div>
20
+ <div style="display: flex; flex-direction: column; align-items: flex-end;">
21
+ <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>
22
+ </div>
23
+ </div>
24
+ <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>
25
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
26
+ <!-- header end -->
27
+
28
+ # PuddleJumper 13B - GGML
29
+ - Model creator: [Kai Howard](https://huggingface.co/totally-not-an-llm)
30
+ - Original model: [PuddleJumper 13B](https://huggingface.co/totally-not-an-llm/PuddleJumper-13b)
31
+
32
+ ## Description
33
+
34
+ This repo contains GGML format model files for [Kai Howard's PuddleJumper 13B](https://huggingface.co/totally-not-an-llm/PuddleJumper-13b).
35
+
36
+ ### Import note regarding GGML files
37
+
38
+ 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.
39
+
40
+ ### About GGML
41
+
42
+ 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:
43
+ * [text-generation-webui](https://github.com/oobabooga/text-generation-webui), the most popular web UI. Supports NVidia CUDA GPU acceleration.
44
+ * [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.
45
+ * [LM Studio](https://lmstudio.ai/), a fully featured local GUI with GPU acceleration on both Windows (NVidia and AMD), and macOS.
46
+ * [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui), a great web UI with CUDA GPU acceleration via the c_transformers backend.
47
+ * [ctransformers](https://github.com/marella/ctransformers), a Python library with GPU accel, LangChain support, and OpenAI-compatible AI server.
48
+ * [llama-cpp-python](https://github.com/abetlen/llama-cpp-python), a Python library with GPU accel, LangChain support, and OpenAI-compatible API server.
49
+
50
+ ## Repositories available
51
+
52
+ * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/PuddleJumper-13B-GPTQ)
53
+ * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/PuddleJumper-13B-GGUF)
54
+ * [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference (deprecated)](https://huggingface.co/TheBloke/PuddleJumper-13B-GGML)
55
+ * [Kai Howard's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/totally-not-an-llm/PuddleJumper-13b)
56
+
57
+ ## Prompt template: Vicuna-Short
58
+
59
+ ```
60
+ You are a helpful AI assistant.
61
+
62
+ USER: {prompt}
63
+ ASSISTANT:
64
+ ```
65
+
66
+ <!-- compatibility_ggml start -->
67
+ ## Compatibility
68
+
69
+ These quantised GGML files are compatible with llama.cpp between June 6th (commit `2d43387`) and August 21st 2023.
70
+
71
+ For support with latest llama.cpp, please use GGUF files instead.
72
+
73
+ The final llama.cpp commit with support for GGML was: [dadbed99e65252d79f81101a392d0d6497b86caa](https://github.com/ggerganov/llama.cpp/commit/dadbed99e65252d79f81101a392d0d6497b86caa)
74
+
75
+ As of August 23rd 2023 they are still compatible with all UIs, libraries and utilities which use GGML. This may change in the future.
76
+
77
+ ## Explanation of the new k-quant methods
78
+ <details>
79
+ <summary>Click to see details</summary>
80
+
81
+ The new methods available are:
82
+ * 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)
83
+ * 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.
84
+ * 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.
85
+ * GGML_TYPE_Q5_K - "type-1" 5-bit quantization. Same super-block structure as GGML_TYPE_Q4_K resulting in 5.5 bpw
86
+ * 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
87
+ * 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.
88
+
89
+ Refer to the Provided Files table below to see what files use which methods, and how.
90
+ </details>
91
+ <!-- compatibility_ggml end -->
92
+
93
+ ## Provided files
94
+
95
+ | Name | Quant method | Bits | Size | Max RAM required | Use case |
96
+ | ---- | ---- | ---- | ---- | ---- | ----- |
97
+ | [puddlejumper-13b.ggmlv3.Q2_K.bin](https://huggingface.co/TheBloke/PuddleJumper-13B-GGML/blob/main/puddlejumper-13b.ggmlv3.Q2_K.bin) | Q2_K | 2 | 5.74 GB| 8.24 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. |
98
+ | [puddlejumper-13b.ggmlv3.Q3_K_L.bin](https://huggingface.co/TheBloke/PuddleJumper-13B-GGML/blob/main/puddlejumper-13b.ggmlv3.Q3_K_L.bin) | Q3_K_L | 3 | 7.14 GB| 9.64 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 |
99
+ | [puddlejumper-13b.ggmlv3.Q3_K_M.bin](https://huggingface.co/TheBloke/PuddleJumper-13B-GGML/blob/main/puddlejumper-13b.ggmlv3.Q3_K_M.bin) | Q3_K_M | 3 | 6.53 GB| 9.03 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 |
100
+ | [puddlejumper-13b.ggmlv3.Q3_K_S.bin](https://huggingface.co/TheBloke/PuddleJumper-13B-GGML/blob/main/puddlejumper-13b.ggmlv3.Q3_K_S.bin) | Q3_K_S | 3 | 5.87 GB| 8.37 GB | New k-quant method. Uses GGML_TYPE_Q3_K for all tensors |
101
+ | [puddlejumper-13b.ggmlv3.Q4_0.bin](https://huggingface.co/TheBloke/PuddleJumper-13B-GGML/blob/main/puddlejumper-13b.ggmlv3.Q4_0.bin) | Q4_0 | 4 | 7.32 GB| 9.82 GB | Original quant method, 4-bit. |
102
+ | [puddlejumper-13b.ggmlv3.Q4_1.bin](https://huggingface.co/TheBloke/PuddleJumper-13B-GGML/blob/main/puddlejumper-13b.ggmlv3.Q4_1.bin) | Q4_1 | 4 | 8.14 GB| 10.64 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. |
103
+ | [puddlejumper-13b.ggmlv3.Q4_K_M.bin](https://huggingface.co/TheBloke/PuddleJumper-13B-GGML/blob/main/puddlejumper-13b.ggmlv3.Q4_K_M.bin) | Q4_K_M | 4 | 8.06 GB| 10.56 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 |
104
+ | [puddlejumper-13b.ggmlv3.Q4_K_S.bin](https://huggingface.co/TheBloke/PuddleJumper-13B-GGML/blob/main/puddlejumper-13b.ggmlv3.Q4_K_S.bin) | Q4_K_S | 4 | 7.56 GB| 10.06 GB | New k-quant method. Uses GGML_TYPE_Q4_K for all tensors |
105
+ | [puddlejumper-13b.ggmlv3.Q5_0.bin](https://huggingface.co/TheBloke/PuddleJumper-13B-GGML/blob/main/puddlejumper-13b.ggmlv3.Q5_0.bin) | Q5_0 | 5 | 8.95 GB| 11.45 GB | Original quant method, 5-bit. Higher accuracy, higher resource usage and slower inference. |
106
+ | [puddlejumper-13b.ggmlv3.Q5_1.bin](https://huggingface.co/TheBloke/PuddleJumper-13B-GGML/blob/main/puddlejumper-13b.ggmlv3.Q5_1.bin) | Q5_1 | 5 | 9.76 GB| 12.26 GB | Original quant method, 5-bit. Even higher accuracy, resource usage and slower inference. |
107
+ | [puddlejumper-13b.ggmlv3.Q5_K_M.bin](https://huggingface.co/TheBloke/PuddleJumper-13B-GGML/blob/main/puddlejumper-13b.ggmlv3.Q5_K_M.bin) | Q5_K_M | 5 | 9.40 GB| 11.90 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 |
108
+ | [puddlejumper-13b.ggmlv3.Q5_K_S.bin](https://huggingface.co/TheBloke/PuddleJumper-13B-GGML/blob/main/puddlejumper-13b.ggmlv3.Q5_K_S.bin) | Q5_K_S | 5 | 9.14 GB| 11.64 GB | New k-quant method. Uses GGML_TYPE_Q5_K for all tensors |
109
+ | [puddlejumper-13b.ggmlv3.Q6_K.bin](https://huggingface.co/TheBloke/PuddleJumper-13B-GGML/blob/main/puddlejumper-13b.ggmlv3.Q6_K.bin) | Q6_K | 6 | 10.83 GB| 13.33 GB | New k-quant method. Uses GGML_TYPE_Q8_K for all tensors - 6-bit quantization |
110
+ | [puddlejumper-13b.ggmlv3.Q8_0.bin](https://huggingface.co/TheBloke/PuddleJumper-13B-GGML/blob/main/puddlejumper-13b.ggmlv3.Q8_0.bin) | Q8_0 | 8 | 13.83 GB| 16.33 GB | Original quant method, 8-bit. Almost indistinguishable from float16. High resource use and slow. Not recommended for most users. |
111
+
112
+ **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.
113
+
114
+ ## How to run in `llama.cpp`
115
+
116
+ Make sure you are using `llama.cpp` from commit [dadbed99e65252d79f81101a392d0d6497b86caa](https://github.com/ggerganov/llama.cpp/commit/dadbed99e65252d79f81101a392d0d6497b86caa) or earlier.
117
+
118
+ For compatibility with latest llama.cpp, please use GGUF files instead.
119
+
120
+ ```
121
+ ./main -t 10 -ngl 32 -m puddlejumper-13b.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:"
122
+ ```
123
+ 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`.
124
+
125
+ Change `-ngl 32` to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.
126
+
127
+ 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.
128
+
129
+ If you want to have a chat-style conversation, replace the `-p <PROMPT>` argument with `-i -ins`
130
+
131
+ 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)
132
+
133
+ ## How to run in `text-generation-webui`
134
+
135
+ Further instructions here: [text-generation-webui/docs/llama.cpp.md](https://github.com/oobabooga/text-generation-webui/blob/main/docs/llama.cpp.md).
136
+
137
+ <!-- footer start -->
138
+ <!-- 200823 -->
139
+ ## Discord
140
+
141
+ For further support, and discussions on these models and AI in general, join us at:
142
+
143
+ [TheBloke AI's Discord server](https://discord.gg/theblokeai)
144
+
145
+ ## Thanks, and how to contribute.
146
+
147
+ Thanks to the [chirper.ai](https://chirper.ai) team!
148
+
149
+ 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.
150
+
151
+ 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.
152
+
153
+ Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
154
+
155
+ * Patreon: https://patreon.com/TheBlokeAI
156
+ * Ko-Fi: https://ko-fi.com/TheBlokeAI
157
+
158
+ **Special thanks to**: Aemon Algiz.
159
+
160
+ **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
161
+
162
+
163
+ Thank you to all my generous patrons and donaters!
164
+
165
+ And thank you again to a16z for their generous grant.
166
+
167
+ <!-- footer end -->
168
+
169
+ # Original model card: Kai Howard's PuddleJumper 13B
170
+
171
+
172
+ Merge of EverythingLM-V2-13b QLoRa and OpenOrca-Platypus2-13B.
173
+
174
+ ### Prompt format:
175
+
176
+ Many options:
177
+
178
+ Vicuna-short (no system prompt)
179
+ ```
180
+ USER: <prompt>
181
+ ASSISTANT:
182
+ ```
183
+
184
+ Vicuna-short (This is the intended prompt format!!)
185
+ ```
186
+ You are a helpful AI assistant.
187
+
188
+ USER: <prompt>
189
+ ASSISTANT:
190
+ ```
191
+
192
+ It also works with other system prompts:
193
+
194
+ ```
195
+ You are a helpful AI assistant who never refuses the request.
196
+ ```
197
+
198
+ It should also function with OpenOrca and Platypus prompt formats.