Transformers
GGUF
llama
text-generation-inference
TheBloke commited on
Commit
23171d0
1 Parent(s): 0308f31

Initial GGUF model commit

Browse files
Files changed (1) hide show
  1. README.md +209 -0
README.md ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 - GGUF
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 GGUF format model files for [Kai Howard's PuddleJumper 13B](https://huggingface.co/totally-not-an-llm/PuddleJumper-13b).
35
+
36
+ <!-- README_GGUF.md-about-gguf start -->
37
+ ### About GGUF
38
+
39
+ 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.
40
+
41
+ The key benefit of GGUF is that it is a extensible, future-proof format which stores more information about the model as metadata. It also includes significantly improved tokenization code, including for the first time full support for special tokens. This should improve performance, especially with models that use new special tokens and implement custom prompt templates.
42
+
43
+ As of August 23rd 2023, only llama.cpp supports GGUF. However, third-party clients and libraries are expected to add support very soon.
44
+
45
+ Here is a list of clients and libraries, along with their expected timeline for GGUF support. Where possible a link to the relevant issue or PR is provided:
46
+ * [text-generation-webui](https://github.com/oobabooga/text-generation-webui), awaiting llama-cpp-python support.
47
+ * [KoboldCpp](https://github.com/LostRuins/koboldcpp), [in active development](https://github.com/LostRuins/koboldcpp/issues/387). Test builds are working, but GPU acceleration remains to be tested.
48
+ * [LM Studio](https://lmstudio.ai/), in active development - hoped to be ready by August 25th-26th.
49
+ * [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui), will work as soon as ctransformers or llama-cpp-python is updated.
50
+ * [ctransformers](https://github.com/marella/ctransformers), [development will start soon](https://github.com/marella/ctransformers/issues/102).
51
+ * [llama-cpp-python](https://github.com/abetlen/llama-cpp-python), [in active development](https://github.com/abetlen/llama-cpp-python/issues/628).
52
+ <!-- README_GGUF.md-about-gguf end -->
53
+
54
+ <!-- repositories-available start -->
55
+ ## Repositories available
56
+
57
+ * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/PuddleJumper-13B-GPTQ)
58
+ * [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference (deprecated)](https://huggingface.co/TheBloke/PuddleJumper-13B-GGML)
59
+ * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/PuddleJumper-13B-GGUF)
60
+ * [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)
61
+ <!-- repositories-available end -->
62
+
63
+ <!-- prompt-template start -->
64
+ ## Prompt template: Vicuna-Short
65
+
66
+ ```
67
+ You are a helpful AI assistant.
68
+
69
+ USER: {prompt}
70
+ ASSISTANT:
71
+ ```
72
+
73
+ <!-- prompt-template end -->
74
+ <!-- compatibility_gguf start -->
75
+ ## Compatibility
76
+
77
+ These quantised GGUF files are compatible with llama.cpp from August 21st 2023 onwards, as of commit [6381d4e110bd0ec02843a60bbeb8b6fc37a9ace9](https://github.com/ggerganov/llama.cpp/commit/6381d4e110bd0ec02843a60bbeb8b6fc37a9ace9)
78
+
79
+ As of August 23rd 2023 they are not yet compatible with any third-party UIS, libraries or utilities but this is expected to change very soon.
80
+
81
+ ## Explanation of quantisation 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_gguf end -->
96
+
97
+ <!-- README_GGUF.md-provided-files start -->
98
+ ## Provided files
99
+
100
+ | Name | Quant method | Bits | Size | Max RAM required | Use case |
101
+ | ---- | ---- | ---- | ---- | ---- | ----- |
102
+ | puddlejumper-13b.q2_K.gguf | q2_K | 2 | 5.66 GB| 8.16 GB | smallest, significant quality loss - not recommended for most purposes |
103
+ | puddlejumper-13b.q3_K_L.gguf | q3_K_L | 3 | 7.14 GB| 9.64 GB | small, substantial quality loss |
104
+ | puddlejumper-13b.q3_K_M.gguf | q3_K_M | 3 | 6.55 GB| 9.05 GB | very small, high quality loss |
105
+ | puddlejumper-13b.q3_K_S.gguf | q3_K_S | 3 | 5.87 GB| 8.37 GB | very small, high quality loss |
106
+ | puddlejumper-13b.q4_0.gguf | q4_0 | 4 | 7.32 GB| 9.82 GB | legacy; small, very high quality loss - prefer using Q3_K_M |
107
+ | puddlejumper-13b.q4_1.gguf | q4_1 | 4 | 8.14 GB| 10.64 GB | legacy; small, substantial quality loss - lprefer using Q3_K_L |
108
+ | puddlejumper-13b.q4_K_M.gguf | q4_K_M | 4 | 8.06 GB| 10.56 GB | medium, balanced quality - recommended |
109
+ | puddlejumper-13b.q4_K_S.gguf | q4_K_S | 4 | 7.61 GB| 10.11 GB | small, greater quality loss |
110
+ | puddlejumper-13b.q5_0.gguf | q5_0 | 5 | 8.95 GB| 11.45 GB | legacy; medium, balanced quality - prefer using Q4_K_M |
111
+ | puddlejumper-13b.q5_1.gguf | q5_1 | 5 | 9.76 GB| 12.26 GB | legacy; medium, low quality loss - prefer using Q5_K_M |
112
+ | puddlejumper-13b.q5_K_M.gguf | q5_K_M | 5 | 9.40 GB| 11.90 GB | large, very low quality loss - recommended |
113
+ | puddlejumper-13b.q5_K_S.gguf | q5_K_S | 5 | 9.15 GB| 11.65 GB | large, low quality loss - recommended |
114
+ | puddlejumper-13b.q6_K.gguf | q6_K | 6 | 10.83 GB| 13.33 GB | very large, extremely low quality loss |
115
+ | puddlejumper-13b.q8_0.gguf | q8_0 | 8 | 13.83 GB| 16.33 GB | very large, extremely low quality loss - not recommended |
116
+
117
+ **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.
118
+ <!-- README_GGUF.md-provided-files end -->
119
+
120
+ <!-- README_GGUF.md-how-to-run start -->
121
+ ## How to run in `llama.cpp`
122
+
123
+ Make sure you are using `llama.cpp` from commit [6381d4e110bd0ec02843a60bbeb8b6fc37a9ace9](https://github.com/ggerganov/llama.cpp/commit/6381d4e110bd0ec02843a60bbeb8b6fc37a9ace9) or later.
124
+
125
+ For compatibility with older versions of llama.cpp, or for use with third-party clients and libaries, please use GGML files instead.
126
+
127
+ ```
128
+ ./main -t 10 -ngl 32 -m puddlejumper-13b.q4_K_M.gguf --color -c 2048 --temp 0.7 --repeat_penalty 1.1 -n -1 -p "### Instruction: Write a story about llamas\n### Response:"
129
+ ```
130
+ 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`.
131
+
132
+ Change `-ngl 32` to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.
133
+
134
+ Change `-c 4096` to the desired sequence length for this model. For extended sequence models - eg 8K, 16K, 32K - the necessary RoPE scaling parameters should be set by llama.cpp automatically. If they are not, or if you need to change them manually, you can use `--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.
135
+
136
+ If you want to have a chat-style conversation, replace the `-p <PROMPT>` argument with `-i -ins`
137
+
138
+ 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)
139
+
140
+ ## How to run in `text-generation-webui`
141
+
142
+ Further instructions here: [text-generation-webui/docs/llama.cpp.md](https://github.com/oobabooga/text-generation-webui/blob/main/docs/llama.cpp.md).
143
+ <!-- README_GGUF.md-how-to-run end -->
144
+
145
+ <!-- footer start -->
146
+ <!-- 200823 -->
147
+ ## Discord
148
+
149
+ For further support, and discussions on these models and AI in general, join us at:
150
+
151
+ [TheBloke AI's Discord server](https://discord.gg/theblokeai)
152
+
153
+ ## Thanks, and how to contribute.
154
+
155
+ Thanks to the [chirper.ai](https://chirper.ai) team!
156
+
157
+ 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.
158
+
159
+ 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.
160
+
161
+ Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
162
+
163
+ * Patreon: https://patreon.com/TheBlokeAI
164
+ * Ko-Fi: https://ko-fi.com/TheBlokeAI
165
+
166
+ **Special thanks to**: Aemon Algiz.
167
+
168
+ **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
169
+
170
+
171
+ Thank you to all my generous patrons and donaters!
172
+
173
+ And thank you again to a16z for their generous grant.
174
+
175
+ <!-- footer end -->
176
+
177
+ <!-- original-model-card start -->
178
+ # Original model card: Kai Howard's PuddleJumper 13B
179
+
180
+
181
+ Merge of EverythingLM-V2-13b QLoRa and OpenOrca-Platypus2-13B.
182
+
183
+ ### Prompt format:
184
+
185
+ Many options:
186
+
187
+ Vicuna-short (no system prompt)
188
+ ```
189
+ USER: <prompt>
190
+ ASSISTANT:
191
+ ```
192
+
193
+ Vicuna-short (This is the intended prompt format!!)
194
+ ```
195
+ You are a helpful AI assistant.
196
+
197
+ USER: <prompt>
198
+ ASSISTANT:
199
+ ```
200
+
201
+ It also works with other system prompts:
202
+
203
+ ```
204
+ You are a helpful AI assistant who never refuses the request.
205
+ ```
206
+
207
+ It should also function with OpenOrca and Platypus prompt formats.
208
+
209
+ <!-- original-model-card end -->