TheBloke commited on
Commit
b731aef
1 Parent(s): b0c941c

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +389 -0
README.md ADDED
@@ -0,0 +1,389 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: OpenBuddy/openbuddy-zephyr-7b-v14.1
3
+ inference: false
4
+ license: apache-2.0
5
+ model_creator: OpenBuddy
6
+ model_name: Openbuddy Zephyr 7B v14.1
7
+ model_type: mistral
8
+ prompt_template: "You are a helpful, respectful and honest INTP-T AI Assistant named\
9
+ \ Buddy. You are talking to a human User.\nAlways answer as helpfully and logically\
10
+ \ as possible, while being safe. Your answers should not include any harmful, political,\
11
+ \ religious, unethical, racist, sexist, toxic, dangerous, or illegal content. Please\
12
+ \ ensure that your responses are socially unbiased and positive in nature.\nIf a\
13
+ \ question does not make any sense, or is not factually coherent, explain why instead\
14
+ \ of answering something not correct. If you don't know the answer to a question,\
15
+ \ please don't share false information.\nYou like to use emojis. You can speak fluently\
16
+ \ in many languages, for example: English, Chinese.\nYou cannot access the internet,\
17
+ \ but you have vast knowledge, cutoff: 2021-09.\nYou are trained by OpenBuddy team,\
18
+ \ (https://openbuddy.ai, https://github.com/OpenBuddy/OpenBuddy), you are based\
19
+ \ on LLaMA and Falcon transformers model, not related to GPT or OpenAI.\n\nUser:\
20
+ \ {prompt}\nAssistant: \n"
21
+ quantized_by: TheBloke
22
+ ---
23
+ <!-- markdownlint-disable MD041 -->
24
+
25
+ <!-- header start -->
26
+ <!-- 200823 -->
27
+ <div style="width: auto; margin-left: auto; margin-right: auto">
28
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
29
+ </div>
30
+ <div style="display: flex; justify-content: space-between; width: 100%;">
31
+ <div style="display: flex; flex-direction: column; align-items: flex-start;">
32
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
33
+ </div>
34
+ <div style="display: flex; flex-direction: column; align-items: flex-end;">
35
+ <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>
36
+ </div>
37
+ </div>
38
+ <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>
39
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
40
+ <!-- header end -->
41
+
42
+ # Openbuddy Zephyr 7B v14.1 - GPTQ
43
+ - Model creator: [OpenBuddy](https://huggingface.co/OpenBuddy)
44
+ - Original model: [Openbuddy Zephyr 7B v14.1](https://huggingface.co/OpenBuddy/openbuddy-zephyr-7b-v14.1)
45
+
46
+ <!-- description start -->
47
+ ## Description
48
+
49
+ This repo contains GPTQ model files for [OpenBuddy's Openbuddy Zephyr 7B v14.1](https://huggingface.co/OpenBuddy/openbuddy-zephyr-7b-v14.1).
50
+
51
+ 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.
52
+
53
+ These files were quantised using hardware kindly provided by [Massed Compute](https://massedcompute.com/).
54
+
55
+ <!-- description end -->
56
+ <!-- repositories-available start -->
57
+ ## Repositories available
58
+
59
+ * [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/openbuddy-zephyr-7B-v14.1-AWQ)
60
+ * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/openbuddy-zephyr-7B-v14.1-GPTQ)
61
+ * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/openbuddy-zephyr-7B-v14.1-GGUF)
62
+ * [OpenBuddy's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/OpenBuddy/openbuddy-zephyr-7b-v14.1)
63
+ <!-- repositories-available end -->
64
+
65
+ <!-- prompt-template start -->
66
+ ## Prompt template: OpenBuddy
67
+
68
+ ```
69
+ You are a helpful, respectful and honest INTP-T AI Assistant named Buddy. You are talking to a human User.
70
+ Always answer as helpfully and logically as possible, while being safe. Your answers should not include any harmful, political, religious, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature.
71
+ If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
72
+ You like to use emojis. You can speak fluently in many languages, for example: English, Chinese.
73
+ You cannot access the internet, but you have vast knowledge, cutoff: 2021-09.
74
+ You are trained by OpenBuddy team, (https://openbuddy.ai, https://github.com/OpenBuddy/OpenBuddy), you are based on LLaMA and Falcon transformers model, not related to GPT or OpenAI.
75
+
76
+ User: {prompt}
77
+ Assistant:
78
+
79
+ ```
80
+
81
+ <!-- prompt-template end -->
82
+
83
+
84
+
85
+ <!-- README_GPTQ.md-compatible clients start -->
86
+ ## Known compatible clients / servers
87
+
88
+ These GPTQ models are known to work in the following inference servers/webuis.
89
+
90
+ - [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
91
+ - [KoboldAI United](https://github.com/henk717/koboldai)
92
+ - [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui)
93
+ - [Hugging Face Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference)
94
+
95
+ This may not be a complete list; if you know of others, please let me know!
96
+ <!-- README_GPTQ.md-compatible clients end -->
97
+
98
+ <!-- README_GPTQ.md-provided-files start -->
99
+ ## Provided files, and GPTQ parameters
100
+
101
+ Multiple quantisation parameters are provided, to allow you to choose the best one for your hardware and requirements.
102
+
103
+ Each separate quant is in a different branch. See below for instructions on fetching from different branches.
104
+
105
+ Most GPTQ files are made with AutoGPTQ. Mistral models are currently made with Transformers.
106
+
107
+ <details>
108
+ <summary>Explanation of GPTQ parameters</summary>
109
+
110
+ - Bits: The bit size of the quantised model.
111
+ - GS: GPTQ group size. Higher numbers use less VRAM, but have lower quantisation accuracy. "None" is the lowest possible value.
112
+ - 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.
113
+ - Damp %: A GPTQ parameter that affects how samples are processed for quantisation. 0.01 is default, but 0.1 results in slightly better accuracy.
114
+ - GPTQ dataset: The calibration dataset used during quantisation. Using a dataset more appropriate to the model's training can improve quantisation accuracy. Note that the GPTQ calibration 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).
115
+ - 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.
116
+ - ExLlama Compatibility: Whether this file can be loaded with ExLlama, which currently only supports Llama and Mistral models in 4-bit.
117
+
118
+ </details>
119
+
120
+ | Branch | Bits | GS | Act Order | Damp % | GPTQ Dataset | Seq Len | Size | ExLlama | Desc |
121
+ | ------ | ---- | -- | --------- | ------ | ------------ | ------- | ---- | ------- | ---- |
122
+ | [main](https://huggingface.co/TheBloke/openbuddy-zephyr-7B-v14.1-GPTQ/tree/main) | 4 | 128 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 4.23 GB | Yes | 4-bit, with Act Order and group size 128g. Uses even less VRAM than 64g, but with slightly lower accuracy. |
123
+ | [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/openbuddy-zephyr-7B-v14.1-GPTQ/tree/gptq-4bit-32g-actorder_True) | 4 | 32 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 4.64 GB | Yes | 4-bit, with Act Order and group size 32g. Gives highest possible inference quality, with maximum VRAM usage. |
124
+ | [gptq-8bit--1g-actorder_True](https://huggingface.co/TheBloke/openbuddy-zephyr-7B-v14.1-GPTQ/tree/gptq-8bit--1g-actorder_True) | 8 | None | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 7.59 GB | No | 8-bit, with Act Order. No group size, to lower VRAM requirements. |
125
+ | [gptq-8bit-128g-actorder_True](https://huggingface.co/TheBloke/openbuddy-zephyr-7B-v14.1-GPTQ/tree/gptq-8bit-128g-actorder_True) | 8 | 128 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 7.75 GB | No | 8-bit, with group size 128g for higher inference quality and with Act Order for even higher accuracy. |
126
+ | [gptq-8bit-32g-actorder_True](https://huggingface.co/TheBloke/openbuddy-zephyr-7B-v14.1-GPTQ/tree/gptq-8bit-32g-actorder_True) | 8 | 32 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 8.24 GB | No | 8-bit, with group size 32g and Act Order for maximum inference quality. |
127
+ | [gptq-4bit-64g-actorder_True](https://huggingface.co/TheBloke/openbuddy-zephyr-7B-v14.1-GPTQ/tree/gptq-4bit-64g-actorder_True) | 4 | 64 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 4.37 GB | Yes | 4-bit, with Act Order and group size 64g. Uses less VRAM than 32g, but with slightly lower accuracy. |
128
+
129
+ <!-- README_GPTQ.md-provided-files end -->
130
+
131
+ <!-- README_GPTQ.md-download-from-branches start -->
132
+ ## How to download, including from branches
133
+
134
+ ### In text-generation-webui
135
+
136
+ To download from the `main` branch, enter `TheBloke/openbuddy-zephyr-7B-v14.1-GPTQ` in the "Download model" box.
137
+
138
+ To download from another branch, add `:branchname` to the end of the download name, eg `TheBloke/openbuddy-zephyr-7B-v14.1-GPTQ:gptq-4bit-32g-actorder_True`
139
+
140
+ ### From the command line
141
+
142
+ I recommend using the `huggingface-hub` Python library:
143
+
144
+ ```shell
145
+ pip3 install huggingface-hub
146
+ ```
147
+
148
+ To download the `main` branch to a folder called `openbuddy-zephyr-7B-v14.1-GPTQ`:
149
+
150
+ ```shell
151
+ mkdir openbuddy-zephyr-7B-v14.1-GPTQ
152
+ huggingface-cli download TheBloke/openbuddy-zephyr-7B-v14.1-GPTQ --local-dir openbuddy-zephyr-7B-v14.1-GPTQ --local-dir-use-symlinks False
153
+ ```
154
+
155
+ To download from a different branch, add the `--revision` parameter:
156
+
157
+ ```shell
158
+ mkdir openbuddy-zephyr-7B-v14.1-GPTQ
159
+ huggingface-cli download TheBloke/openbuddy-zephyr-7B-v14.1-GPTQ --revision gptq-4bit-32g-actorder_True --local-dir openbuddy-zephyr-7B-v14.1-GPTQ --local-dir-use-symlinks False
160
+ ```
161
+
162
+ <details>
163
+ <summary>More advanced huggingface-cli download usage</summary>
164
+
165
+ If you remove the `--local-dir-use-symlinks False` parameter, the files will instead be stored in the central Hugging Face cache directory (default location on Linux is: `~/.cache/huggingface`), and symlinks will be added to the specified `--local-dir`, pointing to their real location in the cache. This allows for interrupted downloads to be resumed, and allows you to quickly clone the repo to multiple places on disk without triggering a download again. The downside, and the reason why I don't list that as the default option, is that the files are then hidden away in a cache folder and it's harder to know where your disk space is being used, and to clear it up if/when you want to remove a download model.
166
+
167
+ The cache location can be changed with the `HF_HOME` environment variable, and/or the `--cache-dir` parameter to `huggingface-cli`.
168
+
169
+ For more documentation on downloading with `huggingface-cli`, please see: [HF -> Hub Python Library -> Download files -> Download from the CLI](https://huggingface.co/docs/huggingface_hub/guides/download#download-from-the-cli).
170
+
171
+ To accelerate downloads on fast connections (1Gbit/s or higher), install `hf_transfer`:
172
+
173
+ ```shell
174
+ pip3 install hf_transfer
175
+ ```
176
+
177
+ And set environment variable `HF_HUB_ENABLE_HF_TRANSFER` to `1`:
178
+
179
+ ```shell
180
+ mkdir openbuddy-zephyr-7B-v14.1-GPTQ
181
+ HF_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download TheBloke/openbuddy-zephyr-7B-v14.1-GPTQ --local-dir openbuddy-zephyr-7B-v14.1-GPTQ --local-dir-use-symlinks False
182
+ ```
183
+
184
+ Windows Command Line users: You can set the environment variable by running `set HF_HUB_ENABLE_HF_TRANSFER=1` before the download command.
185
+ </details>
186
+
187
+ ### With `git` (**not** recommended)
188
+
189
+ To clone a specific branch with `git`, use a command like this:
190
+
191
+ ```shell
192
+ git clone --single-branch --branch gptq-4bit-32g-actorder_True https://huggingface.co/TheBloke/openbuddy-zephyr-7B-v14.1-GPTQ
193
+ ```
194
+
195
+ Note that using Git with HF repos is strongly discouraged. It will be much slower than using `huggingface-hub`, and will use twice as much disk space as it has to store the model files twice (it stores every byte both in the intended target folder, and again in the `.git` folder as a blob.)
196
+
197
+ <!-- README_GPTQ.md-download-from-branches end -->
198
+ <!-- README_GPTQ.md-text-generation-webui start -->
199
+ ## How to easily download and use this model in [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
200
+
201
+ Please make sure you're using the latest version of [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
202
+
203
+ 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.
204
+
205
+ 1. Click the **Model tab**.
206
+ 2. Under **Download custom model or LoRA**, enter `TheBloke/openbuddy-zephyr-7B-v14.1-GPTQ`.
207
+
208
+ - To download from a specific branch, enter for example `TheBloke/openbuddy-zephyr-7B-v14.1-GPTQ:gptq-4bit-32g-actorder_True`
209
+ - see Provided Files above for the list of branches for each option.
210
+
211
+ 3. Click **Download**.
212
+ 4. The model will start downloading. Once it's finished it will say "Done".
213
+ 5. In the top left, click the refresh icon next to **Model**.
214
+ 6. In the **Model** dropdown, choose the model you just downloaded: `openbuddy-zephyr-7B-v14.1-GPTQ`
215
+ 7. The model will automatically load, and is now ready for use!
216
+ 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.
217
+
218
+ - 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`.
219
+
220
+ 9. Once you're ready, click the **Text Generation** tab and enter a prompt to get started!
221
+
222
+ <!-- README_GPTQ.md-text-generation-webui end -->
223
+
224
+ <!-- README_GPTQ.md-use-from-tgi start -->
225
+ ## Serving this model from Text Generation Inference (TGI)
226
+
227
+ It's recommended to use TGI version 1.1.0 or later. The official Docker container is: `ghcr.io/huggingface/text-generation-inference:1.1.0`
228
+
229
+ Example Docker parameters:
230
+
231
+ ```shell
232
+ --model-id TheBloke/openbuddy-zephyr-7B-v14.1-GPTQ --port 3000 --quantize gptq --max-input-length 3696 --max-total-tokens 4096 --max-batch-prefill-tokens 4096
233
+ ```
234
+
235
+ Example Python code for interfacing with TGI (requires huggingface-hub 0.17.0 or later):
236
+
237
+ ```shell
238
+ pip3 install huggingface-hub
239
+ ```
240
+
241
+ ```python
242
+ from huggingface_hub import InferenceClient
243
+
244
+ endpoint_url = "https://your-endpoint-url-here"
245
+
246
+ prompt = "Tell me about AI"
247
+ prompt_template=f'''You are a helpful, respectful and honest INTP-T AI Assistant named Buddy. You are talking to a human User.
248
+ Always answer as helpfully and logically as possible, while being safe. Your answers should not include any harmful, political, religious, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature.
249
+ If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
250
+ You like to use emojis. You can speak fluently in many languages, for example: English, Chinese.
251
+ You cannot access the internet, but you have vast knowledge, cutoff: 2021-09.
252
+ You are trained by OpenBuddy team, (https://openbuddy.ai, https://github.com/OpenBuddy/OpenBuddy), you are based on LLaMA and Falcon transformers model, not related to GPT or OpenAI.
253
+
254
+ User: {prompt}
255
+ Assistant:
256
+ '''
257
+
258
+ client = InferenceClient(endpoint_url)
259
+ response = client.text_generation(prompt,
260
+ max_new_tokens=128,
261
+ do_sample=True,
262
+ temperature=0.7,
263
+ top_p=0.95,
264
+ top_k=40,
265
+ repetition_penalty=1.1)
266
+
267
+ print(f"Model output: {response}")
268
+ ```
269
+ <!-- README_GPTQ.md-use-from-tgi end -->
270
+ <!-- README_GPTQ.md-use-from-python start -->
271
+ ## How to use this GPTQ model from Python code
272
+
273
+ ### Install the necessary packages
274
+
275
+ Requires: Transformers 4.33.0 or later, Optimum 1.12.0 or later, and AutoGPTQ 0.4.2 or later.
276
+
277
+ ```shell
278
+ pip3 install transformers optimum
279
+ pip3 install auto-gptq --extra-index-url https://huggingface.github.io/autogptq-index/whl/cu118/ # Use cu117 if on CUDA 11.7
280
+ ```
281
+
282
+ If you have problems installing AutoGPTQ using the pre-built wheels, install it from source instead:
283
+
284
+ ```shell
285
+ pip3 uninstall -y auto-gptq
286
+ git clone https://github.com/PanQiWei/AutoGPTQ
287
+ cd AutoGPTQ
288
+ git checkout v0.4.2
289
+ pip3 install .
290
+ ```
291
+
292
+ ### You can then use the following code
293
+
294
+ ```python
295
+ from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
296
+
297
+ model_name_or_path = "TheBloke/openbuddy-zephyr-7B-v14.1-GPTQ"
298
+ # To use a different branch, change revision
299
+ # For example: revision="gptq-4bit-32g-actorder_True"
300
+ model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
301
+ device_map="auto",
302
+ trust_remote_code=False,
303
+ revision="main")
304
+
305
+ tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
306
+
307
+ prompt = "Tell me about AI"
308
+ prompt_template=f'''You are a helpful, respectful and honest INTP-T AI Assistant named Buddy. You are talking to a human User.
309
+ Always answer as helpfully and logically as possible, while being safe. Your answers should not include any harmful, political, religious, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature.
310
+ If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
311
+ You like to use emojis. You can speak fluently in many languages, for example: English, Chinese.
312
+ You cannot access the internet, but you have vast knowledge, cutoff: 2021-09.
313
+ You are trained by OpenBuddy team, (https://openbuddy.ai, https://github.com/OpenBuddy/OpenBuddy), you are based on LLaMA and Falcon transformers model, not related to GPT or OpenAI.
314
+
315
+ User: {prompt}
316
+ Assistant:
317
+ '''
318
+
319
+ print("\n\n*** Generate:")
320
+
321
+ input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
322
+ output = model.generate(inputs=input_ids, temperature=0.7, do_sample=True, top_p=0.95, top_k=40, max_new_tokens=512)
323
+ print(tokenizer.decode(output[0]))
324
+
325
+ # Inference can also be done using transformers' pipeline
326
+
327
+ print("*** Pipeline:")
328
+ pipe = pipeline(
329
+ "text-generation",
330
+ model=model,
331
+ tokenizer=tokenizer,
332
+ max_new_tokens=512,
333
+ do_sample=True,
334
+ temperature=0.7,
335
+ top_p=0.95,
336
+ top_k=40,
337
+ repetition_penalty=1.1
338
+ )
339
+
340
+ print(pipe(prompt_template)[0]['generated_text'])
341
+ ```
342
+ <!-- README_GPTQ.md-use-from-python end -->
343
+
344
+ <!-- README_GPTQ.md-compatibility start -->
345
+ ## Compatibility
346
+
347
+ The files provided are tested to work with Transformers. For non-Mistral models, AutoGPTQ can also be used directly.
348
+
349
+ [ExLlama](https://github.com/turboderp/exllama) is compatible with Llama and Mistral models in 4-bit. Please see the Provided Files table above for per-file compatibility.
350
+
351
+ For a list of clients/servers, please see "Known compatible clients / servers", above.
352
+ <!-- README_GPTQ.md-compatibility end -->
353
+
354
+ <!-- footer start -->
355
+ <!-- 200823 -->
356
+ ## Discord
357
+
358
+ For further support, and discussions on these models and AI in general, join us at:
359
+
360
+ [TheBloke AI's Discord server](https://discord.gg/theblokeai)
361
+
362
+ ## Thanks, and how to contribute
363
+
364
+ Thanks to the [chirper.ai](https://chirper.ai) team!
365
+
366
+ Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
367
+
368
+ 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.
369
+
370
+ 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.
371
+
372
+ Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
373
+
374
+ * Patreon: https://patreon.com/TheBlokeAI
375
+ * Ko-Fi: https://ko-fi.com/TheBlokeAI
376
+
377
+ **Special thanks to**: Aemon Algiz.
378
+
379
+ **Patreon special mentions**: Brandon Frisco, LangChain4j, Spiking Neurons AB, transmissions 11, Joseph William Delisle, Nitin Borwankar, Willem Michiel, Michael Dempsey, vamX, Jeffrey Morgan, zynix, jjj, Omer Bin Jawed, Sean Connelly, jinyuan sun, Jeromy Smith, Shadi, Pawan Osman, Chadd, Elijah Stavena, Illia Dulskyi, Sebastain Graf, Stephen Murray, terasurfer, Edmond Seymore, Celu Ramasamy, Mandus, Alex, biorpg, Ajan Kanaga, Clay Pascal, Raven Klaugh, 阿明, K, ya boyyy, usrbinkat, Alicia Loh, John Villwock, ReadyPlayerEmma, Chris Smitley, Cap'n Zoog, fincy, GodLy, S_X, sidney chen, Cory Kujawski, OG, Mano Prime, AzureBlack, Pieter, Kalila, Spencer Kim, Tom X Nguyen, Stanislav Ovsiannikov, Michael Levine, Andrey, Trailburnt, Vadim, Enrico Ros, Talal Aujan, Brandon Phillips, Jack West, Eugene Pentland, Michael Davis, Will Dee, webtim, Jonathan Leane, Alps Aficionado, Rooh Singh, Tiffany J. Kim, theTransient, Luke @flexchar, Elle, Caitlyn Gatomon, Ari Malik, subjectnull, Johann-Peter Hartmann, Trenton Dambrowitz, Imad Khwaja, Asp the Wyvern, Emad Mostaque, Rainer Wilmers, Alexandros Triantafyllidis, Nicholas, Pedro Madruga, SuperWojo, Harry Royden McLaughlin, James Bentley, Olakabola, David Ziegler, Ai Maven, Jeff Scroggin, Nikolai Manek, Deo Leter, Matthew Berman, Fen Risland, Ken Nordquist, Manuel Alberto Morcote, Luke Pendergrass, TL, Fred von Graf, Randy H, Dan Guido, NimbleBox.ai, Vitor Caleffi, Gabriel Tamborski, knownsqashed, Lone Striker, Erik Bjäreholt, John Detwiler, Leonard Tan, Iucharbius
380
+
381
+
382
+ Thank you to all my generous patrons and donaters!
383
+
384
+ And thank you again to a16z for their generous grant.
385
+
386
+ <!-- footer end -->
387
+
388
+ # Original model card: OpenBuddy's Openbuddy Zephyr 7B v14.1
389
+