TheBloke commited on
Commit
d1f1915
1 Parent(s): 089f568

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +126 -62
README.md CHANGED
@@ -1,7 +1,23 @@
1
  ---
 
2
  inference: false
3
  license: other
 
 
4
  model_type: llama
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  tags:
6
  - llama
7
  - alpaca
@@ -40,151 +56,197 @@ tags:
40
  <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
41
  <!-- header end -->
42
 
43
- # CalderaAI's 30B Epsilon GPTQ
 
 
44
 
45
- These files are GPTQ model files for [CalderaAI's 30B Epsilon](https://huggingface.co/CalderaAI/30B-Epsilon).
 
46
 
47
- 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.
48
 
 
49
 
 
 
50
  ## Repositories available
51
 
 
52
  * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/30B-Epsilon-GPTQ)
53
- * [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference](https://huggingface.co/TheBloke/30B-Epsilon-GGML)
54
- * [Original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/CalderaAI/30B-Epsilon)
 
55
 
 
56
  ## Prompt template: Alpaca
57
 
58
  ```
59
  Below is an instruction that describes a task. Write a response that appropriately completes the request.
60
 
61
- ### Instruction: {prompt}
 
62
 
63
  ### Response:
 
64
  ```
65
 
66
- ## Provided files
 
 
 
 
67
 
68
  Multiple quantisation parameters are provided, to allow you to choose the best one for your hardware and requirements.
69
 
70
  Each separate quant is in a different branch. See below for instructions on fetching from different branches.
71
 
72
- | Branch | Bits | Group Size | Act Order (desc_act) | File Size | ExLlama Compatible? | Made With | Description |
73
- | ------ | ---- | ---------- | -------------------- | --------- | ------------------- | --------- | ----------- |
74
- | main | 4 | None | True | 16.94 GB | True | AutoGPTQ | Most compatible option. Good inference speed in AutoGPTQ and GPTQ-for-LLaMa. Lower inference quality than other options. |
75
- | gptq-4bit-32g-actorder_True | 4 | 32 | True | 19.44 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. |
76
- | gptq-4bit-64g-actorder_True | 4 | 64 | True | 18.18 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. |
77
- | gptq-4bit-128g-actorder_True | 4 | 128 | True | 17.55 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. |
78
- | gptq-8bit--1g-actorder_True | 8 | None | True | 32.99 GB | False | AutoGPTQ | 8-bit, with Act Order. No group size, to lower VRAM requirements and to improve AutoGPTQ speed. |
79
- | gptq-8bit-128g-actorder_False | 8 | 128 | False | 33.73 GB | False | AutoGPTQ | 8-bit, with group size 128g for higher inference quality and without Act Order to improve AutoGPTQ speed. |
80
- | gptq-3bit--1g-actorder_True | 3 | None | True | 12.92 GB | False | AutoGPTQ | 3-bit, with Act Order and no group size. Lowest possible VRAM requirements. May be lower quality than 3-bit 128g. |
81
- | gptq-3bit-128g-actorder_False | 3 | 128 | False | 13.51 GB | False | AutoGPTQ | 3-bit, with group size 128g but no act-order. Slightly higher VRAM requirements than 3-bit None. |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
 
 
83
  ## How to download from branches
84
 
85
- - In text-generation-webui, you can add `:branch` to the end of the download name, eg `TheBloke/30B-Epsilon-GPTQ:gptq-4bit-32g-actorder_True`
86
  - With Git, you can clone a branch with:
87
  ```
88
- git clone --branch gptq-4bit-32g-actorder_True https://huggingface.co/TheBloke/30B-Epsilon-GPTQ`
89
  ```
90
  - In Python Transformers code, the branch is the `revision` parameter; see below.
91
-
 
92
  ## How to easily download and use this model in [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
93
 
94
  Please make sure you're using the latest version of [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
95
 
96
- It is strongly recommended to use the text-generation-webui one-click-installers unless you know how to make a manual install.
97
 
98
  1. Click the **Model tab**.
99
  2. Under **Download custom model or LoRA**, enter `TheBloke/30B-Epsilon-GPTQ`.
100
- - To download from a specific branch, enter for example `TheBloke/30B-Epsilon-GPTQ:gptq-4bit-32g-actorder_True`
101
  - see Provided Files above for the list of branches for each option.
102
  3. Click **Download**.
103
- 4. The model will start downloading. Once it's finished it will say "Done"
104
  5. In the top left, click the refresh icon next to **Model**.
105
  6. In the **Model** dropdown, choose the model you just downloaded: `30B-Epsilon-GPTQ`
106
  7. The model will automatically load, and is now ready for use!
107
  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.
108
- * Note that you do not need to set GPTQ parameters any more. These are set automatically from the file `quantize_config.json`.
109
  9. Once you're ready, click the **Text Generation tab** and enter a prompt to get started!
 
110
 
 
111
  ## How to use this GPTQ model from Python code
112
 
113
- First make sure you have [AutoGPTQ](https://github.com/PanQiWei/AutoGPTQ) installed:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
114
 
115
- `GITHUB_ACTIONS=true pip install auto-gptq`
 
 
 
 
116
 
117
- Then try the following example code:
118
 
119
  ```python
120
- from transformers import AutoTokenizer, pipeline, logging
121
- from auto_gptq import AutoGPTQForCausalLM, BaseQuantizeConfig
122
 
123
  model_name_or_path = "TheBloke/30B-Epsilon-GPTQ"
124
- model_basename = "model"
125
-
126
- use_triton = False
 
 
 
127
 
128
  tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
129
 
130
- model = AutoGPTQForCausalLM.from_quantized(model_name_or_path,
131
- model_basename=model_basename,
132
- use_safetensors=True,
133
- trust_remote_code=True,
134
- device="cuda:0",
135
- use_triton=use_triton,
136
- quantize_config=None)
137
-
138
- """
139
- To download from a specific branch, use the revision parameter, as in this example:
140
-
141
- model = AutoGPTQForCausalLM.from_quantized(model_name_or_path,
142
- revision="gptq-4bit-32g-actorder_True",
143
- model_basename=model_basename,
144
- use_safetensors=True,
145
- trust_remote_code=True,
146
- device="cuda:0",
147
- quantize_config=None)
148
- """
149
-
150
  prompt = "Tell me about AI"
151
  prompt_template=f'''Below is an instruction that describes a task. Write a response that appropriately completes the request.
152
 
153
- ### Instruction: {prompt}
 
154
 
155
  ### Response:
 
156
  '''
157
 
158
  print("\n\n*** Generate:")
159
 
160
  input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
161
- output = model.generate(inputs=input_ids, temperature=0.7, max_new_tokens=512)
162
  print(tokenizer.decode(output[0]))
163
 
164
  # Inference can also be done using transformers' pipeline
165
 
166
- # Prevent printing spurious transformers error when using pipeline with AutoGPTQ
167
- logging.set_verbosity(logging.CRITICAL)
168
-
169
  print("*** Pipeline:")
170
  pipe = pipeline(
171
  "text-generation",
172
  model=model,
173
  tokenizer=tokenizer,
174
  max_new_tokens=512,
 
175
  temperature=0.7,
176
  top_p=0.95,
177
- repetition_penalty=1.15
 
178
  )
179
 
180
  print(pipe(prompt_template)[0]['generated_text'])
181
  ```
 
182
 
 
183
  ## Compatibility
184
 
185
- 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.
186
 
187
- ExLlama works with Llama models in 4-bit. Please see the Provided Files table above for per-file compatibility.
 
 
 
188
 
189
  <!-- footer start -->
190
  <!-- 200823 -->
@@ -194,10 +256,12 @@ For further support, and discussions on these models and AI in general, join us
194
 
195
  [TheBloke AI's Discord server](https://discord.gg/theblokeai)
196
 
197
- ## Thanks, and how to contribute.
198
 
199
  Thanks to the [chirper.ai](https://chirper.ai) team!
200
 
 
 
201
  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.
202
 
203
  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.
@@ -209,7 +273,7 @@ Donaters will get priority support on any and all AI/LLM/model questions and req
209
 
210
  **Special thanks to**: Aemon Algiz.
211
 
212
- **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
213
 
214
 
215
  Thank you to all my generous patrons and donaters!
 
1
  ---
2
+ base_model: https://huggingface.co/CalderaAI/30B-Epsilon
3
  inference: false
4
  license: other
5
+ model_creator: Caldera AI
6
+ model_name: 30B Epsilon
7
  model_type: llama
8
+ prompt_template: 'Below is an instruction that describes a task. Write a response
9
+ that appropriately completes the request.
10
+
11
+
12
+ ### Instruction:
13
+
14
+ {prompt}
15
+
16
+
17
+ ### Response:
18
+
19
+ '
20
+ quantized_by: TheBloke
21
  tags:
22
  - llama
23
  - alpaca
 
56
  <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
57
  <!-- header end -->
58
 
59
+ # 30B Epsilon - GPTQ
60
+ - Model creator: [Caldera AI](https://huggingface.co/CalderaAI)
61
+ - Original model: [30B Epsilon](https://huggingface.co/CalderaAI/30B-Epsilon)
62
 
63
+ <!-- description start -->
64
+ ## Description
65
 
66
+ This repo contains GPTQ model files for [CalderaAI's 30B Epsilon](https://huggingface.co/CalderaAI/30B-Epsilon).
67
 
68
+ 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.
69
 
70
+ <!-- description end -->
71
+ <!-- repositories-available start -->
72
  ## Repositories available
73
 
74
+ * [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/30B-Epsilon-AWQ)
75
  * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/30B-Epsilon-GPTQ)
76
+ * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/30B-Epsilon-GGUF)
77
+ * [Caldera AI's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/CalderaAI/30B-Epsilon)
78
+ <!-- repositories-available end -->
79
 
80
+ <!-- prompt-template start -->
81
  ## Prompt template: Alpaca
82
 
83
  ```
84
  Below is an instruction that describes a task. Write a response that appropriately completes the request.
85
 
86
+ ### Instruction:
87
+ {prompt}
88
 
89
  ### Response:
90
+
91
  ```
92
 
93
+ <!-- prompt-template end -->
94
+
95
+
96
+ <!-- README_GPTQ.md-provided-files start -->
97
+ ## Provided files and GPTQ parameters
98
 
99
  Multiple quantisation parameters are provided, to allow you to choose the best one for your hardware and requirements.
100
 
101
  Each separate quant is in a different branch. See below for instructions on fetching from different branches.
102
 
103
+ 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.
104
+
105
+ <details>
106
+ <summary>Explanation of GPTQ parameters</summary>
107
+
108
+ - Bits: The bit size of the quantised model.
109
+ - GS: GPTQ group size. Higher numbers use less VRAM, but have lower quantisation accuracy. "None" is the lowest possible value.
110
+ - 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.
111
+ - Damp %: A GPTQ parameter that affects how samples are processed for quantisation. 0.01 is default, but 0.1 results in slightly better accuracy.
112
+ - 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).
113
+ - 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.
114
+ - ExLlama Compatibility: Whether this file can be loaded with ExLlama, which currently only supports Llama models in 4-bit.
115
+
116
+ </details>
117
+
118
+ | Branch | Bits | GS | Act Order | Damp % | GPTQ Dataset | Seq Len | Size | ExLlama | Desc |
119
+ | ------ | ---- | -- | --------- | ------ | ------------ | ------- | ---- | ------- | ---- |
120
+ | [main](https://huggingface.co/TheBloke/30B-Epsilon-GPTQ/tree/main) | 4 | None | Yes | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 16.94 GB | Yes | 4-bit, with Act Order. No group size, to lower VRAM requirements. |
121
+ | [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/30B-Epsilon-GPTQ/tree/gptq-4bit-32g-actorder_True) | 4 | 32 | Yes | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 19.44 GB | Yes | 4-bit, with Act Order and group size 32g. Gives highest possible inference quality, with maximum VRAM usage. |
122
+ | [gptq-4bit-64g-actorder_True](https://huggingface.co/TheBloke/30B-Epsilon-GPTQ/tree/gptq-4bit-64g-actorder_True) | 4 | 64 | Yes | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 18.18 GB | Yes | 4-bit, with Act Order and group size 64g. Uses less VRAM than 32g, but with slightly lower accuracy. |
123
+ | [gptq-4bit-128g-actorder_True](https://huggingface.co/TheBloke/30B-Epsilon-GPTQ/tree/gptq-4bit-128g-actorder_True) | 4 | 128 | Yes | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 17.55 GB | Yes | 4-bit, with Act Order and group size 128g. Uses even less VRAM than 64g, but with slightly lower accuracy. |
124
+ | [gptq-8bit--1g-actorder_True](https://huggingface.co/TheBloke/30B-Epsilon-GPTQ/tree/gptq-8bit--1g-actorder_True) | 8 | None | Yes | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 32.99 GB | No | 8-bit, with Act Order. No group size, to lower VRAM requirements. |
125
+ | [gptq-8bit-128g-actorder_False](https://huggingface.co/TheBloke/30B-Epsilon-GPTQ/tree/gptq-8bit-128g-actorder_False) | 8 | 128 | No | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 33.73 GB | No | 8-bit, with group size 128g for higher inference quality and without Act Order to improve AutoGPTQ speed. |
126
+ | [gptq-3bit--1g-actorder_True](https://huggingface.co/TheBloke/30B-Epsilon-GPTQ/tree/gptq-3bit--1g-actorder_True) | 3 | None | Yes | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 12.92 GB | No | 3-bit, with Act Order and no group size. Lowest possible VRAM requirements. May be lower quality than 3-bit 128g. |
127
+ | [gptq-3bit-128g-actorder_False](https://huggingface.co/TheBloke/30B-Epsilon-GPTQ/tree/gptq-3bit-128g-actorder_False) | 3 | 128 | No | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 13.51 GB | No | 3-bit, with group size 128g but no act-order. Slightly higher VRAM requirements than 3-bit None. |
128
+
129
+ <!-- README_GPTQ.md-provided-files end -->
130
 
131
+ <!-- README_GPTQ.md-download-from-branches start -->
132
  ## How to download from branches
133
 
134
+ - In text-generation-webui, you can add `:branch` to the end of the download name, eg `TheBloke/30B-Epsilon-GPTQ:main`
135
  - With Git, you can clone a branch with:
136
  ```
137
+ git clone --single-branch --branch main https://huggingface.co/TheBloke/30B-Epsilon-GPTQ
138
  ```
139
  - In Python Transformers code, the branch is the `revision` parameter; see below.
140
+ <!-- README_GPTQ.md-download-from-branches end -->
141
+ <!-- README_GPTQ.md-text-generation-webui start -->
142
  ## How to easily download and use this model in [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
143
 
144
  Please make sure you're using the latest version of [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
145
 
146
+ 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.
147
 
148
  1. Click the **Model tab**.
149
  2. Under **Download custom model or LoRA**, enter `TheBloke/30B-Epsilon-GPTQ`.
150
+ - To download from a specific branch, enter for example `TheBloke/30B-Epsilon-GPTQ:main`
151
  - see Provided Files above for the list of branches for each option.
152
  3. Click **Download**.
153
+ 4. The model will start downloading. Once it's finished it will say "Done".
154
  5. In the top left, click the refresh icon next to **Model**.
155
  6. In the **Model** dropdown, choose the model you just downloaded: `30B-Epsilon-GPTQ`
156
  7. The model will automatically load, and is now ready for use!
157
  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.
158
+ * 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`.
159
  9. Once you're ready, click the **Text Generation tab** and enter a prompt to get started!
160
+ <!-- README_GPTQ.md-text-generation-webui end -->
161
 
162
+ <!-- README_GPTQ.md-use-from-python start -->
163
  ## How to use this GPTQ model from Python code
164
 
165
+ ### Install the necessary packages
166
+
167
+ Requires: Transformers 4.32.0 or later, Optimum 1.12.0 or later, and AutoGPTQ 0.4.2 or later.
168
+
169
+ ```shell
170
+ pip3 install transformers>=4.32.0 optimum>=1.12.0
171
+ pip3 install auto-gptq --extra-index-url https://huggingface.github.io/autogptq-index/whl/cu118/ # Use cu117 if on CUDA 11.7
172
+ ```
173
+
174
+ If you have problems installing AutoGPTQ using the pre-built wheels, install it from source instead:
175
+
176
+ ```shell
177
+ pip3 uninstall -y auto-gptq
178
+ git clone https://github.com/PanQiWei/AutoGPTQ
179
+ cd AutoGPTQ
180
+ pip3 install .
181
+ ```
182
+
183
+ ### For CodeLlama models only: you must use Transformers 4.33.0 or later.
184
 
185
+ If 4.33.0 is not yet released when you read this, you will need to install Transformers from source:
186
+ ```shell
187
+ pip3 uninstall -y transformers
188
+ pip3 install git+https://github.com/huggingface/transformers.git
189
+ ```
190
 
191
+ ### You can then use the following code
192
 
193
  ```python
194
+ from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
 
195
 
196
  model_name_or_path = "TheBloke/30B-Epsilon-GPTQ"
197
+ # To use a different branch, change revision
198
+ # For example: revision="main"
199
+ model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
200
+ device_map="auto",
201
+ trust_remote_code=True,
202
+ revision="main")
203
 
204
  tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
205
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
206
  prompt = "Tell me about AI"
207
  prompt_template=f'''Below is an instruction that describes a task. Write a response that appropriately completes the request.
208
 
209
+ ### Instruction:
210
+ {prompt}
211
 
212
  ### Response:
213
+
214
  '''
215
 
216
  print("\n\n*** Generate:")
217
 
218
  input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
219
+ output = model.generate(inputs=input_ids, temperature=0.7, do_sample=True, top_p=0.95, top_k=40, max_new_tokens=512)
220
  print(tokenizer.decode(output[0]))
221
 
222
  # Inference can also be done using transformers' pipeline
223
 
 
 
 
224
  print("*** Pipeline:")
225
  pipe = pipeline(
226
  "text-generation",
227
  model=model,
228
  tokenizer=tokenizer,
229
  max_new_tokens=512,
230
+ do_sample=True,
231
  temperature=0.7,
232
  top_p=0.95,
233
+ top_k=40,
234
+ repetition_penalty=1.1
235
  )
236
 
237
  print(pipe(prompt_template)[0]['generated_text'])
238
  ```
239
+ <!-- README_GPTQ.md-use-from-python end -->
240
 
241
+ <!-- README_GPTQ.md-compatibility start -->
242
  ## Compatibility
243
 
244
+ 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).
245
 
246
+ [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.
247
+
248
+ [Huggingface Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference) is compatible with all GPTQ models.
249
+ <!-- README_GPTQ.md-compatibility end -->
250
 
251
  <!-- footer start -->
252
  <!-- 200823 -->
 
256
 
257
  [TheBloke AI's Discord server](https://discord.gg/theblokeai)
258
 
259
+ ## Thanks, and how to contribute
260
 
261
  Thanks to the [chirper.ai](https://chirper.ai) team!
262
 
263
+ Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
264
+
265
  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.
266
 
267
  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.
 
273
 
274
  **Special thanks to**: Aemon Algiz.
275
 
276
+ **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
277
 
278
 
279
  Thank you to all my generous patrons and donaters!