Update for Transformers GPTQ support
Browse files- README.md +14 -7
- config.json +35 -24
- gptq_model-4bit--1g.safetensors → model.safetensors +2 -2
- quantize_config.json +1 -1
README.md
CHANGED
@@ -14,17 +14,20 @@ tags:
|
|
14 |
---
|
15 |
|
16 |
<!-- header start -->
|
17 |
-
|
18 |
-
|
|
|
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:
|
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 70B Chat GPTQ
|
@@ -155,7 +158,7 @@ from transformers import AutoTokenizer, pipeline, logging
|
|
155 |
from auto_gptq import AutoGPTQForCausalLM, BaseQuantizeConfig
|
156 |
|
157 |
model_name_or_path = "TheBloke/Llama-2-70B-chat-GPTQ"
|
158 |
-
model_basename = "
|
159 |
|
160 |
use_triton = False
|
161 |
|
@@ -226,6 +229,7 @@ ExLlama is now compatible with Llama 2 70B models, as of [this commit](https://g
|
|
226 |
Please see the Provided Files table above for per-file compatibility.
|
227 |
|
228 |
<!-- footer start -->
|
|
|
229 |
## Discord
|
230 |
|
231 |
For further support, and discussions on these models and AI in general, join us at:
|
@@ -245,12 +249,15 @@ Donaters will get priority support on any and all AI/LLM/model questions and req
|
|
245 |
* Patreon: https://patreon.com/TheBlokeAI
|
246 |
* Ko-Fi: https://ko-fi.com/TheBlokeAI
|
247 |
|
248 |
-
**Special thanks to**:
|
|
|
|
|
249 |
|
250 |
-
**Patreon special mentions**: Willem Michiel, Ajan Kanaga, Cory Kujawski, Alps Aficionado, Nikolai Manek, Jonathan Leane, Stanislav Ovsiannikov, Michael Levine, Luke Pendergrass, Sid, K, Gabriel Tamborski, Clay Pascal, Kalila, William Sang, Will Dee, Pieter, Nathan LeClaire, ya boyyy, David Flickinger, vamX, Derek Yates, Fen Risland, Jeffrey Morgan, webtim, Daniel P. Andersen, Chadd, Edmond Seymore, Pyrater, Olusegun Samson, Lone Striker, biorpg, alfie_i, Mano Prime, Chris Smitley, Dave, zynix, Trenton Dambrowitz, Johann-Peter Hartmann, Magnesian, Spencer Kim, John Detwiler, Iucharbius, Gabriel Puliatti, LangChain4j, Luke @flexchar, Vadim, Rishabh Srivastava, Preetika Verma, Ai Maven, Femi Adebogun, WelcomeToTheClub, Leonard Tan, Imad Khwaja, Steven Wood, Stefan Sabev, Sebastain Graf, usrbinkat, Dan Guido, Sam, Eugene Pentland, Mandus, transmissions 11, Slarti, Karl Bernard, Spiking Neurons AB, Artur Olbinski, Joseph William Delisle, ReadyPlayerEmma, Olakabola, Asp the Wyvern, Space Cruiser, Matthew Berman, Randy H, subjectnull, danny, John Villwock, Illia Dulskyi, Rainer Wilmers, theTransient, Pierre Kircher, Alexandros Triantafyllidis, Viktor Bowallius, terasurfer, Deep Realms, SuperWojo, senxiiz, Oscar Rangel, Alex, Stephen Murray, Talal Aujan, Raven Klaugh, Sean Connelly, Raymond Fosdick, Fred von Graf, chris gileta, Junyu Yang, Elle
|
251 |
|
252 |
Thank you to all my generous patrons and donaters!
|
253 |
|
|
|
|
|
254 |
<!-- footer end -->
|
255 |
|
256 |
# Original model card: Meta's Llama 2 70B Chat
|
|
|
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 70B Chat GPTQ
|
|
|
158 |
from auto_gptq import AutoGPTQForCausalLM, BaseQuantizeConfig
|
159 |
|
160 |
model_name_or_path = "TheBloke/Llama-2-70B-chat-GPTQ"
|
161 |
+
model_basename = "model"
|
162 |
|
163 |
use_triton = False
|
164 |
|
|
|
229 |
Please see the Provided Files table above for per-file compatibility.
|
230 |
|
231 |
<!-- footer start -->
|
232 |
+
<!-- 200823 -->
|
233 |
## Discord
|
234 |
|
235 |
For further support, and discussions on these models and AI in general, join us at:
|
|
|
249 |
* Patreon: https://patreon.com/TheBlokeAI
|
250 |
* Ko-Fi: https://ko-fi.com/TheBlokeAI
|
251 |
|
252 |
+
**Special thanks to**: Aemon Algiz.
|
253 |
+
|
254 |
+
**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
|
255 |
|
|
|
256 |
|
257 |
Thank you to all my generous patrons and donaters!
|
258 |
|
259 |
+
And thank you again to a16z for their generous grant.
|
260 |
+
|
261 |
<!-- footer end -->
|
262 |
|
263 |
# Original model card: Meta's Llama 2 70B Chat
|
config.json
CHANGED
@@ -1,26 +1,37 @@
|
|
1 |
{
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
}
|
|
|
1 |
{
|
2 |
+
"architectures": [
|
3 |
+
"LlamaForCausalLM"
|
4 |
+
],
|
5 |
+
"bos_token_id": 1,
|
6 |
+
"eos_token_id": 2,
|
7 |
+
"hidden_act": "silu",
|
8 |
+
"hidden_size": 8192,
|
9 |
+
"initializer_range": 0.02,
|
10 |
+
"intermediate_size": 28672,
|
11 |
+
"max_length": 4096,
|
12 |
+
"max_position_embeddings": 4096,
|
13 |
+
"model_type": "llama",
|
14 |
+
"num_attention_heads": 64,
|
15 |
+
"num_hidden_layers": 80,
|
16 |
+
"num_key_value_heads": 8,
|
17 |
+
"pad_token_id": 0,
|
18 |
+
"pretraining_tp": 1,
|
19 |
+
"rms_norm_eps": 1e-05,
|
20 |
+
"rope_scaling": null,
|
21 |
+
"tie_word_embeddings": false,
|
22 |
+
"torch_dtype": "float16",
|
23 |
+
"transformers_version": "4.32.0.dev0",
|
24 |
+
"use_cache": true,
|
25 |
+
"vocab_size": 32000,
|
26 |
+
"quantization_config": {
|
27 |
+
"bits": 4,
|
28 |
+
"group_size": -1,
|
29 |
+
"damp_percent": 0.01,
|
30 |
+
"desc_act": true,
|
31 |
+
"sym": true,
|
32 |
+
"true_sequential": true,
|
33 |
+
"model_name_or_path": null,
|
34 |
+
"model_file_base_name": "model",
|
35 |
+
"quant_method": "gptq"
|
36 |
+
}
|
37 |
}
|
gptq_model-4bit--1g.safetensors → model.safetensors
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8f35d3df50ebe5f7190d0b719fea5f2959448aa04d09728c38d3d9e7237e1ff2
|
3 |
+
size 35332232320
|
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":
|
10 |
}
|
|
|
6 |
"sym": true,
|
7 |
"true_sequential": true,
|
8 |
"model_name_or_path": null,
|
9 |
+
"model_file_base_name": "model"
|
10 |
}
|