TheBloke commited on
Commit
cf8e9a2
1 Parent(s): 47122ee

Update for Transformers GPTQ support

Browse files
README.md CHANGED
@@ -4,17 +4,20 @@ license: other
4
  ---
5
 
6
  <!-- header start -->
7
- <div style="width: 100%;">
8
- <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
 
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/Jq4vkcDakD">Chat & support: my new Discord server</a></p>
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
  # Baichuan Inc's Baichuan 7B GPTQ
@@ -63,7 +66,7 @@ In Python code, please pass `trust_remote_code=True` to both the `AutoTokenizer.
63
 
64
  ## Prompt template
65
 
66
- A general prompt template is unknown at this point.
67
 
68
  The example given in the README is a 1-shot categorisation:
69
  ```
@@ -133,11 +136,12 @@ This will currently only work with the latest [AutoGPTQ](https://github.com/PanQ
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/Jq4vkcDakD)
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**: Luke from CarbonQuill, Aemon Algiz, Dmitriy Samsonov.
 
 
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: Baichuan Inc's Baichuan 7B
@@ -260,7 +267,7 @@ The specific parameters are as follows:
260
 
261
  <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
262
 
263
- ### Downstream Use
264
 
265
  <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
266
  我们同时开源出了和本模型配套的训练代码,允许进行高效的Finetune用于下游任务,具体参见[baichuan-7B](https://github.com/baichuan-inc/baichuan-7B)。
@@ -354,7 +361,7 @@ For specific training settings, please refer to [baichuan-7B](https://github.com
354
  <sup>*</sup>其中Aquila模型来源于[智源官方网站](https://model.baai.ac.cn/model-detail/100098),仅做参考
355
 
356
  ### English Leaderboard
357
- In addition to Chinese, we also tested the model's performance in English.
358
 
359
  #### MMLU
360
 
 
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
  # Baichuan Inc's Baichuan 7B GPTQ
 
66
 
67
  ## Prompt template
68
 
69
+ A general prompt template is unknown at this point.
70
 
71
  The example given in the README is a 1-shot categorisation:
72
  ```
 
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: Baichuan Inc's Baichuan 7B
 
267
 
268
  <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
269
 
270
+ ### Downstream Use
271
 
272
  <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
273
  我们同时开源出了和本模型配套的训练代码,允许进行高效的Finetune用于下游任务,具体参见[baichuan-7B](https://github.com/baichuan-inc/baichuan-7B)。
 
361
  <sup>*</sup>其中Aquila模型来源于[智源官方网站](https://model.baai.ac.cn/model-detail/100098),仅做参考
362
 
363
  ### English Leaderboard
364
+ In addition to Chinese, we also tested the model's performance in English.
365
 
366
  #### MMLU
367
 
config.json CHANGED
@@ -23,5 +23,16 @@
23
  "torch_dtype": "float16",
24
  "transformers_version": "4.30.2",
25
  "use_cache": true,
26
- "vocab_size": 64000
27
- }
 
 
 
 
 
 
 
 
 
 
 
 
23
  "torch_dtype": "float16",
24
  "transformers_version": "4.30.2",
25
  "use_cache": true,
26
+ "vocab_size": 64000,
27
+ "quantization_config": {
28
+ "bits": 4,
29
+ "group_size": 128,
30
+ "damp_percent": 0.01,
31
+ "desc_act": false,
32
+ "sym": true,
33
+ "true_sequential": true,
34
+ "model_name_or_path": null,
35
+ "model_file_base_name": "model",
36
+ "quant_method": "gptq"
37
+ }
38
+ }
gptq_model-4bit-128g.safetensors → model.safetensors RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:6ba60946ad25031361c232a78d24bd8f62e1858bc927f36b2c4878a9785f6ff9
3
- size 4419929568
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:debc6f593f33f06469030d6b7a325f905511de2ff95319a98c90f6d05a9c0754
3
+ size 4419929624
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
  }