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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
inference: false
|
3 |
+
license: other
|
4 |
+
model_type: llama
|
5 |
+
tags:
|
6 |
+
- llama
|
7 |
+
- alpaca
|
8 |
+
- vicuna
|
9 |
+
- uncensored
|
10 |
+
- cot
|
11 |
+
- chain of thought
|
12 |
+
- story
|
13 |
+
- adventure
|
14 |
+
- roleplay
|
15 |
+
- rp
|
16 |
+
- merge
|
17 |
+
- mix
|
18 |
+
- instruct
|
19 |
+
- wizardlm
|
20 |
+
- superhot
|
21 |
+
- supercot
|
22 |
+
- manticore
|
23 |
+
- hippogriff
|
24 |
+
---
|
25 |
+
|
26 |
+
<!-- header start -->
|
27 |
+
<div style="width: 100%;">
|
28 |
+
<img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
|
29 |
+
</div>
|
30 |
+
<div style="display: flex; justify-content: space-between; width: 100%;">
|
31 |
+
<div style="display: flex; flex-direction: column; align-items: flex-start;">
|
32 |
+
<p><a href="https://discord.gg/theblokeai">Chat & support: my new Discord server</a></p>
|
33 |
+
</div>
|
34 |
+
<div style="display: flex; flex-direction: column; align-items: flex-end;">
|
35 |
+
<p><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p>
|
36 |
+
</div>
|
37 |
+
</div>
|
38 |
+
<!-- header end -->
|
39 |
+
|
40 |
+
# CalderaAI's 30B Epsilon GPTQ
|
41 |
+
|
42 |
+
These files are GPTQ model files for [CalderaAI's 30B Epsilon](https://huggingface.co/CalderaAI/30B-Epsilon).
|
43 |
+
|
44 |
+
Multiple GPTQ parameter permutations are provided; see Provided Files below for details of the options provided, their parameters, and the software used to create them.
|
45 |
+
|
46 |
+
|
47 |
+
## Repositories available
|
48 |
+
|
49 |
+
* [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/30B-Epsilon-GPTQ)
|
50 |
+
* [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference](https://huggingface.co/TheBloke/30B-Epsilon-GGML)
|
51 |
+
* [Original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/CalderaAI/30B-Epsilon)
|
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: {prompt}
|
59 |
+
|
60 |
+
### Response:
|
61 |
+
```
|
62 |
+
|
63 |
+
## Provided files
|
64 |
+
|
65 |
+
Multiple quantisation parameters are provided, to allow you to choose the best one for your hardware and requirements.
|
66 |
+
|
67 |
+
Each separate quant is in a different branch. See below for instructions on fetching from different branches.
|
68 |
+
|
69 |
+
| Branch | Bits | Group Size | Act Order (desc_act) | File Size | ExLlama Compatible? | Made With | Description |
|
70 |
+
| ------ | ---- | ---------- | -------------------- | --------- | ------------------- | --------- | ----------- |
|
71 |
+
| main | 4 | None | True | 16.94 GB | True | AutoGPTQ | Most compatible option. Good inference speed in AutoGPTQ and GPTQ-for-LLaMa. Lower inference quality than other options. |
|
72 |
+
| gptq-4bit-32g-actorder_True | 4 | 32 | True | 19.44 GB | True | AutoGPTQ | 4-bit, with Act Order and group size. 32g gives highest possible inference quality, with maximum VRAM usage. Poor AutoGPTQ CUDA speed. |
|
73 |
+
| gptq-4bit-64g-actorder_True | 4 | 64 | True | 16937476440.00 GB | True | AutoGPTQ | 4-bit, with Act Order and group size. 64g uses less VRAM than 32g, but with slightly lower accuracy. Poor AutoGPTQ CUDA speed. |
|
74 |
+
| gptq-4bit-128g-actorder_True | 4 | 128 | True | 16937476440.00 GB | True | AutoGPTQ | 4-bit, with Act Order and group size. 128g uses even less VRAM, but with slightly lower accuracy. Poor AutoGPTQ CUDA speed. |
|
75 |
+
| gptq-8bit--1g-actorder_True | 8 | None | True | 16937476440.00 GB | False | AutoGPTQ | 8-bit, with Act Order. No group size, to lower VRAM requirements and to improve AutoGPTQ speed. |
|
76 |
+
| gptq-8bit-128g-actorder_False | 8 | 128 | False | 16937476440.00 GB | False | AutoGPTQ | 8-bit, with group size 128g for higher inference quality and without Act Order to improve AutoGPTQ speed. |
|
77 |
+
| gptq-3bit--1g-actorder_True | 3 | None | True | 16937476440.00 GB | False | AutoGPTQ | 3-bit, with Act Order and no group size. Lowest possible VRAM requirements. May be lower quality than 3-bit 128g. |
|
78 |
+
| gptq-3bit-128g-actorder_False | 3 | 128 | False | 16937476440.00 GB | False | AutoGPTQ | 3-bit, with group size 128g but no act-order. Slightly higher VRAM requirements than 3-bit None. |
|
79 |
+
|
80 |
+
## How to download from branches
|
81 |
+
|
82 |
+
- In text-generation-webui, you can add `:branch` to the end of the download name, eg `TheBloke/30B-Epsilon-GPTQ:gptq-4bit-32g-actorder_True`
|
83 |
+
- With Git, you can clone a branch with:
|
84 |
+
```
|
85 |
+
git clone --branch gptq-4bit-32g-actorder_True https://huggingface.co/TheBloke/30B-Epsilon-GPTQ`
|
86 |
+
```
|
87 |
+
- In Python Transformers code, the branch is the `revision` parameter; see below.
|
88 |
+
|
89 |
+
## How to easily download and use this model in [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
|
90 |
+
|
91 |
+
Please make sure you're using the latest version of [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
|
92 |
+
|
93 |
+
It is strongly recommended to use the text-generation-webui one-click-installers unless you know how to make a manual install.
|
94 |
+
|
95 |
+
1. Click the **Model tab**.
|
96 |
+
2. Under **Download custom model or LoRA**, enter `TheBloke/30B-Epsilon-GPTQ`.
|
97 |
+
- To download from a specific branch, enter for example `TheBloke/30B-Epsilon-GPTQ:gptq-4bit-32g-actorder_True`
|
98 |
+
- see Provided Files above for the list of branches for each option.
|
99 |
+
3. Click **Download**.
|
100 |
+
4. The model will start downloading. Once it's finished it will say "Done"
|
101 |
+
5. In the top left, click the refresh icon next to **Model**.
|
102 |
+
6. In the **Model** dropdown, choose the model you just downloaded: `30B-Epsilon-GPTQ`
|
103 |
+
7. The model will automatically load, and is now ready for use!
|
104 |
+
8. If you want any custom settings, set them and then click **Save settings for this model** followed by **Reload the Model** in the top right.
|
105 |
+
* Note that you do not need to set GPTQ parameters any more. These are set automatically from the file `quantize_config.json`.
|
106 |
+
9. Once you're ready, click the **Text Generation tab** and enter a prompt to get started!
|
107 |
+
|
108 |
+
## How to use this GPTQ model from Python code
|
109 |
+
|
110 |
+
First make sure you have [AutoGPTQ](https://github.com/PanQiWei/AutoGPTQ) installed:
|
111 |
+
|
112 |
+
`GITHUB_ACTIONS=true pip install auto-gptq`
|
113 |
+
|
114 |
+
Then try the following example code:
|
115 |
+
|
116 |
+
```python
|
117 |
+
from transformers import AutoTokenizer, pipeline, logging
|
118 |
+
from auto_gptq import AutoGPTQForCausalLM, BaseQuantizeConfig
|
119 |
+
|
120 |
+
model_name_or_path = "TheBloke/30B-Epsilon-GPTQ"
|
121 |
+
model_basename = "gptq_model-4bit--1g"
|
122 |
+
|
123 |
+
use_triton = False
|
124 |
+
|
125 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
|
126 |
+
|
127 |
+
model = AutoGPTQForCausalLM.from_quantized(model_name_or_path,
|
128 |
+
model_basename=model_basename,
|
129 |
+
use_safetensors=True,
|
130 |
+
trust_remote_code=True,
|
131 |
+
device="cuda:0",
|
132 |
+
use_triton=use_triton,
|
133 |
+
quantize_config=None)
|
134 |
+
|
135 |
+
"""
|
136 |
+
To download from a specific branch, use the revision parameter, as in this example:
|
137 |
+
|
138 |
+
model = AutoGPTQForCausalLM.from_quantized(model_name_or_path,
|
139 |
+
revision="gptq-4bit-32g-actorder_True",
|
140 |
+
model_basename=model_basename,
|
141 |
+
use_safetensors=True,
|
142 |
+
trust_remote_code=True,
|
143 |
+
device="cuda:0",
|
144 |
+
quantize_config=None)
|
145 |
+
"""
|
146 |
+
|
147 |
+
prompt = "Tell me about AI"
|
148 |
+
prompt_template=f'''Below is an instruction that describes a task. Write a response that appropriately completes the request.
|
149 |
+
|
150 |
+
### Instruction: {prompt}
|
151 |
+
|
152 |
+
### Response:
|
153 |
+
'''
|
154 |
+
|
155 |
+
print("\n\n*** Generate:")
|
156 |
+
|
157 |
+
input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
|
158 |
+
output = model.generate(inputs=input_ids, temperature=0.7, max_new_tokens=512)
|
159 |
+
print(tokenizer.decode(output[0]))
|
160 |
+
|
161 |
+
# Inference can also be done using transformers' pipeline
|
162 |
+
|
163 |
+
# Prevent printing spurious transformers error when using pipeline with AutoGPTQ
|
164 |
+
logging.set_verbosity(logging.CRITICAL)
|
165 |
+
|
166 |
+
print("*** Pipeline:")
|
167 |
+
pipe = pipeline(
|
168 |
+
"text-generation",
|
169 |
+
model=model,
|
170 |
+
tokenizer=tokenizer,
|
171 |
+
max_new_tokens=512,
|
172 |
+
temperature=0.7,
|
173 |
+
top_p=0.95,
|
174 |
+
repetition_penalty=1.15
|
175 |
+
)
|
176 |
+
|
177 |
+
print(pipe(prompt_template)[0]['generated_text'])
|
178 |
+
```
|
179 |
+
|
180 |
+
## Compatibility
|
181 |
+
|
182 |
+
The files provided will work with AutoGPTQ (CUDA and Triton modes), GPTQ-for-LLaMa (only CUDA has been tested), and Occ4m's GPTQ-for-LLaMa fork.
|
183 |
+
|
184 |
+
ExLlama works with Llama models in 4-bit. Please see the Provided Files table above for per-file compatibility.
|
185 |
+
|
186 |
+
<!-- footer start -->
|
187 |
+
## Discord
|
188 |
+
|
189 |
+
For further support, and discussions on these models and AI in general, join us at:
|
190 |
+
|
191 |
+
[TheBloke AI's Discord server](https://discord.gg/theblokeai)
|
192 |
+
|
193 |
+
## Thanks, and how to contribute.
|
194 |
+
|
195 |
+
Thanks to the [chirper.ai](https://chirper.ai) team!
|
196 |
+
|
197 |
+
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.
|
198 |
+
|
199 |
+
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.
|
200 |
+
|
201 |
+
Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
|
202 |
+
|
203 |
+
* Patreon: https://patreon.com/TheBlokeAI
|
204 |
+
* Ko-Fi: https://ko-fi.com/TheBlokeAI
|
205 |
+
|
206 |
+
**Special thanks to**: Luke from CarbonQuill, Aemon Algiz.
|
207 |
+
|
208 |
+
**Patreon special mentions**: Slarti, Chadd, John Detwiler, Pieter, zynix, K, Mano Prime, ReadyPlayerEmma, Ai Maven, Leonard Tan, Edmond Seymore, Joseph William Delisle, Luke @flexchar, Fred von Graf, Viktor Bowallius, Rishabh Srivastava, Nikolai Manek, Matthew Berman, Johann-Peter Hartmann, ya boyyy, Greatston Gnanesh, Femi Adebogun, Talal Aujan, Jonathan Leane, terasurfer, David Flickinger, William Sang, Ajan Kanaga, Vadim, Artur Olbinski, Raven Klaugh, Michael Levine, Oscar Rangel, Randy H, Cory Kujawski, RoA, Dave, Alex, Alexandros Triantafyllidis, Fen Risland, Eugene Pentland, vamX, Elle, Nathan LeClaire, Khalefa Al-Ahmad, Rainer Wilmers, subjectnull, Junyu Yang, Daniel P. Andersen, SuperWojo, LangChain4j, Mandus, Kalila, Illia Dulskyi, Trenton Dambrowitz, Asp the Wyvern, Derek Yates, Jeffrey Morgan, Deep Realms, Imad Khwaja, Pyrater, Preetika Verma, biorpg, Gabriel Tamborski, Stephen Murray, Spiking Neurons AB, Iucharbius, Chris Smitley, Willem Michiel, Luke Pendergrass, Sebastain Graf, senxiiz, Will Dee, Space Cruiser, Karl Bernard, Clay Pascal, Lone Striker, transmissions 11, webtim, WelcomeToTheClub, Sam, theTransient, Pierre Kircher, chris gileta, John Villwock, Sean Connelly, Willian Hasse
|
209 |
+
|
210 |
+
|
211 |
+
Thank you to all my generous patrons and donaters!
|
212 |
+
|
213 |
+
<!-- footer end -->
|
214 |
+
|
215 |
+
# Original model card: CalderaAI's 30B Epsilon
|
216 |
+
|
217 |
+
|
218 |
+
## 30B-Epsilon
|
219 |
+
|
220 |
+
Epsilon is an instruct based general purpose model assembled from hand picked models and LoRAs.
|
221 |
+
There is no censorship and it follows instructions in the Alpaca format. This means you can create
|
222 |
+
your own rules in the context memory of your inference system of choice [mainly KoboldAI or Text
|
223 |
+
Generation Webui and chat UIs like SillyTavern and so on].
|
224 |
+
|
225 |
+
## Composition:
|
226 |
+
|
227 |
+
This model is the result of an experimental use of LoRAs on language models and model merges.
|
228 |
+
[] = applied as LoRA to a composite model | () = combined as composite models
|
229 |
+
30B-Epsilon = [SuperCOT[SuperHOT-prototype13b-8192[(wizardlmuncensored+((hippogriff+manticore)+(StoryV2))]
|
230 |
+
|
231 |
+
Alpaca's instruct format can be used to do many things, including control of the terms of behavior
|
232 |
+
between a user and a response from an agent in chat. Below is an example of a command injected into
|
233 |
+
memory.
|
234 |
+
|
235 |
+
```
|
236 |
+
### Instruction:
|
237 |
+
Make Narrator function as a text based adventure game that responds with verbose, detailed, and creative descriptions of what happens next after Player's response.
|
238 |
+
Make Player function as the player input for Narrator's text based adventure game, controlling a character named (insert character name here, their short bio, and
|
239 |
+
whatever quest or other information to keep consistent in the interaction).
|
240 |
+
|
241 |
+
### Response:
|
242 |
+
{an empty new line here}
|
243 |
+
```
|
244 |
+
|
245 |
+
All datasets from all models and LoRAs used were documented and reviewed as model candidates for merging.
|
246 |
+
Model candidates were based on five core principles: creativity, logic, inference, instruction following,
|
247 |
+
and longevity of trained responses. SuperHOT-prototype30b-8192 was used in this mix, not the 8K version;
|
248 |
+
the prototype LoRA seems to have been removed [from HF] as of this writing. The GPT4Alpaca LoRA from
|
249 |
+
Chansung was removed from this amalgam following a thorough review of where censorship and railroading
|
250 |
+
the user came from in 33B-Lazarus. This is not a reflection of ChanSung's excellent work - it merely did
|
251 |
+
not fit the purpose of this model.
|
252 |
+
|
253 |
+
## Language Models and LoRAs Used Credits:
|
254 |
+
|
255 |
+
manticore-30b-chat-pyg-alpha [Epoch0.4] by openaccess-ai-collective
|
256 |
+
|
257 |
+
https://huggingface.co/openaccess-ai-collective/manticore-30b-chat-pyg-alpha
|
258 |
+
|
259 |
+
hippogriff-30b-chat by openaccess-ai-collective
|
260 |
+
|
261 |
+
https://huggingface.co/openaccess-ai-collective/hippogriff-30b-chat
|
262 |
+
|
263 |
+
WizardLM-33B-V1.0-Uncensored by ehartford
|
264 |
+
|
265 |
+
https://huggingface.co/ehartford/WizardLM-33B-V1.0-Uncensored
|
266 |
+
|
267 |
+
Storytelling-LLaMa-LoRA [30B, Version 2] by GamerUnTouch
|
268 |
+
|
269 |
+
https://huggingface.co/GamerUntouch/Storytelling-LLaMa-LoRAs
|
270 |
+
|
271 |
+
SuperCOT-LoRA [30B] by kaiokendev
|
272 |
+
|
273 |
+
https://huggingface.co/kaiokendev/SuperCOT-LoRA
|
274 |
+
|
275 |
+
SuperHOT-LoRA-prototype30b-8192 [30b, not 8K version, but a removed prototype] by kaiokendev
|
276 |
+
|
277 |
+
https://huggingface.co/kaiokendev/superhot-30b-8k-no-rlhf-test [Similar LoRA to one since removed that was used in making this model.]
|
278 |
+
|
279 |
+
Also thanks to Meta for LLaMA and to each and every one of you
|
280 |
+
who developed these fine-tunes and LoRAs.
|