Update for Transformers GPTQ support
Browse files- README.md +17 -10
- config.json +32 -22
- baichuan-llama-7b-GPTQ-4bit-128g.no-act.order.safetensors → model.safetensors +2 -2
- quantize_config.json +7 -6
README.md
CHANGED
@@ -8,17 +8,20 @@ pipeline_tag: text-generation
|
|
8 |
---
|
9 |
|
10 |
<!-- header start -->
|
11 |
-
|
12 |
-
|
|
|
13 |
</div>
|
14 |
<div style="display: flex; justify-content: space-between; width: 100%;">
|
15 |
<div style="display: flex; flex-direction: column; align-items: flex-start;">
|
16 |
-
<p><a href="https://discord.gg/
|
17 |
</div>
|
18 |
<div style="display: flex; flex-direction: column; align-items: flex-end;">
|
19 |
-
<p><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p>
|
20 |
</div>
|
21 |
</div>
|
|
|
|
|
22 |
<!-- header end -->
|
23 |
|
24 |
# Fire Balloon's Baichuan Llama 7B GPTQ
|
@@ -37,7 +40,7 @@ This model is a Llama conversion of [Baichuan Inc's Baichuan 7B]https://huggingf
|
|
37 |
|
38 |
## Prompt template
|
39 |
|
40 |
-
A general prompt template is unknown at this point.
|
41 |
|
42 |
The example given in the README is a 1-shot categorisation:
|
43 |
```
|
@@ -133,11 +136,12 @@ It was created with group_size 128 to increase inference accuracy, but without -
|
|
133 |
* Parameters: Groupsize = 128. Act Order / desc_act = False.
|
134 |
|
135 |
<!-- footer start -->
|
|
|
136 |
## Discord
|
137 |
|
138 |
For further support, and discussions on these models and AI in general, join us at:
|
139 |
|
140 |
-
[TheBloke AI's Discord server](https://discord.gg/
|
141 |
|
142 |
## Thanks, and how to contribute.
|
143 |
|
@@ -152,12 +156,15 @@ Donaters will get priority support on any and all AI/LLM/model questions and req
|
|
152 |
* Patreon: https://patreon.com/TheBlokeAI
|
153 |
* Ko-Fi: https://ko-fi.com/TheBlokeAI
|
154 |
|
155 |
-
**Special thanks to**:
|
|
|
|
|
156 |
|
157 |
-
**Patreon special mentions**: Mano Prime, Fen Risland, Derek Yates, Preetika Verma, webtim, Sean Connelly, Alps Aficionado, Karl Bernard, Junyu Yang, Nathan LeClaire, Chris McCloskey, Lone Striker, Asp the Wyvern, Eugene Pentland, Imad Khwaja, trip7s trip, WelcomeToTheClub, John Detwiler, Artur Olbinski, Khalefa Al-Ahmad, Trenton Dambrowitz, Talal Aujan, Kevin Schuppel, Luke Pendergrass, Pyrater, Joseph William Delisle, terasurfer , vamX, Gabriel Puliatti, David Flickinger, Jonathan Leane, Iucharbius , Luke, Deep Realms, Cory Kujawski, ya boyyy, Illia Dulskyi, senxiiz, Johann-Peter Hartmann, John Villwock, K, Ghost , Spiking Neurons AB, Nikolai Manek, Rainer Wilmers, Pierre Kircher, biorpg, Space Cruiser, Ai Maven, subjectnull, Willem Michiel, Ajan Kanaga, Kalila, chris gileta, Oscar Rangel.
|
158 |
|
159 |
Thank you to all my generous patrons and donaters!
|
160 |
|
|
|
|
|
161 |
<!-- footer end -->
|
162 |
|
163 |
# Original model card: Fire Balloon's Baichuan Llama 7B
|
@@ -278,7 +285,7 @@ The specific parameters are as follows:
|
|
278 |
|
279 |
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
280 |
|
281 |
-
### Downstream Use
|
282 |
|
283 |
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
284 |
我们同时开源出了和本模型配套的训练代码,允许进行高效的Finetune用于下游任务,具体参见[baichuan-7B](https://github.com/baichuan-inc/baichuan-7B)。
|
@@ -372,7 +379,7 @@ For specific training settings, please refer to [baichuan-7B](https://github.com
|
|
372 |
<sup>*</sup>其中Aquila模型来源于[智源官方网站](https://model.baai.ac.cn/model-detail/100098),仅做参考
|
373 |
|
374 |
### English Leaderboard
|
375 |
-
In addition to Chinese, we also tested the model's performance in English.
|
376 |
|
377 |
#### MMLU
|
378 |
|
|
|
8 |
---
|
9 |
|
10 |
<!-- header start -->
|
11 |
+
<!-- 200823 -->
|
12 |
+
<div style="width: auto; margin-left: auto; margin-right: auto">
|
13 |
+
<img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
|
14 |
</div>
|
15 |
<div style="display: flex; justify-content: space-between; width: 100%;">
|
16 |
<div style="display: flex; flex-direction: column; align-items: flex-start;">
|
17 |
+
<p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
|
18 |
</div>
|
19 |
<div style="display: flex; flex-direction: column; align-items: flex-end;">
|
20 |
+
<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>
|
21 |
</div>
|
22 |
</div>
|
23 |
+
<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>
|
24 |
+
<hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
|
25 |
<!-- header end -->
|
26 |
|
27 |
# Fire Balloon's Baichuan Llama 7B GPTQ
|
|
|
40 |
|
41 |
## Prompt template
|
42 |
|
43 |
+
A general prompt template is unknown at this point.
|
44 |
|
45 |
The example given in the README is a 1-shot categorisation:
|
46 |
```
|
|
|
136 |
* Parameters: Groupsize = 128. Act Order / desc_act = False.
|
137 |
|
138 |
<!-- footer start -->
|
139 |
+
<!-- 200823 -->
|
140 |
## Discord
|
141 |
|
142 |
For further support, and discussions on these models and AI in general, join us at:
|
143 |
|
144 |
+
[TheBloke AI's Discord server](https://discord.gg/theblokeai)
|
145 |
|
146 |
## Thanks, and how to contribute.
|
147 |
|
|
|
156 |
* Patreon: https://patreon.com/TheBlokeAI
|
157 |
* Ko-Fi: https://ko-fi.com/TheBlokeAI
|
158 |
|
159 |
+
**Special thanks to**: Aemon Algiz.
|
160 |
+
|
161 |
+
**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
|
162 |
|
|
|
163 |
|
164 |
Thank you to all my generous patrons and donaters!
|
165 |
|
166 |
+
And thank you again to a16z for their generous grant.
|
167 |
+
|
168 |
<!-- footer end -->
|
169 |
|
170 |
# Original model card: Fire Balloon's Baichuan Llama 7B
|
|
|
285 |
|
286 |
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
287 |
|
288 |
+
### Downstream Use
|
289 |
|
290 |
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
291 |
我们同时开源出了和本模型配套的训练代码,允许进行高效的Finetune用于下游任务,具体参见[baichuan-7B](https://github.com/baichuan-inc/baichuan-7B)。
|
|
|
379 |
<sup>*</sup>其中Aquila模型来源于[智源官方网站](https://model.baai.ac.cn/model-detail/100098),仅做参考
|
380 |
|
381 |
### English Leaderboard
|
382 |
+
In addition to Chinese, we also tested the model's performance in English.
|
383 |
|
384 |
#### MMLU
|
385 |
|
config.json
CHANGED
@@ -1,24 +1,34 @@
|
|
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": "baichuan-inc/baichuan-7b",
|
3 |
+
"architectures": [
|
4 |
+
"LlamaForCausalLM"
|
5 |
+
],
|
6 |
+
"bos_token_id": 1,
|
7 |
+
"eos_token_id": 2,
|
8 |
+
"hidden_act": "silu",
|
9 |
+
"hidden_size": 4096,
|
10 |
+
"initializer_range": 0.02,
|
11 |
+
"intermediate_size": 11008,
|
12 |
+
"max_position_embeddings": 2048,
|
13 |
+
"max_sequence_length": 2048,
|
14 |
+
"model_type": "llama",
|
15 |
+
"num_attention_heads": 32,
|
16 |
+
"num_hidden_layers": 32,
|
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.0.dev0",
|
22 |
+
"use_cache": true,
|
23 |
+
"vocab_size": 64000,
|
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_file_base_name": "model",
|
32 |
+
"quant_method": "gptq"
|
33 |
+
}
|
34 |
}
|
baichuan-llama-7b-GPTQ-4bit-128g.no-act.order.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:7b73baa85469480d1b113aa08f4546ffed9753d5c7013e6582ed3929de6973f5
|
3 |
+
size 4520341408
|
quantize_config.json
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
{
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
|
|
8 |
}
|
|
|
1 |
{
|
2 |
+
"bits": 4,
|
3 |
+
"group_size": 128,
|
4 |
+
"damp_percent": 0.01,
|
5 |
+
"desc_act": false,
|
6 |
+
"sym": true,
|
7 |
+
"true_sequential": true,
|
8 |
+
"model_file_base_name": "model"
|
9 |
}
|