TheBloke commited on
Commit
32d3912
1 Parent(s): 475d3e6

Update for Transformers GPTQ support

Browse files
README.md CHANGED
@@ -12,17 +12,20 @@ model_type: starcoder
12
  ---
13
 
14
  <!-- header start -->
15
- <div style="width: 100%;">
16
- <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
 
17
  </div>
18
  <div style="display: flex; justify-content: space-between; width: 100%;">
19
  <div style="display: flex; flex-direction: column; align-items: flex-start;">
20
- <p><a href="https://discord.gg/theblokeai">Chat & support: my new Discord server</a></p>
21
  </div>
22
  <div style="display: flex; flex-direction: column; align-items: flex-end;">
23
- <p><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p>
24
  </div>
25
  </div>
 
 
26
  <!-- header end -->
27
 
28
  # LoupGarou's Starcoderplus Guanaco GPT4 15B V1.0 GPTQ
@@ -101,7 +104,7 @@ from transformers import AutoTokenizer, pipeline, logging
101
  from auto_gptq import AutoGPTQForCausalLM, BaseQuantizeConfig
102
 
103
  model_name_or_path = "TheBloke/Starcoderplus-Guanaco-GPT4-15B-V1.0-GPTQ"
104
- model_basename = "gptq_model-4bit-128g"
105
 
106
  use_triton = False
107
 
@@ -164,6 +167,7 @@ The files provided will work with AutoGPTQ (CUDA and Triton modes), GPTQ-for-LLa
164
  ExLlama works with Llama models in 4-bit. Please see the Provided Files table above for per-file compatibility.
165
 
166
  <!-- footer start -->
 
167
  ## Discord
168
 
169
  For further support, and discussions on these models and AI in general, join us at:
@@ -183,12 +187,15 @@ Donaters will get priority support on any and all AI/LLM/model questions and req
183
  * Patreon: https://patreon.com/TheBlokeAI
184
  * Ko-Fi: https://ko-fi.com/TheBlokeAI
185
 
186
- **Special thanks to**: Luke from CarbonQuill, Aemon Algiz.
 
 
187
 
188
- **Patreon special mentions**: Space Cruiser, Nikolai Manek, Sam, Chris McCloskey, Rishabh Srivastava, Kalila, Spiking Neurons AB, Khalefa Al-Ahmad, WelcomeToTheClub, Chadd, Lone Striker, Viktor Bowallius, Edmond Seymore, Ai Maven, Chris Smitley, Dave, Alexandros Triantafyllidis, Luke @flexchar, Elle, ya boyyy, Talal Aujan, Alex , Jonathan Leane, Deep Realms, Randy H, subjectnull, Preetika Verma, Joseph William Delisle, Michael Levine, chris gileta, K, Oscar Rangel, LangChain4j, Trenton Dambrowitz, Eugene Pentland, Johann-Peter Hartmann, Femi Adebogun, Illia Dulskyi, senxiiz, Daniel P. Andersen, Sean Connelly, Artur Olbinski, RoA, Mano Prime, Derek Yates, Raven Klaugh, David Flickinger, Willem Michiel, Pieter, Willian Hasse, vamX, Luke Pendergrass, webtim, Ghost , Rainer Wilmers, Nathan LeClaire, Will Dee, Cory Kujawski, John Detwiler, Fred von Graf, biorpg, Iucharbius , Imad Khwaja, Pierre Kircher, terasurfer , Asp the Wyvern, John Villwock, theTransient, zynix , Gabriel Tamborski, Fen Risland, Gabriel Puliatti, Matthew Berman, Pyrater, SuperWojo, Stephen Murray, Karl Bernard, Ajan Kanaga, Greatston Gnanesh, Junyu Yang.
189
 
190
  Thank you to all my generous patrons and donaters!
191
 
 
 
192
  <!-- footer end -->
193
 
194
  # Original model card: LoupGarou's Starcoderplus Guanaco GPT4 15B V1.0
@@ -226,7 +233,7 @@ class Chatbot:
226
  if next(self.model.parameters()).is_cuda:
227
  inputs = {name: tensor.to('cuda') for name, tensor in inputs.items()}
228
  start_time = time.time()
