TheBloke commited on
Commit
338d574
1 Parent(s): 14a4473

Update for Transformers GPTQ support

Browse files
README.md CHANGED
@@ -16,17 +16,20 @@ datasets:
16
  ---
17
 
18
  <!-- header start -->
19
- <div style="width: 100%;">
20
- <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
 
21
  </div>
22
  <div style="display: flex; justify-content: space-between; width: 100%;">
23
  <div style="display: flex; flex-direction: column; align-items: flex-start;">
24
- <p><a href="https://discord.gg/Jq4vkcDakD">Chat & support: my new Discord server</a></p>
25
  </div>
26
  <div style="display: flex; flex-direction: column; align-items: flex-end;">
27
- <p><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p>
28
  </div>
29
  </div>
 
 
30
  <!-- header end -->
31
 
32
  # H2O's GPT-GM-OASST1-Falcon 40B v2 GPTQ
@@ -82,7 +85,7 @@ from transformers import AutoTokenizer, pipeline, logging
82
  from auto_gptq import AutoGPTQForCausalLM, BaseQuantizeConfig
83
 
84
  model_name_or_path = "TheBloke/h2ogpt-gm-oasst1-en-2048-falcon-40b-v2-GPTQ"
85
- model_basename = "gptq_model-4bit--1g"
86
 
87
  use_triton = False
88
 
