TheBloke commited on
Commit
f3bb8d9
1 Parent(s): f20f193

Update for Transformers GPTQ support

Browse files
README.md CHANGED
@@ -19,17 +19,20 @@ tags:
19
  ---
20
 
21
  <!-- header start -->
22
- <div style="width: 100%;">
23
- <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
 
24
  </div>
25
  <div style="display: flex; justify-content: space-between; width: 100%;">
26
  <div style="display: flex; flex-direction: column; align-items: flex-start;">
27
- <p><a href="https://discord.gg/theblokeai">Chat & support: my new Discord server</a></p>
28
  </div>
29
  <div style="display: flex; flex-direction: column; align-items: flex-end;">
30
- <p><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p>
31
  </div>
32
  </div>
 
 
33
  <!-- header end -->
34
 
35
  # Upstage's Llama 65B Instruct GPTQ
@@ -45,10 +48,16 @@ Multiple GPTQ parameter permutations are provided; see Provided Files below for
45
  * [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference](https://huggingface.co/TheBloke/Upstage-Llama1-65B-Instruct-GGML)
46
  * [Original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/upstage/llama-65b-instruct)
47
 
48
- ## Prompt template: Unknown
49
 
50
  ```
 
 
 
 
51
  {prompt}
 
 
52
  ```
53
 
54
  ## Provided files
@@ -59,13 +68,13 @@ Each separate quant is in a different branch. See below for instructions on fet
59
 
60
  | Branch | Bits | Group Size | Act Order (desc_act) | File Size | ExLlama Compatible? | Made With | Description |
61
  | ------ | ---- | ---------- | -------------------- | --------- | ------------------- | --------- | ----------- |
62
- | main | 4 | 128 | False | 34.73 GB | True | AutoGPTQ | Most compatible option. Good inference speed in AutoGPTQ and GPTQ-for-LLaMa. Lower inference quality than other options. |
63
- | gptq-4bit-32g-actorder_True | 4 | 32 | True | 38.53 GB | True | AutoGPTQ | 4-bit, with Act Order and group size. 32g gives highest possible inference quality, with maximum VRAM usage. Poor AutoGPTQ CUDA speed. |
64
- | gptq-4bit-64g-actorder_True | 4 | 64 | True | 36.00 GB | True | AutoGPTQ | 4-bit, with Act Order and group size. 64g uses less VRAM than 32g, but with slightly lower accuracy. Poor AutoGPTQ CUDA speed. |
65
- | gptq-4bit-128g-actorder_True | 4 | 128 | True | 34.73 GB | True | AutoGPTQ | 4-bit, with Act Order and group size. 128g uses even less VRAM, but with slightly lower accuracy. Poor AutoGPTQ CUDA speed. |
66
- | gptq-3bit--1g-actorder_True | 3 | None | True | 25.39 GB | False | AutoGPTQ | 3-bit, with Act Order and no group size. Lowest possible VRAM requirements. May be lower quality than 3-bit 128g. |
67
- | gptq-3bit-128g-actorder_False | 3 | 128 | False | 26.57 GB | False | AutoGPTQ | 3-bit, with group size 128g but no act-order. Slightly higher VRAM requirements than 3-bit None. |
68
- | gptq-3bit-128g-actorder_True | 3 | 128 | True | 26.57 GB | False | AutoGPTQ | 3-bit, with group size 128g and act-order. Higher quality than 128g-False but poor AutoGPTQ CUDA speed. |
69
  | gptq-3bit-64g-actorder_True | 3 | 64 | True | 27.78 GB | False | AutoGPTQ | 3-bit, with group size 64g and act-order. Highest quality 3-bit option. Poor AutoGPTQ CUDA speed. |
70
 
71
  ## How to download from branches
@@ -109,7 +118,7 @@ from transformers import AutoTokenizer, pipeline, logging
109
  from auto_gptq import AutoGPTQForCausalLM, BaseQuantizeConfig
110
 
111
  model_name_or_path = "TheBloke/Upstage-Llama1-65B-Instruct-GPTQ"
112
- model_basename = "gptq_model-4bit-128g"
113
 
114
  use_triton = False
115
 
@@ -136,8 +145,14 @@ model = AutoGPTQForCausalLM.from_quantized(model_name_or_path,
136
  """
137
 
138
  prompt = "Tell me about AI"
139
- prompt_template=f'''{prompt}
140
- '''
 
 
 
 
 
 
141
 
142
  print("\n\n*** Generate:")
143
 
@@ -171,6 +186,7 @@ The files provided will work with AutoGPTQ (CUDA and Triton modes), GPTQ-for-LLa
171
  ExLlama works with Llama models in 4-bit. Please see the Provided Files table above for per-file compatibility.
172
 
173
  <!-- footer start -->
 
174
  ## Discord
175
 
176
  For further support, and discussions on these models and AI in general, join us at:
@@ -190,13 +206,15 @@ Donaters will get priority support on any and all AI/LLM/model questions and req
190
  * Patreon: https://patreon.com/TheBlokeAI
191
  * Ko-Fi: https://ko-fi.com/TheBlokeAI
192
 
193
- **Special thanks to**: Luke from CarbonQuill, Aemon Algiz.
194
 
195
- **Patreon special mentions**: Slarti, Chadd, John Detwiler, Pieter, zynix, K, Mano Prime, ReadyPlayerEmma, Ai Maven, Leonard Tan, Edmond Seymore, Joseph William Delisle, Luke @flexchar, Fred von Graf, Viktor Bowallius, Rishabh Srivastava, Nikolai Manek, Matthew Berman, Johann-Peter Hartmann, ya boyyy, Greatston Gnanesh, Femi Adebogun, Talal Aujan, Jonathan Leane, terasurfer, David Flickinger, William Sang, Ajan Kanaga, Vadim, Artur Olbinski, Raven Klaugh, Michael Levine, Oscar Rangel, Randy H, Cory Kujawski, RoA, Dave, Alex, Alexandros Triantafyllidis, Fen Risland, Eugene Pentland, vamX, Elle, Nathan LeClaire, Khalefa Al-Ahmad, Rainer Wilmers, subjectnull, Junyu Yang, Daniel P. Andersen, SuperWojo, LangChain4j, Mandus, Kalila, Illia Dulskyi, Trenton Dambrowitz, Asp the Wyvern, Derek Yates, Jeffrey Morgan, Deep Realms, Imad Khwaja, Pyrater, Preetika Verma, biorpg, Gabriel Tamborski, Stephen Murray, Spiking Neurons AB, Iucharbius, Chris Smitley, Willem Michiel, Luke Pendergrass, Sebastain Graf, senxiiz, Will Dee, Space Cruiser, Karl Bernard, Clay Pascal, Lone Striker, transmissions 11, webtim, WelcomeToTheClub, Sam, theTransient, Pierre Kircher, chris gileta, John Villwock, Sean Connelly, Willian Hasse
196
 
197
 
198
  Thank you to all my generous patrons and donaters!
199
 
 
 
200
  <!-- footer end -->
201
 
202
  # Original model card: Upstage's Llama 65B Instruct
 
19
  ---
20
 
21
  <!-- header start -->
22
+ <!-- 200823 -->
23
+ <div style="width: auto; margin-left: auto; margin-right: auto">
24
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
25
  </div>
26
  <div style="display: flex; justify-content: space-between; width: 100%;">
27
  <div style="display: flex; flex-direction: column; align-items: flex-start;">
28
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
29
  </div>
30
  <div style="display: flex; flex-direction: column; align-items: flex-end;">
31
+ <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>
32
  </div>
33
  </div>
34
+ <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>
35
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
36
  <!-- header end -->
37
 
38
  # Upstage's Llama 65B Instruct GPTQ
 
48
  * [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference](https://huggingface.co/TheBloke/Upstage-Llama1-65B-Instruct-GGML)
49
  * [Original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/upstage/llama-65b-instruct)
50
 
51
+ ## Prompt template: Orca-Hashes
52
 
53
  ```
54
+ ### System:
55
+ {System}
56
+
57
+ ### User:
58
  {prompt}
59
+
60
+ ### Assistant:
61
  ```
62
 
63
  ## Provided files
 
68
 
69
  | Branch | Bits | Group Size | Act Order (desc_act) | File Size | ExLlama Compatible? | Made With | Description |
70
  | ------ | ---- | ---------- | -------------------- | --------- | ------------------- | --------- | ----------- |
71
+ | main | 4 | 128 | False | 34.73 GB | True | AutoGPTQ | Most compatible option. Good inference speed in AutoGPTQ and GPTQ-for-LLaMa. Lower inference quality than other options. |
72
+ | gptq-4bit-32g-actorder_True | 4 | 32 | True | 38.53 GB | True | AutoGPTQ | 4-bit, with Act Order and group size. 32g gives highest possible inference quality, with maximum VRAM usage. Poor AutoGPTQ CUDA speed. |
73
+ | gptq-4bit-64g-actorder_True | 4 | 64 | True | 36.00 GB | True | AutoGPTQ | 4-bit, with Act Order and group size. 64g uses less VRAM than 32g, but with slightly lower accuracy. Poor AutoGPTQ CUDA speed. |
74
+ | gptq-4bit-128g-actorder_True | 4 | 128 | True | 34.73 GB | True | AutoGPTQ | 4-bit, with Act Order and group size. 128g uses even less VRAM, but with slightly lower accuracy. Poor AutoGPTQ CUDA speed. |
75
+ | gptq-3bit--1g-actorder_True | 3 | None | True | 25.39 GB | False | AutoGPTQ | 3-bit, with Act Order and no group size. Lowest possible VRAM requirements. May be lower quality than 3-bit 128g. |
76
+ | gptq-3bit-128g-actorder_False | 3 | 128 | False | 26.57 GB | False | AutoGPTQ | 3-bit, with group size 128g but no act-order. Slightly higher VRAM requirements than 3-bit None. |
77
+ | gptq-3bit-128g-actorder_True | 3 | 128 | True | 26.57 GB | False | AutoGPTQ | 3-bit, with group size 128g and act-order. Higher quality than 128g-False but poor AutoGPTQ CUDA speed. |
78
  | gptq-3bit-64g-actorder_True | 3 | 64 | True | 27.78 GB | False | AutoGPTQ | 3-bit, with group size 64g and act-order. Highest quality 3-bit option. Poor AutoGPTQ CUDA speed. |
79
 
80
  ## How to download from branches
 
118
  from auto_gptq import AutoGPTQForCausalLM, BaseQuantizeConfig
119
 
120
  model_name_or_path = "TheBloke/Upstage-Llama1-65B-Instruct-GPTQ"
121
+ model_basename = "model"
122
 
123
  use_triton = False
124
 
 
145
  """
146
 
147
  prompt = "Tell me about AI"
148
+ system = "You are a helpful assistant"
149
+ prompt_template=f'''### System:
150
+ {system}
151
+
152
+ ### User:
153
+ {prompt}
154
+
155
+ ### Assistant:'''
156
 
157
  print("\n\n*** Generate:")
158
 
 
186
  ExLlama works with Llama models in 4-bit. Please see the Provided Files table above for per-file compatibility.
187
 
188
  <!-- footer start -->
189
+ <!-- 200823 -->
190
  ## Discord
191
 
192
  For further support, and discussions on these models and AI in general, join us at:
 
206
  * Patreon: https://patreon.com/TheBlokeAI
207
  * Ko-Fi: https://ko-fi.com/TheBlokeAI
208
 
209
+ **Special thanks to**: Aemon Algiz.
210
 
211
+ **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
212
 
213
 
214
  Thank you to all my generous patrons and donaters!
215
 
216
+ And thank you again to a16z for their generous grant.
217
+
218
  <!-- footer end -->
219
 
220
  # Original model card: Upstage's Llama 65B Instruct
config.json CHANGED
@@ -1,24 +1,35 @@
1
  {
2
- "_name_or_path": "/data/project/private/limerobot/repos/workspace/project/llm-tf/limerobot/output/llama-65b/checkpoint-594",
3
- "architectures": [
4
- "LlamaForCausalLM"
5
- ],
6
- "bos_token_id": 1,
7
- "eos_token_id": 2,
8
- "hidden_act": "silu",
9
- "hidden_size": 8192,
10
- "initializer_range": 0.02,
11
- "intermediate_size": 22016,
12
- "max_position_embeddings": 2048,
13
- "max_sequence_length": 2048,
14
- "model_type": "llama",
15
- "num_attention_heads": 64,
16
- "num_hidden_layers": 80,
17
- "pad_token_id": 0,
18
- "rms_norm_eps": 1e-05,
19
- "tie_word_embeddings": false,
20
- "torch_dtype": "bfloat16",
21
- "transformers_version": "4.30.2",
22
- "use_cache": true,
23
- "vocab_size": 32000
 
 
 
 
 
 
 
 
 
 
 
24
  }
 
1
  {
2
+ "_name_or_path": "/data/project/private/limerobot/repos/workspace/project/llm-tf/limerobot/output/llama-65b/checkpoint-594",
3
+ "architectures": [
4
+ "LlamaForCausalLM"
5
+ ],
6
+ "bos_token_id": 1,
7
+ "eos_token_id": 2,
8
+ "hidden_act": "silu",
9
+ "hidden_size": 8192,
10
+ "initializer_range": 0.02,
11
+ "intermediate_size": 22016,
12
+ "max_position_embeddings": 2048,
13
+ "max_sequence_length": 2048,
14
+ "model_type": "llama",
15
+ "num_attention_heads": 64,
16
+ "num_hidden_layers": 80,
17
+ "pad_token_id": 0,
18
+ "rms_norm_eps": 1e-05,
19
+ "tie_word_embeddings": false,
20
+ "torch_dtype": "bfloat16",
21
+ "transformers_version": "4.30.2",
22
+ "use_cache": true,
23
+ "vocab_size": 32000,
24
+ "quantization_config": {
25
+ "bits": 3,
26
+ "group_size": 64,
27
+ "damp_percent": 0.01,
28
+ "desc_act": true,
29
+ "sym": true,
30
+ "true_sequential": true,
31
+ "model_name_or_path": null,
32
+ "model_file_base_name": "model",
33
+ "quant_method": "gptq"
34
+ }
35
  }
gptq_model-3bit-64g.safetensors → model.safetensors RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4fa8c8dd77211b47087aaacd2045855322b496d1ec22a564c07be58c2d01c401
3
- size 27776178320
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d3e8d5561348953e2364581937e325f9220e6dcbf3de8cb5b4b8fac77d7519de
3
+ size 27776178376
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
  }