229
- tokens = self.model.generate(input_ids=inputs['input_ids'],
230
  attention_mask=inputs['attention_mask'],
231
  pad_token_id=self.tokenizer.pad_token_id,
232
  max_new_tokens=400)
@@ -256,8 +263,8 @@ if __name__ == "__main__":
256
  The base Starcoderplus model was finetuned on the modified openassistant-guanaco dataset 100% re-imagined with GPT4 answers using QLORA. All non-English data was also removed from this finetuning dataset to reduce trainign size and time.
257
 
258
  ## Acknowledgements
259
- This model, Starcoderplus-Guanaco-GPT4-15B-V1.0, builds upon the strengths of the [Starcoderplus](https://huggingface.co/bigcode/starcoderplus) and the [openassistant-guanaco dataset](https://huggingface.co/datasets/timdettmers/openassistant-guanaco).
260
 
261
- A sincere appreciation goes out to the developers and the community involved in the creation and refinement of these models. Their commitment to providing open source tools and datasets have been instrumental in making this project a reality.
262
 
263
  Moreover, a special note of thanks to the [Hugging Face](https://huggingface.co/) team, whose transformative library has not only streamlined the process of model creation and adaptation, but also democratized the access to state-of-the-art machine learning technologies. Their impact on the development of this project cannot be overstated.
 
12
  ---
13
 
14
  <!-- header start -->
15
+ <!-- 200823 -->
16
+ <div style="width: auto; margin-left: auto; margin-right: auto">
17
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
18
  </div>
19
  <div style="display: flex; justify-content: space-between; width: 100%;">
20
  <div style="display: flex; flex-direction: column; align-items: flex-start;">
21
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
22
  </div>
23
  <div style="display: flex; flex-direction: column; align-items: flex-end;">
24
+ <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>
25
  </div>
26
  </div>
27
+ <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>
28
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
29
  <!-- header end -->
30
 
31
  # LoupGarou's Starcoderplus Guanaco GPT4 15B V1.0 GPTQ
 
104
  from auto_gptq import AutoGPTQForCausalLM, BaseQuantizeConfig
105
 
106
  model_name_or_path = "TheBloke/Starcoderplus-Guanaco-GPT4-15B-V1.0-GPTQ"
107
+ model_basename = "model"
108
 
109
  use_triton = False
110
 
 
167
  ExLlama works with Llama models in 4-bit. Please see the Provided Files table above for per-file compatibility.
168
 
169
  <!-- footer start -->
170
+ <!-- 200823 -->
171
  ## Discord
172
 
173
  For further support, and discussions on these models and AI in general, join us at:
 
187
  * Patreon: https://patreon.com/TheBlokeAI
188
  * Ko-Fi: https://ko-fi.com/TheBlokeAI
189
 
190
+ **Special thanks to**: Aemon Algiz.
191
+
192
+ **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
193
 
 
194
 
195
  Thank you to all my generous patrons and donaters!
196
 
197
+ And thank you again to a16z for their generous grant.
198
+
199
  <!-- footer end -->
200
 
201
  # Original model card: LoupGarou's Starcoderplus Guanaco GPT4 15B V1.0
 
233
  if next(self.model.parameters()).is_cuda:
234
  inputs = {name: tensor.to('cuda') for name, tensor in inputs.items()}
235
  start_time = time.time()
236
+ tokens = self.model.generate(input_ids=inputs['input_ids'],
237
  attention_mask=inputs['attention_mask'],
238
  pad_token_id=self.tokenizer.pad_token_id,
239
  max_new_tokens=400)
 
263
  The base Starcoderplus model was finetuned on the modified openassistant-guanaco dataset 100% re-imagined with GPT4 answers using QLORA. All non-English data was also removed from this finetuning dataset to reduce trainign size and time.
264
 
265
  ## Acknowledgements
266
+ This model, Starcoderplus-Guanaco-GPT4-15B-V1.0, builds upon the strengths of the [Starcoderplus](https://huggingface.co/bigcode/starcoderplus) and the [openassistant-guanaco dataset](https://huggingface.co/datasets/timdettmers/openassistant-guanaco).
267
 
268
+ A sincere appreciation goes out to the developers and the community involved in the creation and refinement of these models. Their commitment to providing open source tools and datasets have been instrumental in making this project a reality.
269
 
270
  Moreover, a special note of thanks to the [Hugging Face](https://huggingface.co/) team, whose transformative library has not only streamlined the process of model creation and adaptation, but also democratized the access to state-of-the-art machine learning technologies. Their impact on the development of this project cannot be overstated.
config.json CHANGED
@@ -1,39 +1,50 @@
1
  {
2
- "_name_or_path": "/fsx/bigcode/experiments/pretraining/conversions/starcoderplus/large-model",
3
- "activation_function": "gelu",
4
- "architectures": [
5
- "GPTBigCodeForCausalLM"
6
- ],
7
- "attention_softmax_in_fp32": true,
8
- "multi_query": true,
9
- "attn_pdrop": 0.1,
10
- "bos_token_id": 0,
11
- "embd_pdrop": 0.1,
12
- "eos_token_id": 0,
13
- "inference_runner": 0,
14
- "initializer_range": 0.02,
15
- "layer_norm_epsilon": 1e-05,
16
- "max_batch_size": null,
17
- "max_sequence_length": null,
18
- "model_type": "gpt_bigcode",
19
- "n_embd": 6144,
20
- "n_head": 48,
21
- "n_inner": 24576,
22
- "n_layer": 40,
23
- "n_positions": 8192,
24
- "pad_key_length": true,
25
- "pre_allocate_kv_cache": false,
26
- "resid_pdrop": 0.1,
27
- "scale_attention_softmax_in_fp32": true,
28
- "scale_attn_weights": true,
29
- "summary_activation": null,
30
- "summary_first_dropout": 0.1,
31
- "summary_proj_to_labels": true,
32
- "summary_type": "cls_index",
33
- "summary_use_proj": true,
34
- "torch_dtype": "float32",
35
- "transformers_version": "4.28.1",
36
- "use_cache": true,
37
- "validate_runner_input": true,
38
- "vocab_size": 49152
 
 
 
 
 
 
 
 
 
 
 
39
  }
 
1
  {
2
+ "_name_or_path": "/fsx/bigcode/experiments/pretraining/conversions/starcoderplus/large-model",
3
+ "activation_function": "gelu",
4
+ "architectures": [
5
+ "GPTBigCodeForCausalLM"
6
+ ],
7
+ "attention_softmax_in_fp32": true,
8
+ "multi_query": true,
9
+ "attn_pdrop": 0.1,
10
+ "bos_token_id": 0,
11
+ "embd_pdrop": 0.1,
12
+ "eos_token_id": 0,
13
+ "inference_runner": 0,
14
+ "initializer_range": 0.02,
15
+ "layer_norm_epsilon": 1e-05,
16
+ "max_batch_size": null,
17
+ "max_sequence_length": null,
18
+ "model_type": "gpt_bigcode",
19
+ "n_embd": 6144,
20
+ "n_head": 48,
21
+ "n_inner": 24576,
22
+ "n_layer": 40,
23
+ "n_positions": 8192,
24
+ "pad_key_length": true,
25
+ "pre_allocate_kv_cache": false,
26
+ "resid_pdrop": 0.1,
27
+ "scale_attention_softmax_in_fp32": true,
28
+ "scale_attn_weights": true,
29
+ "summary_activation": null,
30
+ "summary_first_dropout": 0.1,
31
+ "summary_proj_to_labels": true,
32
+ "summary_type": "cls_index",
33
+ "summary_use_proj": true,
34
+ "torch_dtype": "float32",
35
+ "transformers_version": "4.28.1",
36
+ "use_cache": true,
37
+ "validate_runner_input": true,
38
+ "vocab_size": 49152,
39
+ "quantization_config": {
40
+ "bits": 4,
41
+ "group_size": 128,
42
+ "damp_percent": 0.01,
43
+ "desc_act": false,
44
+ "sym": true,
45
+ "true_sequential": true,
46
+ "model_name_or_path": null,
47
+ "model_file_base_name": "model",
48
+ "quant_method": "gptq"
49
+ }
50
  }
gptq_model-4bit-128g.safetensors → model.safetensors RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4094412c80c841277269bb427f96077dae01b8e3b217a7ea03239019eef78aff
3
- size 9198404320
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7fa80d7383212d7a107cb671b337fff45d4888eb3d60a5174b5f323f2d9f2dd9
3
+ size 9198404376
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
  }