Text Generation
Transformers
Safetensors
English
llama
text-generation-inference
4-bit precision
TheBloke commited on
Commit
37176e6
1 Parent(s): e1bca16

First upload of GPTQ model.

Browse files
README.md ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets:
3
+ - anon8231489123/ShareGPT_Vicuna_unfiltered
4
+ - ehartford/wizard_vicuna_70k_unfiltered
5
+ - ehartford/WizardLM_alpaca_evol_instruct_70k_unfiltered
6
+ language:
7
+ - en
8
+ library_name: transformers
9
+ pipeline_tag: text-generation
10
+ license: other
11
+ ---
12
+
13
+ # Wizard Mega 13B GPTQ
14
+
15
+ This repo contains 4bit GPTQ format quantised models of [OpenAccess AI Collective's Wizard Mega 13B](https://huggingface.co/openaccess-ai-collective/wizard-mega-13b/edit/main/README.md).
16
+
17
+ It is the result of quantising to 4bit using [GPTQ-for-LLaMa](https://github.com/qwopqwop200/GPTQ-for-LLaMa).
18
+
19
+ ## How to easily download and use this model in text-generation-webui
20
+
21
+ Open the text-generation-webui UI as normal.
22
+
23
+ 1. Click the **Model tab**.
24
+ 2. Under **Download custom model or LoRA**, enter `TheBloke/wizard-mega-13B-GPTQ`.
25
+ 3. Click **Download**.
26
+ 4. Wait until it says it's finished downloading.
27
+ 5. Click the **Refresh** icon next to **Model** in the top left.
28
+ 6. In the **Model drop-down**: choose the model you just downloaded, `wizard-mega-13B-GPTQ`.
29
+ 7. If you see an error in the bottom right, ignore it - it's temporary.
30
+ 8. Fill out the `GPTQ parameters` on the right: `Bits = 4`, `Groupsize = 128`, `model_type = Llama`
31
+ 9. Click **Save settings for this model** in the top right.
32
+ 10. Click **Reload the Model** in the top right.
33
+ 11. Once it says it's loaded, click the **Text Generation tab** and enter a prompt!
34
+
35
+ ## Provided files
36
+
37
+ **`wizard-mega-13B-GPTQ-4bit-128g.no-act-order.safetensors`**
38
+
39
+ This will work with all versions of GPTQ-for-LLaMa. It has maximum compatibility.
40
+
41
+ It was created without `--act-order` to increase quantisation quality, but without group_size so as to reduce VRAM requirements.
42
+
43
+ * `wizard-mega-13B-GPTQ-4bit-128g.safetensors`
44
+ * Works with all versions of GPTQ-for-LLaMa code, both Triton and CUDA branches
45
+ * Works with text-generation-webui one-click-installers
46
+ * Parameters: Groupsize = 128. No act-order.
47
+ * Command used to create the GPTQ:
48
+ ```
49
+ python llama.py /workspace/models/openaccess-ai-collective_wizard-mega-13b c4 --wbits 4 --act-order --true-sequential --groupsize 128 --save_safetensors /workspace/wizard-mega-13b/gptq/wizard-mega-13B-GPTQ-4bit-128g.no-act-order.safetensors
50
+ ```
51
+
52
+
53
+ # Original Wizard Mega 13B model card
54
+
55
+ Wizard Mega is a Llama 13B model fine-tuned on the [ShareGPT](https://huggingface.co/datasets/anon8231489123/ShareGPT_Vicuna_unfiltered), [WizardLM](https://huggingface.co/datasets/ehartford/WizardLM_alpaca_evol_instruct_70k_unfiltered), and [Wizard-Vicuna](https://huggingface.co/datasets/ehartford/wizard_vicuna_70k_unfiltered) datasets. These particular datasets have all been filtered to remove responses where the model responds with "As an AI language model...", etc or when the model refuses to respond.
56
+
57
+ ## Release (Epoch Two)
58
+
59
+ The Wizard Mega 13B SFT model is being released after two epochs as the eval loss increased during the 3rd (final planned epoch). Because of this, we have preliminarily decided to use the epoch 2 checkpoint as the final release candidate. https://wandb.ai/wing-lian/vicuna-13b/runs/5uebgm49
60
+
61
+ ## Build
62
+
63
+ Wizard Mega was built with [Axolotl](https://github.com/OpenAccess-AI-Collective/axolotl) on 8xA100 80GB for 15 hours. The configuration to duplicate this build is provided in this repo's [/config folder](https://huggingface.co/openaccess-ai-collective/wizard-mega-13b/tree/main/configs).
64
+
65
+ ## Examples
66
+
67
+ ````
68
+ ### Instruction: write Python code that returns the first n numbers of the Fibonacci sequence using memoization.
69
+
70
+ ### Assistant:
71
+ ```python
72
+ def fib(n):
73
+ if n < 2:
74
+ return n
75
+ elif n in cache:
76
+ return cache[n]
77
+ else:
78
+ a, b = 0, 1
79
+ for i in range(2, n+1):
80
+ cache[i] = a
81
+ a, b = b, a + b
82
+ return cache[n]
83
+
84
+ def first_n(n):
85
+ fib_list = [fib(i) for i in range(n+1)]
86
+ return fib_list[:n]
87
+ ```
88
+ This function uses memoization to store the values of previous Fibonacci numbers in a cache. This way, if the same number is requested again, it can be returned immediately without recalculating it.
89
+ The `first_n` function takes an integer `n` as input, and calculates the first n numbers of the Fibonacci sequence using memoization. It returns a list of those numbers.
90
+ ````
91
+
92
+ ```
93
+ ### Instruction: Finish the joke, a mechanic and a car salesman walk into a bar...
94
+
95
+ ### Assistant: ...and the bartender says "Hey guys, what can I get for you?" The mechanic replies, "I'll have a beer, but make it a quick one. I have to fix this guy's car before he finds out I
96
+ fiddled with his brakes." The salesman quips, "And I'll have a martini, shaken not stirred. After all, I have to sell this guy a car that doesn't break down on him within the first year of ownership."
97
+ ```
98
+
99
+
config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/workspace/models/openaccess-ai-collective_wizard-mega-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": "bfloat16",
21
+ "transformers_version": "4.29.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.30.0.dev0"
7
+ }
quantize_config.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bits": 4,
3
+ "group_size": 128,
4
+ "damp_percent": 0.01,
5
+ "desc_act": false,
6
+ "sym": true,
7
+ "true_sequential": true
8
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "unk_token": {
17
+ "content": "<unk>",
18
+ "lstrip": false,
19
+ "normalized": true,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ }
23
+ }
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,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "sp_model_kwargs": {},
24
+ "tokenizer_class": "LlamaTokenizer",
25
+ "unk_token": {
26
+ "__type": "AddedToken",
27
+ "content": "<unk>",
28
+ "lstrip": false,
29
+ "normalized": true,
30
+ "rstrip": false,
31
+ "single_word": false
32
+ }
33
+ }
wizard-mega-13B-GPTQ-4bit-128g.no-act.order.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:42d1177ddc30c7b09871dbee19016c6fc22aa0be683a5edd52da03ddfcffc702
3
+ size 7454797240