Update README.md
Browse files
README.md
CHANGED
@@ -1,6 +1,12 @@
|
|
1 |
---
|
2 |
inference: false
|
3 |
license: other
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
---
|
5 |
|
6 |
<!-- header start -->
|
@@ -19,17 +25,27 @@ license: other
|
|
19 |
|
20 |
# Eric Hartford's Wizard Vicuna 30B Uncensored merged with Kaio Ken's SuperHOT 8K GPTQ
|
21 |
|
22 |
-
These files are GPTQ 4bit model files for [Eric Hartford's Wizard Vicuna 30B Uncensored merged with Kaio Ken's SuperHOT 8K](https://huggingface.co/kaiokendev/superhot-30b-8k-no-rlhf-test).
|
23 |
|
24 |
It is the result of quantising to 4bit using [GPTQ-for-LLaMa](https://github.com/qwopqwop200/GPTQ-for-LLaMa).
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
## Repositories available
|
27 |
|
28 |
* [4-bit GPTQ models for GPU inference](https://huggingface.co/TheBloke/Wizard-Vicuna-30B-Superhot-8K-GPTQ)
|
29 |
-
* [
|
30 |
-
* [
|
31 |
|
32 |
-
## How to easily download and use this model in text-generation-webui
|
33 |
|
34 |
Please make sure you're using the latest version of text-generation-webui
|
35 |
|
@@ -37,20 +53,25 @@ Please make sure you're using the latest version of text-generation-webui
|
|
37 |
2. Under **Download custom model or LoRA**, enter `TheBloke/Wizard-Vicuna-30B-Superhot-8K-GPTQ`.
|
38 |
3. Click **Download**.
|
39 |
4. The model will start downloading. Once it's finished it will say "Done"
|
40 |
-
5.
|
41 |
-
6. In the
|
42 |
-
7.
|
43 |
-
8.
|
44 |
-
|
45 |
-
|
|
|
46 |
|
47 |
-
## How to use this GPTQ model from Python code
|
48 |
|
49 |
-
First make sure you have
|
50 |
|
51 |
-
|
|
|
|
|
|
|
|
|
52 |
|
53 |
-
|
54 |
|
55 |
```python
|
56 |
from transformers import AutoTokenizer, pipeline, logging
|
@@ -67,11 +88,13 @@ tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
|
|
67 |
model = AutoGPTQForCausalLM.from_quantized(model_name_or_path,
|
68 |
model_basename=model_basename,
|
69 |
use_safetensors=True,
|
70 |
-
trust_remote_code=
|
71 |
-
|
72 |
use_triton=use_triton,
|
73 |
quantize_config=None)
|
74 |
|
|
|
|
|
75 |
# Note: check the prompt template is correct for this model.
|
76 |
prompt = "Tell me about AI"
|
77 |
prompt_template=f'''USER: {prompt}
|
@@ -102,6 +125,12 @@ pipe = pipeline(
|
|
102 |
print(pipe(prompt_template)[0]['generated_text'])
|
103 |
```
|
104 |
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
## Provided files
|
106 |
|
107 |
**wizard-vicuna-30b-superhot-8k-GPTQ-4bit--1g.act.order.safetensors**
|
@@ -111,9 +140,9 @@ This will work with AutoGPTQ, ExLlama, and CUDA versions of GPTQ-for-LLaMa. Ther
|
|
111 |
It was created without group_size to lower VRAM requirements, and with --act-order (desc_act) to boost inference accuracy as much as possible.
|
112 |
|
113 |
* `wizard-vicuna-30b-superhot-8k-GPTQ-4bit--1g.act.order.safetensors`
|
114 |
-
* Works with
|
115 |
-
*
|
116 |
-
*
|
117 |
* Works with text-generation-webui, including one-click-installers.
|
118 |
* Parameters: Groupsize = -1. Act Order / desc_act = True.
|
119 |
|
@@ -145,7 +174,7 @@ Thank you to all my generous patrons and donaters!
|
|
145 |
|
146 |
<!-- footer end -->
|
147 |
|
148 |
-
# Original model card:
|
149 |
|
150 |
|
151 |
### SuperHOT Prototype 2 w/ 8K Context
|
@@ -177,3 +206,20 @@ I trained the LoRA with the following configuration:
|
|
177 |
- weight decay of 0.1
|
178 |
- AdamW beta1 of 0.9 and beta2 0.99, epsilon of 1e-5
|
179 |
- Trained on 4-bit base model
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
inference: false
|
3 |
license: other
|
4 |
+
datasets:
|
5 |
+
- ehartford/wizard_vicuna_70k_unfiltered
|
6 |
+
language:
|
7 |
+
- en
|
8 |
+
tags:
|
9 |
+
- uncensored
|
10 |
---
|
11 |
|
12 |
<!-- header start -->
|
|
|
25 |
|
26 |
# Eric Hartford's Wizard Vicuna 30B Uncensored merged with Kaio Ken's SuperHOT 8K GPTQ
|
27 |
|
28 |
+
These files are GPTQ 4bit model files for [Eric Hartford's Wizard Vicuna 30B Uncensored](https://huggingface.co/ehartford/Wizard-Vicuna-30B-Uncensored) merged with [Kaio Ken's SuperHOT 8K](https://huggingface.co/kaiokendev/superhot-30b-8k-no-rlhf-test).
|
29 |
|
30 |
It is the result of quantising to 4bit using [GPTQ-for-LLaMa](https://github.com/qwopqwop200/GPTQ-for-LLaMa).
|
31 |
|
32 |
+
**This is an experimental new GPTQ which offers up to 8K context size**
|
33 |
+
|
34 |
+
The increased context is currently only tested to work with [ExLlama](https://github.com/turboderp/exllama), via the latest release of [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
|
35 |
+
|
36 |
+
Please read carefully below to see how to use it.
|
37 |
+
|
38 |
+
**NOTE**: Using the full 8K context will exceed 24GB VRAM.
|
39 |
+
|
40 |
+
GGML versions are not yet provided, as there is not yet support for SuperHOT in llama.cpp. This is being investigated and will hopefully come soon.
|
41 |
+
|
42 |
## Repositories available
|
43 |
|
44 |
* [4-bit GPTQ models for GPU inference](https://huggingface.co/TheBloke/Wizard-Vicuna-30B-Superhot-8K-GPTQ)
|
45 |
+
* [Unquantised SuperHOT fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/TheBloke/Wizard-Vicuna-30B-Superhot-8K-GPTQ)
|
46 |
+
* [Eric's base unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/ehartford/Wizard-Vicuna-30B-Uncensored)
|
47 |
|
48 |
+
## How to easily download and use this model in text-generation-webui with ExLlama
|
49 |
|
50 |
Please make sure you're using the latest version of text-generation-webui
|
51 |
|
|
|
53 |
2. Under **Download custom model or LoRA**, enter `TheBloke/Wizard-Vicuna-30B-Superhot-8K-GPTQ`.
|
54 |
3. Click **Download**.
|
55 |
4. The model will start downloading. Once it's finished it will say "Done"
|
56 |
+
5. Untick **Autoload the model**
|
57 |
+
6. In the top left, click the refresh icon next to **Model**.
|
58 |
+
7. In the **Model** dropdown, choose the model you just downloaded: `Wizard-Vicuna-30B-Superhot-8K-GPTQ`
|
59 |
+
8. To use the increased context, set the **Loader** to **ExLlama**, set **max_seq_len** to 8192 or 4096, and set **compress_pos_emb** to **4** for 8192 context, or to **2** for 4096 context.
|
60 |
+
9. Now click **Save Settings** followed by **Reload**
|
61 |
+
10. The model will automatically load, and is now ready for use!
|
62 |
+
11. Once you're ready, click the **Text Generation tab** and enter a prompt to get started!
|
63 |
|
64 |
+
## How to use this GPTQ model from Python code with AutoGPTQ
|
65 |
|
66 |
+
First make sure you have AutoGPTQ and Einops installed:
|
67 |
|
68 |
+
```
|
69 |
+
pip3 install einops auto-gptq
|
70 |
+
```
|
71 |
+
|
72 |
+
Then run the following code. Note that in order to get this to work, `config.json` has been hardcoded to a sequence length of 8192.
|
73 |
|
74 |
+
If you want to try 4096 instead to reduce VRAM usage, please manually edit `config.json` to set `max_position_embeddings` to the value you want.
|
75 |
|
76 |
```python
|
77 |
from transformers import AutoTokenizer, pipeline, logging
|
|
|
88 |
model = AutoGPTQForCausalLM.from_quantized(model_name_or_path,
|
89 |
model_basename=model_basename,
|
90 |
use_safetensors=True,
|
91 |
+
trust_remote_code=True,
|
92 |
+
device_map='auto',
|
93 |
use_triton=use_triton,
|
94 |
quantize_config=None)
|
95 |
|
96 |
+
model.seqlen = 8192
|
97 |
+
|
98 |
# Note: check the prompt template is correct for this model.
|
99 |
prompt = "Tell me about AI"
|
100 |
prompt_template=f'''USER: {prompt}
|
|
|
125 |
print(pipe(prompt_template)[0]['generated_text'])
|
126 |
```
|
127 |
|
128 |
+
## Using other UIs: monkey patch
|
129 |
+
|
130 |
+
Provided in the repo is `llama_rope_scaled_monkey_patch.py`, written by @kaiokendev.
|
131 |
+
|
132 |
+
It can be theoretically be added to any Python UI or custom code to enable the same result as `trust_remote_code=True`. I have not tested this, and it should be superseded by using `trust_remote_code=True`, but I include it for completeness and for interest.
|
133 |
+
|
134 |
## Provided files
|
135 |
|
136 |
**wizard-vicuna-30b-superhot-8k-GPTQ-4bit--1g.act.order.safetensors**
|
|
|
140 |
It was created without group_size to lower VRAM requirements, and with --act-order (desc_act) to boost inference accuracy as much as possible.
|
141 |
|
142 |
* `wizard-vicuna-30b-superhot-8k-GPTQ-4bit--1g.act.order.safetensors`
|
143 |
+
* Works for use with ExLlama with increased context (4096 or 8192)
|
144 |
+
* Works with AutoGPTQ in Python code, including with increased context, if `trust_remote_code=True` is set.
|
145 |
+
* Should work with GPTQ-for-LLaMa in CUDA mode, but unknown if increased context works - TBC. May have issues with GPTQ-for-LLaMa Triton mode.
|
146 |
* Works with text-generation-webui, including one-click-installers.
|
147 |
* Parameters: Groupsize = -1. Act Order / desc_act = True.
|
148 |
|
|
|
174 |
|
175 |
<!-- footer end -->
|
176 |
|
177 |
+
# Original model card: Kaio Ken's SuperHOT 8K
|
178 |
|
179 |
|
180 |
### SuperHOT Prototype 2 w/ 8K Context
|
|
|
206 |
- weight decay of 0.1
|
207 |
- AdamW beta1 of 0.9 and beta2 0.99, epsilon of 1e-5
|
208 |
- Trained on 4-bit base model
|
209 |
+
|
210 |
+
# Original model card: Eric Hartford's Wizard Vicuna 30B Uncensored
|
211 |
+
|
212 |
+
|
213 |
+
This is [wizard-vicuna-13b](https://huggingface.co/junelee/wizard-vicuna-13b) trained with a subset of the dataset - responses that contained alignment / moralizing were removed. The intent is to train a WizardLM that doesn't have alignment built-in, so that alignment (of any sort) can be added separately with for example with a RLHF LoRA.
|
214 |
+
|
215 |
+
Shout out to the open source AI/ML community, and everyone who helped me out.
|
216 |
+
|
217 |
+
Note:
|
218 |
+
|
219 |
+
An uncensored model has no guardrails.
|
220 |
+
|
221 |
+
You are responsible for anything you do with the model, just as you are responsible for anything you do with any dangerous object such as a knife, gun, lighter, or car.
|
222 |
+
|
223 |
+
Publishing anything this model generates is the same as publishing it yourself.
|
224 |
+
|
225 |
+
You are responsible for the content you publish, and you cannot blame the model any more than you can blame the knife, gun, lighter, or car for what you do with it.
|