TheBloke commited on
Commit
0a24cc4
1 Parent(s): 5629cac

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +338 -0
README.md ADDED
@@ -0,0 +1,338 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: https://huggingface.co/CalderaAI/30B-Epsilon
3
+ inference: false
4
+ license: other
5
+ model_creator: Caldera AI
6
+ model_name: 30B Epsilon
7
+ model_type: llama
8
+ prompt_template: 'Below is an instruction that describes a task. Write a response
9
+ that appropriately completes the request.
10
+
11
+
12
+ ### Instruction:
13
+
14
+ {prompt}
15
+
16
+
17
+ ### Response:
18
+
19
+ '
20
+ quantized_by: TheBloke
21
+ tags:
22
+ - llama
23
+ - alpaca
24
+ - vicuna
25
+ - uncensored
26
+ - cot
27
+ - chain of thought
28
+ - story
29
+ - adventure
30
+ - roleplay
31
+ - rp
32
+ - merge
33
+ - mix
34
+ - instruct
35
+ - wizardlm
36
+ - superhot
37
+ - supercot
38
+ - manticore
39
+ - hippogriff
40
+ ---
41
+
42
+ <!-- header start -->
43
+ <!-- 200823 -->
44
+ <div style="width: auto; margin-left: auto; margin-right: auto">
45
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
46
+ </div>
47
+ <div style="display: flex; justify-content: space-between; width: 100%;">
48
+ <div style="display: flex; flex-direction: column; align-items: flex-start;">
49
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
50
+ </div>
51
+ <div style="display: flex; flex-direction: column; align-items: flex-end;">
52
+ <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>
53
+ </div>
54
+ </div>
55
+ <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>
56
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
57
+ <!-- header end -->
58
+
59
+ # 30B Epsilon - AWQ
60
+ - Model creator: [Caldera AI](https://huggingface.co/CalderaAI)
61
+ - Original model: [30B Epsilon](https://huggingface.co/CalderaAI/30B-Epsilon)
62
+
63
+ <!-- description start -->
64
+ ## Description
65
+
66
+ This repo contains AWQ model files for [CalderaAI's 30B Epsilon](https://huggingface.co/CalderaAI/30B-Epsilon).
67
+
68
+
69
+ ### About AWQ
70
+
71
+ AWQ is an efficient, accurate and blazing-fast low-bit weight quantization method, currently supporting 4-bit quantization. Compared to GPTQ, it offers faster Transformers-based inference.
72
+
73
+ It is also now supported by continuous batching server [vLLM](https://github.com/vllm-project/vllm), allowing use of AWQ models for high-throughput concurrent inference in multi-user server scenarios. Note that, at the time of writing, overall throughput is still lower than running vLLM with unquantised models, however using AWQ enables using much smaller GPUs which can lead to easier deployment and overall cost savings. For example, a 70B model can be run on 1 x 48GB GPU instead of 2 x 80GB.
74
+ <!-- description end -->
75
+ <!-- repositories-available start -->
76
+ ## Repositories available
77
+
78
+ * [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/30B-Epsilon-AWQ)
79
+ * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/30B-Epsilon-GPTQ)
80
+ * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/30B-Epsilon-GGUF)
81
+ * [Caldera AI's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/CalderaAI/30B-Epsilon)
82
+ <!-- repositories-available end -->
83
+
84
+ <!-- prompt-template start -->
85
+ ## Prompt template: Alpaca
86
+
87
+ ```
88
+ Below is an instruction that describes a task. Write a response that appropriately completes the request.
89
+
90
+ ### Instruction:
91
+ {prompt}
92
+
93
+ ### Response:
94
+
95
+ ```
96
+
97
+ <!-- prompt-template end -->
98
+
99
+
100
+ <!-- README_AWQ.md-provided-files start -->
101
+ ## Provided files and AWQ parameters
102
+
103
+ For my first release of AWQ models, I am releasing 128g models only. I will consider adding 32g as well if there is interest, and once I have done perplexity and evaluation comparisons, but at this time 32g models are still not fully tested with AutoAWQ and vLLM.
104
+
105
+ Models are released as sharded safetensors files.
106
+
107
+ | Branch | Bits | GS | AWQ Dataset | Seq Len | Size |
108
+ | ------ | ---- | -- | ----------- | ------- | ---- |
109
+ | [main](https://huggingface.co/TheBloke/30B-Epsilon-AWQ/tree/main) | 4 | 128 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 17.53 GB
110
+
111
+ <!-- README_AWQ.md-provided-files end -->
112
+
113
+ <!-- README_AWQ.md-use-from-vllm start -->
114
+ ## Serving this model from vLLM
115
+
116
+ Documentation on installing and using vLLM [can be found here](https://vllm.readthedocs.io/en/latest/).
117
+
118
+ - When using vLLM as a server, pass the `--quantization awq` parameter, for example:
119
+
120
+ ```shell
121
+ python3 python -m vllm.entrypoints.api_server --model TheBloke/30B-Epsilon-AWQ --quantization awq
122
+ ```
123
+
124
+ When using vLLM from Python code, pass the `quantization=awq` parameter, for example:
125
+
126
+ ```python
127
+ from vllm import LLM, SamplingParams
128
+
129
+ prompts = [
130
+ "Hello, my name is",
131
+ "The president of the United States is",
132
+ "The capital of France is",
133
+ "The future of AI is",
134
+ ]
135
+ sampling_params = SamplingParams(temperature=0.8, top_p=0.95)
136
+
137
+ llm = LLM(model="TheBloke/30B-Epsilon-AWQ", quantization="awq")
138
+
139
+ outputs = llm.generate(prompts, sampling_params)
140
+
141
+ # Print the outputs.
142
+ for output in outputs:
143
+ prompt = output.prompt
144
+ generated_text = output.outputs[0].text
145
+ print(f"Prompt: {prompt!r}, Generated text: {generated_text!r}")
146
+ ```
147
+ <!-- README_AWQ.md-use-from-vllm start -->
148
+
149
+ <!-- README_AWQ.md-use-from-python start -->
150
+ ## How to use this AWQ model from Python code
151
+
152
+ ### Install the necessary packages
153
+
154
+ Requires: [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) 0.0.2 or later
155
+
156
+ ```shell
157
+ pip3 install autoawq
158
+ ```
159
+
160
+ If you have problems installing [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) using the pre-built wheels, install it from source instead:
161
+
162
+ ```shell
163
+ pip3 uninstall -y autoawq
164
+ git clone https://github.com/casper-hansen/AutoAWQ
165
+ cd AutoAWQ
166
+ pip3 install .
167
+ ```
168
+
169
+ ### You can then try the following example code
170
+
171
+ ```python
172
+ from awq import AutoAWQForCausalLM
173
+ from transformers import AutoTokenizer
174
+
175
+ model_name_or_path = "TheBloke/30B-Epsilon-AWQ"
176
+
177
+ # Load model
178
+ model = AutoAWQForCausalLM.from_quantized(model_name_or_path, fuse_layers=True,
179
+ trust_remote_code=True, safetensors=True)
180
+ tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, trust_remote_code=True)
181
+
182
+ prompt = "Tell me about AI"
183
+ prompt_template=f'''Below is an instruction that describes a task. Write a response that appropriately completes the request.
184
+
185
+ ### Instruction:
186
+ {prompt}
187
+
188
+ ### Response:
189
+
190
+ '''
191
+
192
+ print("\n\n*** Generate:")
193
+
194
+ tokens = tokenizer(
195
+ prompt_template,
196
+ return_tensors='pt'
197
+ ).input_ids.cuda()
198
+
199
+ # Generate output
200
+ generation_output = model.generate(
201
+ tokens,
202
+ do_sample=True,
203
+ temperature=0.7,
204
+ top_p=0.95,
205
+ top_k=40,
206
+ max_new_tokens=512
207
+ )
208
+
209
+ print("Output: ", tokenizer.decode(generation_output[0]))
210
+
211
+ # Inference can also be done using transformers' pipeline
212
+ from transformers import pipeline
213
+
214
+ print("*** Pipeline:")
215
+ pipe = pipeline(
216
+ "text-generation",
217
+ model=model,
218
+ tokenizer=tokenizer,
219
+ max_new_tokens=512,
220
+ do_sample=True,
221
+ temperature=0.7,
222
+ top_p=0.95,
223
+ top_k=40,
224
+ repetition_penalty=1.1
225
+ )
226
+
227
+ print(pipe(prompt_template)[0]['generated_text'])
228
+ ```
229
+ <!-- README_AWQ.md-use-from-python end -->
230
+
231
+ <!-- README_AWQ.md-compatibility start -->
232
+ ## Compatibility
233
+
234
+ The files provided are tested to work with [AutoAWQ](https://github.com/casper-hansen/AutoAWQ), and [vLLM](https://github.com/vllm-project/vllm).
235
+
236
+ [Huggingface Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference) is not yet compatible with AWQ, but a PR is open which should bring support soon: [TGI PR #781](https://github.com/huggingface/text-generation-inference/issues/781).
237
+ <!-- README_AWQ.md-compatibility end -->
238
+
239
+ <!-- footer start -->
240
+ <!-- 200823 -->
241
+ ## Discord
242
+
243
+ For further support, and discussions on these models and AI in general, join us at:
244
+
245
+ [TheBloke AI's Discord server](https://discord.gg/theblokeai)
246
+
247
+ ## Thanks, and how to contribute
248
+
249
+ Thanks to the [chirper.ai](https://chirper.ai) team!
250
+
251
+ Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
252
+
253
+ 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.
254
+
255
+ 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.
256
+
257
+ Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
258
+
259
+ * Patreon: https://patreon.com/TheBlokeAI
260
+ * Ko-Fi: https://ko-fi.com/TheBlokeAI
261
+
262
+ **Special thanks to**: Aemon Algiz.
263
+
264
+ **Patreon special mentions**: Alicia Loh, Stephen Murray, K, Ajan Kanaga, RoA, Magnesian, Deo Leter, Olakabola, Eugene Pentland, zynix, Deep Realms, Raymond Fosdick, Elijah Stavena, Iucharbius, Erik Bjäreholt, Luis Javier Navarrete Lozano, Nicholas, theTransient, John Detwiler, alfie_i, knownsqashed, Mano Prime, Willem Michiel, Enrico Ros, LangChain4j, OG, Michael Dempsey, Pierre Kircher, Pedro Madruga, James Bentley, Thomas Belote, Luke @flexchar, Leonard Tan, Johann-Peter Hartmann, Illia Dulskyi, Fen Risland, Chadd, S_X, Jeff Scroggin, Ken Nordquist, Sean Connelly, Artur Olbinski, Swaroop Kallakuri, Jack West, Ai Maven, David Ziegler, Russ Johnson, transmissions 11, John Villwock, Alps Aficionado, Clay Pascal, Viktor Bowallius, Subspace Studios, Rainer Wilmers, Trenton Dambrowitz, vamX, Michael Levine, 준교 김, Brandon Frisco, Kalila, Trailburnt, Randy H, Talal Aujan, Nathan Dryer, Vadim, 阿明, ReadyPlayerEmma, Tiffany J. Kim, George Stoitzev, Spencer Kim, Jerry Meng, Gabriel Tamborski, Cory Kujawski, Jeffrey Morgan, Spiking Neurons AB, Edmond Seymore, Alexandros Triantafyllidis, Lone Striker, Cap'n Zoog, Nikolai Manek, danny, ya boyyy, Derek Yates, usrbinkat, Mandus, TL, Nathan LeClaire, subjectnull, Imad Khwaja, webtim, Raven Klaugh, Asp the Wyvern, Gabriel Puliatti, Caitlyn Gatomon, Joseph William Delisle, Jonathan Leane, Luke Pendergrass, SuperWojo, Sebastain Graf, Will Dee, Fred von Graf, Andrey, Dan Guido, Daniel P. Andersen, Nitin Borwankar, Elle, Vitor Caleffi, biorpg, jjj, NimbleBox.ai, Pieter, Matthew Berman, terasurfer, Michael Davis, Alex, Stanislav Ovsiannikov
265
+
266
+
267
+ Thank you to all my generous patrons and donaters!
268
+
269
+ And thank you again to a16z for their generous grant.
270
+
271
+ <!-- footer end -->
272
+
273
+ # Original model card: CalderaAI's 30B Epsilon
274
+
275
+
276
+ ## 30B-Epsilon
277
+
278
+ Epsilon is an instruct based general purpose model assembled from hand picked models and LoRAs.
279
+ There is no censorship and it follows instructions in the Alpaca format. This means you can create
280
+ your own rules in the context memory of your inference system of choice [mainly KoboldAI or Text
281
+ Generation Webui and chat UIs like SillyTavern and so on].
282
+
283
+ ## Composition:
284
+
285
+ This model is the result of an experimental use of LoRAs on language models and model merges.
286
+ [] = applied as LoRA to a composite model | () = combined as composite models
287
+ 30B-Epsilon = [SuperCOT[SuperHOT-prototype13b-8192[(wizardlmuncensored+((hippogriff+manticore)+(StoryV2))]
288
+
289
+ Alpaca's instruct format can be used to do many things, including control of the terms of behavior
290
+ between a user and a response from an agent in chat. Below is an example of a command injected into
291
+ memory.
292
+
293
+ ```
294
+ ### Instruction:
295
+ 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.
296
+ 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
297
+ whatever quest or other information to keep consistent in the interaction).
298
+
299
+ ### Response:
300
+ {an empty new line here}
301
+ ```
302
+
303
+ All datasets from all models and LoRAs used were documented and reviewed as model candidates for merging.
304
+ Model candidates were based on five core principles: creativity, logic, inference, instruction following,
305
+ and longevity of trained responses. SuperHOT-prototype30b-8192 was used in this mix, not the 8K version;
306
+ the prototype LoRA seems to have been removed [from HF] as of this writing. The GPT4Alpaca LoRA from
307
+ Chansung was removed from this amalgam following a thorough review of where censorship and railroading
308
+ the user came from in 33B-Lazarus. This is not a reflection of ChanSung's excellent work - it merely did
309
+ not fit the purpose of this model.
310
+
311
+ ## Language Models and LoRAs Used Credits:
312
+
313
+ manticore-30b-chat-pyg-alpha [Epoch0.4] by openaccess-ai-collective
314
+
315
+ https://huggingface.co/openaccess-ai-collective/manticore-30b-chat-pyg-alpha
316
+
317
+ hippogriff-30b-chat by openaccess-ai-collective
318
+
319
+ https://huggingface.co/openaccess-ai-collective/hippogriff-30b-chat
320
+
321
+ WizardLM-33B-V1.0-Uncensored by ehartford
322
+
323
+ https://huggingface.co/ehartford/WizardLM-33B-V1.0-Uncensored
324
+
325
+ Storytelling-LLaMa-LoRA [30B, Version 2] by GamerUnTouch
326
+
327
+ https://huggingface.co/GamerUntouch/Storytelling-LLaMa-LoRAs
328
+
329
+ SuperCOT-LoRA [30B] by kaiokendev
330
+
331
+ https://huggingface.co/kaiokendev/SuperCOT-LoRA
332
+
333
+ SuperHOT-LoRA-prototype30b-8192 [30b, not 8K version, but a removed prototype] by kaiokendev
334
+
335
+ https://huggingface.co/kaiokendev/superhot-30b-8k-no-rlhf-test [Similar LoRA to one since removed that was used in making this model.]
336
+
337
+ Also thanks to Meta for LLaMA and to each and every one of you
338
+ who developed these fine-tunes and LoRAs.