TheBloke commited on
Commit
d3e864c
1 Parent(s): b80a57c

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +473 -0
README.md ADDED
@@ -0,0 +1,473 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: NousResearch/Nous-Capybara-34B
3
+ datasets:
4
+ - LDJnr/LessWrong-Amplify-Instruct
5
+ - LDJnr/Pure-Dove
6
+ - LDJnr/Verified-Camel
7
+ inference: false
8
+ language:
9
+ - eng
10
+ license:
11
+ - mit
12
+ model_creator: NousResearch
13
+ model_name: Nous Capybara 34B
14
+ model_type: yi
15
+ prompt_template: 'USER: {prompt}
16
+
17
+ ASSISTANT:
18
+
19
+ '
20
+ quantized_by: TheBloke
21
+ tags:
22
+ - sft
23
+ - StableLM
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
+ # Nous Capybara 34B - GPTQ
45
+ - Model creator: [NousResearch](https://huggingface.co/NousResearch)
46
+ - Original model: [Nous Capybara 34B](https://huggingface.co/NousResearch/Nous-Capybara-34B)
47
+
48
+ <!-- description start -->
49
+ # Description
50
+
51
+ This repo contains GPTQ model files for [NousResearch's Nous Capybara 34B](https://huggingface.co/NousResearch/Nous-Capybara-34B).
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/Nous-Capybara-34B-AWQ)
62
+ * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Nous-Capybara-34B-GPTQ)
63
+ * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/Nous-Capybara-34B-GGUF)
64
+ * [NousResearch's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/NousResearch/Nous-Capybara-34B)
65
+ <!-- repositories-available end -->
66
+
67
+ <!-- prompt-template start -->
68
+ ## Prompt template: User-Assistant
69
+
70
+ ```
71
+ USER: {prompt}
72
+ ASSISTANT:
73
+
74
+ ```
75
+
76
+ <!-- prompt-template end -->
77
+
78
+
79
+
80
+ <!-- README_GPTQ.md-compatible clients start -->
81
+ ## Known compatible clients / servers
82
+
83
+ These GPTQ models are known to work in the following inference servers/webuis.
84
+
85
+ - [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
86
+ - [KoboldAI United](https://github.com/henk717/koboldai)
87
+ - [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui)
88
+ - [Hugging Face Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference)
89
+
90
+ This may not be a complete list; if you know of others, please let me know!
91
+ <!-- README_GPTQ.md-compatible clients end -->
92
+
93
+ <!-- README_GPTQ.md-provided-files start -->
94
+ ## Provided files, and GPTQ parameters
95
+
96
+ Multiple quantisation parameters are provided, to allow you to choose the best one for your hardware and requirements.
97
+
98
+ Each separate quant is in a different branch. See below for instructions on fetching from different branches.
99
+
100
+ Most GPTQ files are made with AutoGPTQ. Mistral models are currently made with Transformers.
101
+
102
+ <details>
103
+ <summary>Explanation of GPTQ parameters</summary>
104
+
105
+ - Bits: The bit size of the quantised model.
106
+ - GS: GPTQ group size. Higher numbers use less VRAM, but have lower quantisation accuracy. "None" is the lowest possible value.
107
+ - 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.
108
+ - Damp %: A GPTQ parameter that affects how samples are processed for quantisation. 0.01 is default, but 0.1 results in slightly better accuracy.
109
+ - 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).
110
+ - 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.
111
+ - ExLlama Compatibility: Whether this file can be loaded with ExLlama, which currently only supports Llama and Mistral models in 4-bit.
112
+
113
+ </details>
114
+
115
+ | Branch | Bits | GS | Act Order | Damp % | GPTQ Dataset | Seq Len | Size | ExLlama | Desc |
116
+ | ------ | ---- | -- | --------- | ------ | ------------ | ------- | ---- | ------- | ---- |
117
+ | [main](https://huggingface.co/TheBloke/Nous-Capybara-34B-GPTQ/tree/main) | 4 | None | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-raw-v1) | 8192 | 18.60 GB | Yes | 4-bit, with Act Order. No group size, to lower VRAM requirements. |
118
+ | [gptq-4bit-128g-actorder_True](https://huggingface.co/TheBloke/Nous-Capybara-34B-GPTQ/tree/gptq-4bit-128g-actorder_True) | 4 | 128 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-raw-v1) | 8192 | 19.25 GB | Yes | 4-bit, with Act Order and group size 128g. Uses even less VRAM than 64g, but with slightly lower accuracy. |
119
+ | [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/Nous-Capybara-34B-GPTQ/tree/gptq-4bit-32g-actorder_True) | 4 | 32 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-raw-v1) | 8192 | 21.21 GB | Yes | 4-bit, with Act Order and group size 32g. Gives highest possible inference quality, with maximum VRAM usage. |
120
+ | [gptq-3bit-128g-actorder_True](https://huggingface.co/TheBloke/Nous-Capybara-34B-GPTQ/tree/gptq-3bit-128g-actorder_True) | 3 | 128 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-raw-v1) | 8192 | 15.03 GB | No | 3-bit, with group size 128g and act-order. Higher quality than 128g-False. |
121
+ | [gptq-8bit--1g-actorder_True](https://huggingface.co/TheBloke/Nous-Capybara-34B-GPTQ/tree/gptq-8bit--1g-actorder_True) | 8 | None | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-raw-v1) | 8192 | 35.34 GB | No | 8-bit, with Act Order. No group size, to lower VRAM requirements. |
122
+ | [gptq-3bit-32g-actorder_True](https://huggingface.co/TheBloke/Nous-Capybara-34B-GPTQ/tree/gptq-3bit-32g-actorder_True) | 3 | 32 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-raw-v1) | 8192 | 16.90 GB | No | 3-bit, with group size 64g and act-order. Highest quality 3-bit option. |
123
+ | [gptq-8bit-128g-actorder_True](https://huggingface.co/TheBloke/Nous-Capybara-34B-GPTQ/tree/gptq-8bit-128g-actorder_True) | 8 | 128 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-raw-v1) | 8192 | 36.11 GB | No | 8-bit, with group size 128g for higher inference quality and with Act Order for even higher accuracy. |
124
+
125
+ <!-- README_GPTQ.md-provided-files end -->
126
+
127
+ <!-- README_GPTQ.md-download-from-branches start -->
128
+ ## How to download, including from branches
129
+
130
+ ### In text-generation-webui
131
+
132
+ To download from the `main` branch, enter `TheBloke/Nous-Capybara-34B-GPTQ` in the "Download model" box.
133
+
134
+ To download from another branch, add `:branchname` to the end of the download name, eg `TheBloke/Nous-Capybara-34B-GPTQ:gptq-4bit-128g-actorder_True`
135
+
136
+ ### From the command line
137
+
138
+ I recommend using the `huggingface-hub` Python library:
139
+
140
+ ```shell
141
+ pip3 install huggingface-hub
142
+ ```
143
+
144
+ To download the `main` branch to a folder called `Nous-Capybara-34B-GPTQ`:
145
+
146
+ ```shell
147
+ mkdir Nous-Capybara-34B-GPTQ
148
+ huggingface-cli download TheBloke/Nous-Capybara-34B-GPTQ --local-dir Nous-Capybara-34B-GPTQ --local-dir-use-symlinks False
149
+ ```
150
+
151
+ To download from a different branch, add the `--revision` parameter:
152
+
153
+ ```shell
154
+ mkdir Nous-Capybara-34B-GPTQ
155
+ huggingface-cli download TheBloke/Nous-Capybara-34B-GPTQ --revision gptq-4bit-128g-actorder_True --local-dir Nous-Capybara-34B-GPTQ --local-dir-use-symlinks False
156
+ ```
157
+
158
+ <details>
159
+ <summary>More advanced huggingface-cli download usage</summary>
160
+
161
+ 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.
162
+
163
+ The cache location can be changed with the `HF_HOME` environment variable, and/or the `--cache-dir` parameter to `huggingface-cli`.
164
+
165
+ 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).
166
+
167
+ To accelerate downloads on fast connections (1Gbit/s or higher), install `hf_transfer`:
168
+
169
+ ```shell
170
+ pip3 install hf_transfer
171
+ ```
172
+
173
+ And set environment variable `HF_HUB_ENABLE_HF_TRANSFER` to `1`:
174
+
175
+ ```shell
176
+ mkdir Nous-Capybara-34B-GPTQ
177
+ HF_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download TheBloke/Nous-Capybara-34B-GPTQ --local-dir Nous-Capybara-34B-GPTQ --local-dir-use-symlinks False
178
+ ```
179
+
180
+ Windows Command Line users: You can set the environment variable by running `set HF_HUB_ENABLE_HF_TRANSFER=1` before the download command.
181
+ </details>
182
+
183
+ ### With `git` (**not** recommended)
184
+
185
+ To clone a specific branch with `git`, use a command like this:
186
+
187
+ ```shell
188
+ git clone --single-branch --branch gptq-4bit-128g-actorder_True https://huggingface.co/TheBloke/Nous-Capybara-34B-GPTQ
189
+ ```
190
+
191
+ 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.)
192
+
193
+ <!-- README_GPTQ.md-download-from-branches end -->
194
+ <!-- README_GPTQ.md-text-generation-webui start -->
195
+ ## How to easily download and use this model in [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
196
+
197
+ Please make sure you're using the latest version of [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
198
+
199
+ 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.
200
+
201
+ 1. Click the **Model tab**.
202
+ 2. Under **Download custom model or LoRA**, enter `TheBloke/Nous-Capybara-34B-GPTQ`.
203
+
204
+ - To download from a specific branch, enter for example `TheBloke/Nous-Capybara-34B-GPTQ:gptq-4bit-128g-actorder_True`
205
+ - see Provided Files above for the list of branches for each option.
206
+
207
+ 3. Click **Download**.
208
+ 4. The model will start downloading. Once it's finished it will say "Done".
209
+ 5. In the top left, click the refresh icon next to **Model**.
210
+ 6. In the **Model** dropdown, choose the model you just downloaded: `Nous-Capybara-34B-GPTQ`
211
+ 7. The model will automatically load, and is now ready for use!
212
+ 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.
213
+
214
+ - 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`.
215
+
216
+ 9. Once you're ready, click the **Text Generation** tab and enter a prompt to get started!
217
+
218
+ <!-- README_GPTQ.md-text-generation-webui end -->
219
+
220
+ <!-- README_GPTQ.md-use-from-tgi start -->
221
+ ## Serving this model from Text Generation Inference (TGI)
222
+
223
+ 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`
224
+
225
+ Example Docker parameters:
226
+
227
+ ```shell
228
+ --model-id TheBloke/Nous-Capybara-34B-GPTQ --port 3000 --quantize gptq --max-input-length 3696 --max-total-tokens 4096 --max-batch-prefill-tokens 4096
229
+ ```
230
+
231
+ Example Python code for interfacing with TGI (requires huggingface-hub 0.17.0 or later):
232
+
233
+ ```shell
234
+ pip3 install huggingface-hub
235
+ ```
236
+
237
+ ```python
238
+ from huggingface_hub import InferenceClient
239
+
240
+ endpoint_url = "https://your-endpoint-url-here"
241
+
242
+ prompt = "Tell me about AI"
243
+ prompt_template=f'''USER: {prompt}
244
+ ASSISTANT:
245
+ '''
246
+
247
+ client = InferenceClient(endpoint_url)
248
+ response = client.text_generation(prompt,
249
+ max_new_tokens=128,
250
+ do_sample=True,
251
+ temperature=0.7,
252
+ top_p=0.95,
253
+ top_k=40,
254
+ repetition_penalty=1.1)
255
+
256
+ print(f"Model output: {response}")
257
+ ```
258
+ <!-- README_GPTQ.md-use-from-tgi end -->
259
+ <!-- README_GPTQ.md-use-from-python start -->
260
+ ## Python code example: inference from this GPTQ model
261
+
262
+ ### Install the necessary packages
263
+
264
+ Requires: Transformers 4.33.0 or later, Optimum 1.12.0 or later, and AutoGPTQ 0.4.2 or later.
265
+
266
+ ```shell
267
+ pip3 install --upgrade transformers optimum
268
+ # If using PyTorch 2.1 + CUDA 12.x:
269
+ pip3 install --upgrade auto-gptq
270
+ # or, if using PyTorch 2.1 + CUDA 11.x:
271
+ pip3 install --upgrade auto-gptq --extra-index-url https://huggingface.github.io/autogptq-index/whl/cu118/
272
+ ```
273
+
274
+ 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:
275
+
276
+ ```shell
277
+ pip3 uninstall -y auto-gptq
278
+ git clone https://github.com/PanQiWei/AutoGPTQ
279
+ cd AutoGPTQ
280
+ git checkout v0.5.1
281
+ pip3 install .
282
+ ```
283
+
284
+ ### Example Python code
285
+
286
+ ```python
287
+ from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
288
+
289
+ model_name_or_path = "TheBloke/Nous-Capybara-34B-GPTQ"
290
+ # To use a different branch, change revision
291
+ # For example: revision="gptq-4bit-128g-actorder_True"
292
+ model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
293
+ device_map="auto",
294
+ trust_remote_code=True,
295
+ revision="main")
296
+
297
+ tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
298
+
299
+ prompt = "Tell me about AI"
300
+ prompt_template=f'''USER: {prompt}
301
+ ASSISTANT:
302
+ '''
303
+
304
+ print("\n\n*** Generate:")
305
+
306
+ input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
307
+ output = model.generate(inputs=input_ids, temperature=0.7, do_sample=True, top_p=0.95, top_k=40, max_new_tokens=512)
308
+ print(tokenizer.decode(output[0]))
309
+
310
+ # Inference can also be done using transformers' pipeline
311
+
312
+ print("*** Pipeline:")
313
+ pipe = pipeline(
314
+ "text-generation",
315
+ model=model,
316
+ tokenizer=tokenizer,
317
+ max_new_tokens=512,
318
+ do_sample=True,
319
+ temperature=0.7,
320
+ top_p=0.95,
321
+ top_k=40,
322
+ repetition_penalty=1.1
323
+ )
324
+
325
+ print(pipe(prompt_template)[0]['generated_text'])
326
+ ```
327
+ <!-- README_GPTQ.md-use-from-python end -->
328
+
329
+ <!-- README_GPTQ.md-compatibility start -->
330
+ ## Compatibility
331
+
332
+ The files provided are tested to work with Transformers. For non-Mistral models, AutoGPTQ can also be used directly.
333
+
334
+ [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.
335
+
336
+ For a list of clients/servers, please see "Known compatible clients / servers", above.
337
+ <!-- README_GPTQ.md-compatibility end -->
338
+
339
+ <!-- footer start -->
340
+ <!-- 200823 -->
341
+ ## Discord
342
+
343
+ For further support, and discussions on these models and AI in general, join us at:
344
+
345
+ [TheBloke AI's Discord server](https://discord.gg/theblokeai)
346
+
347
+ ## Thanks, and how to contribute
348
+
349
+ Thanks to the [chirper.ai](https://chirper.ai) team!
350
+
351
+ Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
352
+
353
+ 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.
354
+
355
+ 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.
356
+
357
+ Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
358
+
359
+ * Patreon: https://patreon.com/TheBlokeAI
360
+ * Ko-Fi: https://ko-fi.com/TheBlokeAI
361
+
362
+ **Special thanks to**: Aemon Algiz.
363
+
364
+ **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
365
+
366
+
367
+ Thank you to all my generous patrons and donaters!
368
+
369
+ And thank you again to a16z for their generous grant.
370
+
371
+ <!-- footer end -->
372
+
373
+ # Original model card: NousResearch's Nous Capybara 34B
374
+
375
+
376
+ ## **Nous-Capybara-34B V1.9**
377
+
378
+ **This is trained on the Yi-34B model with 200K context length, for 3 epochs on the Capybara dataset!**
379
+
380
+ **First 34B Nous model and first 200K context length Nous model!**
381
+
382
+ The Capybara series is the first Nous collection of models made by fine-tuning mostly on data created by Nous in-house.
383
+
384
+ We leverage our novel data synthesis technique called Amplify-instruct (Paper coming soon), the seed distribution and synthesis method are comprised of a synergistic combination of top performing existing data synthesis techniques and distributions used for SOTA models such as Airoboros, Evol-Instruct(WizardLM), Orca, Vicuna, Know_Logic, Lamini, FLASK and others, all into one lean holistically formed methodology for the dataset and model. The seed instructions used for the start of synthesized conversations are largely based on highly datasets like Airoboros, Know logic, EverythingLM, GPTeacher and even entirely new seed instructions derived from posts on the website LessWrong, as well as being supplemented with certain in-house multi-turn datasets like Dove(A successor to Puffin).
385
+
386
+ While performing great in it's current state, the current dataset used for fine-tuning is entirely contained within 20K training examples, this is 10 times smaller than many similar performing current models, this is signficant when it comes to scaling implications for our next generation of models once we scale our novel syntheiss methods to significantly more examples.
387
+
388
+ ## Process of creation and special thank yous!
389
+
390
+ This model was fine-tuned by Nous Research as part of the Capybara/Amplify-Instruct project led by Luigi D.(LDJ) (Paper coming soon), as well as significant dataset formation contributions by J-Supha and general compute and experimentation management by Jeffrey Q. during ablations.
391
+
392
+ Special thank you to **A16Z** for sponsoring our training, as well as **Yield Protocol** for their support in financially sponsoring resources during the R&D of this project.
393
+
394
+ ## Thank you to those of you that have indirectly contributed!
395
+
396
+ While most of the tokens within Capybara are newly synthsized and part of datasets like Puffin/Dove, we would like to credit the single-turn datasets we leveraged as seeds that are used to generate the multi-turn data as part of the Amplify-Instruct synthesis.
397
+
398
+ The datasets shown in green below are datasets that we sampled from to curate seeds that are used during Amplify-Instruct synthesis for this project.
399
+
400
+ Datasets in Blue are in-house curations that previously existed prior to Capybara.
401
+
402
+ ![Capybara](https://i.imgur.com/yB58OoD.jpeg)
403
+
404
+
405
+ ## Prompt Format
406
+
407
+ The reccomended model usage is:
408
+
409
+ ```
410
+ USER:
411
+
412
+ ASSISTANT:
413
+ ```
414
+
415
+ ## Mutli-Modality!
416
+
417
+ - We currently have a Multi-modal model based on Capybara V1.9!
418
+ https://huggingface.co/NousResearch/Obsidian-3B-V0.5
419
+ it is currently only available as a 3B sized model but larger versions coming!
420
+
421
+
422
+ ## Notable Features:
423
+
424
+ - Uses Yi-34B model as the base which is trained for 200K context length!
425
+
426
+ - Over 60% of the dataset is comprised of multi-turn conversations.(Most models are still only trained for single-turn conversations and no back and forths!)
427
+
428
+ - Over 1,000 tokens average per conversation example! (Most models are trained on conversation data that is less than 300 tokens per example.)
429
+
430
+ - Able to effectively do complex summaries of advanced topics and studies. (trained on hundreds of advanced difficult summary tasks developed in-house)
431
+
432
+ - Ability to recall information upto late 2022 without internet.
433
+
434
+ - Includes a portion of conversational data synthesized from less wrong posts, discussing very in-depth details and philosophies about the nature of reality, reasoning, rationality, self-improvement and related concepts.
435
+
436
+ ## Example Outputs from Capybara V1.9 7B version! (examples from 34B coming soon):
437
+
438
+ ![Capybara](https://img001.prntscr.com/file/img001/T9yYxR1xQSaK_UGdy3t2Cw.png)
439
+
440
+ ![Capybara](https://img001.prntscr.com/file/img001/DQXqmKbsQQOIcgny1eoGNA.png)
441
+
442
+ ![Capybara](https://img001.prntscr.com/file/img001/85X3L9ZxTsOKo3fUQ7GRVA.png)
443
+
444
+ ## Benchmarks! (Coming soon!)
445
+
446
+
447
+ ## Future model sizes
448
+
449
+ Capybara V1.9 now currently has a 3B, 7B and 34B size, and we plan to eventually have a 13B and 70B version in the future, as well as a potential 1B version based on phi-1.5 or Tiny Llama.
450
+
451
+ ## How you can help!
452
+
453
+ In the near future we plan on leveraging the help of domain specific expert volunteers to eliminate any mathematically/verifiably incorrect answers from our training curations.
454
+
455
+ If you have at-least a bachelors in mathematics, physics, biology or chemistry and would like to volunteer even just 30 minutes of your expertise time, please contact LDJ on discord!
456
+
457
+ ## Dataset contamination.
458
+
459
+ We have checked the capybara dataset for contamination for several of the most popular datasets and can confirm that there is no contaminaton found.
460
+
461
+ We leveraged minhash to check for 100%, 99%, 98% and 97% similarity matches between our data and the questions and answers in benchmarks, we found no exact matches, nor did we find any matches down to the 97% similarity level.
462
+
463
+ The following are benchmarks we checked for contamination against our dataset:
464
+
465
+ - HumanEval
466
+
467
+ - AGIEval
468
+
469
+ - TruthfulQA
470
+
471
+ - MMLU
472
+
473
+ - GPT4All