Text Generation
Transformers
Safetensors
llama
OpenAccess AI Collective
MPT
axolotl
text-generation-inference
4-bit precision
gptq
TheBloke commited on
Commit
f61aa26
1 Parent(s): 4551d12

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +126 -71
README.md CHANGED
@@ -1,4 +1,5 @@
1
  ---
 
2
  datasets:
3
  - ehartford/WizardLM_alpaca_evol_instruct_70k_unfiltered
4
  - QingyiSi/Alpaca-CoT
@@ -14,8 +15,16 @@ datasets:
14
  - camel-ai/chemistry
15
  - winglian/evals
16
  inference: false
17
- license: other
 
 
18
  model_type: llama
 
 
 
 
 
 
19
  tags:
20
  - OpenAccess AI Collective
21
  - MPT
@@ -39,148 +48,192 @@ tags:
39
  <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
40
  <!-- header end -->
41
 
42
- # OpenAccess AI Collective's Minotaur 13B Fixed GPTQ
 
 
43
 
44
- These files are GPTQ model files for [OpenAccess AI Collective's Minotaur 13B Fixed](https://huggingface.co/openaccess-ai-collective/minotaur-13b-fixed).
 
45
 
46
- 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.
47
 
48
- These models were quantised using hardware kindly provided by [Latitude.sh](https://www.latitude.sh/accelerate).
49
 
 
 
50
  ## Repositories available
51
 
 
52
  * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/minotaur-13B-fixed-GPTQ)
53
- * [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference](https://huggingface.co/TheBloke/minotaur-13B-fixed-GGML)
54
- * [Unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/openaccess-ai-collective/minotaur-13b-fixed)
 
55
 
 
56
  ## Prompt template: Vicuna
57
 
58
  ```
59
- A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.
60
 
61
- USER: {prompt}
62
- ASSISTANT:
63
  ```
64
 
65
- ## Provided files
 
 
 
 
 
 
 
 
 
 
 
66
 
67
  Multiple quantisation parameters are provided, to allow you to choose the best one for your hardware and requirements.
68
 
69
  Each separate quant is in a different branch. See below for instructions on fetching from different branches.
70
 
71
- | Branch | Bits | Group Size | Act Order (desc_act) | File Size | ExLlama Compatible? | Made With | Description |
72
- | ------ | ---- | ---------- | -------------------- | --------- | ------------------- | --------- | ----------- |
73
- | main | 4 | 128 | False | 7.45 GB | True | GPTQ-for-LLaMa | Most compatible option. Good inference speed in AutoGPTQ and GPTQ-for-LLaMa. Lower inference quality than other options. |
74
- | 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. |
75
- | 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. |
76
- | 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, but with slightly lower accuracy. Poor AutoGPTQ CUDA speed. |
77
- | 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. |
78
- | 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. |
79
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
  ## How to download from branches
81
 
82
- - In text-generation-webui, you can add `:branch` to the end of the download name, eg `TheBloke/minotaur-13B-fixed-GPTQ:gptq-4bit-32g-actorder_True`
83
  - With Git, you can clone a branch with:
84
  ```
85
- git clone --branch gptq-4bit-32g-actorder_True https://huggingface.co/TheBloke/minotaur-13B-fixed-GPTQ`
86
  ```
87
  - In Python Transformers code, the branch is the `revision` parameter; see below.
88
-
 
89
  ## How to easily download and use this model in [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
90
 
91
  Please make sure you're using the latest version of [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
92
 
93
- It is strongly recommended to use the text-generation-webui one-click-installers unless you know how to make a manual install.
94
 
95
  1. Click the **Model tab**.
96
  2. Under **Download custom model or LoRA**, enter `TheBloke/minotaur-13B-fixed-GPTQ`.
97
- - To download from a specific branch, enter for example `TheBloke/minotaur-13B-fixed-GPTQ:gptq-4bit-32g-actorder_True`
98
  - see Provided Files above for the list of branches for each option.
99
  3. Click **Download**.
100
- 4. The model will start downloading. Once it's finished it will say "Done"
101
  5. In the top left, click the refresh icon next to **Model**.
102
  6. In the **Model** dropdown, choose the model you just downloaded: `minotaur-13B-fixed-GPTQ`
103
  7. The model will automatically load, and is now ready for use!
104
  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.
105
- * Note that you do not need to set GPTQ parameters any more. These are set automatically from the file `quantize_config.json`.
106
  9. Once you're ready, click the **Text Generation tab** and enter a prompt to get started!
 
107
 
 
108
  ## How to use this GPTQ model from Python code
109
 
110
- First make sure you have [AutoGPTQ](https://github.com/PanQiWei/AutoGPTQ) installed:
111
 
112
- `GITHUB_ACTIONS=true pip install auto-gptq`
113
 
114
- Then try the following example code:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
 
116
  ```python
117
- from transformers import AutoTokenizer, pipeline, logging
118
- from auto_gptq import AutoGPTQForCausalLM, BaseQuantizeConfig
119
 
120
  model_name_or_path = "TheBloke/minotaur-13B-fixed-GPTQ"
121
- model_basename = "minotaur-13b-GPTQ-4bit-128g.no-act.order"
122
-
123
- use_triton = False
 
 
 
124
 
125
  tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
126
 
127
- model = AutoGPTQForCausalLM.from_quantized(model_name_or_path,
128
- model_basename=model_basename
129
- use_safetensors=True,
130
- trust_remote_code=True,
131
- device="cuda:0",
132
- use_triton=use_triton,
133
- quantize_config=None)
134
-
135
- """
136
- To download from a specific branch, use the revision parameter, as in this example:
137
-
138
- model = AutoGPTQForCausalLM.from_quantized(model_name_or_path,
139
- revision="gptq-4bit-32g-actorder_True",
140
- model_basename=model_basename,
141
- use_safetensors=True,
142
- trust_remote_code=True,
143
- device="cuda:0",
144
- quantize_config=None)
145
- """
146
-
147
  prompt = "Tell me about AI"
148
- 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.
149
 
150
- USER: {prompt}
151
- ASSISTANT:
152
  '''
153
 
154
  print("\n\n*** Generate:")
155
 
156
  input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
157
- output = model.generate(inputs=input_ids, temperature=0.7, max_new_tokens=512)
158
  print(tokenizer.decode(output[0]))
159
 
160
  # Inference can also be done using transformers' pipeline
161
 
162
- # Prevent printing spurious transformers error when using pipeline with AutoGPTQ
163
- logging.set_verbosity(logging.CRITICAL)
164
-
165
  print("*** Pipeline:")
166
  pipe = pipeline(
167
  "text-generation",
168
  model=model,
169
  tokenizer=tokenizer,
170
  max_new_tokens=512,
 
171
  temperature=0.7,
172
  top_p=0.95,
173
- repetition_penalty=1.15
 
174
  )
175
 
176
  print(pipe(prompt_template)[0]['generated_text'])
177
  ```
 
178
 
 
179
  ## Compatibility
180
 
181
- 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.
 
 
182
 
183
- ExLlama works with Llama models in 4-bit. Please see the Provided Files table above for per-file compatibility.
 
184
 
185
  <!-- footer start -->
186
  <!-- 200823 -->
@@ -190,10 +243,12 @@ For further support, and discussions on these models and AI in general, join us
190
 
191
  [TheBloke AI's Discord server](https://discord.gg/theblokeai)
192
 
193
- ## Thanks, and how to contribute.
194
 
195
  Thanks to the [chirper.ai](https://chirper.ai) team!
196
 
 
 
197
  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.
198
 
199
  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.
@@ -205,7 +260,7 @@ Donaters will get priority support on any and all AI/LLM/model questions and req
205
 
206
  **Special thanks to**: Aemon Algiz.
207
 
208
- **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
209
 
210
 
211
  Thank you to all my generous patrons and donaters!
@@ -340,11 +395,11 @@ meh, 6/7/7 rather than 5/7/5
340
 
341
 
342
  ```
343
- A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.
344
- USER: Create an original short story in the style of J.K Rowling about the Weesley family going on a vacation in Australia whith Harry Potter and Hermione Grainger tagging along.
345
  ASSISTANT:Once upon a time, there was a magical family named the Weesleys. They lived in a cozy little cottage at the edge of Hogsmeade village, where they ran a charming bed and breakfast called "The Flying Ford Anglia." A
346
  s any other magical family, they enjoyed adventures that brought them close to nature, so they decided to go on a trip to Australia. They invited their dear friends Harry Potter and Hermione Grainger to join them on this ex
347
- citing journey.
348
 
349
  The Weesleys had been planning for months and had everything ready for their trip. Their children, Freddie and Roxanne were thrilled to visit the land down under, and their parents, George and Angelina, could not wait to ex
350
  plore the beautiful country with their friends. They would be leaving soon, but before departing, there was one small problem - the luggage.
@@ -360,7 +415,7 @@ Her mother joined in. "My dear, you know how unpredictable the weather can be. W
360
 
361
  After hours of debating, they finally managed to narrow down their luggage list and fit all the necessary supplies into several large trunks. The day had come; they were ready to leave for their grand adventure!
362
 
363
- As the Weesleys boarded the Portkey that would transport them across the world, their wands began to glow softly, indicating that they had enough energy to make the journey. The Portkey dropped them off in Sydney, right in
364
  front of the magnificent Opera House.
365
 
366
  They spent the first few days exploring the city, marveling at the iconic architecture and tasting local cuisine. Then, as planned, they headed north to visit the Great Barrier Reef, one of the most famous natural wonders o
@@ -393,6 +448,6 @@ ted together.
393
 
394
  "Thank you for inviting us along on your adventure, Weesleys," said Harry. "It was an honor and a privilege to share this experience with such kind and generous friends. I hope we can do it again sometime."
395
 
396
- With tears in their eyes and heavy hearts, they bid each other farewell, promising to keep in touch and meet again soon. And so, their epic journey came to an end. But the memories would remain with them forever, reminding
397
  them of the power of friendship, the beauty of nature, and the importance of discovering new worlds.
398
  ```
 
1
  ---
2
+ base_model: https://huggingface.co/openaccess-ai-collective/minotaur-13b-fixed
3
  datasets:
4
  - ehartford/WizardLM_alpaca_evol_instruct_70k_unfiltered
5
  - QingyiSi/Alpaca-CoT
 
15
  - camel-ai/chemistry
16
  - winglian/evals
17
  inference: false
18
+ license: apache-2.0
19
+ model_creator: Open Access AI Collective
20
+ model_name: Minotaur 13B Fixed
21
  model_type: llama
22
+ prompt_template: 'A chat between a curious user and an artificial intelligence assistant.
23
+ The assistant gives helpful, detailed, and polite answers to the user''s questions.
24
+ USER: {prompt} ASSISTANT:
25
+
26
+ '
27
+ quantized_by: TheBloke
28
  tags:
29
  - OpenAccess AI Collective
30
  - MPT
 
48
  <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
49
  <!-- header end -->
50
 
51
+ # Minotaur 13B Fixed - GPTQ
52
+ - Model creator: [Open Access AI Collective](https://huggingface.co/openaccess-ai-collective)
53
+ - Original model: [Minotaur 13B Fixed](https://huggingface.co/openaccess-ai-collective/minotaur-13b-fixed)
54
 
55
+ <!-- description start -->
56
+ ## Description
57
 
58
+ This repo contains GPTQ model files for [OpenAccess AI Collective's Minotaur 13B Fixed](https://huggingface.co/openaccess-ai-collective/minotaur-13b-fixed).
59
 
60
+ 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.
61
 
62
+ <!-- description end -->
63
+ <!-- repositories-available start -->
64
  ## Repositories available
65
 
66
+ * [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/minotaur-13B-fixed-AWQ)
67
  * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/minotaur-13B-fixed-GPTQ)
68
+ * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/minotaur-13B-fixed-GGUF)
69
+ * [Open Access AI Collective's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/openaccess-ai-collective/minotaur-13b-fixed)
70
+ <!-- repositories-available end -->
71
 
72
+ <!-- prompt-template start -->
73
  ## Prompt template: Vicuna
74
 
75
  ```
76
+ 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:
77
 
 
 
78
  ```
79
 
80
+ <!-- prompt-template end -->
81
+ <!-- licensing start -->
82
+ ## Licensing
83
+
84
+ The creator of the source model has listed its license as `apache-2.0`, and this quantization has therefore used that same license.
85
+
86
+ 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.
87
+
88
+ In the meantime, any questions regarding licensing, and in particular how these two licenses might interact, should be directed to the original model repository: [OpenAccess AI Collective's Minotaur 13B Fixed](https://huggingface.co/openaccess-ai-collective/minotaur-13b-fixed).
89
+ <!-- licensing end -->
90
+ <!-- README_GPTQ.md-provided-files start -->
91
+ ## Provided files and GPTQ parameters
92
 
93
  Multiple quantisation parameters are provided, to allow you to choose the best one for your hardware and requirements.
94
 
95
  Each separate quant is in a different branch. See below for instructions on fetching from different branches.
96
 
97
+ 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.
98
+
99
+ <details>
100
+ <summary>Explanation of GPTQ parameters</summary>
 
 
 
 
101
 
102
+ - Bits: The bit size of the quantised model.
103
+ - GS: GPTQ group size. Higher numbers use less VRAM, but have lower quantisation accuracy. "None" is the lowest possible value.
104
+ - 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.
105
+ - Damp %: A GPTQ parameter that affects how samples are processed for quantisation. 0.01 is default, but 0.1 results in slightly better accuracy.
106
+ - 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).
107
+ - 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.
108
+ - ExLlama Compatibility: Whether this file can be loaded with ExLlama, which currently only supports Llama models in 4-bit.
109
+
110
+ </details>
111
+
112
+ | Branch | Bits | GS | Act Order | Damp % | GPTQ Dataset | Seq Len | Size | ExLlama | Desc |
113
+ | ------ | ---- | -- | --------- | ------ | ------------ | ------- | ---- | ------- | ---- |
114
+ | [main](https://huggingface.co/TheBloke/minotaur-13B-fixed-GPTQ/tree/main) | 4 | 128 | No | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 7.45 GB | Yes | 4-bit, without Act Order and group size 128g. |
115
+ | [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/minotaur-13B-fixed-GPTQ/tree/gptq-4bit-32g-actorder_True) | 4 | 32 | Yes | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 8.00 GB | Yes | 4-bit, with Act Order and group size 32g. Gives highest possible inference quality, with maximum VRAM usage. |
116
+ | [gptq-4bit-64g-actorder_True](https://huggingface.co/TheBloke/minotaur-13B-fixed-GPTQ/tree/gptq-4bit-64g-actorder_True) | 4 | 64 | Yes | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 7.51 GB | Yes | 4-bit, with Act Order and group size 64g. Uses less VRAM than 32g, but with slightly lower accuracy. |
117
+ | [gptq-4bit-128g-actorder_True](https://huggingface.co/TheBloke/minotaur-13B-fixed-GPTQ/tree/gptq-4bit-128g-actorder_True) | 4 | 128 | Yes | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 7.26 GB | Yes | 4-bit, with Act Order and group size 128g. Uses even less VRAM than 64g, but with slightly lower accuracy. |
118
+ | [gptq-8bit--1g-actorder_True](https://huggingface.co/TheBloke/minotaur-13B-fixed-GPTQ/tree/gptq-8bit--1g-actorder_True) | 8 | None | Yes | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 13.36 GB | No | 8-bit, with Act Order. No group size, to lower VRAM requirements. |
119
+ | [gptq-8bit-128g-actorder_False](https://huggingface.co/TheBloke/minotaur-13B-fixed-GPTQ/tree/gptq-8bit-128g-actorder_False) | 8 | 128 | No | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 13.65 GB | No | 8-bit, with group size 128g for higher inference quality and without Act Order to improve AutoGPTQ speed. |
120
+
121
+ <!-- README_GPTQ.md-provided-files end -->
122
+
123
+ <!-- README_GPTQ.md-download-from-branches start -->
124
  ## How to download from branches
125
 
126
+ - In text-generation-webui, you can add `:branch` to the end of the download name, eg `TheBloke/minotaur-13B-fixed-GPTQ:main`
127
  - With Git, you can clone a branch with:
128
  ```
129
+ git clone --single-branch --branch main https://huggingface.co/TheBloke/minotaur-13B-fixed-GPTQ
130
  ```
131
  - In Python Transformers code, the branch is the `revision` parameter; see below.
132
+ <!-- README_GPTQ.md-download-from-branches end -->
133
+ <!-- README_GPTQ.md-text-generation-webui start -->
134
  ## How to easily download and use this model in [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
135
 
136
  Please make sure you're using the latest version of [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
137
 
138
+ 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.
139
 
140
  1. Click the **Model tab**.
141
  2. Under **Download custom model or LoRA**, enter `TheBloke/minotaur-13B-fixed-GPTQ`.
142
+ - To download from a specific branch, enter for example `TheBloke/minotaur-13B-fixed-GPTQ:main`
143
  - see Provided Files above for the list of branches for each option.
144
  3. Click **Download**.
145
+ 4. The model will start downloading. Once it's finished it will say "Done".
146
  5. In the top left, click the refresh icon next to **Model**.
147
  6. In the **Model** dropdown, choose the model you just downloaded: `minotaur-13B-fixed-GPTQ`
148
  7. The model will automatically load, and is now ready for use!
149
  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.
150
+ * 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`.
151
  9. Once you're ready, click the **Text Generation tab** and enter a prompt to get started!
152
+ <!-- README_GPTQ.md-text-generation-webui end -->
153
 
154
+ <!-- README_GPTQ.md-use-from-python start -->
155
  ## How to use this GPTQ model from Python code
156
 
157
+ ### Install the necessary packages
158
 
159
+ Requires: Transformers 4.32.0 or later, Optimum 1.12.0 or later, and AutoGPTQ 0.4.2 or later.
160
 
161
+ ```shell
162
+ pip3 install transformers>=4.32.0 optimum>=1.12.0
163
+ pip3 install auto-gptq --extra-index-url https://huggingface.github.io/autogptq-index/whl/cu118/ # Use cu117 if on CUDA 11.7
164
+ ```
165
+
166
+ If you have problems installing AutoGPTQ using the pre-built wheels, install it from source instead:
167
+
168
+ ```shell
169
+ pip3 uninstall -y auto-gptq
170
+ git clone https://github.com/PanQiWei/AutoGPTQ
171
+ cd AutoGPTQ
172
+ pip3 install .
173
+ ```
174
+
175
+ ### For CodeLlama models only: you must use Transformers 4.33.0 or later.
176
+
177
+ If 4.33.0 is not yet released when you read this, you will need to install Transformers from source:
178
+ ```shell
179
+ pip3 uninstall -y transformers
180
+ pip3 install git+https://github.com/huggingface/transformers.git
181
+ ```
182
+
183
+ ### You can then use the following code
184
 
185
  ```python
186
+ from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
 
187
 
188
  model_name_or_path = "TheBloke/minotaur-13B-fixed-GPTQ"
189
+ # To use a different branch, change revision
190
+ # For example: revision="main"
191
+ model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
192
+ device_map="auto",
193
+ trust_remote_code=True,
194
+ revision="main")
195
 
196
  tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
197
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
198
  prompt = "Tell me about AI"
199
+ 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:
200
 
 
 
201
  '''
202
 
203
  print("\n\n*** Generate:")
204
 
205
  input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
206
+ output = model.generate(inputs=input_ids, temperature=0.7, do_sample=True, top_p=0.95, top_k=40, max_new_tokens=512)
207
  print(tokenizer.decode(output[0]))
208
 
209
  # Inference can also be done using transformers' pipeline
210
 
 
 
 
211
  print("*** Pipeline:")
212
  pipe = pipeline(
213
  "text-generation",
214
  model=model,
215
  tokenizer=tokenizer,
216
  max_new_tokens=512,
217
+ do_sample=True,
218
  temperature=0.7,
219
  top_p=0.95,
220
+ top_k=40,
221
+ repetition_penalty=1.1
222
  )
223
 
224
  print(pipe(prompt_template)[0]['generated_text'])
225
  ```
226
+ <!-- README_GPTQ.md-use-from-python end -->
227
 
228
+ <!-- README_GPTQ.md-compatibility start -->
229
  ## Compatibility
230
 
231
+ 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).
232
+
233
+ [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.
234
 
235
+ [Huggingface Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference) is compatible with all GPTQ models.
236
+ <!-- README_GPTQ.md-compatibility end -->
237
 
238
  <!-- footer start -->
239
  <!-- 200823 -->
 
243
 
244
  [TheBloke AI's Discord server](https://discord.gg/theblokeai)
245
 
246
+ ## Thanks, and how to contribute
247
 
248
  Thanks to the [chirper.ai](https://chirper.ai) team!
249
 
250
+ Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
251
+
252
  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.
253
 
254
  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.
 
260
 
261
  **Special thanks to**: Aemon Algiz.
262
 
263
+ **Patreon special mentions**: Alicia Loh, Stephen Murray, K, Ajan Kanaga, RoA, Magnesian, Deo Leter, Olakabola, Eugene Pentland, zynix, Deep Realms, Raymond Fosdick, Elijah Stavena, Iucharbius, Erik Bjäreholt, Luis Javier Navarrete Lozano, Nicholas, theTransient, John Detwiler, alfie_i, knownsqashed, Mano Prime, Willem Michiel, Enrico Ros, LangChain4j, OG, Michael Dempsey, Pierre Kircher, Pedro Madruga, James Bentley, Thomas Belote, Luke @flexchar, Leonard Tan, Johann-Peter Hartmann, Illia Dulskyi, Fen Risland, Chadd, S_X, Jeff Scroggin, Ken Nordquist, Sean Connelly, Artur Olbinski, Swaroop Kallakuri, Jack West, Ai Maven, David Ziegler, Russ Johnson, transmissions 11, John Villwock, Alps Aficionado, Clay Pascal, Viktor Bowallius, Subspace Studios, Rainer Wilmers, Trenton Dambrowitz, vamX, Michael Levine, 준교 김, Brandon Frisco, Kalila, Trailburnt, Randy H, Talal Aujan, Nathan Dryer, Vadim, 阿明, ReadyPlayerEmma, Tiffany J. Kim, George Stoitzev, Spencer Kim, Jerry Meng, Gabriel Tamborski, Cory Kujawski, Jeffrey Morgan, Spiking Neurons AB, Edmond Seymore, Alexandros Triantafyllidis, Lone Striker, Cap'n Zoog, Nikolai Manek, danny, ya boyyy, Derek Yates, usrbinkat, Mandus, TL, Nathan LeClaire, subjectnull, Imad Khwaja, webtim, Raven Klaugh, Asp the Wyvern, Gabriel Puliatti, Caitlyn Gatomon, Joseph William Delisle, Jonathan Leane, Luke Pendergrass, SuperWojo, Sebastain Graf, Will Dee, Fred von Graf, Andrey, Dan Guido, Daniel P. Andersen, Nitin Borwankar, Elle, Vitor Caleffi, biorpg, jjj, NimbleBox.ai, Pieter, Matthew Berman, terasurfer, Michael Davis, Alex, Stanislav Ovsiannikov
264
 
265
 
266
  Thank you to all my generous patrons and donaters!
 
395
 
396
 
397
  ```
398
+ A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.
399
+ USER: Create an original short story in the style of J.K Rowling about the Weesley family going on a vacation in Australia whith Harry Potter and Hermione Grainger tagging along.
400
  ASSISTANT:Once upon a time, there was a magical family named the Weesleys. They lived in a cozy little cottage at the edge of Hogsmeade village, where they ran a charming bed and breakfast called "The Flying Ford Anglia." A
401
  s any other magical family, they enjoyed adventures that brought them close to nature, so they decided to go on a trip to Australia. They invited their dear friends Harry Potter and Hermione Grainger to join them on this ex
402
+ citing journey.
403
 
404
  The Weesleys had been planning for months and had everything ready for their trip. Their children, Freddie and Roxanne were thrilled to visit the land down under, and their parents, George and Angelina, could not wait to ex
405
  plore the beautiful country with their friends. They would be leaving soon, but before departing, there was one small problem - the luggage.
 
415
 
416
  After hours of debating, they finally managed to narrow down their luggage list and fit all the necessary supplies into several large trunks. The day had come; they were ready to leave for their grand adventure!
417
 
418
+ As the Weesleys boarded the Portkey that would transport them across the world, their wands began to glow softly, indicating that they had enough energy to make the journey. The Portkey dropped them off in Sydney, right in
419
  front of the magnificent Opera House.
420
 
421
  They spent the first few days exploring the city, marveling at the iconic architecture and tasting local cuisine. Then, as planned, they headed north to visit the Great Barrier Reef, one of the most famous natural wonders o
 
448
 
449
  "Thank you for inviting us along on your adventure, Weesleys," said Harry. "It was an honor and a privilege to share this experience with such kind and generous friends. I hope we can do it again sometime."
450
 
451
+ With tears in their eyes and heavy hearts, they bid each other farewell, promising to keep in touch and meet again soon. And so, their epic journey came to an end. But the memories would remain with them forever, reminding
452
  them of the power of friendship, the beauty of nature, and the importance of discovering new worlds.
453
  ```