Text Generation
Transformers
Safetensors
English
llama
text-generation-inference
4-bit precision
gptq
TheBloke commited on
Commit
af29897
1 Parent(s): 1bfc39f

Update for Transformers GPTQ support

Browse files
README.md CHANGED
@@ -19,17 +19,20 @@ pipeline_tag: text-generation
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
  # OpenAccess AI Collective's Hippogriff 30B Chat GPTQ
@@ -178,6 +181,7 @@ The files provided will work with AutoGPTQ (CUDA and Triton modes), GPTQ-for-LLa
178
  ExLlama works with Llama models in 4-bit. Please see the Provided Files table above for per-file compatibility.
179
 
180
  <!-- footer start -->
 
181
  ## Discord
182
 
183
  For further support, and discussions on these models and AI in general, join us at:
@@ -197,12 +201,15 @@ Donaters will get priority support on any and all AI/LLM/model questions and req
197
  * Patreon: https://patreon.com/TheBlokeAI
198
  * Ko-Fi: https://ko-fi.com/TheBlokeAI
199
 
200
- **Special thanks to**: Luke from CarbonQuill, Aemon Algiz.
 
 
201
 
202
- **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.
203
 
204
  Thank you to all my generous patrons and donaters!
205
 
 
 
206
  <!-- footer end -->
207
 
208
  # Original model card: OpenAccess AI Collective's Hippogriff 30B Chat
@@ -213,7 +220,7 @@ Thank you to all my generous patrons and donaters!
213
  [<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)
214
 
215
 
