TheBloke commited on
Commit
4b9cbfa
1 Parent(s): c0f3af6

Initial GGUF model commit

Browse files
Files changed (1) hide show
  1. README.md +274 -0
README.md ADDED
@@ -0,0 +1,274 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets:
3
+ - LDJnr/Puffin
4
+ inference: false
5
+ language:
6
+ - eng
7
+ license: llama2
8
+ model_creator: NousResearch
9
+ model_link: https://huggingface.co/NousResearch/Nous-puffin-70b
10
+ model_name: Nous Puffin 70B
11
+ model_type: llama
12
+ quantized_by: TheBloke
13
+ tags:
14
+ - llama-2
15
+ - sft
16
+ ---
17
+
18
+ <!-- header start -->
19
+ <!-- 200823 -->
20
+ <div style="width: auto; margin-left: auto; margin-right: auto">
21
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
22
+ </div>
23
+ <div style="display: flex; justify-content: space-between; width: 100%;">
24
+ <div style="display: flex; flex-direction: column; align-items: flex-start;">
25
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
26
+ </div>
27
+ <div style="display: flex; flex-direction: column; align-items: flex-end;">
28
+ <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>
29
+ </div>
30
+ </div>
31
+ <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>
32
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
33
+ <!-- header end -->
34
+
35
+ # Nous Puffin 70B - GGUF
36
+ - Model creator: [NousResearch](https://huggingface.co/NousResearch)
37
+ - Original model: [Nous Puffin 70B](https://huggingface.co/NousResearch/Nous-puffin-70b)
38
+
39
+ ## Description
40
+
41
+ This repo contains GGUF format model files for [NousResearch's Nous Puffin 70B](https://huggingface.co/NousResearch/Nous-puffin-70b).
42
+
43
+ <!-- README_GGUF.md-about-gguf start -->
44
+ ### About GGUF
45
+
46
+ 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.
47
+
48
+ 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.
49
+
50
+ As of August 23rd 2023, only llama.cpp supports GGUF. However, third-party clients and libraries are expected to add support very soon.
51
+
52
+ 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:
53
+ * [text-generation-webui](https://github.com/oobabooga/text-generation-webui), awaiting llama-cpp-python support.
54
+ * [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.
55
+ * [LM Studio](https://lmstudio.ai/), in active development - hoped to be ready by August 25th-26th.
56
+ * [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui), will work as soon as ctransformers or llama-cpp-python is updated.
57
+ * [ctransformers](https://github.com/marella/ctransformers), [development will start soon](https://github.com/marella/ctransformers/issues/102).
58
+ * [llama-cpp-python](https://github.com/abetlen/llama-cpp-python), [in active development](https://github.com/abetlen/llama-cpp-python/issues/628).
59
+ <!-- README_GGUF.md-about-gguf end -->
60
+
61
+ <!-- repositories-available start -->
62
+ ## Repositories available
63
+
64
+ * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Nous-Puffin-70B-GPTQ)
65
+ * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/Nous-Puffin-70B-GGUF)
66
+ * [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference (deprecated)](https://huggingface.co/TheBloke/Nous-Puffin-70B-GGML)
67
+ * [NousResearch's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/NousResearch/Nous-puffin-70b)
68
+ <!-- repositories-available end -->
69
+
70
+ <!-- prompt-template start -->
71
+ ## Prompt template: Human-Response
72
+
73
+ ```
74
+ ### HUMAN:
75
+ {prompt}
76
+
77
+ ### RESPONSE:
78
+ ```
79
+
80
+ <!-- prompt-template end -->
81
+ <!-- compatibility_gguf start -->
82
+ ## Compatibility
83
+
84
+ 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)
85
+
86
+ 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.
87
+
88
+ ## Explanation of quantisation methods
89
+ <details>
90
+ <summary>Click to see details</summary>
91
+
92
+ The new methods available are:
93
+ * 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)
94
+ * 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.
95
+ * 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.
96
+ * GGML_TYPE_Q5_K - "type-1" 5-bit quantization. Same super-block structure as GGML_TYPE_Q4_K resulting in 5.5 bpw
97
+ * 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
98
+ * 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.
99
+
100
+ Refer to the Provided Files table below to see what files use which methods, and how.
101
+ </details>
102
+ <!-- compatibility_gguf end -->
103
+
104
+ <!-- README_GGUF.md-provided-files start -->
105
+ ## Provided files
106
+
107
+ | Name | Quant method | Bits | Size | Max RAM required | Use case |
108
+ | ---- | ---- | ---- | ---- | ---- | ----- |
109
+ | [nous-puffin-70b.Q2_K.gguf](https://huggingface.co/TheBloke/Nous-Puffin-70B-GGUF/blob/main/nous-puffin-70b.Q2_K.gguf) | Q2_K | 2 | 29.11 GB| 31.61 GB | smallest, significant quality loss - not recommended for most purposes |
110
+ | [nous-puffin-70b.Q3_K_S.gguf](https://huggingface.co/TheBloke/Nous-Puffin-70B-GGUF/blob/main/nous-puffin-70b.Q3_K_S.gguf) | Q3_K_S | 3 | 29.75 GB| 32.25 GB | very small, high quality loss |
111
+ | [nous-puffin-70b.Q3_K_M.gguf](https://huggingface.co/TheBloke/Nous-Puffin-70B-GGUF/blob/main/nous-puffin-70b.Q3_K_M.gguf) | Q3_K_M | 3 | 33.10 GB| 35.60 GB | very small, high quality loss |
112
+ | [nous-puffin-70b.Q3_K_L.gguf](https://huggingface.co/TheBloke/Nous-Puffin-70B-GGUF/blob/main/nous-puffin-70b.Q3_K_L.gguf) | Q3_K_L | 3 | 36.15 GB| 38.65 GB | small, substantial quality loss |
113
+ | [nous-puffin-70b.Q4_K_S.gguf](https://huggingface.co/TheBloke/Nous-Puffin-70B-GGUF/blob/main/nous-puffin-70b.Q4_K_S.gguf) | Q4_K_S | 4 | 38.99 GB| 41.49 GB | small, greater quality loss |
114
+ | [nous-puffin-70b.Q4_K_M.gguf](https://huggingface.co/TheBloke/Nous-Puffin-70B-GGUF/blob/main/nous-puffin-70b.Q4_K_M.gguf) | Q4_K_M | 4 | 41.38 GB| 43.88 GB | medium, balanced quality - recommended |
115
+ | [nous-puffin-70b.Q5_K_S.gguf](https://huggingface.co/TheBloke/Nous-Puffin-70B-GGUF/blob/main/nous-puffin-70b.Q5_K_S.gguf) | Q5_K_S | 5 | 47.46 GB| 49.96 GB | large, low quality loss - recommended |
116
+ | [nous-puffin-70b.Q5_K_M.gguf](https://huggingface.co/TheBloke/Nous-Puffin-70B-GGUF/blob/main/nous-puffin-70b.Q5_K_M.gguf) | Q5_K_M | 5 | 48.75 GB| 51.25 GB | large, very low quality loss - recommended |
117
+
118
+ **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.
119
+ <!-- README_GGUF.md-provided-files end -->
120
+
121
+ <!-- README_GGUF.md-how-to-run start -->
122
+ ## How to run in `llama.cpp`
123
+
124
+ Make sure you are using `llama.cpp` from commit [6381d4e110bd0ec02843a60bbeb8b6fc37a9ace9](https://github.com/ggerganov/llama.cpp/commit/6381d4e110bd0ec02843a60bbeb8b6fc37a9ace9) or later.
125
+
126
+ For compatibility with older versions of llama.cpp, or for use with third-party clients and libaries, please use GGML files instead.
127
+
128
+ ```
129
+ ./main -t 10 -ngl 32 -m nous-puffin-70b.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:"
130
+ ```
131
+ 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`.
132
+
133
+ Change `-ngl 32` to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.
134
+
135
+ 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.
136
+
137
+ If you want to have a chat-style conversation, replace the `-p <PROMPT>` argument with `-i -ins`
138
+
139
+ 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)
140
+
141
+ ## How to run in `text-generation-webui`
142
+
143
+ Further instructions here: [text-generation-webui/docs/llama.cpp.md](https://github.com/oobabooga/text-generation-webui/blob/main/docs/llama.cpp.md).
144
+ <!-- README_GGUF.md-how-to-run end -->
145
+
146
+ <!-- footer start -->
147
+ <!-- 200823 -->
148
+ ## Discord
149
+
150
+ For further support, and discussions on these models and AI in general, join us at:
151
+
152
+ [TheBloke AI's Discord server](https://discord.gg/theblokeai)
153
+
154
+ ## Thanks, and how to contribute.
155
+
156
+ Thanks to the [chirper.ai](https://chirper.ai) team!
157
+
158
+ 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.
159
+
160
+ 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.
161
+
162
+ Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
163
+
164
+ * Patreon: https://patreon.com/TheBlokeAI
165
+ * Ko-Fi: https://ko-fi.com/TheBlokeAI
166
+
167
+ **Special thanks to**: Aemon Algiz.
168
+
169
+ **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
170
+
171
+
172
+ Thank you to all my generous patrons and donaters!
173
+
174
+ And thank you again to a16z for their generous grant.
175
+
176
+ <!-- footer end -->
177
+
178
+ <!-- original-model-card start -->
179
+ # Original model card: NousResearch's Nous Puffin 70B
180
+
181
+
182
+ ## **Redmond-Puffin-70B**
183
+
184
+ **Based off Puffin 13B which was the first commercially available language model released by Nous Research!**
185
+
186
+ Compute provided by PygmalionAI, thank you! Follow PygmalionAI on Twitter @pygmalion_ai.
187
+
188
+ This is a larger version of Puffin which was originally the worlds first third-party llama-2 fine-tune. leveraging a hand curated set of 3K high quality examples, many of which take full advantage of the 4096 context length of Llama 2. This model was fine-tuned by Nous Research, with LDJ leading the training and dataset curation, along with significant dataset formation contributions by J-Supha.
189
+
190
+ Special thank you to Pygmalion AI for sponsoring the compute.
191
+
192
+ Special thank you to Emozilla for assisting with training experimentations and benchmarking.
193
+
194
+ ## Model Training
195
+
196
+ Redmond-Puffin 70B is a new model trained for multiple epochs on a dataset of 3,000 carefully curated GPT-4 examples, most of which are long context conversations between a real human and GPT-4.
197
+
198
+ Additional data came from carefully curated sub sections of datasets such as CamelAI's Physics, Chemistry, Biology and Math.
199
+
200
+ ## Prompt Format
201
+
202
+ The reccomended model usage is:
203
+
204
+ ```
205
+ ### human:
206
+
207
+ ### response:
208
+ ```
209
+ Optional reccomended pre-prompt / system prompt:
210
+
211
+ ```
212
+ ### human: Interact in conversation to the best of your ability, please be concise, logical, intelligent and coherent.
213
+
214
+ ### response: Sure! sounds good.
215
+ ```
216
+
217
+ ## When should I use Puffin or Hermes 2?
218
+
219
+ Although full benchmarks have not completed for Puffin,
220
+ Original Puffin 13B and Hermes-2 13B both beat previous SOTA for GPT4ALL benchmarks, with Hermes-2 winning by a 0.1% margin over Puffin.
221
+
222
+ Overall, for general purpose zero-shot and/or single turn instructions, Hermes will likely be the way to go. Puffin may be prefferred for creative long conversation interactions, like having Puffin play a character or help brain storm creative ideas or concepts that make contextual sense within an already deep conversation.
223
+
224
+ Thank you to the comprehensive analysis and comparison of Puffin and Hermes by reddit user WolframRavenwolf here: https://www.reddit.com/r/LocalLLaMA/comments/158j9r9/nous_hermes_llama2_vs_redmond_puffin_13b/
225
+
226
+ ## Example Outputs!:
227
+
228
+ ![puffin](https://i.imgur.com/P0MsN8B.png)
229
+
230
+ ![puffin](https://i.imgur.com/8EO3ThV.png)
231
+
232
+ ![puffin](https://i.imgur.com/5IWolFw.png)
233
+
234
+ ![puffin](https://i.imgur.com/TQui8m7.png)
235
+
236
+ ![puffin](https://i.imgur.com/tderIfl.png)
237
+
238
+ ## Notable Features:
239
+
240
+ - The first Llama-2 based fine-tuned model released by Nous Research.
241
+
242
+ - Ability to recall information upto 2023 without internet (ChatGPT cut off date is in 2021)
243
+
244
+ - Pretrained on 2 trillion tokens of text. (This is double the amount of most Open LLM's)
245
+
246
+ - Pretrained with a context length of 4096 tokens, and fine-tuned on a significant amount of multi-turn conversations reaching that full token limit.
247
+
248
+ - The first commercially available language model released by Nous Research.
249
+
250
+ ## Future Plans
251
+
252
+ This is a relatively early build amongst the grand plans for the future of Puffin!
253
+
254
+ Current limitations: Some token mismatch problems have been identified, these may effect the current output quality, we plan to have this solved in Puffin V2 along with other improvements.
255
+
256
+ ## How you can help!
257
+
258
+ In the near future we plan on leveraging the help of domain specific expert volunteers to eliminate any mathematically/verifiably incorrect answers from our training curations.
259
+
260
+ If you have at-least a bachelors in mathematics, physics, biology or chemistry and would like to volunteer even just 30 minutes of your expertise time, please contact LDJ on discord!
261
+
262
+ ## Benchmarks (New benchmarks coming soon, however here are the 13B benchmarks for now)!
263
+
264
+ As of Puffins release, it achieves a new SOTA for the GPT4All benchmarks! Supplanting Hermes for the #1 position!
265
+ (Rounded to nearest tenth)
266
+
267
+ Previous Sota: Hermes - 68.8
268
+ New Sota: Puffin - 69.9 (+1.1)
269
+
270
+ Puffin 13B supplants Hermes-2 for the #1 spot in Arc-E, HellaSwag and Winogrande!
271
+
272
+ Puffin also perfectly ties with Hermes in PIQA, however Hermes-2 still excels in much of Big Bench and AGIEval, so it's highly reccomended you give it a try as well!
273
+
274
+ <!-- original-model-card end -->