Update for Transformers GPTQ support
Browse files- README.md +15 -8
- config.json +33 -22
- gptq_model-4bit-128g.safetensors → model.safetensors +2 -2
- quantize_config.json +1 -1
README.md
CHANGED
@@ -4,17 +4,20 @@ license: other
|
|
4 |
---
|
5 |
|
6 |
<!-- header start -->
|
7 |
-
|
8 |
-
|
|
|
9 |
</div>
|
10 |
<div style="display: flex; justify-content: space-between; width: 100%;">
|
11 |
<div style="display: flex; flex-direction: column; align-items: flex-start;">
|
12 |
-
<p><a href="https://discord.gg/
|
13 |
</div>
|
14 |
<div style="display: flex; flex-direction: column; align-items: flex-end;">
|
15 |
-
<p><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p>
|
16 |
</div>
|
17 |
</div>
|
|
|
|
|
18 |
<!-- header end -->
|
19 |
|
20 |
# Eric Hartford's Samantha 1.1 Llama 13B GPTQ
|
@@ -67,7 +70,7 @@ from auto_gptq import AutoGPTQForCausalLM, BaseQuantizeConfig
|
|
67 |
import argparse
|
68 |
|
69 |
model_name_or_path = "TheBloke/samantha-1.1-llama-13B-GPTQ"
|
70 |
-
model_basename = "
|
71 |
|
72 |
use_triton = False
|
73 |
|
@@ -125,11 +128,12 @@ It was created with group_size 128 to increase inference accuracy, but without -
|
|
125 |
* Parameters: Groupsize = 128. Act Order / desc_act = False.
|
126 |
|
127 |
<!-- footer start -->
|
|
|
128 |
## Discord
|
129 |
|
130 |
For further support, and discussions on these models and AI in general, join us at:
|
131 |
|
132 |
-
[TheBloke AI's Discord server](https://discord.gg/
|
133 |
|
134 |
## Thanks, and how to contribute.
|
135 |
|
@@ -144,12 +148,15 @@ Donaters will get priority support on any and all AI/LLM/model questions and req
|
|
144 |
* Patreon: https://patreon.com/TheBlokeAI
|
145 |
* Ko-Fi: https://ko-fi.com/TheBlokeAI
|
146 |
|
147 |
-
**Special thanks to**:
|
|
|
|
|
148 |
|
149 |
-
**Patreon special mentions**: Oscar Rangel, Eugene Pentland, Talal Aujan, Cory Kujawski, Luke, Asp the Wyvern, Ai Maven, Pyrater, Alps Aficionado, senxiiz, Willem Michiel, Junyu Yang, trip7s trip, Sebastain Graf, Joseph William Delisle, Lone Striker, Jonathan Leane, Johann-Peter Hartmann, David Flickinger, Spiking Neurons AB, Kevin Schuppel, Mano Prime, Dmitriy Samsonov, Sean Connelly, Nathan LeClaire, Alain Rossmann, Fen Risland, Derek Yates, Luke Pendergrass, Nikolai Manek, Khalefa Al-Ahmad, Artur Olbinski, John Detwiler, Ajan Kanaga, Imad Khwaja, Trenton Dambrowitz, Kalila, vamX, webtim, Illia Dulskyi.
|
150 |
|
151 |
Thank you to all my generous patrons and donaters!
|
152 |
|
|
|
|
|
153 |
<!-- footer end -->
|
154 |
|
155 |
# Original model card: Eric Hartford's Samantha 1.1 Llama 13B
|
|
|
4 |
---
|
5 |
|
6 |
<!-- header start -->
|
7 |
+
<!-- 200823 -->
|
8 |
+
<div style="width: auto; margin-left: auto; margin-right: auto">
|
9 |
+
<img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
|
10 |
</div>
|
11 |
<div style="display: flex; justify-content: space-between; width: 100%;">
|
12 |
<div style="display: flex; flex-direction: column; align-items: flex-start;">
|
13 |
+
<p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
|
14 |
</div>
|
15 |
<div style="display: flex; flex-direction: column; align-items: flex-end;">
|
16 |
+
<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>
|
17 |
</div>
|
18 |
</div>
|
19 |
+
<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>
|
20 |
+
<hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
|
21 |
<!-- header end -->
|
22 |
|
23 |
# Eric Hartford's Samantha 1.1 Llama 13B GPTQ
|
|
|
70 |
import argparse
|
71 |
|
72 |
model_name_or_path = "TheBloke/samantha-1.1-llama-13B-GPTQ"
|
73 |
+
model_basename = "model"
|
74 |
|
75 |
use_triton = False
|
76 |
|
|
|
128 |
* Parameters: Groupsize = 128. Act Order / desc_act = False.
|
129 |
|
130 |
<!-- footer start -->
|
131 |
+
<!-- 200823 -->
|
132 |
## Discord
|
133 |
|
134 |
For further support, and discussions on these models and AI in general, join us at:
|
135 |
|
136 |
+
[TheBloke AI's Discord server](https://discord.gg/theblokeai)
|
137 |
|
138 |
## Thanks, and how to contribute.
|
139 |
|
|
|
148 |
* Patreon: https://patreon.com/TheBlokeAI
|
149 |
* Ko-Fi: https://ko-fi.com/TheBlokeAI
|
150 |
|
151 |
+
**Special thanks to**: Aemon Algiz.
|
152 |
+
|
153 |
+
**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
|
154 |
|
|
|
155 |
|
156 |
Thank you to all my generous patrons and donaters!
|
157 |
|
158 |
+
And thank you again to a16z for their generous grant.
|
159 |
+
|
160 |
<!-- footer end -->
|
161 |
|
162 |
# Original model card: Eric Hartford's Samantha 1.1 Llama 13B
|
config.json
CHANGED
@@ -1,24 +1,35 @@
|
|
1 |
{
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "samantha-1.1-llama-13b",
|
3 |
+
"architectures": [
|
4 |
+
"LlamaForCausalLM"
|
5 |
+
],
|
6 |
+
"bos_token_id": 1,
|
7 |
+
"eos_token_id": 2,
|
8 |
+
"hidden_act": "silu",
|
9 |
+
"hidden_size": 5120,
|
10 |
+
"initializer_range": 0.02,
|
11 |
+
"intermediate_size": 13824,
|
12 |
+
"max_position_embeddings": 2048,
|
13 |
+
"max_sequence_length": 2048,
|
14 |
+
"model_type": "llama",
|
15 |
+
"num_attention_heads": 40,
|
16 |
+
"num_hidden_layers": 40,
|
17 |
+
"pad_token_id": 0,
|
18 |
+
"rms_norm_eps": 1e-06,
|
19 |
+
"tie_word_embeddings": false,
|
20 |
+
"torch_dtype": "float16",
|
21 |
+
"transformers_version": "4.28.1",
|
22 |
+
"use_cache": true,
|
23 |
+
"vocab_size": 32000,
|
24 |
+
"quantization_config": {
|
25 |
+
"bits": 4,
|
26 |
+
"group_size": 128,
|
27 |
+
"damp_percent": 0.01,
|
28 |
+
"desc_act": false,
|
29 |
+
"sym": true,
|
30 |
+
"true_sequential": true,
|
31 |
+
"model_name_or_path": null,
|
32 |
+
"model_file_base_name": "model",
|
33 |
+
"quant_method": "gptq"
|
34 |
+
}
|
35 |
}
|
gptq_model-4bit-128g.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:209282f179d270006333bd725c10a444fc8d24476f2efea9ad14f280d695a038
|
3 |
+
size 7259449480
|
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 |
}
|