Update for Transformers GPTQ support
Browse files- README.md +17 -10
- config.json +48 -37
- gptq_model-4bit-128g.safetensors → model.safetensors +2 -2
- quantize_config.json +1 -1
README.md
CHANGED
@@ -12,17 +12,20 @@ model_type: starcoder
|
|
12 |
---
|
13 |
|
14 |
<!-- header start -->
|
15 |
-
|
16 |
-
|
|
|
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:
|
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 WizardCoder-Guanaco-15B-V1.1 GPTQ
|
@@ -106,7 +109,7 @@ from transformers import AutoTokenizer, pipeline, logging
|
|
106 |
from auto_gptq import AutoGPTQForCausalLM, BaseQuantizeConfig
|
107 |
|
108 |
model_name_or_path = "TheBloke/WizardCoder-Guanaco-15B-V1.1-GPTQ"
|
109 |
-
model_basename = "
|
110 |
|
111 |
use_triton = False
|
112 |
|
@@ -172,6 +175,7 @@ The files provided will work with AutoGPTQ (CUDA and Triton modes), GPTQ-for-LLa
|
|
172 |
ExLlama works with Llama models in 4-bit. Please see the Provided Files table above for per-file compatibility.
|
173 |
|
174 |
<!-- footer start -->
|
|
|
175 |
## Discord
|
176 |
|
177 |
For further support, and discussions on these models and AI in general, join us at:
|
@@ -191,12 +195,15 @@ Donaters will get priority support on any and all AI/LLM/model questions and req
|
|
191 |
* Patreon: https://patreon.com/TheBlokeAI
|
192 |
* Ko-Fi: https://ko-fi.com/TheBlokeAI
|
193 |
|
194 |
-
**Special thanks to**:
|
|
|
|
|
195 |
|
196 |
-
**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.
|
197 |
|
198 |
Thank you to all my generous patrons and donaters!
|
199 |
|
|
|
|
|
200 |
<!-- footer end -->
|
201 |
|
202 |
# Original model card: LoupGarou's WizardCoder-Guanaco-15B-V1.1
|
@@ -237,7 +244,7 @@ class Chatbot:
|
|
237 |
if next(self.model.parameters()).is_cuda:
|
238 |
inputs = {name: tensor.to('cuda') for name, tensor in inputs.items()}
|
239 |
start_time = time.time()
|
240 |
-
tokens = self.model.generate(input_ids=inputs['input_ids'],
|
241 |
attention_mask=inputs['attention_mask'],
|
242 |
pad_token_id=self.tokenizer.pad_token_id,
|
243 |
max_new_tokens=400)
|
@@ -271,8 +278,8 @@ The selected dataset was standardized to fall within two standard deviations of
|
|
271 |
In the interest of optimizing memory usage during the training process, the dataset was streamlined to only include English language content. As a result, all non-English data was systematically expunged from this fine-tuning dataset. It's worth noting that this modification limits the model's performance in language translation tasks, but it significantly boosts its efficiency and effectiveness when dealing with English language questions and answers.
|
272 |
|
273 |
## Acknowledgements
|
274 |
-
This model, WizardCoder-Guanaco-15B-V1.1, is simply building on the efforts of two great teams to evaluate the performance of a combined model with the strengths of the [WizardCoder base model](https://huggingface.co/WizardLM/WizardCoder-15B-V1.0) and the [openassistant-guanaco dataset](https://huggingface.co/datasets/timdettmers/openassistant-guanaco).
|
275 |
|
276 |
-
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.
|
277 |
|
278 |
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 WizardCoder-Guanaco-15B-V1.1 GPTQ
|
|
|
109 |
from auto_gptq import AutoGPTQForCausalLM, BaseQuantizeConfig
|
110 |
|
111 |
model_name_or_path = "TheBloke/WizardCoder-Guanaco-15B-V1.1-GPTQ"
|
112 |
+
model_basename = "model"
|
113 |
|
114 |
use_triton = False
|
115 |
|
|
|
175 |
ExLlama works with Llama models in 4-bit. Please see the Provided Files table above for per-file compatibility.
|
176 |
|
177 |
<!-- footer start -->
|
178 |
+
<!-- 200823 -->
|
179 |
## Discord
|
180 |
|
181 |
For further support, and discussions on these models and AI in general, join us at:
|
|
|
195 |
* Patreon: https://patreon.com/TheBlokeAI
|
196 |
* Ko-Fi: https://ko-fi.com/TheBlokeAI
|
197 |
|
198 |
+
**Special thanks to**: Aemon Algiz.
|
199 |
+
|
200 |
+
**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
|
201 |
|
|
|
202 |
|
203 |
Thank you to all my generous patrons and donaters!
|
204 |
|
205 |
+
And thank you again to a16z for their generous grant.
|
206 |
+
|
207 |
<!-- footer end -->
|
208 |
|
209 |
# Original model card: LoupGarou's WizardCoder-Guanaco-15B-V1.1
|
|
|
244 |
if next(self.model.parameters()).is_cuda:
|
245 |
inputs = {name: tensor.to('cuda') for name, tensor in inputs.items()}
|
246 |
start_time = time.time()
|
247 |
+
tokens = self.model.generate(input_ids=inputs['input_ids'],
|
248 |
attention_mask=inputs['attention_mask'],
|
249 |
pad_token_id=self.tokenizer.pad_token_id,
|
250 |
max_new_tokens=400)
|
|
|
278 |
In the interest of optimizing memory usage during the training process, the dataset was streamlined to only include English language content. As a result, all non-English data was systematically expunged from this fine-tuning dataset. It's worth noting that this modification limits the model's performance in language translation tasks, but it significantly boosts its efficiency and effectiveness when dealing with English language questions and answers.
|
279 |
|
280 |
## Acknowledgements
|
281 |
+
This model, WizardCoder-Guanaco-15B-V1.1, is simply building on the efforts of two great teams to evaluate the performance of a combined model with the strengths of the [WizardCoder base model](https://huggingface.co/WizardLM/WizardCoder-15B-V1.0) and the [openassistant-guanaco dataset](https://huggingface.co/datasets/timdettmers/openassistant-guanaco).
|
282 |
|
283 |
+
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.
|
284 |
|
285 |
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 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "bigcode/starcoder",
|
3 |
+
"activation_function": "gelu",
|
4 |
+
"architectures": [
|
5 |
+
"GPTBigCodeForCausalLM"
|
6 |
+
],
|
7 |
+
"attention_softmax_in_fp32": true,
|
8 |
+
"attn_pdrop": 0.1,
|
9 |
+
"bos_token_id": 0,
|
10 |
+
"embd_pdrop": 0.1,
|
11 |
+
"eos_token_id": 0,
|
12 |
+
"inference_runner": 0,
|
13 |
+
"initializer_range": 0.02,
|
14 |
+
"layer_norm_epsilon": 1e-05,
|
15 |
+
"max_batch_size": null,
|
16 |
+
"max_sequence_length": null,
|
17 |
+
"model_type": "gpt_bigcode",
|
18 |
+
"multi_query": true,
|
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": "float16",
|
35 |
+
"transformers_version": "4.30.0.dev0",
|
36 |
+
"use_cache": true,
|
37 |
+
"validate_runner_input": true,
|
38 |
+
"vocab_size": 49153,
|
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:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2faebde0c771fb224d056ff08fa081e8ecd259b7d3fe0faec58bb90b8b705f69
|
3 |
+
size 9198428952
|
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 |
}
|