TheBloke commited on
Commit
1ee32a0
1 Parent(s): a816250

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +376 -0
README.md ADDED
@@ -0,0 +1,376 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Sao10K/WinterGoddess-1.4x-70B-L2
3
+ inference: false
4
+ language:
5
+ - en
6
+ license: cc-by-nc-4.0
7
+ model_creator: Saofiq
8
+ model_name: WinterGoddess 1.4X 70B L2
9
+ model_type: llama
10
+ prompt_template: '{prompt}
11
+
12
+ '
13
+ quantized_by: TheBloke
14
+ ---
15
+ <!-- markdownlint-disable MD041 -->
16
+
17
+ <!-- header start -->
18
+ <!-- 200823 -->
19
+ <div style="width: auto; margin-left: auto; margin-right: auto">
20
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
21
+ </div>
22
+ <div style="display: flex; justify-content: space-between; width: 100%;">
23
+ <div style="display: flex; flex-direction: column; align-items: flex-start;">
24
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
25
+ </div>
26
+ <div style="display: flex; flex-direction: column; align-items: flex-end;">
27
+ <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>
28
+ </div>
29
+ </div>
30
+ <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>
31
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
32
+ <!-- header end -->
33
+
34
+ # WinterGoddess 1.4X 70B L2 - AWQ
35
+ - Model creator: [Saofiq](https://huggingface.co/Sao10K)
36
+ - Original model: [WinterGoddess 1.4X 70B L2](https://huggingface.co/Sao10K/WinterGoddess-1.4x-70B-L2)
37
+
38
+ <!-- description start -->
39
+ ## Description
40
+
41
+ This repo contains AWQ model files for [Saofiq's WinterGoddess 1.4X 70B L2](https://huggingface.co/Sao10K/WinterGoddess-1.4x-70B-L2).
42
+
43
+ These files were quantised using hardware kindly provided by [Massed Compute](https://massedcompute.com/).
44
+
45
+
46
+ ### About AWQ
47
+
48
+ 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 with equivalent or better quality compared to the most commonly used GPTQ settings.
49
+
50
+ AWQ models are currently supported on Linux and Windows, with NVidia GPUs only. macOS users: please use GGUF models instead.
51
+
52
+ It is supported by:
53
+
54
+ - [Text Generation Webui](https://github.com/oobabooga/text-generation-webui) - using Loader: AutoAWQ
55
+ - [vLLM](https://github.com/vllm-project/vllm) - version 0.2.2 or later for support for all model types.
56
+ - [Hugging Face Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference)
57
+ - [Transformers](https://huggingface.co/docs/transformers) version 4.35.0 and later, from any code or client that supports Transformers
58
+ - [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) - for use from Python code
59
+
60
+ <!-- description end -->
61
+ <!-- repositories-available start -->
62
+ ## Repositories available
63
+
64
+ * [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/WinterGoddess-1.4x-70B-L2-AWQ)
65
+ * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/WinterGoddess-1.4x-70B-L2-GPTQ)
66
+ * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/WinterGoddess-1.4x-70B-L2-GGUF)
67
+ * [Saofiq's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/Sao10K/WinterGoddess-1.4x-70B-L2)
68
+ <!-- repositories-available end -->
69
+
70
+ <!-- prompt-template start -->
71
+ ## Prompt template: Unknown
72
+
73
+ ```
74
+ {prompt}
75
+
76
+ ```
77
+
78
+ <!-- prompt-template end -->
79
+ <!-- licensing start -->
80
+ ## Licensing
81
+
82
+ The creator of the source model has listed its license as `cc-by-nc-4.0`, and this quantization has therefore used that same license.
83
+
84
+ As this model is based on Llama 2, it is also subject to the Meta Llama 2 license terms, and the license files for that are additionally included. It should therefore be considered as being claimed to be licensed under both licenses. I contacted Hugging Face for clarification on dual licensing but they do not yet have an official position. Should this change, or should Meta provide any feedback on this situation, I will update this section accordingly.
85
+
86
+ In the meantime, any questions regarding licensing, and in particular how these two licenses might interact, should be directed to the original model repository: [Saofiq's WinterGoddess 1.4X 70B L2](https://huggingface.co/Sao10K/WinterGoddess-1.4x-70B-L2).
87
+ <!-- licensing end -->
88
+ <!-- README_AWQ.md-provided-files start -->
89
+ ## Provided files, and AWQ parameters
90
+
91
+ I currently release 128g GEMM models only. The addition of group_size 32 models, and GEMV kernel models, is being actively considered.
92
+
93
+ Models are released as sharded safetensors files.
94
+
95
+ | Branch | Bits | GS | AWQ Dataset | Seq Len | Size |
96
+ | ------ | ---- | -- | ----------- | ------- | ---- |
97
+ | [main](https://huggingface.co/TheBloke/WinterGoddess-1.4x-70B-L2-AWQ/tree/main) | 4 | 128 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 4096 | 36.61 GB
98
+
99
+ <!-- README_AWQ.md-provided-files end -->
100
+
101
+ <!-- README_AWQ.md-text-generation-webui start -->
102
+ ## How to easily download and use this model in [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
103
+
104
+ Please make sure you're using the latest version of [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
105
+
106
+ It is strongly recommended to use the text-generation-webui one-click-installers unless you're sure you know how to make a manual install.
107
+
108
+ 1. Click the **Model tab**.
109
+ 2. Under **Download custom model or LoRA**, enter `TheBloke/WinterGoddess-1.4x-70B-L2-AWQ`.
110
+ 3. Click **Download**.
111
+ 4. The model will start downloading. Once it's finished it will say "Done".
112
+ 5. In the top left, click the refresh icon next to **Model**.
113
+ 6. In the **Model** dropdown, choose the model you just downloaded: `WinterGoddess-1.4x-70B-L2-AWQ`
114
+ 7. Select **Loader: AutoAWQ**.
115
+ 8. Click Load, and the model will load and is now ready for use.
116
+ 9. 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.
117
+ 10. Once you're ready, click the **Text Generation** tab and enter a prompt to get started!
118
+ <!-- README_AWQ.md-text-generation-webui end -->
119
+
120
+ <!-- README_AWQ.md-use-from-vllm start -->
121
+ ## Multi-user inference server: vLLM
122
+
123
+ Documentation on installing and using vLLM [can be found here](https://vllm.readthedocs.io/en/latest/).
124
+
125
+ - Please ensure you are using vLLM version 0.2 or later.
126
+ - When using vLLM as a server, pass the `--quantization awq` parameter.
127
+
128
+ For example:
129
+
130
+ ```shell
131
+ python3 -m vllm.entrypoints.api_server --model TheBloke/WinterGoddess-1.4x-70B-L2-AWQ --quantization awq --dtype auto
132
+ ```
133
+
134
+ - When using vLLM from Python code, again set `quantization=awq`.
135
+
136
+ For example:
137
+
138
+ ```python
139
+ from vllm import LLM, SamplingParams
140
+
141
+ prompts = [
142
+ "Tell me about AI",
143
+ "Write a story about llamas",
144
+ "What is 291 - 150?",
145
+ "How much wood would a woodchuck chuck if a woodchuck could chuck wood?",
146
+ ]
147
+ prompt_template=f'''{prompt}
148
+ '''
149
+
150
+ prompts = [prompt_template.format(prompt=prompt) for prompt in prompts]
151
+
152
+ sampling_params = SamplingParams(temperature=0.8, top_p=0.95)
153
+
154
+ llm = LLM(model="TheBloke/WinterGoddess-1.4x-70B-L2-AWQ", quantization="awq", dtype="auto")
155
+
156
+ outputs = llm.generate(prompts, sampling_params)
157
+
158
+ # Print the outputs.
159
+ for output in outputs:
160
+ prompt = output.prompt
161
+ generated_text = output.outputs[0].text
162
+ print(f"Prompt: {prompt!r}, Generated text: {generated_text!r}")
163
+ ```
164
+ <!-- README_AWQ.md-use-from-vllm start -->
165
+
166
+ <!-- README_AWQ.md-use-from-tgi start -->
167
+ ## Multi-user inference server: Hugging Face Text Generation Inference (TGI)
168
+
169
+ Use TGI version 1.1.0 or later. The official Docker container is: `ghcr.io/huggingface/text-generation-inference:1.1.0`
170
+
171
+ Example Docker parameters:
172
+
173
+ ```shell
174
+ --model-id TheBloke/WinterGoddess-1.4x-70B-L2-AWQ --port 3000 --quantize awq --max-input-length 3696 --max-total-tokens 4096 --max-batch-prefill-tokens 4096
175
+ ```
176
+
177
+ Example Python code for interfacing with TGI (requires [huggingface-hub](https://github.com/huggingface/huggingface_hub) 0.17.0 or later):
178
+
179
+ ```shell
180
+ pip3 install huggingface-hub
181
+ ```
182
+
183
+ ```python
184
+ from huggingface_hub import InferenceClient
185
+
186
+ endpoint_url = "https://your-endpoint-url-here"
187
+
188
+ prompt = "Tell me about AI"
189
+ prompt_template=f'''{prompt}
190
+ '''
191
+
192
+ client = InferenceClient(endpoint_url)
193
+ response = client.text_generation(prompt,
194
+ max_new_tokens=128,
195
+ do_sample=True,
196
+ temperature=0.7,
197
+ top_p=0.95,
198
+ top_k=40,
199
+ repetition_penalty=1.1)
200
+
201
+ print(f"Model output: ", response)
202
+ ```
203
+ <!-- README_AWQ.md-use-from-tgi end -->
204
+
205
+ <!-- README_AWQ.md-use-from-python start -->
206
+ ## Inference from Python code using Transformers
207
+
208
+ ### Install the necessary packages
209
+
210
+ - Requires: [Transformers](https://huggingface.co/docs/transformers) 4.35.0 or later.
211
+ - Requires: [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) 0.1.6 or later.
212
+
213
+ ```shell
214
+ pip3 install --upgrade "autoawq>=0.1.6" "transformers>=4.35.0"
215
+ ```
216
+
217
+ Note that if you are using PyTorch 2.0.1, the above AutoAWQ command will automatically upgrade you to PyTorch 2.1.0.
218
+
219
+ If you are using CUDA 11.8 and wish to continue using PyTorch 2.0.1, instead run this command:
220
+
221
+ ```shell
222
+ pip3 install https://github.com/casper-hansen/AutoAWQ/releases/download/v0.1.6/autoawq-0.1.6+cu118-cp310-cp310-linux_x86_64.whl
223
+ ```
224
+
225
+ If you have problems installing [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) using the pre-built wheels, install it from source instead:
226
+
227
+ ```shell
228
+ pip3 uninstall -y autoawq
229
+ git clone https://github.com/casper-hansen/AutoAWQ
230
+ cd AutoAWQ
231
+ pip3 install .
232
+ ```
233
+
234
+ ### Transformers example code (requires Transformers 4.35.0 and later)
235
+
236
+ ```python
237
+ from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer
238
+
239
+ model_name_or_path = "TheBloke/WinterGoddess-1.4x-70B-L2-AWQ"
240
+
241
+ tokenizer = AutoTokenizer.from_pretrained(model_name_or_path)
242
+ model = AutoModelForCausalLM.from_pretrained(
243
+ model_name_or_path,
244
+ low_cpu_mem_usage=True,
245
+ device_map="cuda:0"
246
+ )
247
+
248
+ # Using the text streamer to stream output one token at a time
249
+ streamer = TextStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True)
250
+
251
+ prompt = "Tell me about AI"
252
+ prompt_template=f'''{prompt}
253
+ '''
254
+
255
+ # Convert prompt to tokens
256
+ tokens = tokenizer(
257
+ prompt_template,
258
+ return_tensors='pt'
259
+ ).input_ids.cuda()
260
+
261
+ generation_params = {
262
+ "do_sample": True,
263
+ "temperature": 0.7,
264
+ "top_p": 0.95,
265
+ "top_k": 40,
266
+ "max_new_tokens": 512,
267
+ "repetition_penalty": 1.1
268
+ }
269
+
270
+ # Generate streamed output, visible one token at a time
271
+ generation_output = model.generate(
272
+ tokens,
273
+ streamer=streamer,
274
+ **generation_params
275
+ )
276
+
277
+ # Generation without a streamer, which will include the prompt in the output
278
+ generation_output = model.generate(
279
+ tokens,
280
+ **generation_params
281
+ )
282
+
283
+ # Get the tokens from the output, decode them, print them
284
+ token_output = generation_output[0]
285
+ text_output = tokenizer.decode(token_output)
286
+ print("model.generate output: ", text_output)
287
+
288
+ # Inference is also possible via Transformers' pipeline
289
+ from transformers import pipeline
290
+
291
+ pipe = pipeline(
292
+ "text-generation",
293
+ model=model,
294
+ tokenizer=tokenizer,
295
+ **generation_params
296
+ )
297
+
298
+ pipe_output = pipe(prompt_template)[0]['generated_text']
299
+ print("pipeline output: ", pipe_output)
300
+
301
+ ```
302
+ <!-- README_AWQ.md-use-from-python end -->
303
+
304
+ <!-- README_AWQ.md-compatibility start -->
305
+ ## Compatibility
306
+
307
+ The files provided are tested to work with:
308
+
309
+ - [text-generation-webui](https://github.com/oobabooga/text-generation-webui) using `Loader: AutoAWQ`.
310
+ - [vLLM](https://github.com/vllm-project/vllm) version 0.2.0 and later.
311
+ - [Hugging Face Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference) version 1.1.0 and later.
312
+ - [Transformers](https://huggingface.co/docs/transformers) version 4.35.0 and later.
313
+ - [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) version 0.1.1 and later.
314
+
315
+ <!-- README_AWQ.md-compatibility end -->
316
+
317
+ <!-- footer start -->
318
+ <!-- 200823 -->
319
+ ## Discord
320
+
321
+ For further support, and discussions on these models and AI in general, join us at:
322
+
323
+ [TheBloke AI's Discord server](https://discord.gg/theblokeai)
324
+
325
+ ## Thanks, and how to contribute
326
+
327
+ Thanks to the [chirper.ai](https://chirper.ai) team!
328
+
329
+ Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
330
+
331
+ 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.
332
+
333
+ 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.
334
+
335
+ Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
336
+
337
+ * Patreon: https://patreon.com/TheBlokeAI
338
+ * Ko-Fi: https://ko-fi.com/TheBlokeAI
339
+
340
+ **Special thanks to**: Aemon Algiz.
341
+
342
+ **Patreon special mentions**: Michael Levine, 阿明, Trailburnt, Nikolai Manek, John Detwiler, Randy H, Will Dee, Sebastain Graf, NimbleBox.ai, Eugene Pentland, Emad Mostaque, Ai Maven, Jim Angel, Jeff Scroggin, Michael Davis, Manuel Alberto Morcote, Stephen Murray, Robert, Justin Joy, Luke @flexchar, Brandon Frisco, Elijah Stavena, S_X, Dan Guido, Undi ., Komninos Chatzipapas, Shadi, theTransient, Lone Striker, Raven Klaugh, jjj, Cap'n Zoog, Michel-Marie MAUDET (LINAGORA), Matthew Berman, David, Fen Risland, Omer Bin Jawed, Luke Pendergrass, Kalila, OG, Erik Bjäreholt, Rooh Singh, Joseph William Delisle, Dan Lewis, TL, John Villwock, AzureBlack, Brad, Pedro Madruga, Caitlyn Gatomon, K, jinyuan sun, Mano Prime, Alex, Jeffrey Morgan, Alicia Loh, Illia Dulskyi, Chadd, transmissions 11, fincy, Rainer Wilmers, ReadyPlayerEmma, knownsqashed, Mandus, biorpg, Deo Leter, Brandon Phillips, SuperWojo, Sean Connelly, Iucharbius, Jack West, Harry Royden McLaughlin, Nicholas, terasurfer, Vitor Caleffi, Duane Dunston, Johann-Peter Hartmann, David Ziegler, Olakabola, Ken Nordquist, Trenton Dambrowitz, Tom X Nguyen, Vadim, Ajan Kanaga, Leonard Tan, Clay Pascal, Alexandros Triantafyllidis, JM33133, Xule, vamX, ya boyyy, subjectnull, Talal Aujan, Alps Aficionado, wassieverse, Ari Malik, James Bentley, Woland, Spencer Kim, Michael Dempsey, Fred von Graf, Elle, zynix, William Richards, Stanislav Ovsiannikov, Edmond Seymore, Jonathan Leane, Martin Kemka, usrbinkat, Enrico Ros
343
+
344
+
345
+ Thank you to all my generous patrons and donaters!
346
+
347
+ And thank you again to a16z for their generous grant.
348
+
349
+ <!-- footer end -->
350
+
351
+ # Original model card: Saofiq's WinterGoddess 1.4X 70B L2
352
+
353
+
354
+ Winter Goddess - A 70B L2 Model for General use, or for Roleplay.
355
+
356
+ I wanted a Smart Model that is Capable of following Instructions, while being able to (e)RP effectively. Sort of like 1.3, but better.
357
+
358
+ I merged some models as a base, and had tuned on top of it afterwards.
359
+
360
+ I personally think this mogs Euryale 1.3, but ymmv.
361
+
362
+ ***
363
+
364
+ 4090 repairing soon, so hopefully Mixtral and more Yi tunes soon.
365
+
366
+ ***
367
+
368
+
369
+ <br> 42. A 25-year-old female has been struck in the right eye with a pipe. She has a ruptured right globe, an orbital fracture and no other obvious injury. You should bandage:
370
+
371
+
372
+ <br> A) The right eye tightly
373
+ <br> B) Both eyes loosely
374
+ <br> C) The right eye loosely
375
+ <br> D) Both eyes tightly
376
+