TheBloke commited on
Commit
ed3e7e0
1 Parent(s): d1f6f27

Initial GPTQ model commit, of compat file.

Browse files
README.md ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ tags:
5
+ - causal-lm
6
+ - llama
7
+ inference: false
8
+ ---
9
+ # Wizard-Vicuna-13B-GPTQ
10
+
11
+ This is GPTQ format quantised 4bit models of [Eric Hartford's 'uncensored' training of Wizard-Vicuna 13B](https://huggingface.co/ehartford/Wizard-Vicuna-13B-Uncensored).
12
+
13
+ It is the result of quantising to 4bit using [GPTQ-for-LLaMa](https://github.com/qwopqwop200/GPTQ-for-LLaMa).
14
+
15
+ ## Repositories available
16
+
17
+ * [4bit GPTQ models for GPU inference](https://huggingface.co/TheBloke/Wizard-Vicuna-13B-Uncensored-GPTQ).
18
+ * [4bit and 5bit GGML models for CPU inference](https://huggingface.co/TheBloke/Wizard-Vicuna-13B-Uncensored-GGML).
19
+ * [float16 HF format model for GPU inference and further conversions](https://huggingface.co/TheBloke/Wizard-Vicuna-13B-Uncensored-HF).
20
+
21
+ ## How to easily download and use this model in text-generation-webui
22
+
23
+ Open the text-generation-webui UI as normal.
24
+
25
+ 1. Click the **Model tab**.
26
+ 2. Under **Download custom model or LoRA**, enter `TheBloke/Wizard-Vicuna-13B-Uncensored-GPTQ`.
27
+ 3. Click **Download**.
28
+ 4. Wait until it says it's finished downloading.
29
+ 5. Click the **Refresh** icon next to **Model** in the top left.
30
+ 6. In the **Model drop-down**: choose the model you just downloaded, `Wizard-Vicuna-13B-Uncensored-GPTQ`.
31
+ 7. If you see an error in the bottom right, ignore it - it's temporary.
32
+ 8. Fill out the `GPTQ parameters` on the right: `Bits = 4`, `Groupsize = 128`, `model_type = Llama`
33
+ 9. Click **Save settings for this model** in the top right.
34
+ 10. Click **Reload the Model** in the top right.
35
+ 11. Once it says it's loaded, click the **Text Generation tab** and enter a prompt!
36
+
37
+ ## Provided files
38
+
39
+ **Compatible file - Wizard-Vicuna-13B-Uncensored-GPTQ-4bit-128g.compat.no-act-order.safetensors**
40
+
41
+ In the `main` branch - the default one - you will find `Wizard-Vicuna-13B-Uncensored-GPTQ-4bit-128g.compat.no-act-order.safetensors`
42
+
43
+ This will work with all versions of GPTQ-for-LLaMa. It has maximum compatibility
44
+
45
+ It was created without the `--act-order` parameter. It may have slightly lower inference quality compared to the other file, but is guaranteed to work on all versions of GPTQ-for-LLaMa and text-generation-webui.
46
+
47
+ * `Wizard-Vicuna-13B-Uncensored-GPTQ-4bit-128g.compat.no-act-order.safetensors`
48
+ * Works with all versions of GPTQ-for-LLaMa code, both Triton and CUDA branches
49
+ * Works with AutoGPTQ.
50
+ * Works with text-generation-webui one-click-installers
51
+ * Parameters: Groupsize = 128g. No act-order.
52
+ * Command used to create the GPTQ:
53
+ ```
54
+ python llama.py ehartford_Wizard-Vicuna-13B-Uncensored c4 --wbits 4 --groupsize 128 --true-sequential --save_safetensors Wizard-Vicuna-13B-Uncensored-GPTQ-4bit-128g.compat.no-act-order.safetensors
55
+ ```
56
+
57
+ **Latest file with act-order - Wizard-Vicuna-13B-Uncensored-GPTQ-4bit-128g.latest.act-order.safetensors**
58
+
59
+ In the `latest` branch you will find `Wizard-Vicuna-13B-Uncensored-GPTQ-4bit-128g.latest.act-order.safetensors`
60
+
61
+ This requires recent GPTQ-for-LLaMa code. It will not work with ooba's fork.
62
+
63
+ It was created with the `--act-order` parameter to maximise inference quality.
64
+
65
+
66
+ To download this branch in text-generation-webui, enter `TheBloke/Wizard-Vicuna-13B-Uncensored-GPTQ:latest` in the Download Model box.
67
+
68
+ * `Wizard-Vicuna-13B-Uncensored-GPTQ-4bit-128g.latest.act-order.safetensors`
69
+ * Works only with recent GPTQ-for-LLaMa.
70
+ * Works with AutoGPTQ.
71
+ * Will not work with text-generation-webui one-click-installers
72
+ * Parameters: Groupsize = 128g. Act order.
73
+ * Command used to create the GPTQ:
74
+ ```
75
+ python llama.py ehartford_Wizard-Vicuna-13B-Uncensored c4 --wbits 4 --groupsize 128 --true-sequential --act-order --save_safetensors Wizard-Vicuna-13B-Uncensored-GPTQ-4bit-128g.latest.act-order.safetensors
76
+ ```
77
+
78
+ # Original model card
79
+
80
+ 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.
81
+
82
+ Shout out to the open source AI/ML community, and everyone who helped me out.
83
+
84
+ Note:
85
+
86
+ An uncensored model has no guardrails.
87
+
88
+ 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.
89
+
90
+ Publishing anything this model generates is the same as publishing it yourself.
91
+
92
+ 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.
Wizard-Vicuna-13B-Uncensored-GPTQ-4bit-128g.compat.no-act-order.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5acd7195dbe3826d44e77d5184d3f0b29ac0add2f77a4b3f6f848d301fc797c5
3
+ size 8110988216
config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/workspace/models/llama-13b",
3
+ "architectures": [
4
+ "LlamaForCausalLM"
5
+ ],
6
+ "bos_token_id": 1,
7
+ "eos_token_id": 2,
8
+ "hidden_act": "silu",
9
+ "hidden_size": 5120,
10
+ "initializer_range": 0.02,
11
+ "intermediate_size": 13824,
12
+ "max_position_embeddings": 2048,
13
+ "max_sequence_length": 2048,
14
+ "model_type": "llama",
15
+ "num_attention_heads": 40,
16
+ "num_hidden_layers": 40,
17
+ "pad_token_id": 0,
18
+ "rms_norm_eps": 1e-06,
19
+ "tie_word_embeddings": false,
20
+ "torch_dtype": "float32",
21
+ "transformers_version": "4.28.1",
22
+ "use_cache": true,
23
+ "vocab_size": 32000
24
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "pad_token_id": 0,
6
+ "transformers_version": "4.28.1"
7
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "<unk>",
17
+ "unk_token": {
18
+ "content": "<unk>",
19
+ "lstrip": false,
20
+ "normalized": true,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
3
+ size 499723
tokenizer_config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "bos_token": {
5
+ "__type": "AddedToken",
6
+ "content": "<s>",
7
+ "lstrip": false,
8
+ "normalized": true,
9
+ "rstrip": false,
10
+ "single_word": false
11
+ },
12
+ "clean_up_tokenization_spaces": false,
13
+ "eos_token": {
14
+ "__type": "AddedToken",
15
+ "content": "</s>",
16
+ "lstrip": false,
17
+ "normalized": true,
18
+ "rstrip": false,
19
+ "single_word": false
20
+ },
21
+ "model_max_length": 2048,
22
+ "pad_token": null,
23
+ "padding_side": "right",
24
+ "sp_model_kwargs": {},
25
+ "tokenizer_class": "LlamaTokenizer",
26
+ "unk_token": {
27
+ "__type": "AddedToken",
28
+ "content": "<unk>",
29
+ "lstrip": false,
30
+ "normalized": true,
31
+ "rstrip": false,
32
+ "single_word": false
33
+ }
34
+ }
trainer_state.json ADDED
@@ -0,0 +1,2401 @@