216
- Hippogriff 30B Chat is an experiment that builds on Manticore with new datasets, while removing a few more instruction and chat datasets. It also includes a de-duped subset of the Pygmalion dataset. It also removes all Alpaca style prompts using `###` in favor of
217
  chat only style prompts using `USER:`,`ASSISTANT:` as well as [pygmalion/metharme prompting](https://huggingface.co/PygmalionAI/metharme-7b#prompting) using `<|system|>, <|user|> and <|model|>` tokens.
218
 
219
  Questions, comments, feedback, looking to donate, or want to help? Reach out on our [Discord](https://discord.gg/PugNNHAF5r) or email [wing@openaccessaicollective.org](mailto:wing@openaccessaicollective.org)
@@ -224,13 +231,13 @@ Hippogriff 30B Chat is a Llama 30B model fine-tuned on the following datasets
224
 
225
  - OpenAssistant/oasst1 - cleaned dataset, similar to Guanaco
226
  - synthetic jokes generation and explanation derived from reddit jokes dataset
227
- - synthetic prose generation and rewriting self-chat
228
  - Q&A based on provided context
229
  - self instruct augmented logic_inference_oa
230
  - de-duped pygmalion dataset, filtered down to RP data, cleaned, english only, 25%
231
- - [riddle_sense](https://huggingface.co/datasets/riddle_sense) - instruct augmented
232
  - hellaswag, updated for detailed explanations w 30K+ rows
233
- - [gsm8k](https://huggingface.co/datasets/gsm8k) - instruct augmented
234
  - [ewof/code-alpaca-instruct-unfiltered](https://huggingface.co/datasets/ewof/code-alpaca-instruct-unfiltered) synthetic self chat dataset derived from about 1000 rows
235
  - [subset of QingyiSi/Alpaca-CoT for roleplay and CoT](https://huggingface.co/QingyiSi/Alpaca-CoT)
236
  - [GPTeacher-General-Instruct](https://huggingface.co/datasets/teknium/GPTeacher-General-Instruct)
@@ -256,22 +263,22 @@ A Spaces demo is not provided for this release due to 30B models currently not f
256
 
257
  ## Build
258
 
259
- Hippogriff was built with [Axolotl](https://github.com/OpenAccess-AI-Collective/axolotl) on 8xA100 80GB
260
- - 1.5 epochs taking approximately 12 hours. No further epochs will be released.
261
 
262
  ## Bias, Risks, and Limitations
263
 
264
  Hippogriff has not been aligned to human preferences with techniques like RLHF or deployed with in-the-loop filtering of responses like ChatGPT, so the model can produce problematic outputs (especially when prompted to do so).
265
  Hippogriff was fine-tuned from the base model LlaMa 30B, please refer to its model card's Limitations Section for relevant information.
266
 
267
- The core functionality of Llama is taking a string of text and predicting the next token. While language models are widely used for tasks other than this,
268
- there are a lot of unknowns with this work. When prompting Hippogriff it is important to remember that the statistically most likely next token is often
269
  not the token that produces the most "accurate" text. Never depend upon Hippogriff to produce factually accurate output.
270
 
271
  Llama was trained on the Pile, a dataset known to contain profanity, lewd, and otherwise abrasive language. Depending upon use case Hippogriff may produce
272
  socially unacceptable text. See Sections 5 and 6 of the Pile paper for a more detailed analysis of the biases in the Pile.
273
 
274
- As with all language models, it is hard to predict in advance how Hippogriff will respond to particular prompts and offensive content may occur without warning.
275
  We recommend having a human curate or filter the outputs before releasing them, both to censor undesirable content and to improve the quality of the results.
276
 
277
  ## Examples
@@ -280,7 +287,7 @@ TBD
280
 
281
  ```
282
  USER: write an original short story of at least 300 words in the style of Zora Neale Hurston. Incorporate the following literary devices: Euphemism and Foreshadowing.
283
- ASSISTANT: Once upon a time, there was a black girl named Rose, whose skin shined like a pearl beneath the hot sun. She lived with her mama and daddy on their farm, where they grew crops to feed the family and neighbors. On this particular day, Rose felt a tinge of excitement as she watched her parents work diligently in their fields. 'It's almost harvest season!' she thought, imagining the delicious meals that awaited them. But, soon after, it became apparent that something sinister lurked amidst the rows of fresh produce.
284
 
285
  As her father hoed around a vine-covered cucumber plant, he unearthed a peculiar rock. It was the size of an acorn but had a strange shape, unlike anything he or his wife had ever seen. "What have we here?" He said, turning to his wife with curiosity and excitement. She examined the rock for herself and declared, "Why, it looks like a piece of coal!" But as both mother and daughter looked closer, it seemed to be far more than a mere piece of coal. A sense of unease crept up Rose's spine when she noticed that the rock resembled the dark face of a baby in the womb. As Rose tried to suppress a scream, her mother gasped, "Sweet Jesus! Let's bury this thing before anyone sees!" And so, they quickly hid the stone back underground, hoping that nobody would ever discover their secret.
286
  ```
 
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
  # OpenAccess AI Collective's Hippogriff 30B Chat GPTQ
 
181
  ExLlama works with Llama models in 4-bit. Please see the Provided Files table above for per-file compatibility.
182
 
183
  <!-- footer start -->
184
+ <!-- 200823 -->
185
  ## Discord
186
 
187
  For further support, and discussions on these models and AI in general, join us at:
 
201
  * Patreon: https://patreon.com/TheBlokeAI
202
  * Ko-Fi: https://ko-fi.com/TheBlokeAI
203
 
204
+ **Special thanks to**: Aemon Algiz.
205
+
206
+ **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
207
 
 
208
 
209
  Thank you to all my generous patrons and donaters!
210
 
211
+ And thank you again to a16z for their generous grant.
212
+
213
  <!-- footer end -->
214
 
215
  # Original model card: OpenAccess AI Collective's Hippogriff 30B Chat
 
220
  [<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)
221
 
222
 
223
+ Hippogriff 30B Chat is an experiment that builds on Manticore with new datasets, while removing a few more instruction and chat datasets. It also includes a de-duped subset of the Pygmalion dataset. It also removes all Alpaca style prompts using `###` in favor of
224
  chat only style prompts using `USER:`,`ASSISTANT:` as well as [pygmalion/metharme prompting](https://huggingface.co/PygmalionAI/metharme-7b#prompting) using `<|system|>, <|user|> and <|model|>` tokens.
225
 
226
  Questions, comments, feedback, looking to donate, or want to help? Reach out on our [Discord](https://discord.gg/PugNNHAF5r) or email [wing@openaccessaicollective.org](mailto:wing@openaccessaicollective.org)
 
231
 
232
  - OpenAssistant/oasst1 - cleaned dataset, similar to Guanaco
233
  - synthetic jokes generation and explanation derived from reddit jokes dataset
234
+ - synthetic prose generation and rewriting self-chat
235
  - Q&A based on provided context
236
  - self instruct augmented logic_inference_oa
237
  - de-duped pygmalion dataset, filtered down to RP data, cleaned, english only, 25%
238
+ - [riddle_sense](https://huggingface.co/datasets/riddle_sense) - instruct augmented
239
  - hellaswag, updated for detailed explanations w 30K+ rows
240
+ - [gsm8k](https://huggingface.co/datasets/gsm8k) - instruct augmented
241
  - [ewof/code-alpaca-instruct-unfiltered](https://huggingface.co/datasets/ewof/code-alpaca-instruct-unfiltered) synthetic self chat dataset derived from about 1000 rows
242
  - [subset of QingyiSi/Alpaca-CoT for roleplay and CoT](https://huggingface.co/QingyiSi/Alpaca-CoT)
243
  - [GPTeacher-General-Instruct](https://huggingface.co/datasets/teknium/GPTeacher-General-Instruct)
 
263
 
264
  ## Build
265
 
266
+ Hippogriff was built with [Axolotl](https://github.com/OpenAccess-AI-Collective/axolotl) on 8xA100 80GB
267
+ - 1.5 epochs taking approximately 12 hours. No further epochs will be released.
268
 
269
  ## Bias, Risks, and Limitations
270
 
271
  Hippogriff has not been aligned to human preferences with techniques like RLHF or deployed with in-the-loop filtering of responses like ChatGPT, so the model can produce problematic outputs (especially when prompted to do so).
272
  Hippogriff was fine-tuned from the base model LlaMa 30B, please refer to its model card's Limitations Section for relevant information.
273
 
274
+ The core functionality of Llama is taking a string of text and predicting the next token. While language models are widely used for tasks other than this,
275
+ there are a lot of unknowns with this work. When prompting Hippogriff it is important to remember that the statistically most likely next token is often
276
  not the token that produces the most "accurate" text. Never depend upon Hippogriff to produce factually accurate output.
277
 
278
  Llama was trained on the Pile, a dataset known to contain profanity, lewd, and otherwise abrasive language. Depending upon use case Hippogriff may produce
279
  socially unacceptable text. See Sections 5 and 6 of the Pile paper for a more detailed analysis of the biases in the Pile.
280
 
281
+ As with all language models, it is hard to predict in advance how Hippogriff will respond to particular prompts and offensive content may occur without warning.
282
  We recommend having a human curate or filter the outputs before releasing them, both to censor undesirable content and to improve the quality of the results.
283
 
284
  ## Examples
 
287
 
288
  ```
289
  USER: write an original short story of at least 300 words in the style of Zora Neale Hurston. Incorporate the following literary devices: Euphemism and Foreshadowing.
290
+ ASSISTANT: Once upon a time, there was a black girl named Rose, whose skin shined like a pearl beneath the hot sun. She lived with her mama and daddy on their farm, where they grew crops to feed the family and neighbors. On this particular day, Rose felt a tinge of excitement as she watched her parents work diligently in their fields. 'It's almost harvest season!' she thought, imagining the delicious meals that awaited them. But, soon after, it became apparent that something sinister lurked amidst the rows of fresh produce.
291
 
292
  As her father hoed around a vine-covered cucumber plant, he unearthed a peculiar rock. It was the size of an acorn but had a strange shape, unlike anything he or his wife had ever seen. "What have we here?" He said, turning to his wife with curiosity and excitement. She examined the rock for herself and declared, "Why, it looks like a piece of coal!" But as both mother and daughter looked closer, it seemed to be far more than a mere piece of coal. A sense of unease crept up Rose's spine when she noticed that the rock resembled the dark face of a baby in the womb. As Rose tried to suppress a scream, her mother gasped, "Sweet Jesus! Let's bury this thing before anyone sees!" And so, they quickly hid the stone back underground, hoping that nobody would ever discover their secret.
293
  ```
config.json CHANGED
@@ -1,24 +1,35 @@
1
  {
2
- "_name_or_path": "/workspace/mnt/manticore-30b-chat/checkpoint-50/",
3
- "architectures": [
4
- "LlamaForCausalLM"
5
- ],
6
- "bos_token_id": 1,
7
- "eos_token_id": 2,
8
- "hidden_act": "silu",
9
- "hidden_size": 6656,
10
- "initializer_range": 0.02,
11
- "intermediate_size": 17920,
12
- "max_position_embeddings": 2048,
13
- "max_sequence_length": 2048,
14
- "model_type": "llama",
15
- "num_attention_heads": 52,
16
- "num_hidden_layers": 60,
17
- "pad_token_id": 0,
18
- "rms_norm_eps": 1e-06,
19
- "tie_word_embeddings": false,
20
- "torch_dtype": "bfloat16",
21
- "transformers_version": "4.30.0.dev0",
22
- "use_cache": true,
23
- "vocab_size": 32000
 
 
 
 
 
 
 
 
 
 
 
24
  }
 
1
  {
2
+ "_name_or_path": "/workspace/mnt/manticore-30b-chat/checkpoint-50/",
3
+ "architectures": [
4
+ "LlamaForCausalLM"
5
+ ],
6
+ "bos_token_id": 1,
7
+ "eos_token_id": 2,
8
+ "hidden_act": "silu",
9
+ "hidden_size": 6656,
10
+ "initializer_range": 0.02,
11
+ "intermediate_size": 17920,
12
+ "max_position_embeddings": 2048,
13
+ "max_sequence_length": 2048,
14
+ "model_type": "llama",
15
+ "num_attention_heads": 52,
16
+ "num_hidden_layers": 60,
17
+ "pad_token_id": 0,
18
+ "rms_norm_eps": 1e-06,
19
+ "tie_word_embeddings": false,
20
+ "torch_dtype": "bfloat16",
21
+ "transformers_version": "4.30.0.dev0",
22
+ "use_cache": true,
23
+ "vocab_size": 32000,
24
+ "quantization_config": {
25
+ "bits": 3,
26
+ "group_size": 128,
27
+ "damp_percent": 0.01,
28
+ "desc_act": false,
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-128g.safetensors → model.safetensors RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2ec050861aa525edce4d3fd0e4e82fc06fe0885752763640e9794530ae38b246
3
- size 13509984992
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:08d4349864896aaf9317bfe8c381b87104b2c7032b2ce5858bd5efa804daa107
3
+ size 13509985048
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
  }