TheBloke commited on
Commit
54e005d
1 Parent(s): 291b0bd

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +602 -0
README.md ADDED
@@ -0,0 +1,602 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Undi95/UtopiaXL-13B
3
+ inference: false
4
+ license: cc-by-nc-4.0
5
+ model_creator: Undi
6
+ model_name: UtopiaXL 13B
7
+ model_type: llama
8
+ prompt_template: 'Below is an instruction that describes a task. Write a response
9
+ that appropriately completes the request.
10
+
11
+
12
+ ### Instruction:
13
+
14
+ {prompt}
15
+
16
+
17
+ ### Response:
18
+
19
+ '
20
+ quantized_by: TheBloke
21
+ tags:
22
+ - not-for-all-audiences
23
+ - nsfw
24
+ ---
25
+ <!-- markdownlint-disable MD041 -->
26
+
27
+ <!-- header start -->
28
+ <!-- 200823 -->
29
+ <div style="width: auto; margin-left: auto; margin-right: auto">
30
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
31
+ </div>
32
+ <div style="display: flex; justify-content: space-between; width: 100%;">
33
+ <div style="display: flex; flex-direction: column; align-items: flex-start;">
34
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
35
+ </div>
36
+ <div style="display: flex; flex-direction: column; align-items: flex-end;">
37
+ <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>
38
+ </div>
39
+ </div>
40
+ <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>
41
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
42
+ <!-- header end -->
43
+
44
+ # UtopiaXL 13B - GPTQ
45
+ - Model creator: [Undi](https://huggingface.co/Undi95)
46
+ - Original model: [UtopiaXL 13B](https://huggingface.co/Undi95/UtopiaXL-13B)
47
+
48
+ <!-- description start -->
49
+ ## Description
50
+
51
+ This repo contains GPTQ model files for [Undi's UtopiaXL 13B](https://huggingface.co/Undi95/UtopiaXL-13B).
52
+
53
+ 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.
54
+
55
+ These files were quantised using hardware kindly provided by [Massed Compute](https://massedcompute.com/).
56
+
57
+ <!-- description end -->
58
+ <!-- repositories-available start -->
59
+ ## Repositories available
60
+
61
+ * [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/UtopiaXL-13B-AWQ)
62
+ * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/UtopiaXL-13B-GPTQ)
63
+ * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/UtopiaXL-13B-GGUF)
64
+ * [Undi's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/Undi95/UtopiaXL-13B)
65
+ <!-- repositories-available end -->
66
+
67
+ <!-- prompt-template start -->
68
+ ## Prompt template: Alpaca
69
+
70
+ ```
71
+ Below is an instruction that describes a task. Write a response that appropriately completes the request.
72
+
73
+ ### Instruction:
74
+ {prompt}
75
+
76
+ ### Response:
77
+
78
+ ```
79
+
80
+ <!-- prompt-template end -->
81
+ <!-- licensing start -->
82
+ ## Licensing
83
+
84
+ The creator of the source model has listed its license as `cc-by-nc-4.0`, and this quantization has therefore used that same license.
85
+
86
+ As this model is based on Llama 2, it is also subject to the Meta Llama 2 license terms, and the license files for that are additionally included. It should therefore be considered as being claimed to be licensed under both licenses. I contacted Hugging Face for clarification on dual licensing but they do not yet have an official position. Should this change, or should Meta provide any feedback on this situation, I will update this section accordingly.
87
+
88
+ In the meantime, any questions regarding licensing, and in particular how these two licenses might interact, should be directed to the original model repository: [Undi's UtopiaXL 13B](https://huggingface.co/Undi95/UtopiaXL-13B).
89
+ <!-- licensing end -->
90
+
91
+ <!-- README_GPTQ.md-compatible clients start -->
92
+ ## Known compatible clients / servers
93
+
94
+ These GPTQ models are known to work in the following inference servers/webuis.
95
+
96
+ - [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
97
+ - [KoboldAI United](https://github.com/henk717/koboldai)
98
+ - [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui)
99
+ - [Hugging Face Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference)
100
+
101
+ This may not be a complete list; if you know of others, please let me know!
102
+ <!-- README_GPTQ.md-compatible clients end -->
103
+
104
+ <!-- README_GPTQ.md-provided-files start -->
105
+ ## Provided files, and GPTQ parameters
106
+
107
+ Multiple quantisation parameters are provided, to allow you to choose the best one for your hardware and requirements.
108
+
109
+ Each separate quant is in a different branch. See below for instructions on fetching from different branches.
110
+
111
+ Most GPTQ files are made with AutoGPTQ. Mistral models are currently made with Transformers.
112
+
113
+ <details>
114
+ <summary>Explanation of GPTQ parameters</summary>
115
+
116
+ - Bits: The bit size of the quantised model.
117
+ - GS: GPTQ group size. Higher numbers use less VRAM, but have lower quantisation accuracy. "None" is the lowest possible value.
118
+ - 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.
119
+ - Damp %: A GPTQ parameter that affects how samples are processed for quantisation. 0.01 is default, but 0.1 results in slightly better accuracy.
120
+ - 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).
121
+ - 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.
122
+ - ExLlama Compatibility: Whether this file can be loaded with ExLlama, which currently only supports Llama and Mistral models in 4-bit.
123
+
124
+ </details>
125
+
126
+ | Branch | Bits | GS | Act Order | Damp % | GPTQ Dataset | Seq Len | Size | ExLlama | Desc |
127
+ | ------ | ---- | -- | --------- | ------ | ------------ | ------- | ---- | ------- | ---- |
128
+ | [main](https://huggingface.co/TheBloke/UtopiaXL-13B-GPTQ/tree/main) | 4 | 128 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 7.26 GB | Yes | 4-bit, with Act Order and group size 128g. Uses even less VRAM than 64g, but with slightly lower accuracy. |
129
+ | [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/UtopiaXL-13B-GPTQ/tree/gptq-4bit-32g-actorder_True) | 4 | 32 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 8.00 GB | Yes | 4-bit, with Act Order and group size 32g. Gives highest possible inference quality, with maximum VRAM usage. |
130
+ | [gptq-8bit--1g-actorder_True](https://huggingface.co/TheBloke/UtopiaXL-13B-GPTQ/tree/gptq-8bit--1g-actorder_True) | 8 | None | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 13.36 GB | No | 8-bit, with Act Order. No group size, to lower VRAM requirements. |
131
+ | [gptq-8bit-128g-actorder_True](https://huggingface.co/TheBloke/UtopiaXL-13B-GPTQ/tree/gptq-8bit-128g-actorder_True) | 8 | 128 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 13.65 GB | No | 8-bit, with group size 128g for higher inference quality and with Act Order for even higher accuracy. |
132
+ | [gptq-8bit-32g-actorder_True](https://huggingface.co/TheBloke/UtopiaXL-13B-GPTQ/tree/gptq-8bit-32g-actorder_True) | 8 | 32 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 14.54 GB | No | 8-bit, with group size 32g and Act Order for maximum inference quality. |
133
+ | [gptq-4bit-64g-actorder_True](https://huggingface.co/TheBloke/UtopiaXL-13B-GPTQ/tree/gptq-4bit-64g-actorder_True) | 4 | 64 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 7.51 GB | Yes | 4-bit, with Act Order and group size 64g. Uses less VRAM than 32g, but with slightly lower accuracy. |
134
+
135
+ <!-- README_GPTQ.md-provided-files end -->
136
+
137
+ <!-- README_GPTQ.md-download-from-branches start -->
138
+ ## How to download, including from branches
139
+
140
+ ### In text-generation-webui
141
+
142
+ To download from the `main` branch, enter `TheBloke/UtopiaXL-13B-GPTQ` in the "Download model" box.
143
+
144
+ To download from another branch, add `:branchname` to the end of the download name, eg `TheBloke/UtopiaXL-13B-GPTQ:gptq-4bit-32g-actorder_True`
145
+
146
+ ### From the command line
147
+
148
+ I recommend using the `huggingface-hub` Python library:
149
+
150
+ ```shell
151
+ pip3 install huggingface-hub
152
+ ```
153
+
154
+ To download the `main` branch to a folder called `UtopiaXL-13B-GPTQ`:
155
+
156
+ ```shell
157
+ mkdir UtopiaXL-13B-GPTQ
158
+ huggingface-cli download TheBloke/UtopiaXL-13B-GPTQ --local-dir UtopiaXL-13B-GPTQ --local-dir-use-symlinks False
159
+ ```
160
+
161
+ To download from a different branch, add the `--revision` parameter:
162
+
163
+ ```shell
164
+ mkdir UtopiaXL-13B-GPTQ
165
+ huggingface-cli download TheBloke/UtopiaXL-13B-GPTQ --revision gptq-4bit-32g-actorder_True --local-dir UtopiaXL-13B-GPTQ --local-dir-use-symlinks False
166
+ ```
167
+
168
+ <details>
169
+ <summary>More advanced huggingface-cli download usage</summary>
170
+
171
+ 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.
172
+
173
+ The cache location can be changed with the `HF_HOME` environment variable, and/or the `--cache-dir` parameter to `huggingface-cli`.
174
+
175
+ 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).
176
+
177
+ To accelerate downloads on fast connections (1Gbit/s or higher), install `hf_transfer`:
178
+
179
+ ```shell
180
+ pip3 install hf_transfer
181
+ ```
182
+
183
+ And set environment variable `HF_HUB_ENABLE_HF_TRANSFER` to `1`:
184
+
185
+ ```shell
186
+ mkdir UtopiaXL-13B-GPTQ
187
+ HF_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download TheBloke/UtopiaXL-13B-GPTQ --local-dir UtopiaXL-13B-GPTQ --local-dir-use-symlinks False
188
+ ```
189
+
190
+ Windows Command Line users: You can set the environment variable by running `set HF_HUB_ENABLE_HF_TRANSFER=1` before the download command.
191
+ </details>
192
+
193
+ ### With `git` (**not** recommended)
194
+
195
+ To clone a specific branch with `git`, use a command like this:
196
+
197
+ ```shell
198
+ git clone --single-branch --branch gptq-4bit-32g-actorder_True https://huggingface.co/TheBloke/UtopiaXL-13B-GPTQ
199
+ ```
200
+
201
+ 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.)
202
+
203
+ <!-- README_GPTQ.md-download-from-branches end -->
204
+ <!-- README_GPTQ.md-text-generation-webui start -->
205
+ ## How to easily download and use this model in [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
206
+
207
+ Please make sure you're using the latest version of [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
208
+
209
+ 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.
210
+
211
+ 1. Click the **Model tab**.
212
+ 2. Under **Download custom model or LoRA**, enter `TheBloke/UtopiaXL-13B-GPTQ`.
213
+
214
+ - To download from a specific branch, enter for example `TheBloke/UtopiaXL-13B-GPTQ:gptq-4bit-32g-actorder_True`
215
+ - see Provided Files above for the list of branches for each option.
216
+
217
+ 3. Click **Download**.
218
+ 4. The model will start downloading. Once it's finished it will say "Done".
219
+ 5. In the top left, click the refresh icon next to **Model**.
220
+ 6. In the **Model** dropdown, choose the model you just downloaded: `UtopiaXL-13B-GPTQ`
221
+ 7. The model will automatically load, and is now ready for use!
222
+ 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.
223
+
224
+ - 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`.
225
+
226
+ 9. Once you're ready, click the **Text Generation** tab and enter a prompt to get started!
227
+
228
+ <!-- README_GPTQ.md-text-generation-webui end -->
229
+
230
+ <!-- README_GPTQ.md-use-from-tgi start -->
231
+ ## Serving this model from Text Generation Inference (TGI)
232
+
233
+ 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`
234
+
235
+ Example Docker parameters:
236
+
237
+ ```shell
238
+ --model-id TheBloke/UtopiaXL-13B-GPTQ --port 3000 --quantize gptq --max-input-length 3696 --max-total-tokens 4096 --max-batch-prefill-tokens 4096
239
+ ```
240
+
241
+ Example Python code for interfacing with TGI (requires huggingface-hub 0.17.0 or later):
242
+
243
+ ```shell
244
+ pip3 install huggingface-hub
245
+ ```
246
+
247
+ ```python
248
+ from huggingface_hub import InferenceClient
249
+
250
+ endpoint_url = "https://your-endpoint-url-here"
251
+
252
+ prompt = "Tell me about AI"
253
+ prompt_template=f'''Below is an instruction that describes a task. Write a response that appropriately completes the request.
254
+
255
+ ### Instruction:
256
+ {prompt}
257
+
258
+ ### Response:
259
+ '''
260
+
261
+ client = InferenceClient(endpoint_url)
262
+ response = client.text_generation(prompt,
263
+ max_new_tokens=128,
264
+ do_sample=True,
265
+ temperature=0.7,
266
+ top_p=0.95,
267
+ top_k=40,
268
+ repetition_penalty=1.1)
269
+
270
+ print(f"Model output: {response}")
271
+ ```
272
+ <!-- README_GPTQ.md-use-from-tgi end -->
273
+ <!-- README_GPTQ.md-use-from-python start -->
274
+ ## How to use this GPTQ model from Python code
275
+
276
+ ### Install the necessary packages
277
+
278
+ Requires: Transformers 4.33.0 or later, Optimum 1.12.0 or later, and AutoGPTQ 0.4.2 or later.
279
+
280
+ ```shell
281
+ pip3 install transformers optimum
282
+ pip3 install auto-gptq --extra-index-url https://huggingface.github.io/autogptq-index/whl/cu118/ # Use cu117 if on CUDA 11.7
283
+ ```
284
+
285
+ If you have problems installing AutoGPTQ using the pre-built wheels, install it from source instead:
286
+
287
+ ```shell
288
+ pip3 uninstall -y auto-gptq
289
+ git clone https://github.com/PanQiWei/AutoGPTQ
290
+ cd AutoGPTQ
291
+ git checkout v0.4.2
292
+ pip3 install .
293
+ ```
294
+
295
+ ### You can then use the following code
296
+
297
+ ```python
298
+ from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
299
+
300
+ model_name_or_path = "TheBloke/UtopiaXL-13B-GPTQ"
301
+ # To use a different branch, change revision
302
+ # For example: revision="gptq-4bit-32g-actorder_True"
303
+ model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
304
+ device_map="auto",
305
+ trust_remote_code=False,
306
+ revision="main")
307
+
308
+ tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
309
+
310
+ prompt = "Tell me about AI"
311
+ prompt_template=f'''Below is an instruction that describes a task. Write a response that appropriately completes the request.
312
+
313
+ ### Instruction:
314
+ {prompt}
315
+
316
+ ### Response:
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: Undi's UtopiaXL 13B
389
+
390
+
391
+ <!-- description start -->
392
+ ## Description
393
+
394
+ This repo contains fp16 files of UtopiaXL-13B, a merge I have done with the new [layer shuffle](https://github.com/cg123/mergekit/blob/main/mergekit/scripts/layershuffle.py) method from mergekit (thank you Charles for adding my request to your project!)
395
+
396
+ This is more a proof of concept showing the following:
397
+ - Llama2 is very flexible
398
+ - Llama2 don't care about what is finetuned on the layers specifically if you keep them in the same order
399
+ - Clean merge (no ties, no SLERP, etc...) with only layer is possible without breaking something
400
+ - Deleting special tokens/using model with special token don't break the model
401
+ - Alpaca win, always. So use it.
402
+
403
+ The name "XL" come from the absurd amount of model pushed into it.
404
+
405
+ <!-- description end -->
406
+ <!-- description start -->
407
+ ## Models and loras used
408
+
409
+ - [Undi95/Utopia-13B](https://huggingface.co/Undi95/Utopia-13B)
410
+ - [KoboldAI/LLAMA2-13B-Holodeck-1](https://huggingface.co/KoboldAI/LLAMA2-13B-Holodeck-1)
411
+ - [Undi95/PsyMedRP-v1-13B](https://huggingface.co/Undi95/PsyMedRP-v1-13B)
412
+ - [PygmalionAI/pygmalion-2-13b](https://huggingface.co/PygmalionAI/pygmalion-2-13b)
413
+ - [Heralax/Cat-0.5](https://huggingface.co/Heralax/Cat-0.5)
414
+ - [KoboldAI/LLaMA2-13B-TiefighterLR](https://huggingface.co/KoboldAI/LLaMA2-13B-TiefighterLR)
415
+ - [Heralax/Augmental-13b-two-epochs](https://huggingface.co/Heralax/Augmental-13b-two-epochs)
416
+ - [Undi95/Storytelling-v2.1-13B-lora](https://huggingface.co/Undi95/Storytelling-v2.1-13B-lora)
417
+ - [Undi95/LimaRP-UtopiaXL-13B-v3-lora](https://huggingface.co/Undi95/LimaRP-UtopiaXL-13B-v3-lora)
418
+
419
+ <!-- description end -->
420
+ ## The sauce
421
+ ```
422
+ !mergekit-layershuffle ./UtopiaXL \
423
+ --model Undi95/Utopia-13B --weight 0.4 \
424
+ --model KoboldAI/LLAMA2-13B-Holodeck-1 --weight 0.1 \
425
+ --model Undi95/PsyMedRP-v1-13B --weight 0.1 \
426
+ --model PygmalionAI/pygmalion-2-13b --weight 0.25 \
427
+ --model Heralax/Cat-0.5 --weight 0.1 \
428
+ --model KoboldAI/LLaMA2-13B-TiefighterLR --weight 0.1 \
429
+ --model Heralax/Augmental-13b-two-epochs --weight 0.1 \
430
+ --write-yaml UtopiaXL.yaml
431
+
432
+ =========================
433
+
434
+ merge_method: passthrough
435
+ slices:
436
+ - sources:
437
+ - layer_range:
438
+ - 0
439
+ - 1
440
+ model: KoboldAI/LLAMA2-13B-Holodeck-1
441
+ - sources:
442
+ - layer_range:
443
+ - 1
444
+ - 4
445
+ model: Undi95/Utopia-13B
446
+ - sources:
447
+ - layer_range:
448
+ - 4
449
+ - 5
450
+ model: PygmalionAI/pygmalion-2-13b
451
+ - sources:
452
+ - layer_range:
453
+ - 5
454
+ - 6
455
+ model: Undi95/PsyMedRP-v1-13B
456
+ - sources:
457
+ - layer_range:
458
+ - 6
459
+ - 7
460
+ model: KoboldAI/LLaMA2-13B-TiefighterLR
461
+ - sources:
462
+ - layer_range:
463
+ - 7
464
+ - 8
465
+ model: PygmalionAI/pygmalion-2-13b
466
+ - sources:
467
+ - layer_range:
468
+ - 8
469
+ - 9
470
+ model: Undi95/PsyMedRP-v1-13B
471
+ - sources:
472
+ - layer_range:
473
+ - 9
474
+ - 10
475
+ model: PygmalionAI/pygmalion-2-13b
476
+ - sources:
477
+ - layer_range:
478
+ - 10
479
+ - 13
480
+ model: Undi95/Utopia-13B
481
+ - sources:
482
+ - layer_range:
483
+ - 13
484
+ - 14
485
+ model: Heralax/Cat-0.5
486
+ - sources:
487
+ - layer_range:
488
+ - 14
489
+ - 17
490
+ model: Undi95/Utopia-13B
491
+ - sources:
492
+ - layer_range:
493
+ - 17
494
+ - 18
495
+ model: Heralax/Augmental-13b-two-epochs
496
+ - sources:
497
+ - layer_range:
498
+ - 18
499
+ - 19
500
+ model: KoboldAI/LLaMA2-13B-TiefighterLR
501
+ - sources:
502
+ - layer_range:
503
+ - 19
504
+ - 22
505
+ model: PygmalionAI/pygmalion-2-13b
506
+ - sources:
507
+ - layer_range:
508
+ - 22
509
+ - 23
510
+ model: Undi95/Utopia-13B
511
+ - sources:
512
+ - layer_range:
513
+ - 23
514
+ - 25
515
+ model: PygmalionAI/pygmalion-2-13b
516
+ - sources:
517
+ - layer_range:
518
+ - 25
519
+ - 27
520
+ model: Undi95/Utopia-13B
521
+ - sources:
522
+ - layer_range:
523
+ - 27
524
+ - 28
525
+ model: Heralax/Cat-0.5
526
+ - sources:
527
+ - layer_range:
528
+ - 28
529
+ - 30
530
+ model: Undi95/Utopia-13B
531
+ - sources:
532
+ - layer_range:
533
+ - 30
534
+ - 31
535
+ model: Heralax/Augmental-13b-two-epochs
536
+ - sources:
537
+ - layer_range:
538
+ - 31
539
+ - 32
540
+ model: Undi95/Utopia-13B
541
+ - sources:
542
+ - layer_range:
543
+ - 32
544
+ - 33
545
+ model: Heralax/Cat-0.5
546
+ - sources:
547
+ - layer_range:
548
+ - 33
549
+ - 34
550
+ model: Heralax/Augmental-13b-two-epochs
551
+ - sources:
552
+ - layer_range:
553
+ - 34
554
+ - 35
555
+ model: Undi95/PsyMedRP-v1-13B
556
+ - sources:
557
+ - layer_range:
558
+ - 35
559
+ - 36
560
+ model: Heralax/Augmental-13b-two-epochs
561
+ - sources:
562
+ - layer_range:
563
+ - 36
564
+ - 37
565
+ model: Undi95/Utopia-13B
566
+ - sources:
567
+ - layer_range:
568
+ - 37
569
+ - 38
570
+ model: KoboldAI/LLAMA2-13B-Holodeck-1
571
+ - sources:
572
+ - layer_range:
573
+ - 38
574
+ - 39
575
+ model: PygmalionAI/pygmalion-2-13b
576
+ - sources:
577
+ - layer_range:
578
+ - 39
579
+ - 40
580
+ model: KoboldAI/LLAMA2-13B-Holodeck-1
581
+
582
+ =========================
583
+
584
+ => Applying Undi95/Storytelling-v2.1-13B-lora x 0.1
585
+ => Trained on LimaRP for +2h
586
+ => Applying Undi95/LimaRP-UtopiaXL-13B-v3-lora x 0.35
587
+ ```
588
+ <!-- prompt-template start -->
589
+ ## Prompt template: Alpaca
590
+
591
+ ```
592
+ Below is an instruction that describes a task. Write a response that appropriately completes the request.
593
+
594
+ ### Instruction:
595
+ {prompt}
596
+
597
+ ### Response:
598
+
599
+ ```
600
+ A big thanks to [Charles](https://huggingface.co/chargoddard) for adding the layer shuffle method to his tool [mergekit](https://github.com/cg123/mergekit/tree/main) and [Henky/KoboldAI](https://koboldai.org/) for the machine he let me use.
601
+
602
+ If you want to support me, you can [here](https://ko-fi.com/undiai).