@@ -151,11 +154,12 @@ This code is required at the moment because Falcon is too new to be supported by
151
  In this repo you can see two `.py` files - these are the files that get executed. They are copied from the base repo at [Falcon-40B-Instruct](https://huggingface.co/tiiuae/falcon-40b-instruct).
152
 
153
  <!-- footer start -->
 
154
  ## Discord
155
 
156
  For further support, and discussions on these models and AI in general, join us at:
157
 
158
- [TheBloke AI's Discord server](https://discord.gg/Jq4vkcDakD)
159
 
160
  ## Thanks, and how to contribute.
161
 
@@ -170,12 +174,15 @@ Donaters will get priority support on any and all AI/LLM/model questions and req
170
  * Patreon: https://patreon.com/TheBlokeAI
171
  * Ko-Fi: https://ko-fi.com/TheBlokeAI
172
 
173
- **Special thanks to**: Luke from CarbonQuill, Aemon Algiz, Dmitriy Samsonov.
 
 
174
 
175
- **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.
176
 
177
  Thank you to all my generous patrons and donaters!
178
 
 
 
179
  <!-- footer end -->
180
 
181
  # Original model card: H2O's GPT-GM-OASST1-Falcon 40B v2
 
16
  ---
17
 
18
  <!-- header start -->
19
+ <!-- 200823 -->
20
+ <div style="width: auto; margin-left: auto; margin-right: auto">
21
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
22
  </div>
23
  <div style="display: flex; justify-content: space-between; width: 100%;">
24
  <div style="display: flex; flex-direction: column; align-items: flex-start;">
25
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
26
  </div>
27
  <div style="display: flex; flex-direction: column; align-items: flex-end;">
28
+ <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>
29
  </div>
30
  </div>
31
+ <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>
32
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
33
  <!-- header end -->
34
 
35
  # H2O's GPT-GM-OASST1-Falcon 40B v2 GPTQ
 
85
  from auto_gptq import AutoGPTQForCausalLM, BaseQuantizeConfig
86
 
87
  model_name_or_path = "TheBloke/h2ogpt-gm-oasst1-en-2048-falcon-40b-v2-GPTQ"
88
+ model_basename = "model"
89
 
90
  use_triton = False
91
 
 
154
  In this repo you can see two `.py` files - these are the files that get executed. They are copied from the base repo at [Falcon-40B-Instruct](https://huggingface.co/tiiuae/falcon-40b-instruct).
155
 
156
  <!-- footer start -->
157
+ <!-- 200823 -->
158
  ## Discord
159
 
160
  For further support, and discussions on these models and AI in general, join us at:
161
 
162
+ [TheBloke AI's Discord server](https://discord.gg/theblokeai)
163
 
164
  ## Thanks, and how to contribute.
165
 
 
174
  * Patreon: https://patreon.com/TheBlokeAI
175
  * Ko-Fi: https://ko-fi.com/TheBlokeAI
176
 
177
+ **Special thanks to**: Aemon Algiz.
178
+
179
+ **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
180
 
 
181
 
182
  Thank you to all my generous patrons and donaters!
183
 
184
+ And thank you again to a16z for their generous grant.
185
+
186
  <!-- footer end -->
187
 
188
  # Original model card: H2O's GPT-GM-OASST1-Falcon 40B v2
config.json CHANGED
@@ -1,41 +1,52 @@
1
  {
2
- "_name_or_path": "tiiuae/falcon-40b",
3
- "alibi": false,
4
- "apply_residual_connection_post_layernorm": false,
5
- "architectures": [
6
- "RWForCausalLM"
7
- ],
8
- "attention_dropout": 0.0,
9
- "attention_probs_dropout_prob": 0.0,
10
- "auto_map": {
11
- "AutoConfig": "tiiuae/falcon-40b--configuration_RW.RWConfig",
12
- "AutoModel": "tiiuae/falcon-40b--modelling_RW.RWModel",
13
- "AutoModelForCausalLM": "tiiuae/falcon-40b--modelling_RW.RWForCausalLM",
14
- "AutoModelForQuestionAnswering": "tiiuae/falcon-40b--modelling_RW.RWForQuestionAnswering",
15
- "AutoModelForSequenceClassification": "tiiuae/falcon-40b--modelling_RW.RWForSequenceClassification",
16
- "AutoModelForTokenClassification": "tiiuae/falcon-40b--modelling_RW.RWForTokenClassification"
17
- },
18
- "bias": false,
19
- "bos_token_id": 11,
20
- "custom_pipelines": {
21
- "text-generation": {
22
- "impl": "h2oai_pipeline.H2OTextGenerationPipeline",
23
- "pt": "AutoModelForCausalLM"
24
- }
25
- },
26
- "eos_token_id": 11,
27
- "hidden_dropout": 0.0,
28
- "hidden_dropout_prob": 0.0,
29
- "hidden_size": 8192,
30
- "initializer_range": 0.02,
31
- "layer_norm_epsilon": 1e-05,
32
- "model_type": "RefinedWeb",
33
- "n_head": 128,
34
- "n_head_kv": 8,
35
- "n_layer": 60,
36
- "parallel_attn": true,
37
- "torch_dtype": "float16",
38
- "transformers_version": "4.29.0",
39
- "use_cache": true,
40
- "vocab_size": 65024
 
 
 
 
 
 
 
 
 
 
 
41
  }
 
1
  {
2
+ "_name_or_path": "tiiuae/falcon-40b",
3
+ "alibi": false,
4
+ "apply_residual_connection_post_layernorm": false,
5
+ "architectures": [
6
+ "RWForCausalLM"
7
+ ],
8
+ "attention_dropout": 0.0,
9
+ "attention_probs_dropout_prob": 0.0,
10
+ "auto_map": {
11
+ "AutoConfig": "tiiuae/falcon-40b--configuration_RW.RWConfig",
12
+ "AutoModel": "tiiuae/falcon-40b--modelling_RW.RWModel",
13
+ "AutoModelForCausalLM": "tiiuae/falcon-40b--modelling_RW.RWForCausalLM",
14
+ "AutoModelForQuestionAnswering": "tiiuae/falcon-40b--modelling_RW.RWForQuestionAnswering",
15
+ "AutoModelForSequenceClassification": "tiiuae/falcon-40b--modelling_RW.RWForSequenceClassification",
16
+ "AutoModelForTokenClassification": "tiiuae/falcon-40b--modelling_RW.RWForTokenClassification"
17
+ },
18
+ "bias": false,
19
+ "bos_token_id": 11,
20
+ "custom_pipelines": {
21
+ "text-generation": {
22
+ "impl": "h2oai_pipeline.H2OTextGenerationPipeline",
23
+ "pt": "AutoModelForCausalLM"
24
+ }
25
+ },
26
+ "eos_token_id": 11,
27
+ "hidden_dropout": 0.0,
28
+ "hidden_dropout_prob": 0.0,
29
+ "hidden_size": 8192,
30
+ "initializer_range": 0.02,
31
+ "layer_norm_epsilon": 1e-05,
32
+ "model_type": "RefinedWeb",
33
+ "n_head": 128,
34
+ "n_head_kv": 8,
35
+ "n_layer": 60,
36
+ "parallel_attn": true,
37
+ "torch_dtype": "float16",
38
+ "transformers_version": "4.29.0",
39
+ "use_cache": true,
40
+ "vocab_size": 65024,
41
+ "quantization_config": {
42
+ "bits": 4,
43
+ "group_size": -1,
44
+ "damp_percent": 0.01,
45
+ "desc_act": true,
46
+ "sym": true,
47
+ "true_sequential": true,
48
+ "model_name_or_path": null,
49
+ "model_file_base_name": "model",
50
+ "quant_method": "gptq"
51
+ }
52
  }
gptq_model-4bit--1g.safetensors → model.safetensors RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:1d77707e1645a2080ddd1f66e6d4509f49a841c084a8e5b84a89199128cff310
3
- size 22548681352
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:feefd0fa30547c73c431f627a1ab8978b160c4b9dca9a34ea337b6cb65fde592
3
+ size 22548681408
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
  }