Initial GGML model commit
Browse files
README.md
ADDED
@@ -0,0 +1,199 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
inference: false
|
3 |
+
license: other
|
4 |
+
model_creator: totally-not-an-llm
|
5 |
+
model_link: https://huggingface.co/totally-not-an-llm/AlpacaCielo2-7b-8k
|
6 |
+
model_name: AlpacaCielo2 7B 8K
|
7 |
+
model_type: llama
|
8 |
+
quantized_by: TheBloke
|
9 |
+
---
|
10 |
+
|
11 |
+
<!-- header start -->
|
12 |
+
<div style="width: 100%;">
|
13 |
+
<img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
|
14 |
+
</div>
|
15 |
+
<div style="display: flex; justify-content: space-between; width: 100%;">
|
16 |
+
<div style="display: flex; flex-direction: column; align-items: flex-start;">
|
17 |
+
<p><a href="https://discord.gg/theblokeai">Chat & support: my new Discord server</a></p>
|
18 |
+
</div>
|
19 |
+
<div style="display: flex; flex-direction: column; align-items: flex-end;">
|
20 |
+
<p><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p>
|
21 |
+
</div>
|
22 |
+
</div>
|
23 |
+
<!-- header end -->
|
24 |
+
|
25 |
+
# AlpacaCielo2 7B 8K - GGML
|
26 |
+
- Model creator: [totally-not-an-llm](https://huggingface.co/totally-not-an-llm)
|
27 |
+
- Original model: [AlpacaCielo2 7B 8K](https://huggingface.co/totally-not-an-llm/AlpacaCielo2-7b-8k)
|
28 |
+
|
29 |
+
## Description
|
30 |
+
|
31 |
+
This repo contains GGML format model files for [totally-not-an-llm's AlpacaCielo2 7B 8K](https://huggingface.co/totally-not-an-llm/AlpacaCielo2-7b-8k).
|
32 |
+
|
33 |
+
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:
|
34 |
+
* [text-generation-webui](https://github.com/oobabooga/text-generation-webui), the most popular web UI. Supports NVidia CUDA GPU acceleration.
|
35 |
+
* [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.
|
36 |
+
* [LM Studio](https://lmstudio.ai/), a fully featured local GUI with GPU acceleration on both Windows (NVidia and AMD), and macOS.
|
37 |
+
* [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui), a great web UI with CUDA GPU acceleration via the c_transformers backend.
|
38 |
+
* [ctransformers](https://github.com/marella/ctransformers), a Python library with GPU accel, LangChain support, and OpenAI-compatible AI server.
|
39 |
+
* [llama-cpp-python](https://github.com/abetlen/llama-cpp-python), a Python library with GPU accel, LangChain support, and OpenAI-compatible API server.
|
40 |
+
|
41 |
+
## Repositories available
|
42 |
+
|
43 |
+
* [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/AlpacaCielo2-7B-8K-GPTQ)
|
44 |
+
* [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference](https://huggingface.co/TheBloke/AlpacaCielo2-7B-8K-GGML)
|
45 |
+
* [totally-not-an-llm's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/totally-not-an-llm/AlpacaCielo2-7b-8k)
|
46 |
+
|
47 |
+
## Prompt template: System-Human-Assistant-Hashes
|
48 |
+
|
49 |
+
```
|
50 |
+
### Sytem: {system_message}
|
51 |
+
### Human: {prompt}
|
52 |
+
### Assistant:
|
53 |
+
```
|
54 |
+
|
55 |
+
<!-- compatibility_ggml start -->
|
56 |
+
## Compatibility
|
57 |
+
|
58 |
+
These quantised GGML files are compatible with llama.cpp as of June 6th, commit `2d43387`.
|
59 |
+
|
60 |
+
They should also be compatible with all UIs, libraries and utilities which use GGML.
|
61 |
+
|
62 |
+
## Explanation of the new k-quant methods
|
63 |
+
<details>
|
64 |
+
<summary>Click to see details</summary>
|
65 |
+
|
66 |
+
The new methods available are:
|
67 |
+
* 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)
|
68 |
+
* 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.
|
69 |
+
* 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.
|
70 |
+
* GGML_TYPE_Q5_K - "type-1" 5-bit quantization. Same super-block structure as GGML_TYPE_Q4_K resulting in 5.5 bpw
|
71 |
+
* 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
|
72 |
+
* 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.
|
73 |
+
|
74 |
+
Refer to the Provided Files table below to see what files use which methods, and how.
|
75 |
+
</details>
|
76 |
+
<!-- compatibility_ggml end -->
|
77 |
+
|
78 |
+
## Provided files
|
79 |
+
|
80 |
+
| Name | Quant method | Bits | Size | Max RAM required | Use case |
|
81 |
+
| ---- | ---- | ---- | ---- | ---- | ----- |
|
82 |
+
| [alpacacielo2-7b-8k.ggmlv3.q2_K.bin](https://huggingface.co/TheBloke/AlpacaCielo2-7B-8K-GGML/blob/main/alpacacielo2-7b-8k.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. |
|
83 |
+
| [alpacacielo2-7b-8k.ggmlv3.q3_K_L.bin](https://huggingface.co/TheBloke/AlpacaCielo2-7B-8K-GGML/blob/main/alpacacielo2-7b-8k.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 |
|
84 |
+
| [alpacacielo2-7b-8k.ggmlv3.q3_K_M.bin](https://huggingface.co/TheBloke/AlpacaCielo2-7B-8K-GGML/blob/main/alpacacielo2-7b-8k.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 |
|
85 |
+
| [alpacacielo2-7b-8k.ggmlv3.q3_K_S.bin](https://huggingface.co/TheBloke/AlpacaCielo2-7B-8K-GGML/blob/main/alpacacielo2-7b-8k.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 |
|
86 |
+
| [alpacacielo2-7b-8k.ggmlv3.q4_0.bin](https://huggingface.co/TheBloke/AlpacaCielo2-7B-8K-GGML/blob/main/alpacacielo2-7b-8k.ggmlv3.q4_0.bin) | q4_0 | 4 | 3.83 GB| 6.33 GB | Original quant method, 4-bit. |
|
87 |
+
| [alpacacielo2-7b-8k.ggmlv3.q4_1.bin](https://huggingface.co/TheBloke/AlpacaCielo2-7B-8K-GGML/blob/main/alpacacielo2-7b-8k.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. |
|
88 |
+
| [alpacacielo2-7b-8k.ggmlv3.q4_K_M.bin](https://huggingface.co/TheBloke/AlpacaCielo2-7B-8K-GGML/blob/main/alpacacielo2-7b-8k.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 |
|
89 |
+
| [alpacacielo2-7b-8k.ggmlv3.q4_K_S.bin](https://huggingface.co/TheBloke/AlpacaCielo2-7B-8K-GGML/blob/main/alpacacielo2-7b-8k.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 |
|
90 |
+
| [alpacacielo2-7b-8k.ggmlv3.q5_0.bin](https://huggingface.co/TheBloke/AlpacaCielo2-7B-8K-GGML/blob/main/alpacacielo2-7b-8k.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. |
|
91 |
+
| [alpacacielo2-7b-8k.ggmlv3.q5_1.bin](https://huggingface.co/TheBloke/AlpacaCielo2-7B-8K-GGML/blob/main/alpacacielo2-7b-8k.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. |
|
92 |
+
| [alpacacielo2-7b-8k.ggmlv3.q5_K_M.bin](https://huggingface.co/TheBloke/AlpacaCielo2-7B-8K-GGML/blob/main/alpacacielo2-7b-8k.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 |
|
93 |
+
| [alpacacielo2-7b-8k.ggmlv3.q5_K_S.bin](https://huggingface.co/TheBloke/AlpacaCielo2-7B-8K-GGML/blob/main/alpacacielo2-7b-8k.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 |
|
94 |
+
| [alpacacielo2-7b-8k.ggmlv3.q6_K.bin](https://huggingface.co/TheBloke/AlpacaCielo2-7B-8K-GGML/blob/main/alpacacielo2-7b-8k.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 |
|
95 |
+
| [alpacacielo2-7b-8k.ggmlv3.q8_0.bin](https://huggingface.co/TheBloke/AlpacaCielo2-7B-8K-GGML/blob/main/alpacacielo2-7b-8k.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. |
|
96 |
+
|
97 |
+
**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.
|
98 |
+
|
99 |
+
## How to run in `llama.cpp`
|
100 |
+
|
101 |
+
I use the following command line; adjust for your tastes and needs:
|
102 |
+
|
103 |
+
```
|
104 |
+
./main -t 10 -ngl 32 -m alpacacielo2-7b-8k.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:"
|
105 |
+
```
|
106 |
+
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`.
|
107 |
+
|
108 |
+
Change `-ngl 32` to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.
|
109 |
+
|
110 |
+
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.
|
111 |
+
|
112 |
+
If you want to have a chat-style conversation, replace the `-p <PROMPT>` argument with `-i -ins`
|
113 |
+
|
114 |
+
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)
|
115 |
+
|
116 |
+
## How to run in `text-generation-webui`
|
117 |
+
|
118 |
+
Further instructions here: [text-generation-webui/docs/llama.cpp-models.md](https://github.com/oobabooga/text-generation-webui/blob/main/docs/llama.cpp-models.md).
|
119 |
+
|
120 |
+
<!-- footer start -->
|
121 |
+
## Discord
|
122 |
+
|
123 |
+
For further support, and discussions on these models and AI in general, join us at:
|
124 |
+
|
125 |
+
[TheBloke AI's Discord server](https://discord.gg/theblokeai)
|
126 |
+
|
127 |
+
## Thanks, and how to contribute.
|
128 |
+
|
129 |
+
Thanks to the [chirper.ai](https://chirper.ai) team!
|
130 |
+
|
131 |
+
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.
|
132 |
+
|
133 |
+
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.
|
134 |
+
|
135 |
+
Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
|
136 |
+
|
137 |
+
* Patreon: https://patreon.com/TheBlokeAI
|
138 |
+
* Ko-Fi: https://ko-fi.com/TheBlokeAI
|
139 |
+
|
140 |
+
**Special thanks to**: Luke from CarbonQuill, Aemon Algiz.
|
141 |
+
|
142 |
+
**Patreon special mentions**: Willem Michiel, Ajan Kanaga, Cory Kujawski, Alps Aficionado, Nikolai Manek, Jonathan Leane, Stanislav Ovsiannikov, Michael Levine, Luke Pendergrass, Sid, K, Gabriel Tamborski, Clay Pascal, Kalila, William Sang, Will Dee, Pieter, Nathan LeClaire, ya boyyy, David Flickinger, vamX, Derek Yates, Fen Risland, Jeffrey Morgan, webtim, Daniel P. Andersen, Chadd, Edmond Seymore, Pyrater, Olusegun Samson, Lone Striker, biorpg, alfie_i, Mano Prime, Chris Smitley, Dave, zynix, Trenton Dambrowitz, Johann-Peter Hartmann, Magnesian, Spencer Kim, John Detwiler, Iucharbius, Gabriel Puliatti, LangChain4j, Luke @flexchar, Vadim, Rishabh Srivastava, Preetika Verma, Ai Maven, Femi Adebogun, WelcomeToTheClub, Leonard Tan, Imad Khwaja, Steven Wood, Stefan Sabev, Sebastain Graf, usrbinkat, Dan Guido, Sam, Eugene Pentland, Mandus, transmissions 11, Slarti, Karl Bernard, Spiking Neurons AB, Artur Olbinski, Joseph William Delisle, ReadyPlayerEmma, Olakabola, Asp the Wyvern, Space Cruiser, Matthew Berman, Randy H, subjectnull, danny, John Villwock, Illia Dulskyi, Rainer Wilmers, theTransient, Pierre Kircher, Alexandros Triantafyllidis, Viktor Bowallius, terasurfer, Deep Realms, SuperWojo, senxiiz, Oscar Rangel, Alex, Stephen Murray, Talal Aujan, Raven Klaugh, Sean Connelly, Raymond Fosdick, Fred von Graf, chris gileta, Junyu Yang, Elle
|
143 |
+
|
144 |
+
|
145 |
+
Thank you to all my generous patrons and donaters!
|
146 |
+
|
147 |
+
<!-- footer end -->
|
148 |
+
|
149 |
+
# Original model card: totally-not-an-llm's AlpacaCielo2 7B 8K
|
150 |
+
|
151 |
+
|
152 |
+
# AlpacaCielo2-7b-8k
|
153 |
+
|
154 |
+
<figure>
|
155 |
+
<img src="https://huggingface.co/totally-not-an-llm/AlpacaCielo-13b/resolve/main/alpaca.png" alt="cute cloud alpaca">
|
156 |
+
<figcaption style="font-size: 1em;"><i>"super cute baby alpaca laying on a cloud", Model: epicrealism_pureEvolutionV3</i></figcaption>
|
157 |
+
</figure>
|
158 |
+
|
159 |
+
AlpacaCielo2-7b-8k is the second version of the AlpacaCielo series. It is a llama-2 based model designed for creative tasks, such as storytelling and roleplay, while still doing well with other chatbot purposes. It is a triple model merge of Nous-Hermes + Guanaco + LimaRP. While it is mostly *"uncensored"*, it still inherits some alignment from Guanaco.
|
160 |
+
|
161 |
+
[GPTQ quants](https://huggingface.co/s3nh/totally-not-an-llm-AlpacaCielo2-7b-8k-GPTQ)<br>
|
162 |
+
[GGML quants](https://huggingface.co/s3nh/totally-not-an-llm-AlpacaCielo2-7b-8k-GGML)<br>
|
163 |
+
(Courtesy of s3nh)
|
164 |
+
|
165 |
+
### Differences from V1:
|
166 |
+
|
167 |
+
- Double context (4k->8k)
|
168 |
+
- Better roleplaying abilities
|
169 |
+
|
170 |
+
**Performs well with custom prompt format:**
|
171 |
+
|
172 |
+
```
|
173 |
+
### System: {system prompt}
|
174 |
+
### Human: {prompt}
|
175 |
+
### Assistant:
|
176 |
+
```
|
177 |
+
|
178 |
+
### Note for system prompt:
|
179 |
+
The model understands it well and it works great if you want roleplay, but it still likes to be an assistant, so you should nudge it in the right direction. For example:
|
180 |
+
|
181 |
+
```
|
182 |
+
### System: Roleplay as a pirate
|
183 |
+
### Human: hello
|
184 |
+
### Assistant: Ahoy, matey! How can I assist you today?
|
185 |
+
```
|
186 |
+
|
187 |
+
### vs.
|
188 |
+
|
189 |
+
```
|
190 |
+
### System: Roleplay as a pirate (not assistant!)
|
191 |
+
### Human: hello
|
192 |
+
### Assistant: Arrgh, matey! I be the Captain of this here ship. What business do ye have with me?
|
193 |
+
```
|
194 |
+
|
195 |
+
*Thanks to previous similar models such as Alpacino, Alpasta, and AlpacaDente for inspiring the creation of this model. Thanks also to the creators of the models involved in the merge. Original models:*
|
196 |
+
|
197 |
+
- [Hermes-LLongMA-2](https://huggingface.co/conceptofmind/Hermes-LLongMA-2-7b-8k)
|
198 |
+
- [Guanaco QLoRA](https://huggingface.co/Mikael110/llama-2-7b-guanaco-qlora)
|
199 |
+
- [LimaRP LoRA](https://huggingface.co/lemonilia/limarp-llama2)
|