TheBloke commited on
Commit
49abcf1
1 Parent(s): 1a4b09a

Update for Transformers GPTQ support

Browse files
README.md CHANGED
@@ -14,17 +14,20 @@ tags:
14
  ---
15
 
16
  <!-- header start -->
17
- <div style="width: 100%;">
18
- <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
 
19
  </div>
20
  <div style="display: flex; justify-content: space-between; width: 100%;">
21
  <div style="display: flex; flex-direction: column; align-items: flex-start;">
22
- <p><a href="https://discord.gg/theblokeai">Chat & support: my new Discord server</a></p>
23
  </div>
24
  <div style="display: flex; flex-direction: column; align-items: flex-end;">
25
- <p><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p>
26
  </div>
27
  </div>
 
 
28
  <!-- header end -->
29
 
30
  # Meta's Llama 2 13B GPTQ
@@ -104,7 +107,7 @@ from transformers import AutoTokenizer, pipeline, logging
104
  from auto_gptq import AutoGPTQForCausalLM, BaseQuantizeConfig
105
 
106
  model_name_or_path = "TheBloke/Llama-2-13B-GPTQ"
107
- model_basename = "gptq_model-4bit-128g"
108
 
109
  use_triton = False
110
 
@@ -166,6 +169,7 @@ The files provided will work with AutoGPTQ (CUDA and Triton modes), GPTQ-for-LLa
166
  ExLlama works with Llama models in 4-bit. Please see the Provided Files table above for per-file compatibility.
167
 
168
  <!-- footer start -->
 
169
  ## Discord
170
 
171
  For further support, and discussions on these models and AI in general, join us at:
@@ -185,80 +189,15 @@ Donaters will get priority support on any and all AI/LLM/model questions and req
185
  * Patreon: https://patreon.com/TheBlokeAI
186
  * Ko-Fi: https://ko-fi.com/TheBlokeAI
187
 
188
- **Special thanks to**: Luke from CarbonQuill, Aemon Algiz.
189
 
190
- **Patreon special mentions**: Space Cruiser, Nikolai Manek, Sam, Chris McCloskey, Rishabh Srivastava, Kalila, Spiking Neurons AB, Khalefa Al-Ahmad, WelcomeToTheClub, Chadd, Lone Striker, Viktor Bowallius, Edmond Seymore, Ai Maven, Chris Smitley, Dave, Alexandros Triantafyllidis, Luke @flexchar, Elle, ya boyyy, Talal Aujan, Alex , Jonathan Leane, Deep Realms, Randy H, subjectnull, Preetika Verma, Joseph William Delisle, Michael Levine, chris gileta, K, Oscar Rangel, LangChain4j, Trenton Dambrowitz, Eugene Pentland, Johann-Peter Hartmann, Femi Adebogun, Illia Dulskyi, senxiiz, Daniel P. Andersen, Sean Connelly, Artur Olbinski, RoA, Mano Prime, Derek Yates, Raven Klaugh, David Flickinger, Willem Michiel, Pieter, Willian Hasse, vamX, Luke Pendergrass, webtim, Ghost , Rainer Wilmers, Nathan LeClaire, Will Dee, Cory Kujawski, John Detwiler, Fred von Graf, biorpg, Iucharbius , Imad Khwaja, Pierre Kircher, terasurfer , Asp the Wyvern, John Villwock, theTransient, zynix , Gabriel Tamborski, Fen Risland, Gabriel Puliatti, Matthew Berman, Pyrater, SuperWojo, Stephen Murray, Karl Bernard, Ajan Kanaga, Greatston Gnanesh, Junyu Yang.
191
 
