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

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +125 -77
README.md CHANGED
@@ -1,4 +1,5 @@
1
  ---
 
2
  datasets:
3
  - QingyiSi/Alpaca-CoT
4
  - teknium/GPT4-LLM-Cleaned
@@ -14,8 +15,16 @@ language:
14
  - en
15
  library_name: transformers
16
  license: other
 
 
17
  model_type: llama
18
  pipeline_tag: text-generation
 
 
 
 
 
 
19
  ---
20
 
21
  <!-- header start -->
@@ -35,150 +44,187 @@ pipeline_tag: text-generation
35
  <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
36
  <!-- header end -->
37
 
38
- # OpenAccess AI Collective's Hippogriff 30B Chat GPTQ
 
 
39
 
40
- These files are GPTQ model files for [OpenAccess AI Collective's Hippogriff 30B Chat](https://huggingface.co/openaccess-ai-collective/hippogriff-30b-chat).
 
41
 
42
- Multiple GPTQ parameter permutations are provided; see Provided Files below for details of the options provided, their parameters, and the software used to create them.
43
 
44
- These models were quantised using hardware kindly provided by [Latitude.sh](https://www.latitude.sh/accelerate).
45
 
 
 
46
  ## Repositories available
47
 
 
48
  * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/hippogriff-30b-chat-GPTQ)
49
- * [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference](https://huggingface.co/TheBloke/hippogriff-30b-chat-GGML)
50
- * [Unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/openaccess-ai-collective/hippogriff-30b-chat)
 
51
 
 
52
  ## Prompt template: Vicuna
53
 
54
  ```
55
- A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.
56
 
57
- USER: {prompt}
58
- ASSISTANT:
59
  ```
60
 
61
- ## Provided files
 
 
 
 
62
 
63
  Multiple quantisation parameters are provided, to allow you to choose the best one for your hardware and requirements.
64
 
65
  Each separate quant is in a different branch. See below for instructions on fetching from different branches.
66
 
67
- | Branch | Bits | Group Size | Act Order (desc_act) | File Size | ExLlama Compatible? | Made With | Description |
68
- | ------ | ---- | ---------- | -------------------- | --------- | ------------------- | --------- | ----------- |
69
- | main | 4 | None | True | 16.94 GB | True | GPTQ-for-LLaMa | Most compatible option. Good inference speed in AutoGPTQ and GPTQ-for-LLaMa. Lower inference quality than other options. |
70
- | gptq-4bit-32g-actorder_True | 4 | 32 | True | 19.44 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. |
71
- | gptq-4bit-64g-actorder_True | 4 | 64 | True | 18.18 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. |
72
- | gptq-4bit-128g-actorder_True | 4 | 128 | True | 17.55 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. |
73
- | gptq-8bit--1g-actorder_True | 8 | None | True | 32.99 GB | False | AutoGPTQ | 8-bit, with Act Order. No group size, to lower VRAM requirements and to improve AutoGPTQ speed. |
74
- | gptq-8bit-128g-actorder_False | 8 | 128 | False | 33.73 GB | False | AutoGPTQ | 8-bit, with group size 128g for higher inference quality and without Act Order to improve AutoGPTQ speed. |
75
- | gptq-3bit--1g-actorder_True | 3 | None | True | 12.92 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 | 13.51 GB | False | AutoGPTQ | 3-bit, with group size 128g but no act-order. Slightly higher VRAM requirements than 3-bit None. |
77
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
  ## How to download from branches
79
 
80
- - In text-generation-webui, you can add `:branch` to the end of the download name, eg `TheBloke/hippogriff-30b-chat-GPTQ:gptq-4bit-32g-actorder_True`
81
  - With Git, you can clone a branch with:
82
  ```
83
- git clone --branch gptq-4bit-32g-actorder_True https://huggingface.co/TheBloke/hippogriff-30b-chat-GPTQ`
84
  ```
85
  - In Python Transformers code, the branch is the `revision` parameter; see below.
86
-
 
87
  ## How to easily download and use this model in [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
88
 
89
  Please make sure you're using the latest version of [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
90
 
91
- It is strongly recommended to use the text-generation-webui one-click-installers unless you know how to make a manual install.
92
 
93
  1. Click the **Model tab**.
94
  2. Under **Download custom model or LoRA**, enter `TheBloke/hippogriff-30b-chat-GPTQ`.
95
- - To download from a specific branch, enter for example `TheBloke/hippogriff-30b-chat-GPTQ:gptq-4bit-32g-actorder_True`
96
  - see Provided Files above for the list of branches for each option.
97
  3. Click **Download**.
98
- 4. The model will start downloading. Once it's finished it will say "Done"
99
  5. In the top left, click the refresh icon next to **Model**.
100
  6. In the **Model** dropdown, choose the model you just downloaded: `hippogriff-30b-chat-GPTQ`
101
  7. The model will automatically load, and is now ready for use!
102
  8. If you want any custom settings, set them and then click **Save settings for this model** followed by **Reload the Model** in the top right.
103
- * Note that you do not need to set GPTQ parameters any more. These are set automatically from the file `quantize_config.json`.
104
  9. Once you're ready, click the **Text Generation tab** and enter a prompt to get started!
 
105
 
 
106
  ## How to use this GPTQ model from Python code
107
 
108
- First make sure you have [AutoGPTQ](https://github.com/PanQiWei/AutoGPTQ) installed:
 
 
109
 
110
- `GITHUB_ACTIONS=true pip install auto-gptq`
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
111
 
112
- Then try the following example code:
113
 
114
  ```python
115
- from transformers import AutoTokenizer, pipeline, logging
116
- from auto_gptq import AutoGPTQForCausalLM, BaseQuantizeConfig
117
 
118
  model_name_or_path = "TheBloke/hippogriff-30b-chat-GPTQ"
119
- model_basename = "hippogriff-30b-GPTQ-4bit--1g.act.order"
120
-
121
- use_triton = False
 
 
 
122
 
123
  tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
124
 
125
- model = AutoGPTQForCausalLM.from_quantized(model_name_or_path,
126
- model_basename=model_basename
127
- use_safetensors=True,
128
- trust_remote_code=False,
129
- device="cuda:0",
130
- use_triton=use_triton,
131
- quantize_config=None)
132
-
133
- """
134
- To download from a specific branch, use the revision parameter, as in this example:
135
-
136
- model = AutoGPTQForCausalLM.from_quantized(model_name_or_path,
137
- revision="gptq-4bit-32g-actorder_True",
138
- model_basename=model_basename,
139
- use_safetensors=True,
140
- trust_remote_code=False,
141
- device="cuda:0",
142
- quantize_config=None)
143
- """
144
-
145
  prompt = "Tell me about AI"
146
- prompt_template=f'''A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.
147
 
148
- USER: {prompt}
149
- ASSISTANT:
150
  '''
151
 
152
  print("\n\n*** Generate:")
153
 
154
  input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
155
- output = model.generate(inputs=input_ids, temperature=0.7, max_new_tokens=512)
156
  print(tokenizer.decode(output[0]))
157
 
158
  # Inference can also be done using transformers' pipeline
159
 
160
- # Prevent printing spurious transformers error when using pipeline with AutoGPTQ
161
- logging.set_verbosity(logging.CRITICAL)
162
-
163
  print("*** Pipeline:")
164
  pipe = pipeline(
165
  "text-generation",
166
  model=model,
167
  tokenizer=tokenizer,
168
  max_new_tokens=512,
 
169
  temperature=0.7,
170
  top_p=0.95,
171
- repetition_penalty=1.15
 
172
  )
173
 
174
  print(pipe(prompt_template)[0]['generated_text'])
175
  ```
 
176
 
 
177
  ## Compatibility
178
 
179
- The files provided will work with AutoGPTQ (CUDA and Triton modes), GPTQ-for-LLaMa (only CUDA has been tested), and Occ4m's GPTQ-for-LLaMa fork.
 
 
180
 
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 -->
@@ -188,10 +234,12 @@ For further support, and discussions on these models and AI in general, join us
188
 
189
  [TheBloke AI's Discord server](https://discord.gg/theblokeai)
190
 
191
- ## Thanks, and how to contribute.
192
 
193
  Thanks to the [chirper.ai](https://chirper.ai) team!
194
 
 
 
195
  I've had a lot of people ask if they can contribute. I enjoy providing models and helping people, and would love to be able to spend even more time doing it, as well as expanding into new projects like fine tuning/training.
196
 
197
  If you're able and willing to contribute it will be most gratefully received and will help me to keep providing more models, and to start work on new AI projects.
@@ -203,7 +251,7 @@ Donaters will get priority support on any and all AI/LLM/model questions and req
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!
@@ -220,7 +268,7 @@ And thank you again to a16z for their generous grant.
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,13 +279,13 @@ Hippogriff 30B Chat is a Llama 30B model fine-tuned on the following datasets
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,22 +311,22 @@ A Spaces demo is not provided for this release due to 30B models currently not f
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,7 +335,7 @@ TBD
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
  ```
 
1
  ---
2
+ base_model: https://huggingface.co/openaccess-ai-collective/hippogriff-30b-chat
3
  datasets:
4
  - QingyiSi/Alpaca-CoT
5
  - teknium/GPT4-LLM-Cleaned
 
15
  - en
16
  library_name: transformers
17
  license: other
18
+ model_creator: Open Access AI Collective
19
+ model_name: Hippogriff 30B Chat
20
  model_type: llama
21
  pipeline_tag: text-generation
22
+ prompt_template: 'A chat between a curious user and an artificial intelligence assistant.
23
+ The assistant gives helpful, detailed, and polite answers to the user''s questions.
24
+ USER: {prompt} ASSISTANT:
25
+
26
+ '
27
+ quantized_by: TheBloke
28
  ---
29
 
30
  <!-- header start -->
 
44
  <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
45
  <!-- header end -->
46
 
47
+ # Hippogriff 30B Chat - GPTQ
48
+ - Model creator: [Open Access AI Collective](https://huggingface.co/openaccess-ai-collective)
49
+ - Original model: [Hippogriff 30B Chat](https://huggingface.co/openaccess-ai-collective/hippogriff-30b-chat)
50
 
51
+ <!-- description start -->
52
+ ## Description
53
 
54
+ This repo contains GPTQ model files for [OpenAccess AI Collective's Hippogriff 30B Chat](https://huggingface.co/openaccess-ai-collective/hippogriff-30b-chat).
55
 
56
+ Multiple GPTQ parameter permutations are provided; see Provided Files below for details of the options provided, their parameters, and the software used to create them.
57
 
58
+ <!-- description end -->
59
+ <!-- repositories-available start -->
60
  ## Repositories available
61
 
62
+ * [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/hippogriff-30b-chat-AWQ)
63
  * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/hippogriff-30b-chat-GPTQ)
64
+ * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/hippogriff-30b-chat-GGUF)
65
+ * [Open Access AI Collective's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/openaccess-ai-collective/hippogriff-30b-chat)
66
+ <!-- repositories-available end -->
67
 
68
+ <!-- prompt-template start -->
69
  ## Prompt template: Vicuna
70
 
71
  ```
72
+ A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. USER: {prompt} ASSISTANT:
73
 
 
 
74
  ```
75
 
76
+ <!-- prompt-template end -->
77
+
78
+
79
+ <!-- README_GPTQ.md-provided-files start -->
80
+ ## Provided files and GPTQ parameters
81
 
82
  Multiple quantisation parameters are provided, to allow you to choose the best one for your hardware and requirements.
83
 
84
  Each separate quant is in a different branch. See below for instructions on fetching from different branches.
85
 
86
+ All recent GPTQ files are made with AutoGPTQ, and all files in non-main branches are made with AutoGPTQ. Files in the `main` branch which were uploaded before August 2023 were made with GPTQ-for-LLaMa.
87
+
88
+ <details>
89
+ <summary>Explanation of GPTQ parameters</summary>
 
 
 
 
 
 
90
 
91
+ - Bits: The bit size of the quantised model.
92
+ - GS: GPTQ group size. Higher numbers use less VRAM, but have lower quantisation accuracy. "None" is the lowest possible value.
93
+ - Act Order: True or False. Also known as `desc_act`. True results in better quantisation accuracy. Some GPTQ clients have had issues with models that use Act Order plus Group Size, but this is generally resolved now.
94
+ - Damp %: A GPTQ parameter that affects how samples are processed for quantisation. 0.01 is default, but 0.1 results in slightly better accuracy.
95
+ - GPTQ dataset: The dataset used for quantisation. Using a dataset more appropriate to the model's training can improve quantisation accuracy. Note that the GPTQ dataset is not the same as the dataset used to train the model - please refer to the original model repo for details of the training dataset(s).
96
+ - Sequence Length: The length of the dataset sequences used for quantisation. Ideally this is the same as the model sequence length. For some very long sequence models (16+K), a lower sequence length may have to be used. Note that a lower sequence length does not limit the sequence length of the quantised model. It only impacts the quantisation accuracy on longer inference sequences.
97
+ - ExLlama Compatibility: Whether this file can be loaded with ExLlama, which currently only supports Llama models in 4-bit.
98
+
99
+ </details>
100
+
101
+ | Branch | Bits | GS | Act Order | Damp % | GPTQ Dataset | Seq Len | Size | ExLlama | Desc |
102
+ | ------ | ---- | -- | --------- | ------ | ------------ | ------- | ---- | ------- | ---- |
103
+ | [main](https://huggingface.co/TheBloke/hippogriff-30b-chat-GPTQ/tree/main) | 4 | None | Yes | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 16.94 GB | Yes | 4-bit, with Act Order. No group size, to lower VRAM requirements. |
104
+ | [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/hippogriff-30b-chat-GPTQ/tree/gptq-4bit-32g-actorder_True) | 4 | 32 | Yes | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 19.44 GB | Yes | 4-bit, with Act Order and group size 32g. Gives highest possible inference quality, with maximum VRAM usage. |
105
+ | [gptq-4bit-64g-actorder_True](https://huggingface.co/TheBloke/hippogriff-30b-chat-GPTQ/tree/gptq-4bit-64g-actorder_True) | 4 | 64 | Yes | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 18.18 GB | Yes | 4-bit, with Act Order and group size 64g. Uses less VRAM than 32g, but with slightly lower accuracy. |
106
+ | [gptq-4bit-128g-actorder_True](https://huggingface.co/TheBloke/hippogriff-30b-chat-GPTQ/tree/gptq-4bit-128g-actorder_True) | 4 | 128 | Yes | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 17.55 GB | Yes | 4-bit, with Act Order and group size 128g. Uses even less VRAM than 64g, but with slightly lower accuracy. |
107
+ | [gptq-8bit--1g-actorder_True](https://huggingface.co/TheBloke/hippogriff-30b-chat-GPTQ/tree/gptq-8bit--1g-actorder_True) | 8 | None | Yes | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 32.99 GB | No | 8-bit, with Act Order. No group size, to lower VRAM requirements. |
108
+ | [gptq-8bit-128g-actorder_False](https://huggingface.co/TheBloke/hippogriff-30b-chat-GPTQ/tree/gptq-8bit-128g-actorder_False) | 8 | 128 | No | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 33.73 GB | No | 8-bit, with group size 128g for higher inference quality and without Act Order to improve AutoGPTQ speed. |
109
+ | [gptq-3bit--1g-actorder_True](https://huggingface.co/TheBloke/hippogriff-30b-chat-GPTQ/tree/gptq-3bit--1g-actorder_True) | 3 | None | Yes | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 12.92 GB | No | 3-bit, with Act Order and no group size. Lowest possible VRAM requirements. May be lower quality than 3-bit 128g. |
110
+ | [gptq-3bit-128g-actorder_False](https://huggingface.co/TheBloke/hippogriff-30b-chat-GPTQ/tree/gptq-3bit-128g-actorder_False) | 3 | 128 | No | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 13.51 GB | No | 3-bit, with group size 128g but no act-order. Slightly higher VRAM requirements than 3-bit None. |
111
+
112
+ <!-- README_GPTQ.md-provided-files end -->
113
+
114
+ <!-- README_GPTQ.md-download-from-branches start -->
115
  ## How to download from branches
116
 
117
+ - In text-generation-webui, you can add `:branch` to the end of the download name, eg `TheBloke/hippogriff-30b-chat-GPTQ:main`
118
  - With Git, you can clone a branch with:
119
  ```
120
+ git clone --single-branch --branch main https://huggingface.co/TheBloke/hippogriff-30b-chat-GPTQ
121
  ```
122
  - In Python Transformers code, the branch is the `revision` parameter; see below.
123
+ <!-- README_GPTQ.md-download-from-branches end -->
124
+ <!-- README_GPTQ.md-text-generation-webui start -->
125
  ## How to easily download and use this model in [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
126
 
127
  Please make sure you're using the latest version of [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
128
 
129
+ It is strongly recommended to use the text-generation-webui one-click-installers unless you're sure you know how to make a manual install.
130
 
131
  1. Click the **Model tab**.
132
  2. Under **Download custom model or LoRA**, enter `TheBloke/hippogriff-30b-chat-GPTQ`.
133
+ - To download from a specific branch, enter for example `TheBloke/hippogriff-30b-chat-GPTQ:main`
134
  - see Provided Files above for the list of branches for each option.
135
  3. Click **Download**.
136
+ 4. The model will start downloading. Once it's finished it will say "Done".
137
  5. In the top left, click the refresh icon next to **Model**.
138
  6. In the **Model** dropdown, choose the model you just downloaded: `hippogriff-30b-chat-GPTQ`
139
  7. The model will automatically load, and is now ready for use!
140
  8. If you want any custom settings, set them and then click **Save settings for this model** followed by **Reload the Model** in the top right.
141
+ * Note that you do not need to and should not set manual GPTQ parameters any more. These are set automatically from the file `quantize_config.json`.
142
  9. Once you're ready, click the **Text Generation tab** and enter a prompt to get started!
143
+ <!-- README_GPTQ.md-text-generation-webui end -->
144
 
145
+ <!-- README_GPTQ.md-use-from-python start -->
146
  ## How to use this GPTQ model from Python code
147
 
148
+ ### Install the necessary packages
149
+
150
+ Requires: Transformers 4.32.0 or later, Optimum 1.12.0 or later, and AutoGPTQ 0.4.2 or later.
151
 
152
+ ```shell
153
+ pip3 install transformers>=4.32.0 optimum>=1.12.0
154
+ pip3 install auto-gptq --extra-index-url https://huggingface.github.io/autogptq-index/whl/cu118/ # Use cu117 if on CUDA 11.7
155
+ ```
156
+
157
+ If you have problems installing AutoGPTQ using the pre-built wheels, install it from source instead:
158
+
159
+ ```shell
160
+ pip3 uninstall -y auto-gptq
161
+ git clone https://github.com/PanQiWei/AutoGPTQ
162
+ cd AutoGPTQ
163
+ pip3 install .
164
+ ```
165
+
166
+ ### For CodeLlama models only: you must use Transformers 4.33.0 or later.
167
+
168
+ If 4.33.0 is not yet released when you read this, you will need to install Transformers from source:
169
+ ```shell
170
+ pip3 uninstall -y transformers
171
+ pip3 install git+https://github.com/huggingface/transformers.git
172
+ ```
173
 
174
+ ### You can then use the following code
175
 
176
  ```python
177
+ from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
 
178
 
179
  model_name_or_path = "TheBloke/hippogriff-30b-chat-GPTQ"
180
+ # To use a different branch, change revision
181
+ # For example: revision="main"
182
+ model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
183
+ device_map="auto",
184
+ trust_remote_code=False,
185
+ revision="main")
186
 
187
  tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
188
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
189
  prompt = "Tell me about AI"
190
+ prompt_template=f'''A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. USER: {prompt} ASSISTANT:
191
 
 
 
192
  '''
193
 
194
  print("\n\n*** Generate:")
195
 
196
  input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
197
+ output = model.generate(inputs=input_ids, temperature=0.7, do_sample=True, top_p=0.95, top_k=40, max_new_tokens=512)
198
  print(tokenizer.decode(output[0]))
199
 
200
  # Inference can also be done using transformers' pipeline
201
 
 
 
 
202
  print("*** Pipeline:")
203
  pipe = pipeline(
204
  "text-generation",
205
  model=model,
206
  tokenizer=tokenizer,
207
  max_new_tokens=512,
208
+ do_sample=True,
209
  temperature=0.7,
210
  top_p=0.95,
211
+ top_k=40,
212
+ repetition_penalty=1.1
213
  )
214
 
215
  print(pipe(prompt_template)[0]['generated_text'])
216
  ```
217
+ <!-- README_GPTQ.md-use-from-python end -->
218
 
219
+ <!-- README_GPTQ.md-compatibility start -->
220
  ## Compatibility
221
 
222
+ The files provided are tested to work with AutoGPTQ, both via Transformers and using AutoGPTQ directly. They should also work with [Occ4m's GPTQ-for-LLaMa fork](https://github.com/0cc4m/KoboldAI).
223
+
224
+ [ExLlama](https://github.com/turboderp/exllama) is compatible with Llama models in 4-bit. Please see the Provided Files table above for per-file compatibility.
225
 
226
+ [Huggingface Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference) is compatible with all GPTQ models.
227
+ <!-- README_GPTQ.md-compatibility end -->
228
 
229
  <!-- footer start -->
230
  <!-- 200823 -->
 
234
 
235
  [TheBloke AI's Discord server](https://discord.gg/theblokeai)
236
 
237
+ ## Thanks, and how to contribute
238
 
239
  Thanks to the [chirper.ai](https://chirper.ai) team!
240
 
241
+ Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
242
+
243
  I've had a lot of people ask if they can contribute. I enjoy providing models and helping people, and would love to be able to spend even more time doing it, as well as expanding into new projects like fine tuning/training.
244
 
245
  If you're able and willing to contribute it will be most gratefully received and will help me to keep providing more models, and to start work on new AI projects.
 
251
 
252
  **Special thanks to**: Aemon Algiz.
253
 
254
+ **Patreon special mentions**: Alicia Loh, Stephen Murray, K, Ajan Kanaga, RoA, Magnesian, Deo Leter, Olakabola, Eugene Pentland, zynix, Deep Realms, Raymond Fosdick, Elijah Stavena, Iucharbius, Erik Bjäreholt, Luis Javier Navarrete Lozano, Nicholas, theTransient, John Detwiler, alfie_i, knownsqashed, Mano Prime, Willem Michiel, Enrico Ros, LangChain4j, OG, Michael Dempsey, Pierre Kircher, Pedro Madruga, James Bentley, Thomas Belote, Luke @flexchar, Leonard Tan, Johann-Peter Hartmann, Illia Dulskyi, Fen Risland, Chadd, S_X, Jeff Scroggin, Ken Nordquist, Sean Connelly, Artur Olbinski, Swaroop Kallakuri, Jack West, Ai Maven, David Ziegler, Russ Johnson, transmissions 11, John Villwock, Alps Aficionado, Clay Pascal, Viktor Bowallius, Subspace Studios, Rainer Wilmers, Trenton Dambrowitz, vamX, Michael Levine, 준교 김, Brandon Frisco, Kalila, Trailburnt, Randy H, Talal Aujan, Nathan Dryer, Vadim, 阿明, ReadyPlayerEmma, Tiffany J. Kim, George Stoitzev, Spencer Kim, Jerry Meng, Gabriel Tamborski, Cory Kujawski, Jeffrey Morgan, Spiking Neurons AB, Edmond Seymore, Alexandros Triantafyllidis, Lone Striker, Cap'n Zoog, Nikolai Manek, danny, ya boyyy, Derek Yates, usrbinkat, Mandus, TL, Nathan LeClaire, subjectnull, Imad Khwaja, webtim, Raven Klaugh, Asp the Wyvern, Gabriel Puliatti, Caitlyn Gatomon, Joseph William Delisle, Jonathan Leane, Luke Pendergrass, SuperWojo, Sebastain Graf, Will Dee, Fred von Graf, Andrey, Dan Guido, Daniel P. Andersen, Nitin Borwankar, Elle, Vitor Caleffi, biorpg, jjj, NimbleBox.ai, Pieter, Matthew Berman, terasurfer, Michael Davis, Alex, Stanislav Ovsiannikov
255
 
256
 
257
  Thank you to all my generous patrons and donaters!
 
268
  [<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)
269
 
270
 
271
+ 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
272
  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.
273
 
274
  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)
 
279
 
280
  - OpenAssistant/oasst1 - cleaned dataset, similar to Guanaco
281
  - synthetic jokes generation and explanation derived from reddit jokes dataset
282
+ - synthetic prose generation and rewriting self-chat
283
  - Q&A based on provided context
284
  - self instruct augmented logic_inference_oa
285
  - de-duped pygmalion dataset, filtered down to RP data, cleaned, english only, 25%
286
+ - [riddle_sense](https://huggingface.co/datasets/riddle_sense) - instruct augmented
287
  - hellaswag, updated for detailed explanations w 30K+ rows
288
+ - [gsm8k](https://huggingface.co/datasets/gsm8k) - instruct augmented
289
  - [ewof/code-alpaca-instruct-unfiltered](https://huggingface.co/datasets/ewof/code-alpaca-instruct-unfiltered) synthetic self chat dataset derived from about 1000 rows
290
  - [subset of QingyiSi/Alpaca-CoT for roleplay and CoT](https://huggingface.co/QingyiSi/Alpaca-CoT)
291
  - [GPTeacher-General-Instruct](https://huggingface.co/datasets/teknium/GPTeacher-General-Instruct)
 
311
 
312
  ## Build
313
 
314
+ Hippogriff was built with [Axolotl](https://github.com/OpenAccess-AI-Collective/axolotl) on 8xA100 80GB
315
+ - 1.5 epochs taking approximately 12 hours. No further epochs will be released.
316
 
317
  ## Bias, Risks, and Limitations
318
 
319
  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).
320
  Hippogriff was fine-tuned from the base model LlaMa 30B, please refer to its model card's Limitations Section for relevant information.
321
 
322
+ 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,
323
+ 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
324
  not the token that produces the most "accurate" text. Never depend upon Hippogriff to produce factually accurate output.
325
 
326
  Llama was trained on the Pile, a dataset known to contain profanity, lewd, and otherwise abrasive language. Depending upon use case Hippogriff may produce
327
  socially unacceptable text. See Sections 5 and 6 of the Pile paper for a more detailed analysis of the biases in the Pile.
328
 
329
+ 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.
330
  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.
331
 
332
  ## Examples
 
335
 
336
  ```
337
  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.
338
+ 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.
339
 
340
  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.
341
  ```