TheBloke commited on
Commit
f46c118
1 Parent(s): a883027

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