TheBloke commited on
Commit
037fd33
β€’
1 Parent(s): 8f30788

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +165 -59
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
  inference: false
3
- license: other
4
  model_creator: WizardLM
5
  model_link: https://huggingface.co/WizardLM/WizardLM-13B-V1.2
6
  model_name: WizardLM 13B V1.2
@@ -29,116 +29,146 @@ quantized_by: TheBloke
29
  - Model creator: [WizardLM](https://huggingface.co/WizardLM)
30
  - Original model: [WizardLM 13B V1.2](https://huggingface.co/WizardLM/WizardLM-13B-V1.2)
31
 
 
32
  ## Description
33
 
34
  This repo contains GPTQ model files for [WizardLM's WizardLM 13B V1.2](https://huggingface.co/WizardLM/WizardLM-13B-V1.2).
35
 
36
  Multiple GPTQ parameter permutations are provided; see Provided Files below for details of the options provided, their parameters, and the software used to create them.
37
 
 
 
38
  ## Repositories available
39
 
40
  * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/WizardLM-13B-V1.2-GPTQ)
41
- * [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference](https://huggingface.co/TheBloke/WizardLM-13B-V1.2-GGML)
 
42
  * [WizardLM's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/WizardLM/WizardLM-13B-V1.2)
 
43
 
 
44
  ## Prompt template: Vicuna
45
 
46
  ```
47
- A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.
48
 
49
- USER: {prompt}
50
- ASSISTANT:
51
  ```
52
 
53
- ## Provided files
 
 
 
54
 
55
  Multiple quantisation parameters are provided, to allow you to choose the best one for your hardware and requirements.
56
 
57
  Each separate quant is in a different branch. See below for instructions on fetching from different branches.
58
 
59
- | Branch | Bits | Group Size | Act Order (desc_act) | File Size | ExLlama Compatible? | Made With | Description |
60
- | ------ | ---- | ---------- | -------------------- | --------- | ------------------- | --------- | ----------- |
61
- | [main](https://huggingface.co/TheBloke/WizardLM-13B-V1.2-GPTQ/tree/main) | 4 | 128 | False | 7.26 GB | True | AutoGPTQ | Most compatible option. Good inference speed in AutoGPTQ and GPTQ-for-LLaMa. Lower inference quality than other options. |
62
- | [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/WizardLM-13B-V1.2-GPTQ/tree/gptq-4bit-32g-actorder_True) | 4 | 32 | True | 8.00 GB | True | AutoGPTQ | 4-bit, with Act Order and group size 32g. Gives highest possible inference quality, with maximum VRAM usage. Poor AutoGPTQ CUDA speed. |
63
- | [gptq-4bit-64g-actorder_True](https://huggingface.co/TheBloke/WizardLM-13B-V1.2-GPTQ/tree/gptq-4bit-64g-actorder_True) | 4 | 64 | True | 7.51 GB | True | AutoGPTQ | 4-bit, with Act Order and group size 64g. Uses less VRAM than 32g, but with slightly lower accuracy. Poor AutoGPTQ CUDA speed. |
64
- | [gptq-4bit-128g-actorder_True](https://huggingface.co/TheBloke/WizardLM-13B-V1.2-GPTQ/tree/gptq-4bit-128g-actorder_True) | 4 | 128 | True | 7.26 GB | True | AutoGPTQ | 4-bit, with Act Order and group size 128g. Uses even less VRAM than 64g, but with slightly lower accuracy. Poor AutoGPTQ CUDA speed. |
65
- | [gptq-8bit--1g-actorder_True](https://huggingface.co/TheBloke/WizardLM-13B-V1.2-GPTQ/tree/gptq-8bit--1g-actorder_True) | 8 | None | True | 13.36 GB | False | AutoGPTQ | 8-bit, with Act Order. No group size, to lower VRAM requirements and to improve AutoGPTQ speed. |
66
- | [gptq-8bit-128g-actorder_False](https://huggingface.co/TheBloke/WizardLM-13B-V1.2-GPTQ/tree/gptq-8bit-128g-actorder_False) | 8 | 128 | False | 13.65 GB | False | AutoGPTQ | 8-bit, with group size 128g for higher inference quality and without Act Order to improve AutoGPTQ speed. |
67
- | [gptq-8bit-128g-actorder_True](https://huggingface.co/TheBloke/WizardLM-13B-V1.2-GPTQ/tree/gptq-8bit-128g-actorder_True) | 8 | 128 | True | 13.65 GB | False | AutoGPTQ | 8-bit, with group size 128g for higher inference quality and with Act Order for even higher accuracy. Poor AutoGPTQ CUDA speed. |
68
- | [gptq-8bit-64g-actorder_True](https://huggingface.co/TheBloke/WizardLM-13B-V1.2-GPTQ/tree/gptq-8bit-64g-actorder_True) | 8 | 64 | True | 13.95 GB | False | AutoGPTQ | 8-bit, with group size 64g and Act Order for maximum inference quality. Poor AutoGPTQ CUDA speed. |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
 
 
70
  ## How to download from branches
71
 
72
  - In text-generation-webui, you can add `:branch` to the end of the download name, eg `TheBloke/WizardLM-13B-V1.2-GPTQ:gptq-4bit-32g-actorder_True`
73
  - With Git, you can clone a branch with:
74
  ```
75
- git clone --branch gptq-4bit-32g-actorder_True https://huggingface.co/TheBloke/WizardLM-13B-V1.2-GPTQ`
76
  ```
77
  - In Python Transformers code, the branch is the `revision` parameter; see below.
78
-
 
79
  ## How to easily download and use this model in [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
80
 
81
  Please make sure you're using the latest version of [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
82
 
83
- It is strongly recommended to use the text-generation-webui one-click-installers unless you know how to make a manual install.
84
 
85
  1. Click the **Model tab**.
86
  2. Under **Download custom model or LoRA**, enter `TheBloke/WizardLM-13B-V1.2-GPTQ`.
87
  - To download from a specific branch, enter for example `TheBloke/WizardLM-13B-V1.2-GPTQ:gptq-4bit-32g-actorder_True`
88
  - see Provided Files above for the list of branches for each option.
89
  3. Click **Download**.
90
- 4. The model will start downloading. Once it's finished it will say "Done"
91
  5. In the top left, click the refresh icon next to **Model**.
92
  6. In the **Model** dropdown, choose the model you just downloaded: `WizardLM-13B-V1.2-GPTQ`
93
  7. The model will automatically load, and is now ready for use!
94
  8. 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.
95
- * Note that you do not need to set GPTQ parameters any more. These are set automatically from the file `quantize_config.json`.
96
  9. Once you're ready, click the **Text Generation tab** and enter a prompt to get started!
 
97
 
 
98
  ## How to use this GPTQ model from Python code
99
 
100
- First make sure you have [AutoGPTQ](https://github.com/PanQiWei/AutoGPTQ) installed:
 
 
 
 
 
 
 
 
 
101
 
102
- `GITHUB_ACTIONS=true pip install auto-gptq`
 
 
 
 
 
103
 
104
- Then try the following example code:
 
 
 
 
 
 
 
 
105
 
106
  ```python
107
- from transformers import AutoTokenizer, pipeline, logging
108
- from auto_gptq import AutoGPTQForCausalLM, BaseQuantizeConfig
109
 
110
  model_name_or_path = "TheBloke/WizardLM-13B-V1.2-GPTQ"
111
- model_basename = "model"
112
-
113
- use_triton = False
 
 
 
114
 
115
  tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
116
 
117
- model = AutoGPTQForCausalLM.from_quantized(model_name_or_path,
118
- model_basename=model_basename,
119
- use_safetensors=True,
120
- trust_remote_code=False,
121
- device="cuda:0",
122
- use_triton=use_triton,
123
- quantize_config=None)
124
-
125
- """
126
- To download from a specific branch, use the revision parameter, as in this example:
127
-
128
- model = AutoGPTQForCausalLM.from_quantized(model_name_or_path,
129
- revision="gptq-4bit-32g-actorder_True",
130
- model_basename=model_basename,
131
- use_safetensors=True,
132
- trust_remote_code=False,
133
- device="cuda:0",
134
- quantize_config=None)
135
- """
136
-
137
  prompt = "Tell me about AI"
138
- prompt_template=f'''A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.
139
 
140
- USER: {prompt}
141
- ASSISTANT:
142
  '''
143
 
144
  print("\n\n*** Generate:")
@@ -149,9 +179,6 @@ print(tokenizer.decode(output[0]))
149
 
150
  # Inference can also be done using transformers' pipeline
151
 
152
- # Prevent printing spurious transformers error when using pipeline with AutoGPTQ
153
- logging.set_verbosity(logging.CRITICAL)
154
-
155
  print("*** Pipeline:")
156
  pipe = pipeline(
157
  "text-generation",
@@ -165,12 +192,17 @@ pipe = pipeline(
165
 
166
  print(pipe(prompt_template)[0]['generated_text'])
167
  ```
 
168
 
 
169
  ## Compatibility
170
 
171
- The files provided will work with AutoGPTQ (CUDA and Triton modes), GPTQ-for-LLaMa (only CUDA has been tested), and Occ4m's GPTQ-for-LLaMa fork.
172
 
173
- ExLlama works with Llama models in 4-bit. Please see the Provided Files table above for per-file compatibility.
 
 
 
174
 
175
  <!-- footer start -->
176
  <!-- 200823 -->
@@ -195,7 +227,7 @@ Donaters will get priority support on any and all AI/LLM/model questions and req
195
 
196
  **Special thanks to**: Aemon Algiz.
197
 
198
- **Patreon special mentions**: Sam, theTransient, Jonathan Leane, Steven Wood, webtim, Johann-Peter Hartmann, Geoffrey Montalvo, Gabriel Tamborski, Willem Michiel, John Villwock, Derek Yates, Mesiah Bishop, Eugene Pentland, Pieter, Chadd, Stephen Murray, Daniel P. Andersen, terasurfer, Brandon Frisco, Thomas Belote, Sid, Nathan LeClaire, Magnesian, Alps Aficionado, Stanislav Ovsiannikov, Alex, Joseph William Delisle, Nikolai Manek, Michael Davis, Junyu Yang, K, J, Spencer Kim, Stefan Sabev, Olusegun Samson, transmissions 11, Michael Levine, Cory Kujawski, Rainer Wilmers, zynix, Kalila, Luke @flexchar, Ajan Kanaga, Mandus, vamX, Ai Maven, Mano Prime, Matthew Berman, subjectnull, Vitor Caleffi, Clay Pascal, biorpg, alfie_i, 阿明, Jeffrey Morgan, ya boyyy, Raymond Fosdick, knownsqashed, Olakabola, Leonard Tan, ReadyPlayerEmma, Enrico Ros, Dave, Talal Aujan, Illia Dulskyi, Sean Connelly, senxiiz, Artur Olbinski, Elle, Raven Klaugh, Fen Risland, Deep Realms, Imad Khwaja, Fred von Graf, Will Dee, usrbinkat, SuperWojo, Alexandros Triantafyllidis, Swaroop Kallakuri, Dan Guido, John Detwiler, Pedro Madruga, Iucharbius, Viktor Bowallius, Asp the Wyvern, Edmond Seymore, Trenton Dambrowitz, Space Cruiser, Spiking Neurons AB, Pyrater, LangChain4j, Tony Hughes, Kacper WikieΕ‚, Rishabh Srivastava, David Ziegler, Luke Pendergrass, Andrey, Gabriel Puliatti, Lone Striker, Sebastain Graf, Pierre Kircher, Randy H, NimbleBox.ai, Vadim, danny, Deo Leter
199
 
200
 
201
  Thank you to all my generous patrons and donaters!
@@ -206,7 +238,57 @@ And thank you again to a16z for their generous grant.
206
 
207
  # Original model card: WizardLM's WizardLM 13B V1.2
208
 
209
- This is the **Full-Weight** of WizardLM-13B V1.2 model.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
210
 
211
  **Repository**: https://github.com/nlpxucan/WizardLM
212
 
@@ -215,3 +297,27 @@ This is the **Full-Weight** of WizardLM-13B V1.2 model.
215
 
216
  - πŸ”₯πŸ”₯πŸ”₯ [7/25/2023] We released **WizardLM V1.2** models. The **WizardLM-13B-V1.2** is here ([Demo_13B-V1.2](https://b7a19878988c8c73.gradio.app), [Demo_13B-V1.2_bak-1](https://d0a37a76e0ac4b52.gradio.app/), [Full Model Weight](https://huggingface.co/WizardLM/WizardLM-13B-V1.2)). Please checkout the [paper](https://arxiv.org/abs/2304.12244).
217
  - πŸ”₯πŸ”₯πŸ”₯ [7/25/2023] The **WizardLM-13B-V1.2** achieves **7.06** on [MT-Bench Leaderboard](https://chat.lmsys.org/?leaderboard), **89.17%** on [AlpacaEval Leaderboard](https://tatsu-lab.github.io/alpaca_eval/), and **101.4%** on [WizardLM Eval](https://github.com/nlpxucan/WizardLM/blob/main/WizardLM/data/WizardLM_testset.jsonl). (Note: MT-Bench and AlpacaEval are all self-test, will push update and request review. All tests are completed under their official settings.)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  inference: false
3
+ license: llama2
4
  model_creator: WizardLM
5
  model_link: https://huggingface.co/WizardLM/WizardLM-13B-V1.2
6
  model_name: WizardLM 13B V1.2
 
29
  - Model creator: [WizardLM](https://huggingface.co/WizardLM)
30
  - Original model: [WizardLM 13B V1.2](https://huggingface.co/WizardLM/WizardLM-13B-V1.2)
31
 
32
+ <!-- description start -->
33
  ## Description
34
 
35
  This repo contains GPTQ model files for [WizardLM's WizardLM 13B V1.2](https://huggingface.co/WizardLM/WizardLM-13B-V1.2).
36
 
37
  Multiple GPTQ parameter permutations are provided; see Provided Files below for details of the options provided, their parameters, and the software used to create them.
38
 
39
+ <!-- description end -->
40
+ <!-- repositories-available start -->
41
  ## Repositories available
42
 
43
  * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/WizardLM-13B-V1.2-GPTQ)
44
+ * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/WizardLM-13B-V1.2-GGUF)
45
+ * [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference (deprecated)](https://huggingface.co/TheBloke/WizardLM-13B-V1.2-GGML)
46
  * [WizardLM's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/WizardLM/WizardLM-13B-V1.2)
47
+ <!-- repositories-available end -->
48
 
49
+ <!-- prompt-template start -->
50
  ## Prompt template: Vicuna
51
 
52
  ```
53
+ A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. USER: {prompt} ASSISTANT:
54
 
 
 
55
  ```
56
 
57
+ <!-- prompt-template end -->
58
+
59
+ <!-- README_GPTQ.md-provided-files start -->
60
+ ## Provided files and GPTQ parameters
61
 
62
  Multiple quantisation parameters are provided, to allow you to choose the best one for your hardware and requirements.
63
 
64
  Each separate quant is in a different branch. See below for instructions on fetching from different branches.
65
 
66
+ All recent GPTQ files are made with AutoGPTQ, and all files in non-main branches are made with AutoGPTQ. Files in the `main` branch which were uploaded before August 2023 were made with GPTQ-for-LLaMa.
67
+
68
+ <details>
69
+ <summary>Explanation of GPTQ parameters</summary>
70
+
71
+ - Bits: The bit size of the quantised model.
72
+ - GS: GPTQ group size. Higher numbers use less VRAM, but have lower quantisation accuracy. "None" is the lowest possible value.
73
+ - Act Order: True or False. Also known as `desc_act`. True results in better quantisation accuracy. Some GPTQ clients have had issues with models that use Act Order plus Group Size, but this is generally resolved now.
74
+ - Damp %: A GPTQ parameter that affects how samples are processed for quantisation. 0.01 is default, but 0.1 results in slightly better accuracy.
75
+ - GPTQ dataset: The dataset used for quantisation. Using a dataset more appropriate to the model's training can improve quantisation accuracy. Note that the GPTQ dataset is not the same as the dataset used to train the model - please refer to the original model repo for details of the training dataset(s).
76
+ - Sequence Length: The length of the dataset sequences used for quantisation. Ideally this is the same as the model sequence length. For some very long sequence models (16+K), a lower sequence length may have to be used. Note that a lower sequence length does not limit the sequence length of the quantised model. It only impacts the quantisation accuracy on longer inference sequences.
77
+ - ExLlama Compatibility: Whether this file can be loaded with ExLlama, which currently only supports Llama models in 4-bit.
78
+
79
+ </details>
80
+
81
+ | Branch | Bits | GS | Act Order | Damp % | GPTQ Dataset | Seq Len | Size | ExLlama | Desc |
82
+ | ------ | ---- | -- | --------- | ------ | ------------ | ------- | ---- | ------- | ---- |
83
+ | [main](https://huggingface.co/TheBloke/WizardLM-13B-V1.2-GPTQ/tree/main) | 4 | 128 | No | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 7.26 GB | Yes | Most compatible option. Good inference speed in AutoGPTQ and GPTQ-for-LLaMa. Lower inference quality than other options. |
84
+ | [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/WizardLM-13B-V1.2-GPTQ/tree/gptq-4bit-32g-actorder_True) | 4 | 32 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 8.00 GB | Yes | 4-bit, with Act Order and group size 32g. Gives highest possible inference quality, with maximum VRAM usage. Poor AutoGPTQ CUDA speed. |
85
+ | [gptq-4bit-64g-actorder_True](https://huggingface.co/TheBloke/WizardLM-13B-V1.2-GPTQ/tree/gptq-4bit-64g-actorder_True) | 4 | 64 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 7.51 GB | Yes | 4-bit, with Act Order and group size 64g. Uses less VRAM than 32g, but with slightly lower accuracy. Poor AutoGPTQ CUDA speed. |
86
+ | [gptq-4bit-128g-actorder_True](https://huggingface.co/TheBloke/WizardLM-13B-V1.2-GPTQ/tree/gptq-4bit-128g-actorder_True) | 4 | 128 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 7.26 GB | Yes | 4-bit, with Act Order and group size 128g. Uses even less VRAM than 64g, but with slightly lower accuracy. Poor AutoGPTQ CUDA speed. |
87
+ | [gptq-8bit--1g-actorder_True](https://huggingface.co/TheBloke/WizardLM-13B-V1.2-GPTQ/tree/gptq-8bit--1g-actorder_True) | 8 | None | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 13.36 GB | No | 8-bit, with Act Order. No group size, to lower VRAM requirements and to improve AutoGPTQ speed. |
88
+ | [gptq-8bit-128g-actorder_False](https://huggingface.co/TheBloke/WizardLM-13B-V1.2-GPTQ/tree/gptq-8bit-128g-actorder_False) | 8 | 128 | No | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 13.65 GB | No | 8-bit, with group size 128g for higher inference quality and without Act Order to improve AutoGPTQ speed. |
89
+ | [gptq-8bit-128g-actorder_True](https://huggingface.co/TheBloke/WizardLM-13B-V1.2-GPTQ/tree/gptq-8bit-128g-actorder_True) | 8 | 128 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 13.65 GB | No | 8-bit, with group size 128g for higher inference quality and with Act Order for even higher accuracy. Poor AutoGPTQ CUDA speed. |
90
+ | [gptq-8bit-64g-actorder_True](https://huggingface.co/TheBloke/WizardLM-13B-V1.2-GPTQ/tree/gptq-8bit-64g-actorder_True) | 8 | 64 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 13.95 GB | No | 8-bit, with group size 64g and Act Order for even higher inference quality. Poor AutoGPTQ CUDA speed. |
91
+
92
+ <!-- README_GPTQ.md-provided-files end -->
93
 
94
+ <!-- README_GPTQ.md-download-from-branches start -->
95
  ## How to download from branches
96
 
97
  - In text-generation-webui, you can add `:branch` to the end of the download name, eg `TheBloke/WizardLM-13B-V1.2-GPTQ:gptq-4bit-32g-actorder_True`
98
  - With Git, you can clone a branch with:
99
  ```
100
+ git clone --single-branch --branch gptq-4bit-32g-actorder_True https://huggingface.co/TheBloke/WizardLM-13B-V1.2-GPTQ
101
  ```
102
  - In Python Transformers code, the branch is the `revision` parameter; see below.
103
+ <!-- README_GPTQ.md-download-from-branches end -->
104
+ <!-- README_GPTQ.md-text-generation-webui start -->
105
  ## How to easily download and use this model in [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
106
 
107
  Please make sure you're using the latest version of [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
108
 
109
+ 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.
110
 
111
  1. Click the **Model tab**.
112
  2. Under **Download custom model or LoRA**, enter `TheBloke/WizardLM-13B-V1.2-GPTQ`.
113
  - To download from a specific branch, enter for example `TheBloke/WizardLM-13B-V1.2-GPTQ:gptq-4bit-32g-actorder_True`
114
  - see Provided Files above for the list of branches for each option.
115
  3. Click **Download**.
116
+ 4. The model will start downloading. Once it's finished it will say "Done".
117
  5. In the top left, click the refresh icon next to **Model**.
118
  6. In the **Model** dropdown, choose the model you just downloaded: `WizardLM-13B-V1.2-GPTQ`
119
  7. The model will automatically load, and is now ready for use!
120
  8. 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.
121
+ * Note that you do not need to and should not set manual GPTQ parameters any more. These are set automatically from the file `quantize_config.json`.
122
  9. Once you're ready, click the **Text Generation tab** and enter a prompt to get started!
123
+ <!-- README_GPTQ.md-text-generation-webui end -->
124
 
125
+ <!-- README_GPTQ.md-use-from-python start -->
126
  ## How to use this GPTQ model from Python code
127
 
128
+ ### Install the necessary packages
129
+
130
+ Requires: Transformers 4.32.0 or later, Optimum 1.12.0 or later, and AutoGPTQ 0.4.2 or later.
131
+
132
+ ```shell
133
+ pip3 install transformers>=4.32.0 optimum>=1.12.0
134
+ pip3 install auto-gptq --extra-index-url https://huggingface.github.io/autogptq-index/whl/cu118/ # Use cu117 if on CUDA 11.7
135
+ ```
136
+
137
+ If you have problems installing AutoGPTQ using the pre-built wheels, install it from source instead:
138
 
139
+ ```shell
140
+ pip3 uninstall -y auto-gptq
141
+ git clone https://github.com/PanQiWei/AutoGPTQ
142
+ cd AutoGPTQ
143
+ pip3 install .
144
+ ```
145
 
146
+ ### For CodeLlama models only: you must use Transformers 4.33.0 or later.
147
+
148
+ If 4.33.0 is not yet released when you read this, you will need to install Transformers from source:
149
+ ```shell
150
+ pip3 uninstall -y transformers
151
+ pip3 install git+https://github.com/huggingface/transformers.git
152
+ ```
153
+
154
+ ### You can then use the following code
155
 
156
  ```python
157
+ from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
 
158
 
159
  model_name_or_path = "TheBloke/WizardLM-13B-V1.2-GPTQ"
160
+ # To use a different branch, change revision
161
+ # For example: revision="gptq-4bit-32g-actorder_True"
162
+ model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
163
+ torch_dtype=torch.float16,
164
+ device_map="auto",
165
+ revision="main")
166
 
167
  tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
168
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
169
  prompt = "Tell me about AI"
170
+ prompt_template=f'''A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. USER: {prompt} ASSISTANT:
171
 
 
 
172
  '''
173
 
174
  print("\n\n*** Generate:")
 
179
 
180
  # Inference can also be done using transformers' pipeline
181
 
 
 
 
182
  print("*** Pipeline:")
183
  pipe = pipeline(
184
  "text-generation",
 
192
 
193
  print(pipe(prompt_template)[0]['generated_text'])
194
  ```
195
+ <!-- README_GPTQ.md-use-from-python end -->
196
 
197
+ <!-- README_GPTQ.md-compatibility start -->
198
  ## Compatibility
199
 
200
+ The files provided are tested to work with AutoGPTQ, both via Transformers and using AutoGPTQ directly. They should also work with [Occ4m's GPTQ-for-LLaMa fork](https://github.com/0cc4m/KoboldAI).
201
 
202
+ [ExLlama](https://github.com/turboderp/exllama) is compatible with Llama models in 4-bit. Please see the Provided Files table above for per-file compatibility.
203
+
204
+ [Huggingface Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference) is compatible with all GPTQ models.
205
+ <!-- README_GPTQ.md-compatibility end -->
206
 
207
  <!-- footer start -->
208
  <!-- 200823 -->
 
227
 
228
  **Special thanks to**: Aemon Algiz.
229
 
230
+ **Patreon special mentions**: Russ Johnson, J, alfie_i, Alex, NimbleBox.ai, Chadd, Mandus, Nikolai Manek, Ken Nordquist, ya boyyy, Illia Dulskyi, Viktor Bowallius, vamX, Iucharbius, zynix, Magnesian, Clay Pascal, Pierre Kircher, Enrico Ros, Tony Hughes, Elle, Andrey, knownsqashed, Deep Realms, Jerry Meng, Lone Striker, Derek Yates, Pyrater, Mesiah Bishop, James Bentley, Femi Adebogun, Brandon Frisco, SuperWojo, Alps Aficionado, Michael Dempsey, Vitor Caleffi, Will Dee, Edmond Seymore, usrbinkat, LangChain4j, Kacper WikieΕ‚, Luke Pendergrass, John Detwiler, theTransient, Nathan LeClaire, Tiffany J. Kim, biorpg, Eugene Pentland, Stanislav Ovsiannikov, Fred von Graf, terasurfer, Kalila, Dan Guido, Nitin Borwankar, 阿明, Ai Maven, John Villwock, Gabriel Puliatti, Stephen Murray, Asp the Wyvern, danny, Chris Smitley, ReadyPlayerEmma, S_X, Daniel P. Andersen, Olakabola, Jeffrey Morgan, Imad Khwaja, Caitlyn Gatomon, webtim, Alicia Loh, Trenton Dambrowitz, Swaroop Kallakuri, Erik BjΓ€reholt, Leonard Tan, Spiking Neurons AB, Luke @flexchar, Ajan Kanaga, Thomas Belote, Deo Leter, RoA, Willem Michiel, transmissions 11, subjectnull, Matthew Berman, Joseph William Delisle, David Ziegler, Michael Davis, Johann-Peter Hartmann, Talal Aujan, senxiiz, Artur Olbinski, Rainer Wilmers, Spencer Kim, Fen Risland, Cap'n Zoog, Rishabh Srivastava, Michael Levine, Geoffrey Montalvo, Sean Connelly, Alexandros Triantafyllidis, Pieter, Gabriel Tamborski, Sam, Subspace Studios, Junyu Yang, Pedro Madruga, Vadim, Cory Kujawski, K, Raven Klaugh, Randy H, Mano Prime, Sebastain Graf, Space Cruiser
231
 
232
 
233
  Thank you to all my generous patrons and donaters!
 
238
 
239
  # Original model card: WizardLM's WizardLM 13B V1.2
240
 
241
+ This is the **Full-Weight** of WizardLM-13B V1.2 model, this model is trained from **Llama-2 13b**.
242
+
243
+ ## WizardLM: Empowering Large Pre-Trained Language Models to Follow Complex Instructions
244
+
245
+
246
+
247
+ <p align="center">
248
+ πŸ€— <a href="https://huggingface.co/WizardLM" target="_blank">HF Repo</a> β€’πŸ± <a href="https://github.com/nlpxucan/WizardLM" target="_blank">Github Repo</a> β€’ 🐦 <a href="https://twitter.com/WizardLM_AI" target="_blank">Twitter</a> β€’ πŸ“ƒ <a href="https://arxiv.org/abs/2304.12244" target="_blank">[WizardLM]</a> β€’ πŸ“ƒ <a href="https://arxiv.org/abs/2306.08568" target="_blank">[WizardCoder]</a> β€’ πŸ“ƒ <a href="https://arxiv.org/abs/2308.09583" target="_blank">[WizardMath]</a> <br>
249
+ </p>
250
+ <p align="center">
251
+ πŸ‘‹ Join our <a href="https://discord.gg/VZjjHtWrKs" target="_blank">Discord</a>
252
+ </p>
253
+
254
+ ## News
255
+
256
+ - πŸ”₯πŸ”₯πŸ”₯[2023/08/26] We released **WizardCoder-Python-34B-V1.0** , which achieves the **73.2 pass@1** and surpasses **GPT4 (2023/03/15)**, **ChatGPT-3.5**, and **Claude2** on the [HumanEval Benchmarks](https://github.com/openai/human-eval). For more details, please refer to [WizardCoder](https://github.com/nlpxucan/WizardLM/tree/main/WizardCoder).
257
+ - [2023/06/16] We released **WizardCoder-15B-V1.0** , which surpasses **Claude-Plus (+6.8)**, **Bard (+15.3)** and **InstructCodeT5+ (+22.3)** on the [HumanEval Benchmarks](https://github.com/openai/human-eval). For more details, please refer to [WizardCoder](https://github.com/nlpxucan/WizardLM/tree/main/WizardCoder).
258
+
259
+ | Model | Checkpoint | Paper | HumanEval | MBPP | Demo | License |
260
+ | ----- |------| ---- |------|-------| ----- | ----- |
261
+ | WizardCoder-Python-34B-V1.0 | πŸ€— <a href="https://huggingface.co/WizardLM/WizardCoder-Python-34B-V1.0" target="_blank">HF Link</a> | πŸ“ƒ <a href="https://arxiv.org/abs/2306.08568" target="_blank">[WizardCoder]</a> | 73.2 | 61.2 | [Demo](http://47.103.63.15:50085/) | <a href="https://ai.meta.com/resources/models-and-libraries/llama-downloads/" target="_blank">Llama2</a> |
262
+ | WizardCoder-15B-V1.0 | πŸ€— <a href="https://huggingface.co/WizardLM/WizardCoder-15B-V1.0" target="_blank">HF Link</a> | πŸ“ƒ <a href="https://arxiv.org/abs/2306.08568" target="_blank">[WizardCoder]</a> | 59.8 |50.6 | -- | <a href="https://huggingface.co/spaces/bigcode/bigcode-model-license-agreement" target="_blank">OpenRAIL-M</a> |
263
+ | WizardCoder-Python-13B-V1.0 | πŸ€— <a href="https://huggingface.co/WizardLM/WizardCoder-Python-13B-V1.0" target="_blank">HF Link</a> | πŸ“ƒ <a href="https://arxiv.org/abs/2306.08568" target="_blank">[WizardCoder]</a> | 64.0 | 55.6 | -- | <a href="https://ai.meta.com/resources/models-and-libraries/llama-downloads/" target="_blank">Llama2</a> |
264
+ | WizardCoder-Python-7B-V1.0 | πŸ€— <a href="https://huggingface.co/WizardLM/WizardCoder-Python-7B-V1.0" target="_blank">HF Link</a> | πŸ“ƒ <a href="https://arxiv.org/abs/2306.08568" target="_blank">[WizardCoder]</a> | 55.5 | 51.6 | [Demo](http://47.103.63.15:50088/) | <a href="https://ai.meta.com/resources/models-and-libraries/llama-downloads/" target="_blank">Llama2</a> |
265
+ | WizardCoder-3B-V1.0 | πŸ€— <a href="https://huggingface.co/WizardLM/WizardCoder-3B-V1.0" target="_blank">HF Link</a> | πŸ“ƒ <a href="https://arxiv.org/abs/2306.08568" target="_blank">[WizardCoder]</a> | 34.8 |37.4 | -- | <a href="https://huggingface.co/spaces/bigcode/bigcode-model-license-agreement" target="_blank">OpenRAIL-M</a> |
266
+ | WizardCoder-1B-V1.0 | πŸ€— <a href="https://huggingface.co/WizardLM/WizardCoder-1B-V1.0" target="_blank">HF Link</a> | πŸ“ƒ <a href="https://arxiv.org/abs/2306.08568" target="_blank">[WizardCoder]</a> | 23.8 |28.6 | -- | <a href="https://huggingface.co/spaces/bigcode/bigcode-model-license-agreement" target="_blank">OpenRAIL-M</a> |
267
+
268
+
269
+ - πŸ”₯ [08/11/2023] We release **WizardMath** Models.
270
+ - πŸ”₯ Our **WizardMath-70B-V1.0** model slightly outperforms some closed-source LLMs on the GSM8K, including **ChatGPT 3.5**, **Claude Instant 1** and **PaLM 2 540B**.
271
+ - πŸ”₯ Our **WizardMath-70B-V1.0** model achieves **81.6 pass@1** on the [GSM8k Benchmarks](https://github.com/openai/grade-school-math), which is **24.8** points higher than the SOTA open-source LLM.
272
+ - πŸ”₯ Our **WizardMath-70B-V1.0** model achieves **22.7 pass@1** on the [MATH Benchmarks](https://github.com/hendrycks/math), which is **9.2** points higher than the SOTA open-source LLM.
273
+
274
+
275
+ | Model | Checkpoint | Paper | GSM8k | MATH |Online Demo| License|
276
+ | ----- |------| ---- |------|-------| ----- | ----- |
277
+ | WizardMath-70B-V1.0 | πŸ€— <a href="https://huggingface.co/WizardLM/WizardMath-70B-V1.0" target="_blank">HF Link</a> | πŸ“ƒ <a href="https://arxiv.org/abs/2308.09583" target="_blank">[WizardMath]</a>| **81.6** | **22.7** |[Demo](http://47.103.63.15:50083/)| <a href="https://ai.meta.com/resources/models-and-libraries/llama-downloads/" target="_blank">Llama 2 </a> |
278
+ | WizardMath-13B-V1.0 | πŸ€— <a href="https://huggingface.co/WizardLM/WizardMath-13B-V1.0" target="_blank">HF Link</a> | πŸ“ƒ <a href="https://arxiv.org/abs/2308.09583" target="_blank">[WizardMath]</a>| **63.9** | **14.0** |[Demo](http://47.103.63.15:50082/)| <a href="https://ai.meta.com/resources/models-and-libraries/llama-downloads/" target="_blank">Llama 2 </a> |
279
+ | WizardMath-7B-V1.0 | πŸ€— <a href="https://huggingface.co/WizardLM/WizardMath-7B-V1.0" target="_blank">HF Link</a> | πŸ“ƒ <a href="https://arxiv.org/abs/2308.09583" target="_blank">[WizardMath]</a>| **54.9** | **10.7** | [Demo](http://47.103.63.15:50080/)| <a href="https://ai.meta.com/resources/models-and-libraries/llama-downloads/" target="_blank">Llama 2 </a>|
280
+
281
+
282
+ <font size=4>
283
+
284
+ | <sup>Model</sup> | <sup>Checkpoint</sup> | <sup>Paper</sup> |<sup>MT-Bench</sup> | <sup>AlpacaEval</sup> | <sup>WizardEval</sup> | <sup>HumanEval</sup> | <sup>License</sup>|
285
+ | ----- |------| ---- |------|-------| ----- | ----- | ----- |
286
+ | <sup>WizardLM-13B-V1.2</sup> | <sup>πŸ€— <a href="https://huggingface.co/WizardLM/WizardLM-13B-V1.2" target="_blank">HF Link</a> </sup>| | <sup>7.06</sup> | <sup>89.17%</sup> | <sup>101.4% </sup>|<sup>36.6 pass@1</sup>|<sup> <a href="https://ai.meta.com/resources/models-and-libraries/llama-downloads/" target="_blank">Llama 2 License </a></sup> |
287
+ | <sup>WizardLM-13B-V1.1</sup> |<sup> πŸ€— <a href="https://huggingface.co/WizardLM/WizardLM-13B-V1.1" target="_blank">HF Link</a> </sup> | | <sup>6.76</sup> |<sup>86.32%</sup> | <sup>99.3% </sup> |<sup>25.0 pass@1</sup>| <sup>Non-commercial</sup>|
288
+ | <sup>WizardLM-30B-V1.0</sup> | <sup>πŸ€— <a href="https://huggingface.co/WizardLM/WizardLM-30B-V1.0" target="_blank">HF Link</a></sup> | | <sup>7.01</sup> | | <sup>97.8% </sup> | <sup>37.8 pass@1</sup>| <sup>Non-commercial</sup> |
289
+ | <sup>WizardLM-13B-V1.0</sup> | <sup>πŸ€— <a href="https://huggingface.co/WizardLM/WizardLM-13B-V1.0" target="_blank">HF Link</a> </sup> | | <sup>6.35</sup> | <sup>75.31%</sup> | <sup>89.1% </sup> |<sup> 24.0 pass@1 </sup> | <sup>Non-commercial</sup>|
290
+ | <sup>WizardLM-7B-V1.0 </sup>| <sup>πŸ€— <a href="https://huggingface.co/WizardLM/WizardLM-7B-V1.0" target="_blank">HF Link</a> </sup> |<sup> πŸ“ƒ <a href="https://arxiv.org/abs/2304.12244" target="_blank">[WizardLM]</a> </sup>| | | <sup>78.0% </sup> |<sup>19.1 pass@1 </sup>|<sup> Non-commercial</sup>|
291
+ </font>
292
 
293
  **Repository**: https://github.com/nlpxucan/WizardLM
294
 
 
297
 
298
  - πŸ”₯πŸ”₯πŸ”₯ [7/25/2023] We released **WizardLM V1.2** models. The **WizardLM-13B-V1.2** is here ([Demo_13B-V1.2](https://b7a19878988c8c73.gradio.app), [Demo_13B-V1.2_bak-1](https://d0a37a76e0ac4b52.gradio.app/), [Full Model Weight](https://huggingface.co/WizardLM/WizardLM-13B-V1.2)). Please checkout the [paper](https://arxiv.org/abs/2304.12244).
299
  - πŸ”₯πŸ”₯πŸ”₯ [7/25/2023] The **WizardLM-13B-V1.2** achieves **7.06** on [MT-Bench Leaderboard](https://chat.lmsys.org/?leaderboard), **89.17%** on [AlpacaEval Leaderboard](https://tatsu-lab.github.io/alpaca_eval/), and **101.4%** on [WizardLM Eval](https://github.com/nlpxucan/WizardLM/blob/main/WizardLM/data/WizardLM_testset.jsonl). (Note: MT-Bench and AlpacaEval are all self-test, will push update and request review. All tests are completed under their official settings.)
300
+
301
+ ❗<b>Note for model system prompts usage:</b>
302
+
303
+
304
+ <b>WizardLM</b> adopts the prompt format from <b>Vicuna</b> and supports **multi-turn** conversation. The prompt should be as following:
305
+
306
+ ```
307
+ A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. USER: Hi ASSISTANT: Hello.</s>USER: Who are you? ASSISTANT: I am WizardLM.</s>......
308
+ ```
309
+
310
+ ## Inference WizardLM Demo Script
311
+
312
+ We provide the inference WizardLM demo code [here](https://github.com/nlpxucan/WizardLM/tree/main/demo).
313
+
314
+ ❗<b>To commen concern about dataset:</b>
315
+
316
+ Recently, there have been clear changes in the open-source policy and regulations of our overall organization's code, data, and models.
317
+
318
+
319
+ Despite this, we have still worked hard to obtain opening the weights of the model first, but the data involves stricter auditing and is in review with our legal team .
320
+
321
+ Our researchers have no authority to publicly release them without authorization.
322
+
323
+ Thank you for your understanding.