192
- Thank you to all my generous patrons and donaters!
193
-
194
- <!-- footer end -->
195
-
196
- # Original model card: Meta's Llama 2 13B
197
-
198
-
199
- <!-- header start -->
200
- <div style="width: 100%;">
201
- <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
202
- </div>
203
- <div style="display: flex; justify-content: space-between; width: 100%;">
204
- <div style="display: flex; flex-direction: column; align-items: flex-start;">
205
- <p><a href="https://discord.gg/theblokeai">Chat & support: my new Discord server</a></p>
206
- </div>
207
- <div style="display: flex; flex-direction: column; align-items: flex-end;">
208
- <p><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p>
209
- </div>
210
- </div>
211
- <!-- header end -->
212
-
213
- # Meta's Llama 2 13B fp16
214
-
215
- These files are fp16 format model files for [Meta's Llama 2 13B](https://huggingface.co/meta-llama/Llama-2-13b-hf).
216
-
217
- They were produced by downloading the PTH files from Meta, and then converting to HF format using the latest Transformers 4.32.0.dev0, from Git, with the Llama 2 PR included: https://github.com/huggingface/transformers/pull/24891.
218
-
219
- Command to convert was:
220
- ```
221
- python3 /workspace/venv/pytorch2/lib/python3.10/site-packages/transformers/models/llama/convert_llama_weights_to_hf.py --input_dir /workspace/git/llama/download --model_size 13B --output_dir /workspace/process/llama-2-13b/source
222
- ```
223
-
224
- ## Repositories available
225
-
226
- * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Llama-2-13B-GPTQ)
227
- * [Original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/meta-llama/Llama-2-13b-hf)
228
- * [My fp16 conversion of the unquantised PTH model files](https://huggingface.co/TheBloke/Llama-2-13B-fp16)
229
-
230
- ## Prompt template: None
231
-
232
- ```
233
- {prompt}
234
- ```
235
-
236
- <!-- footer start -->
237
- ## Discord
238
-
239
- For further support, and discussions on these models and AI in general, join us at:
240
-
241
- [TheBloke AI's Discord server](https://discord.gg/theblokeai)
242
-
243
- ## Thanks, and how to contribute.
244
-
245
- Thanks to the [chirper.ai](https://chirper.ai) team!
246
-
247
- 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.
248
-
249
- 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.
250
-
251
- Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
252
-
253
- * Patreon: https://patreon.com/TheBlokeAI
254
- * Ko-Fi: https://ko-fi.com/TheBlokeAI
255
-
256
- **Special thanks to**: Luke from CarbonQuill, Aemon Algiz.
257
-
258
- **Patreon special mentions**: Space Cruiser, Nikolai Manek, Sam, Chris McCloskey, Rishabh Srivastava, Kalila, Spiking Neurons AB, Khalefa Al-Ahmad, WelcomeToTheClub, Chadd, Lone Striker, Viktor Bowallius, Edmond Seymore, Ai Maven, Chris Smitley, Dave, Alexandros Triantafyllidis, Luke @flexchar, Elle, ya boyyy, Talal Aujan, Alex , Jonathan Leane, Deep Realms, Randy H, subjectnull, Preetika Verma, Joseph William Delisle, Michael Levine, chris gileta, K, Oscar Rangel, LangChain4j, Trenton Dambrowitz, Eugene Pentland, Johann-Peter Hartmann, Femi Adebogun, Illia Dulskyi, senxiiz, Daniel P. Andersen, Sean Connelly, Artur Olbinski, RoA, Mano Prime, Derek Yates, Raven Klaugh, David Flickinger, Willem Michiel, Pieter, Willian Hasse, vamX, Luke Pendergrass, webtim, Ghost , Rainer Wilmers, Nathan LeClaire, Will Dee, Cory Kujawski, John Detwiler, Fred von Graf, biorpg, Iucharbius , Imad Khwaja, Pierre Kircher, terasurfer , Asp the Wyvern, John Villwock, theTransient, zynix , Gabriel Tamborski, Fen Risland, Gabriel Puliatti, Matthew Berman, Pyrater, SuperWojo, Stephen Murray, Karl Bernard, Ajan Kanaga, Greatston Gnanesh, Junyu Yang.
259
 
260
  Thank you to all my generous patrons and donaters!
261
 
 
 
262
  <!-- footer end -->
263
 
264
  # Original model card: Meta's Llama 2 13B
 
14
  ---
15
 
16
  <!-- header start -->
17
+ <!-- 200823 -->
18
+ <div style="width: auto; margin-left: auto; margin-right: auto">
19
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
20
  </div>
21
  <div style="display: flex; justify-content: space-between; width: 100%;">
22
  <div style="display: flex; flex-direction: column; align-items: flex-start;">
23
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
24
  </div>
25
  <div style="display: flex; flex-direction: column; align-items: flex-end;">
26
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p>
27
  </div>
28
  </div>
29
+ <div style="text-align:center; margin-top: 0em; margin-bottom: 0em"><p style="margin-top: 0.25em; margin-bottom: 0em;">TheBloke's LLM work is generously supported by a grant from <a href="https://a16z.com">andreessen horowitz (a16z)</a></p></div>
30
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
31
  <!-- header end -->
32
 
33
  # Meta's Llama 2 13B GPTQ
 
107
  from auto_gptq import AutoGPTQForCausalLM, BaseQuantizeConfig
108
 
109
  model_name_or_path = "TheBloke/Llama-2-13B-GPTQ"
110
+ model_basename = "model"
111
 
112
  use_triton = False
113
 
 
169
  ExLlama works with Llama models in 4-bit. Please see the Provided Files table above for per-file compatibility.
170
 
171
  <!-- footer start -->
172
+ <!-- 200823 -->
173
  ## Discord
174
 
175
  For further support, and discussions on these models and AI in general, join us at:
 
189
  * Patreon: https://patreon.com/TheBlokeAI
190
  * Ko-Fi: https://ko-fi.com/TheBlokeAI
191
 
192
+ **Special thanks to**: Aemon Algiz.
193
 
194
+ **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
195
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
196
 
197
  Thank you to all my generous patrons and donaters!
198
 
199
+ And thank you again to a16z for their generous grant.
200
+
201
  <!-- footer end -->
202
 
203
  # Original model card: Meta's Llama 2 13B
config.json CHANGED
@@ -1,22 +1,33 @@
1
  {
2
- "architectures": [
3
- "LlamaForCausalLM"
4
- ],
5
- "bos_token_id": 1,
6
- "eos_token_id": 2,
7
- "hidden_act": "silu",
8
- "hidden_size": 5120,
9
- "initializer_range": 0.02,
10
- "intermediate_size": 13824,
11
- "max_position_embeddings": 2048,
12
- "model_type": "llama",
13
- "num_attention_heads": 40,
14
- "num_hidden_layers": 40,
15
- "pad_token_id": 0,
16
- "rms_norm_eps": 1e-05,
17
- "tie_word_embeddings": false,
18
- "torch_dtype": "float16",
19
- "transformers_version": "4.30.2",
20
- "use_cache": true,
21
- "vocab_size": 32000
 
 
 
 
 
 
 
 
 
 
 
22
  }
 
1
  {
2
+ "architectures": [
3
+ "LlamaForCausalLM"
4
+ ],
5
+ "bos_token_id": 1,
6
+ "eos_token_id": 2,
7
+ "hidden_act": "silu",
8
+ "hidden_size": 5120,
9
+ "initializer_range": 0.02,
10
+ "intermediate_size": 13824,
11
+ "max_position_embeddings": 2048,
12
+ "model_type": "llama",
13
+ "num_attention_heads": 40,
14
+ "num_hidden_layers": 40,
15
+ "pad_token_id": 0,
16
+ "rms_norm_eps": 1e-05,
17
+ "tie_word_embeddings": false,
18
+ "torch_dtype": "float16",
19
+ "transformers_version": "4.30.2",
20
+ "use_cache": true,
21
+ "vocab_size": 32000,
22
+ "quantization_config": {
23
+ "bits": 8,
24
+ "group_size": 64,
25
+ "damp_percent": 0.01,
26
+ "desc_act": true,
27
+ "sym": true,
28
+ "true_sequential": true,
29
+ "model_name_or_path": null,
30
+ "model_file_base_name": "model",
31
+ "quant_method": "gptq"
32
+ }
33
  }
gptq_model-8bit-64g.safetensors → model.safetensors RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e8ea66154eafcf7022bb72a8569acde2bc7b146ca6f766aaf16a617b6cdd1aaf
3
- size 13950267664
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7514efde9f411a52ba62662d3a931a7c556aa9eb2246b9439e87a00150d38fbd
3
+ size 13950267720
quantize_config.json CHANGED
@@ -6,5 +6,5 @@
6
  "sym": true,
7
  "true_sequential": true,
8
  "model_name_or_path": null,
9
- "model_file_base_name": null
10
  }
 
6
  "sym": true,
7
  "true_sequential": true,
8
  "model_name_or_path": null,
9
+ "model_file_base_name": "model"
10
  }