Upload README.md
Browse files
README.md
ADDED
@@ -0,0 +1,406 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: NousResearch/Nous-Capybara-7B-V1.9
|
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 7B v1.9
|
14 |
+
model_type: mistral
|
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 7B v1.9 - GGUF
|
45 |
+
- Model creator: [NousResearch](https://huggingface.co/NousResearch)
|
46 |
+
- Original model: [Nous Capybara 7B v1.9](https://huggingface.co/NousResearch/Nous-Capybara-7B-V1.9)
|
47 |
+
|
48 |
+
<!-- description start -->
|
49 |
+
## Description
|
50 |
+
|
51 |
+
This repo contains GGUF format model files for [NousResearch's Nous Capybara 7B v1.9](https://huggingface.co/NousResearch/Nous-Capybara-7B-V1.9).
|
52 |
+
|
53 |
+
These files were quantised using hardware kindly provided by [Massed Compute](https://massedcompute.com/).
|
54 |
+
|
55 |
+
<!-- description end -->
|
56 |
+
<!-- README_GGUF.md-about-gguf start -->
|
57 |
+
### About GGUF
|
58 |
+
|
59 |
+
GGUF is a new format introduced by the llama.cpp team on August 21st 2023. It is a replacement for GGML, which is no longer supported by llama.cpp.
|
60 |
+
|
61 |
+
Here is an incomplate list of clients and libraries that are known to support GGUF:
|
62 |
+
|
63 |
+
* [llama.cpp](https://github.com/ggerganov/llama.cpp). The source project for GGUF. Offers a CLI and a server option.
|
64 |
+
* [text-generation-webui](https://github.com/oobabooga/text-generation-webui), the most widely used web UI, with many features and powerful extensions. Supports GPU acceleration.
|
65 |
+
* [KoboldCpp](https://github.com/LostRuins/koboldcpp), a fully featured web UI, with GPU accel across all platforms and GPU architectures. Especially good for story telling.
|
66 |
+
* [LM Studio](https://lmstudio.ai/), an easy-to-use and powerful local GUI for Windows and macOS (Silicon), with GPU acceleration.
|
67 |
+
* [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui), a great web UI with many interesting and unique features, including a full model library for easy model selection.
|
68 |
+
* [Faraday.dev](https://faraday.dev/), an attractive and easy to use character-based chat GUI for Windows and macOS (both Silicon and Intel), with GPU acceleration.
|
69 |
+
* [ctransformers](https://github.com/marella/ctransformers), a Python library with GPU accel, LangChain support, and OpenAI-compatible AI server.
|
70 |
+
* [llama-cpp-python](https://github.com/abetlen/llama-cpp-python), a Python library with GPU accel, LangChain support, and OpenAI-compatible API server.
|
71 |
+
* [candle](https://github.com/huggingface/candle), a Rust ML framework with a focus on performance, including GPU support, and ease of use.
|
72 |
+
|
73 |
+
<!-- README_GGUF.md-about-gguf end -->
|
74 |
+
<!-- repositories-available start -->
|
75 |
+
## Repositories available
|
76 |
+
|
77 |
+
* [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/Nous-Capybara-7B-v1.9-AWQ)
|
78 |
+
* [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Nous-Capybara-7B-v1.9-GPTQ)
|
79 |
+
* [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/Nous-Capybara-7B-v1.9-GGUF)
|
80 |
+
* [NousResearch's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/NousResearch/Nous-Capybara-7B-V1.9)
|
81 |
+
<!-- repositories-available end -->
|
82 |
+
|
83 |
+
<!-- prompt-template start -->
|
84 |
+
## Prompt template: User-Assistant
|
85 |
+
|
86 |
+
```
|
87 |
+
USER: {prompt}
|
88 |
+
ASSISTANT:
|
89 |
+
|
90 |
+
```
|
91 |
+
|
92 |
+
<!-- prompt-template end -->
|
93 |
+
|
94 |
+
|
95 |
+
<!-- compatibility_gguf start -->
|
96 |
+
## Compatibility
|
97 |
+
|
98 |
+
These quantised GGUFv2 files are compatible with llama.cpp from August 27th onwards, as of commit [d0cee0d](https://github.com/ggerganov/llama.cpp/commit/d0cee0d36d5be95a0d9088b674dbb27354107221)
|
99 |
+
|
100 |
+
They are also compatible with many third party UIs and libraries - please see the list at the top of this README.
|
101 |
+
|
102 |
+
## Explanation of quantisation methods
|
103 |
+
|
104 |
+
<details>
|
105 |
+
<summary>Click to see details</summary>
|
106 |
+
|
107 |
+
The new methods available are:
|
108 |
+
|
109 |
+
* GGML_TYPE_Q2_K - "type-1" 2-bit quantization in super-blocks containing 16 blocks, each block having 16 weight. Block scales and mins are quantized with 4 bits. This ends up effectively using 2.5625 bits per weight (bpw)
|
110 |
+
* GGML_TYPE_Q3_K - "type-0" 3-bit quantization in super-blocks containing 16 blocks, each block having 16 weights. Scales are quantized with 6 bits. This end up using 3.4375 bpw.
|
111 |
+
* GGML_TYPE_Q4_K - "type-1" 4-bit quantization in super-blocks containing 8 blocks, each block having 32 weights. Scales and mins are quantized with 6 bits. This ends up using 4.5 bpw.
|
112 |
+
* GGML_TYPE_Q5_K - "type-1" 5-bit quantization. Same super-block structure as GGML_TYPE_Q4_K resulting in 5.5 bpw
|
113 |
+
* GGML_TYPE_Q6_K - "type-0" 6-bit quantization. Super-blocks with 16 blocks, each block having 16 weights. Scales are quantized with 8 bits. This ends up using 6.5625 bpw
|
114 |
+
|
115 |
+
Refer to the Provided Files table below to see what files use which methods, and how.
|
116 |
+
</details>
|
117 |
+
<!-- compatibility_gguf end -->
|
118 |
+
|
119 |
+
<!-- README_GGUF.md-provided-files start -->
|
120 |
+
## Provided files
|
121 |
+
|
122 |
+
| Name | Quant method | Bits | Size | Max RAM required | Use case |
|
123 |
+
| ---- | ---- | ---- | ---- | ---- | ----- |
|
124 |
+
| [nous-capybara-7b-v1.9.Q2_K.gguf](https://huggingface.co/TheBloke/Nous-Capybara-7B-v1.9-GGUF/blob/main/nous-capybara-7b-v1.9.Q2_K.gguf) | Q2_K | 2 | 3.08 GB| 5.58 GB | smallest, significant quality loss - not recommended for most purposes |
|
125 |
+
| [nous-capybara-7b-v1.9.Q3_K_S.gguf](https://huggingface.co/TheBloke/Nous-Capybara-7B-v1.9-GGUF/blob/main/nous-capybara-7b-v1.9.Q3_K_S.gguf) | Q3_K_S | 3 | 3.16 GB| 5.66 GB | very small, high quality loss |
|
126 |
+
| [nous-capybara-7b-v1.9.Q3_K_M.gguf](https://huggingface.co/TheBloke/Nous-Capybara-7B-v1.9-GGUF/blob/main/nous-capybara-7b-v1.9.Q3_K_M.gguf) | Q3_K_M | 3 | 3.52 GB| 6.02 GB | very small, high quality loss |
|
127 |
+
| [nous-capybara-7b-v1.9.Q3_K_L.gguf](https://huggingface.co/TheBloke/Nous-Capybara-7B-v1.9-GGUF/blob/main/nous-capybara-7b-v1.9.Q3_K_L.gguf) | Q3_K_L | 3 | 3.82 GB| 6.32 GB | small, substantial quality loss |
|
128 |
+
| [nous-capybara-7b-v1.9.Q4_0.gguf](https://huggingface.co/TheBloke/Nous-Capybara-7B-v1.9-GGUF/blob/main/nous-capybara-7b-v1.9.Q4_0.gguf) | Q4_0 | 4 | 4.11 GB| 6.61 GB | legacy; small, very high quality loss - prefer using Q3_K_M |
|
129 |
+
| [nous-capybara-7b-v1.9.Q4_K_S.gguf](https://huggingface.co/TheBloke/Nous-Capybara-7B-v1.9-GGUF/blob/main/nous-capybara-7b-v1.9.Q4_K_S.gguf) | Q4_K_S | 4 | 4.14 GB| 6.64 GB | small, greater quality loss |
|
130 |
+
| [nous-capybara-7b-v1.9.Q4_K_M.gguf](https://huggingface.co/TheBloke/Nous-Capybara-7B-v1.9-GGUF/blob/main/nous-capybara-7b-v1.9.Q4_K_M.gguf) | Q4_K_M | 4 | 4.37 GB| 6.87 GB | medium, balanced quality - recommended |
|
131 |
+
| [nous-capybara-7b-v1.9.Q5_0.gguf](https://huggingface.co/TheBloke/Nous-Capybara-7B-v1.9-GGUF/blob/main/nous-capybara-7b-v1.9.Q5_0.gguf) | Q5_0 | 5 | 5.00 GB| 7.50 GB | legacy; medium, balanced quality - prefer using Q4_K_M |
|
132 |
+
| [nous-capybara-7b-v1.9.Q5_K_S.gguf](https://huggingface.co/TheBloke/Nous-Capybara-7B-v1.9-GGUF/blob/main/nous-capybara-7b-v1.9.Q5_K_S.gguf) | Q5_K_S | 5 | 5.00 GB| 7.50 GB | large, low quality loss - recommended |
|
133 |
+
| [nous-capybara-7b-v1.9.Q5_K_M.gguf](https://huggingface.co/TheBloke/Nous-Capybara-7B-v1.9-GGUF/blob/main/nous-capybara-7b-v1.9.Q5_K_M.gguf) | Q5_K_M | 5 | 5.13 GB| 7.63 GB | large, very low quality loss - recommended |
|
134 |
+
| [nous-capybara-7b-v1.9.Q6_K.gguf](https://huggingface.co/TheBloke/Nous-Capybara-7B-v1.9-GGUF/blob/main/nous-capybara-7b-v1.9.Q6_K.gguf) | Q6_K | 6 | 5.94 GB| 8.44 GB | very large, extremely low quality loss |
|
135 |
+
| [nous-capybara-7b-v1.9.Q8_0.gguf](https://huggingface.co/TheBloke/Nous-Capybara-7B-v1.9-GGUF/blob/main/nous-capybara-7b-v1.9.Q8_0.gguf) | Q8_0 | 8 | 7.70 GB| 10.20 GB | very large, extremely low quality loss - not recommended |
|
136 |
+
|
137 |
+
**Note**: the above RAM figures assume no GPU offloading. If layers are offloaded to the GPU, this will reduce RAM usage and use VRAM instead.
|
138 |
+
|
139 |
+
|
140 |
+
|
141 |
+
<!-- README_GGUF.md-provided-files end -->
|
142 |
+
|
143 |
+
<!-- README_GGUF.md-how-to-download start -->
|
144 |
+
## How to download GGUF files
|
145 |
+
|
146 |
+
**Note for manual downloaders:** You almost never want to clone the entire repo! Multiple different quantisation formats are provided, and most users only want to pick and download a single file.
|
147 |
+
|
148 |
+
The following clients/libraries will automatically download models for you, providing a list of available models to choose from:
|
149 |
+
|
150 |
+
* LM Studio
|
151 |
+
* LoLLMS Web UI
|
152 |
+
* Faraday.dev
|
153 |
+
|
154 |
+
### In `text-generation-webui`
|
155 |
+
|
156 |
+
Under Download Model, you can enter the model repo: TheBloke/Nous-Capybara-7B-v1.9-GGUF and below it, a specific filename to download, such as: nous-capybara-7b-v1.9.Q4_K_M.gguf.
|
157 |
+
|
158 |
+
Then click Download.
|
159 |
+
|
160 |
+
### On the command line, including multiple files at once
|
161 |
+
|
162 |
+
I recommend using the `huggingface-hub` Python library:
|
163 |
+
|
164 |
+
```shell
|
165 |
+
pip3 install huggingface-hub
|
166 |
+
```
|
167 |
+
|
168 |
+
Then you can download any individual model file to the current directory, at high speed, with a command like this:
|
169 |
+
|
170 |
+
```shell
|
171 |
+
huggingface-cli download TheBloke/Nous-Capybara-7B-v1.9-GGUF nous-capybara-7b-v1.9.Q4_K_M.gguf --local-dir . --local-dir-use-symlinks False
|
172 |
+
```
|
173 |
+
|
174 |
+
<details>
|
175 |
+
<summary>More advanced huggingface-cli download usage</summary>
|
176 |
+
|
177 |
+
You can also download multiple files at once with a pattern:
|
178 |
+
|
179 |
+
```shell
|
180 |
+
huggingface-cli download TheBloke/Nous-Capybara-7B-v1.9-GGUF --local-dir . --local-dir-use-symlinks False --include='*Q4_K*gguf'
|
181 |
+
```
|
182 |
+
|
183 |
+
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).
|
184 |
+
|
185 |
+
To accelerate downloads on fast connections (1Gbit/s or higher), install `hf_transfer`:
|
186 |
+
|
187 |
+
```shell
|
188 |
+
pip3 install hf_transfer
|
189 |
+
```
|
190 |
+
|
191 |
+
And set environment variable `HF_HUB_ENABLE_HF_TRANSFER` to `1`:
|
192 |
+
|
193 |
+
```shell
|
194 |
+
HF_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download TheBloke/Nous-Capybara-7B-v1.9-GGUF nous-capybara-7b-v1.9.Q4_K_M.gguf --local-dir . --local-dir-use-symlinks False
|
195 |
+
```
|
196 |
+
|
197 |
+
Windows Command Line users: You can set the environment variable by running `set HF_HUB_ENABLE_HF_TRANSFER=1` before the download command.
|
198 |
+
</details>
|
199 |
+
<!-- README_GGUF.md-how-to-download end -->
|
200 |
+
|
201 |
+
<!-- README_GGUF.md-how-to-run start -->
|
202 |
+
## Example `llama.cpp` command
|
203 |
+
|
204 |
+
Make sure you are using `llama.cpp` from commit [d0cee0d](https://github.com/ggerganov/llama.cpp/commit/d0cee0d36d5be95a0d9088b674dbb27354107221) or later.
|
205 |
+
|
206 |
+
```shell
|
207 |
+
./main -ngl 32 -m nous-capybara-7b-v1.9.Q4_K_M.gguf --color -c 2048 --temp 0.7 --repeat_penalty 1.1 -n -1 -p "USER: {prompt}\nASSISTANT:"
|
208 |
+
```
|
209 |
+
|
210 |
+
Change `-ngl 32` to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.
|
211 |
+
|
212 |
+
Change `-c 2048` to the desired sequence length. For extended sequence models - eg 8K, 16K, 32K - the necessary RoPE scaling parameters are read from the GGUF file and set by llama.cpp automatically.
|
213 |
+
|
214 |
+
If you want to have a chat-style conversation, replace the `-p <PROMPT>` argument with `-i -ins`
|
215 |
+
|
216 |
+
For other parameters and how to use them, please refer to [the llama.cpp documentation](https://github.com/ggerganov/llama.cpp/blob/master/examples/main/README.md)
|
217 |
+
|
218 |
+
## How to run in `text-generation-webui`
|
219 |
+
|
220 |
+
Further instructions here: [text-generation-webui/docs/llama.cpp.md](https://github.com/oobabooga/text-generation-webui/blob/main/docs/llama.cpp.md).
|
221 |
+
|
222 |
+
## How to run from Python code
|
223 |
+
|
224 |
+
You can use GGUF models from Python using the [llama-cpp-python](https://github.com/abetlen/llama-cpp-python) or [ctransformers](https://github.com/marella/ctransformers) libraries.
|
225 |
+
|
226 |
+
### How to load this model in Python code, using ctransformers
|
227 |
+
|
228 |
+
#### First install the package
|
229 |
+
|
230 |
+
Run one of the following commands, according to your system:
|
231 |
+
|
232 |
+
```shell
|
233 |
+
# Base ctransformers with no GPU acceleration
|
234 |
+
pip install ctransformers
|
235 |
+
# Or with CUDA GPU acceleration
|
236 |
+
pip install ctransformers[cuda]
|
237 |
+
# Or with AMD ROCm GPU acceleration (Linux only)
|
238 |
+
CT_HIPBLAS=1 pip install ctransformers --no-binary ctransformers
|
239 |
+
# Or with Metal GPU acceleration for macOS systems only
|
240 |
+
CT_METAL=1 pip install ctransformers --no-binary ctransformers
|
241 |
+
```
|
242 |
+
|
243 |
+
#### Simple ctransformers example code
|
244 |
+
|
245 |
+
```python
|
246 |
+
from ctransformers import AutoModelForCausalLM
|
247 |
+
|
248 |
+
# Set gpu_layers to the number of layers to offload to GPU. Set to 0 if no GPU acceleration is available on your system.
|
249 |
+
llm = AutoModelForCausalLM.from_pretrained("TheBloke/Nous-Capybara-7B-v1.9-GGUF", model_file="nous-capybara-7b-v1.9.Q4_K_M.gguf", model_type="mistral", gpu_layers=50)
|
250 |
+
|
251 |
+
print(llm("AI is going to"))
|
252 |
+
```
|
253 |
+
|
254 |
+
## How to use with LangChain
|
255 |
+
|
256 |
+
Here are guides on using llama-cpp-python and ctransformers with LangChain:
|
257 |
+
|
258 |
+
* [LangChain + llama-cpp-python](https://python.langchain.com/docs/integrations/llms/llamacpp)
|
259 |
+
* [LangChain + ctransformers](https://python.langchain.com/docs/integrations/providers/ctransformers)
|
260 |
+
|
261 |
+
<!-- README_GGUF.md-how-to-run end -->
|
262 |
+
|
263 |
+
<!-- footer start -->
|
264 |
+
<!-- 200823 -->
|
265 |
+
## Discord
|
266 |
+
|
267 |
+
For further support, and discussions on these models and AI in general, join us at:
|
268 |
+
|
269 |
+
[TheBloke AI's Discord server](https://discord.gg/theblokeai)
|
270 |
+
|
271 |
+
## Thanks, and how to contribute
|
272 |
+
|
273 |
+
Thanks to the [chirper.ai](https://chirper.ai) team!
|
274 |
+
|
275 |
+
Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
|
276 |
+
|
277 |
+
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.
|
278 |
+
|
279 |
+
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.
|
280 |
+
|
281 |
+
Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
|
282 |
+
|
283 |
+
* Patreon: https://patreon.com/TheBlokeAI
|
284 |
+
* Ko-Fi: https://ko-fi.com/TheBlokeAI
|
285 |
+
|
286 |
+
**Special thanks to**: Aemon Algiz.
|
287 |
+
|
288 |
+
**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
|
289 |
+
|
290 |
+
|
291 |
+
Thank you to all my generous patrons and donaters!
|
292 |
+
|
293 |
+
And thank you again to a16z for their generous grant.
|
294 |
+
|
295 |
+
<!-- footer end -->
|
296 |
+
|
297 |
+
<!-- original-model-card start -->
|
298 |
+
# Original model card: NousResearch's Nous Capybara 7B v1.9
|
299 |
+
|
300 |
+
|
301 |
+
## **Nous-Capybara-7B V1.9**
|
302 |
+
|
303 |
+
**This is currently the best 7B version of Capybara to use**
|
304 |
+
|
305 |
+
What's new compared to V1?: *V1.9 now leverages novel unalignment techniques that lead to more consistent and dynamic control, we also worked on enhanced quality curation for training data and a significantly better foundation model(Mistral)!*
|
306 |
+
|
307 |
+
The Capybara series is the first Nous collection of dataset and models made by fine-tuning mostly on data created by Nous in-house.
|
308 |
+
|
309 |
+
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).
|
310 |
+
|
311 |
+
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.
|
312 |
+
|
313 |
+
## Process of creation and special thank yous!
|
314 |
+
|
315 |
+
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.
|
316 |
+
|
317 |
+
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.
|
318 |
+
|
319 |
+
## Thank you to those of you that have indirectly contributed!
|
320 |
+
|
321 |
+
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.
|
322 |
+
|
323 |
+
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.
|
324 |
+
|
325 |
+
Datasets in Blue are in-house curations that previously existed prior to Capybara.
|
326 |
+
|
327 |
+
![Capybara](https://i.imgur.com/yB58OoD.jpeg)
|
328 |
+
|
329 |
+
## Model Training
|
330 |
+
|
331 |
+
Nous-Capybara 7B V1.9 is a new model trained for multiple epochs on a dataset of roughly 20,000 carefully curated conversational examples, most of which are comprised of entirely new in-house synthesized tokens.
|
332 |
+
|
333 |
+
Additional data came from human curated CamelAI data, with the help of volunteers ranging from former Physics PhD's, Mathematicians, Biologists and more!
|
334 |
+
|
335 |
+
## Prompt Format
|
336 |
+
|
337 |
+
The reccomended model usage is:
|
338 |
+
|
339 |
+
```
|
340 |
+
USER:
|
341 |
+
|
342 |
+
ASSISTANT:
|
343 |
+
```
|
344 |
+
|
345 |
+
## Mutli-Modality!
|
346 |
+
|
347 |
+
- We currently have a Multi-modal model based on Capybara V1.9!
|
348 |
+
https://huggingface.co/NousResearch/Obsidian-3B-V0.5
|
349 |
+
it is currently only available as a 3B sized model but larger versions coming!
|
350 |
+
|
351 |
+
|
352 |
+
## Notable Features:
|
353 |
+
|
354 |
+
- 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!)
|
355 |
+
|
356 |
+
- Over 1,000 tokens average per conversation example! (Most models are trained on conversation data that is less than 300 tokens per example.)
|
357 |
+
|
358 |
+
- Able to effectively do complex summaries of advanced topics and studies. (trained on hundreds of advanced difficult summary tasks developed in-house)
|
359 |
+
|
360 |
+
- Ability to recall information upto late 2022 without internet.
|
361 |
+
|
362 |
+
- 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.
|
363 |
+
|
364 |
+
## Example Outputs!:
|
365 |
+
|
366 |
+
![Capybara](https://img001.prntscr.com/file/img001/T9yYxR1xQSaK_UGdy3t2Cw.png)
|
367 |
+
|
368 |
+
![Capybara](https://img001.prntscr.com/file/img001/DQXqmKbsQQOIcgny1eoGNA.png)
|
369 |
+
|
370 |
+
![Capybara](https://img001.prntscr.com/file/img001/85X3L9ZxTsOKo3fUQ7GRVA.png)
|
371 |
+
|
372 |
+
## Benchmarks! (Coming soon!)
|
373 |
+
|
374 |
+
## Future Changes
|
375 |
+
|
376 |
+
This is a relatively early build amongst the grand plans for the future of Capybara!
|
377 |
+
|
378 |
+
## Future model sizes
|
379 |
+
|
380 |
+
Capybara V1.9 now currently has a 3B ad 7B 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.
|
381 |
+
|
382 |
+
## How you can help!
|
383 |
+
|
384 |
+
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.
|
385 |
+
|
386 |
+
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!
|
387 |
+
|
388 |
+
## Dataset contamination.
|
389 |
+
|
390 |
+
We have checked the capybara dataset for contamination for several of the most popular datasets and can confirm that there is no contaminaton found.
|
391 |
+
|
392 |
+
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.
|
393 |
+
|
394 |
+
The following are benchmarks we checked for contamination against our dataset:
|
395 |
+
|
396 |
+
- HumanEval
|
397 |
+
|
398 |
+
- AGIEval
|
399 |
+
|
400 |
+
- TruthfulQA
|
401 |
+
|
402 |
+
- MMLU
|
403 |
+
|
404 |
+
- GPT4All
|
405 |
+
|
406 |
+
<!-- original-model-card end -->
|