TheBloke commited on
Commit
bd48c4e
1 Parent(s): 4da8ca2

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +384 -0
README.md ADDED
@@ -0,0 +1,384 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: crumb/apricot-wildflower-20
3
+ inference: false
4
+ license: apache-2.0
5
+ model_creator: Maxine
6
+ model_name: Apricot Wildflower 20
7
+ model_type: mistral
8
+ prompt_template: '{prompt}
9
+
10
+ '
11
+ quantized_by: TheBloke
12
+ ---
13
+ <!-- markdownlint-disable MD041 -->
14
+
15
+ <!-- header start -->
16
+ <!-- 200823 -->
17
+ <div style="width: auto; margin-left: auto; margin-right: auto">
18
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
19
+ </div>
20
+ <div style="display: flex; justify-content: space-between; width: 100%;">
21
+ <div style="display: flex; flex-direction: column; align-items: flex-start;">
22
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
23
+ </div>
24
+ <div style="display: flex; flex-direction: column; align-items: flex-end;">
25
+ <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>
26
+ </div>
27
+ </div>
28
+ <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>
29
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
30
+ <!-- header end -->
31
+
32
+ # Apricot Wildflower 20 - GPTQ
33
+ - Model creator: [Maxine](https://huggingface.co/crumb)
34
+ - Original model: [Apricot Wildflower 20](https://huggingface.co/crumb/apricot-wildflower-20)
35
+
36
+ <!-- description start -->
37
+ # Description
38
+
39
+ This repo contains GPTQ model files for [Maxine's Apricot Wildflower 20](https://huggingface.co/crumb/apricot-wildflower-20).
40
+
41
+ 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.
42
+
43
+ These files were quantised using hardware kindly provided by [Massed Compute](https://massedcompute.com/).
44
+
45
+ <!-- description end -->
46
+ <!-- repositories-available start -->
47
+ ## Repositories available
48
+
49
+ * [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/apricot-wildflower-20-AWQ)
50
+ * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/apricot-wildflower-20-GPTQ)
51
+ * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/apricot-wildflower-20-GGUF)
52
+ * [Maxine's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/crumb/apricot-wildflower-20)
53
+ <!-- repositories-available end -->
54
+
55
+ <!-- prompt-template start -->
56
+ ## Prompt template: None
57
+
58
+ ```
59
+ {prompt}
60
+
61
+ ```
62
+
63
+ <!-- prompt-template end -->
64
+
65
+
66
+
67
+ <!-- README_GPTQ.md-compatible clients start -->
68
+ ## Known compatible clients / servers
69
+
70
+ GPTQ models are currently supported on Linux (NVidia/AMD) and Windows (NVidia only). macOS users: please use GGUF models.
71
+
72
+ These GPTQ models are known to work in the following inference servers/webuis.
73
+
74
+ - [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
75
+ - [KoboldAI United](https://github.com/henk717/koboldai)
76
+ - [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui)
77
+ - [Hugging Face Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference)
78
+
79
+ This may not be a complete list; if you know of others, please let me know!
80
+ <!-- README_GPTQ.md-compatible clients end -->
81
+
82
+ <!-- README_GPTQ.md-provided-files start -->
83
+ ## Provided files, and GPTQ parameters
84
+
85
+ Multiple quantisation parameters are provided, to allow you to choose the best one for your hardware and requirements.
86
+
87
+ Each separate quant is in a different branch. See below for instructions on fetching from different branches.
88
+
89
+ Most GPTQ files are made with AutoGPTQ. Mistral models are currently made with Transformers.
90
+
91
+ <details>
92
+ <summary>Explanation of GPTQ parameters</summary>
93
+
94
+ - Bits: The bit size of the quantised model.
95
+ - GS: GPTQ group size. Higher numbers use less VRAM, but have lower quantisation accuracy. "None" is the lowest possible value.
96
+ - 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.
97
+ - Damp %: A GPTQ parameter that affects how samples are processed for quantisation. 0.01 is default, but 0.1 results in slightly better accuracy.
98
+ - 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).
99
+ - 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.
100
+ - ExLlama Compatibility: Whether this file can be loaded with ExLlama, which currently only supports Llama and Mistral models in 4-bit.
101
+
102
+ </details>
103
+
104
+ | Branch | Bits | GS | Act Order | Damp % | GPTQ Dataset | Seq Len | Size | ExLlama | Desc |
105
+ | ------ | ---- | -- | --------- | ------ | ------------ | ------- | ---- | ------- | ---- |
106
+ | [main](https://huggingface.co/TheBloke/apricot-wildflower-20-GPTQ/tree/main) | 4 | 128 | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 4096 | 4.16 GB | Yes | 4-bit, with Act Order and group size 128g. Uses even less VRAM than 64g, but with slightly lower accuracy. |
107
+ | [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/apricot-wildflower-20-GPTQ/tree/gptq-4bit-32g-actorder_True) | 4 | 32 | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 4096 | 4.57 GB | Yes | 4-bit, with Act Order and group size 32g. Gives highest possible inference quality, with maximum VRAM usage. |
108
+ | [gptq-8bit--1g-actorder_True](https://huggingface.co/TheBloke/apricot-wildflower-20-GPTQ/tree/gptq-8bit--1g-actorder_True) | 8 | None | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 4096 | 7.52 GB | No | 8-bit, with Act Order. No group size, to lower VRAM requirements. |
109
+ | [gptq-8bit-128g-actorder_True](https://huggingface.co/TheBloke/apricot-wildflower-20-GPTQ/tree/gptq-8bit-128g-actorder_True) | 8 | 128 | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 4096 | 7.68 GB | No | 8-bit, with group size 128g for higher inference quality and with Act Order for even higher accuracy. |
110
+ | [gptq-8bit-32g-actorder_True](https://huggingface.co/TheBloke/apricot-wildflower-20-GPTQ/tree/gptq-8bit-32g-actorder_True) | 8 | 32 | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 4096 | 8.17 GB | No | 8-bit, with group size 32g and Act Order for maximum inference quality. |
111
+ | [gptq-4bit-64g-actorder_True](https://huggingface.co/TheBloke/apricot-wildflower-20-GPTQ/tree/gptq-4bit-64g-actorder_True) | 4 | 64 | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 4096 | 4.29 GB | Yes | 4-bit, with Act Order and group size 64g. Uses less VRAM than 32g, but with slightly lower accuracy. |
112
+
113
+ <!-- README_GPTQ.md-provided-files end -->
114
+
115
+ <!-- README_GPTQ.md-download-from-branches start -->
116
+ ## How to download, including from branches
117
+
118
+ ### In text-generation-webui
119
+
120
+ To download from the `main` branch, enter `TheBloke/apricot-wildflower-20-GPTQ` in the "Download model" box.
121
+
122
+ To download from another branch, add `:branchname` to the end of the download name, eg `TheBloke/apricot-wildflower-20-GPTQ:gptq-4bit-32g-actorder_True`
123
+
124
+ ### From the command line
125
+
126
+ I recommend using the `huggingface-hub` Python library:
127
+
128
+ ```shell
129
+ pip3 install huggingface-hub
130
+ ```
131
+
132
+ To download the `main` branch to a folder called `apricot-wildflower-20-GPTQ`:
133
+
134
+ ```shell
135
+ mkdir apricot-wildflower-20-GPTQ
136
+ huggingface-cli download TheBloke/apricot-wildflower-20-GPTQ --local-dir apricot-wildflower-20-GPTQ --local-dir-use-symlinks False
137
+ ```
138
+
139
+ To download from a different branch, add the `--revision` parameter:
140
+
141
+ ```shell
142
+ mkdir apricot-wildflower-20-GPTQ
143
+ huggingface-cli download TheBloke/apricot-wildflower-20-GPTQ --revision gptq-4bit-32g-actorder_True --local-dir apricot-wildflower-20-GPTQ --local-dir-use-symlinks False
144
+ ```
145
+
146
+ <details>
147
+ <summary>More advanced huggingface-cli download usage</summary>
148
+
149
+ 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.
150
+
151
+ The cache location can be changed with the `HF_HOME` environment variable, and/or the `--cache-dir` parameter to `huggingface-cli`.
152
+
153
+ 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).
154
+
155
+ To accelerate downloads on fast connections (1Gbit/s or higher), install `hf_transfer`:
156
+
157
+ ```shell
158
+ pip3 install hf_transfer
159
+ ```
160
+
161
+ And set environment variable `HF_HUB_ENABLE_HF_TRANSFER` to `1`:
162
+
163
+ ```shell
164
+ mkdir apricot-wildflower-20-GPTQ
165
+ HF_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download TheBloke/apricot-wildflower-20-GPTQ --local-dir apricot-wildflower-20-GPTQ --local-dir-use-symlinks False
166
+ ```
167
+
168
+ Windows Command Line users: You can set the environment variable by running `set HF_HUB_ENABLE_HF_TRANSFER=1` before the download command.
169
+ </details>
170
+
171
+ ### With `git` (**not** recommended)
172
+
173
+ To clone a specific branch with `git`, use a command like this:
174
+
175
+ ```shell
176
+ git clone --single-branch --branch gptq-4bit-32g-actorder_True https://huggingface.co/TheBloke/apricot-wildflower-20-GPTQ
177
+ ```
178
+
179
+ 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.)
180
+
181
+ <!-- README_GPTQ.md-download-from-branches end -->
182
+ <!-- README_GPTQ.md-text-generation-webui start -->
183
+ ## How to easily download and use this model in [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
184
+
185
+ Please make sure you're using the latest version of [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
186
+
187
+ 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.
188
+
189
+ 1. Click the **Model tab**.
190
+ 2. Under **Download custom model or LoRA**, enter `TheBloke/apricot-wildflower-20-GPTQ`.
191
+
192
+ - To download from a specific branch, enter for example `TheBloke/apricot-wildflower-20-GPTQ:gptq-4bit-32g-actorder_True`
193
+ - see Provided Files above for the list of branches for each option.
194
+
195
+ 3. Click **Download**.
196
+ 4. The model will start downloading. Once it's finished it will say "Done".
197
+ 5. In the top left, click the refresh icon next to **Model**.
198
+ 6. In the **Model** dropdown, choose the model you just downloaded: `apricot-wildflower-20-GPTQ`
199
+ 7. The model will automatically load, and is now ready for use!
200
+ 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.
201
+
202
+ - 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`.
203
+
204
+ 9. Once you're ready, click the **Text Generation** tab and enter a prompt to get started!
205
+
206
+ <!-- README_GPTQ.md-text-generation-webui end -->
207
+
208
+ <!-- README_GPTQ.md-use-from-tgi start -->
209
+ ## Serving this model from Text Generation Inference (TGI)
210
+
211
+ 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`
212
+
213
+ Example Docker parameters:
214
+
215
+ ```shell
216
+ --model-id TheBloke/apricot-wildflower-20-GPTQ --port 3000 --quantize gptq --max-input-length 3696 --max-total-tokens 4096 --max-batch-prefill-tokens 4096
217
+ ```
218
+
219
+ Example Python code for interfacing with TGI (requires huggingface-hub 0.17.0 or later):
220
+
221
+ ```shell
222
+ pip3 install huggingface-hub
223
+ ```
224
+
225
+ ```python
226
+ from huggingface_hub import InferenceClient
227
+
228
+ endpoint_url = "https://your-endpoint-url-here"
229
+
230
+ prompt = "Tell me about AI"
231
+ prompt_template=f'''{prompt}
232
+ '''
233
+
234
+ client = InferenceClient(endpoint_url)
235
+ response = client.text_generation(
236
+ prompt_template,
237
+ max_new_tokens=128,
238
+ do_sample=True,
239
+ temperature=0.7,
240
+ top_p=0.95,
241
+ top_k=40,
242
+ repetition_penalty=1.1
243
+ )
244
+
245
+ print(f"Model output: {response}")
246
+ ```
247
+ <!-- README_GPTQ.md-use-from-tgi end -->
248
+ <!-- README_GPTQ.md-use-from-python start -->
249
+ ## Python code example: inference from this GPTQ model
250
+
251
+ ### Install the necessary packages
252
+
253
+ Requires: Transformers 4.33.0 or later, Optimum 1.12.0 or later, and AutoGPTQ 0.4.2 or later.
254
+
255
+ ```shell
256
+ pip3 install --upgrade transformers optimum
257
+ # If using PyTorch 2.1 + CUDA 12.x:
258
+ pip3 install --upgrade auto-gptq
259
+ # or, if using PyTorch 2.1 + CUDA 11.x:
260
+ pip3 install --upgrade auto-gptq --extra-index-url https://huggingface.github.io/autogptq-index/whl/cu118/
261
+ ```
262
+
263
+ If you are using PyTorch 2.0, you will need to install AutoGPTQ from source. Likewise if you have problems with the pre-built wheels, you should try building from source:
264
+
265
+ ```shell
266
+ pip3 uninstall -y auto-gptq
267
+ git clone https://github.com/PanQiWei/AutoGPTQ
268
+ cd AutoGPTQ
269
+ git checkout v0.5.1
270
+ pip3 install .
271
+ ```
272
+
273
+ ### Example Python code
274
+
275
+ ```python
276
+ from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
277
+
278
+ model_name_or_path = "TheBloke/apricot-wildflower-20-GPTQ"
279
+ # To use a different branch, change revision
280
+ # For example: revision="gptq-4bit-32g-actorder_True"
281
+ model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
282
+ device_map="auto",
283
+ trust_remote_code=False,
284
+ revision="main")
285
+
286
+ tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
287
+
288
+ prompt = "Write a story about llamas"
289
+ system_message = "You are a story writing assistant"
290
+ prompt_template=f'''{prompt}
291
+ '''
292
+
293
+ print("\n\n*** Generate:")
294
+
295
+ input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
296
+ output = model.generate(inputs=input_ids, temperature=0.7, do_sample=True, top_p=0.95, top_k=40, max_new_tokens=512)
297
+ print(tokenizer.decode(output[0]))
298
+
299
+ # Inference can also be done using transformers' pipeline
300
+
301
+ print("*** Pipeline:")
302
+ pipe = pipeline(
303
+ "text-generation",
304
+ model=model,
305
+ tokenizer=tokenizer,
306
+ max_new_tokens=512,
307
+ do_sample=True,
308
+ temperature=0.7,
309
+ top_p=0.95,
310
+ top_k=40,
311
+ repetition_penalty=1.1
312
+ )
313
+
314
+ print(pipe(prompt_template)[0]['generated_text'])
315
+ ```
316
+ <!-- README_GPTQ.md-use-from-python end -->
317
+
318
+ <!-- README_GPTQ.md-compatibility start -->
319
+ ## Compatibility
320
+
321
+ The files provided are tested to work with Transformers. For non-Mistral models, AutoGPTQ can also be used directly.
322
+
323
+ [ExLlama](https://github.com/turboderp/exllama) is compatible with Llama architecture models (including Mistral, Yi, DeepSeek, SOLAR, etc) in 4-bit. Please see the Provided Files table above for per-file compatibility.
324
+
325
+ For a list of clients/servers, please see "Known compatible clients / servers", above.
326
+ <!-- README_GPTQ.md-compatibility end -->
327
+
328
+ <!-- footer start -->
329
+ <!-- 200823 -->
330
+ ## Discord
331
+
332
+ For further support, and discussions on these models and AI in general, join us at:
333
+
334
+ [TheBloke AI's Discord server](https://discord.gg/theblokeai)
335
+
336
+ ## Thanks, and how to contribute
337
+
338
+ Thanks to the [chirper.ai](https://chirper.ai) team!
339
+
340
+ Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
341
+
342
+ 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.
343
+
344
+ 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.
345
+
346
+ Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
347
+
348
+ * Patreon: https://patreon.com/TheBlokeAI
349
+ * Ko-Fi: https://ko-fi.com/TheBlokeAI
350
+
351
+ **Special thanks to**: Aemon Algiz.
352
+
353
+ **Patreon special mentions**: Michael Levine, 阿明, Trailburnt, Nikolai Manek, John Detwiler, Randy H, Will Dee, Sebastain Graf, NimbleBox.ai, Eugene Pentland, Emad Mostaque, Ai Maven, Jim Angel, Jeff Scroggin, Michael Davis, Manuel Alberto Morcote, Stephen Murray, Robert, Justin Joy, Luke @flexchar, Brandon Frisco, Elijah Stavena, S_X, Dan Guido, Undi ., Komninos Chatzipapas, Shadi, theTransient, Lone Striker, Raven Klaugh, jjj, Cap'n Zoog, Michel-Marie MAUDET (LINAGORA), Matthew Berman, David, Fen Risland, Omer Bin Jawed, Luke Pendergrass, Kalila, OG, Erik Bjäreholt, Rooh Singh, Joseph William Delisle, Dan Lewis, TL, John Villwock, AzureBlack, Brad, Pedro Madruga, Caitlyn Gatomon, K, jinyuan sun, Mano Prime, Alex, Jeffrey Morgan, Alicia Loh, Illia Dulskyi, Chadd, transmissions 11, fincy, Rainer Wilmers, ReadyPlayerEmma, knownsqashed, Mandus, biorpg, Deo Leter, Brandon Phillips, SuperWojo, Sean Connelly, Iucharbius, Jack West, Harry Royden McLaughlin, Nicholas, terasurfer, Vitor Caleffi, Duane Dunston, Johann-Peter Hartmann, David Ziegler, Olakabola, Ken Nordquist, Trenton Dambrowitz, Tom X Nguyen, Vadim, Ajan Kanaga, Leonard Tan, Clay Pascal, Alexandros Triantafyllidis, JM33133, Xule, vamX, ya boyyy, subjectnull, Talal Aujan, Alps Aficionado, wassieverse, Ari Malik, James Bentley, Woland, Spencer Kim, Michael Dempsey, Fred von Graf, Elle, zynix, William Richards, Stanislav Ovsiannikov, Edmond Seymore, Jonathan Leane, Martin Kemka, usrbinkat, Enrico Ros
354
+
355
+
356
+ Thank you to all my generous patrons and donaters!
357
+
358
+ And thank you again to a16z for their generous grant.
359
+
360
+ <!-- footer end -->
361
+
362
+ # Original model card: Maxine's Apricot Wildflower 20
363
+
364
+
365
+ # apricot-wildflower-20
366
+
367
+ This model is the Mistral-7b model finetuned for 1k steps with a combined lm loss and distillation loss on Openwebtext2 with a >=20 reddit score filter with training logits from Mixtral. I'm not going to pretend it was a big project I did it in a dream and woke up and replicated the code without any actual reason, idk how well it fares in benchmarks.
368
+
369
+ ### use
370
+ ```python
371
+ from transformers import AutoModelForCausalLM, AutoTokenizer
372
+
373
+ model_id = "crumb/apricot-wildflower-20"
374
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
375
+
376
+ model = AutoModelForCausalLM.from_pretrained(model_id, low_cpu_mem_usage=True, device_map="auto", load_in_8bit=True)
377
+
378
+ text = "Hello my name is"
379
+ inputs = tokenizer(text, return_tensors="pt")
380
+
381
+ outputs = model.generate(**inputs, max_new_tokens=128)
382
+ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
383
+ # Hello my name is Katie and I am a 20 year old student from the UK. I am currently studying for a degree in English Literature and Creative Writing at the University of Leeds. I am a huge fan of the Harry Potter series and have been since I was 10 years old. I have read the books countless times and have seen the films many times too. I am a huge fan of the Harry Potter fandom and have been a member of the Harry Potter forums for a few years now. I am also a member of the Harry Potter fan club and have been for a few years now. I
384
+ ```