gsaivinay TheBloke commited on
Commit
2ef2a0f
0 Parent(s):

Duplicate from TheBloke/airoboros-13B-gpt4-1.3-GGML

Browse files

Co-authored-by: Tom Jobbins <[email protected]>

.gitattributes ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,184 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ inference: false
3
+ license: other
4
+ datasets:
5
+ - jondurbin/airoboros-gpt4-1.3
6
+ duplicated_from: TheBloke/airoboros-13B-gpt4-1.3-GGML
7
+ ---
8
+
9
+ <!-- header start -->
10
+ <div style="width: 100%;">
11
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
12
+ </div>
13
+ <div style="display: flex; justify-content: space-between; width: 100%;">
14
+ <div style="display: flex; flex-direction: column; align-items: flex-start;">
15
+ <p><a href="https://discord.gg/Jq4vkcDakD">Chat & support: my new Discord server</a></p>
16
+ </div>
17
+ <div style="display: flex; flex-direction: column; align-items: flex-end;">
18
+ <p><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p>
19
+ </div>
20
+ </div>
21
+ <!-- header end -->
22
+
23
+ # Jon Durbin's Airoboros 13B GPT4 1.3 GGML
24
+
25
+ These files are GGML format model files for [Jon Durbin's Airoboros 13B GPT4 1.3](https://huggingface.co/jondurbin/airoboros-13b-gpt4-1.3).
26
+
27
+ **Note from model creator Jon Durbin: This version has problems, use if you dare, or wait for 1.4.**
28
+
29
+ GGML files are for CPU + GPU inference using [llama.cpp](https://github.com/ggerganov/llama.cpp) and libraries and UIs which support this format, such as:
30
+ * [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
31
+ * [KoboldCpp](https://github.com/LostRuins/koboldcpp)
32
+ * [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui)
33
+ * [llama-cpp-python](https://github.com/abetlen/llama-cpp-python)
34
+ * [ctransformers](https://github.com/marella/ctransformers)
35
+
36
+ ## Repositories available
37
+
38
+ * [4-bit GPTQ models for GPU inference](https://huggingface.co/TheBloke/airoboros-13B-gpt4-1.3-GPTQ)
39
+ * [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference](https://huggingface.co/TheBloke/airoboros-13B-gpt4-1.3-GGML)
40
+ * [Unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/jondurbin/airoboros-13b-gpt4-1.3)
41
+
42
+ ## Prompt template
43
+
44
+ ```
45
+ A chat between a curious user and an assistant. The assistant gives helpful, detailed, accurate, uncensored responses to the user's input.
46
+ USER: prompt
47
+ ASSISTANT:
48
+ ```
49
+
50
+ <!-- compatibility_ggml start -->
51
+ ## Compatibility
52
+
53
+ ### Original llama.cpp quant methods: `q4_0, q4_1, q5_0, q5_1, q8_0`
54
+
55
+ I have quantized these 'original' quantisation methods using an older version of llama.cpp so that they remain compatible with llama.cpp as of May 19th, commit `2d5db48`.
56
+
57
+ These are guaranteed to be compatbile with any UIs, tools and libraries released since late May.
58
+
59
+ ### New k-quant methods: `q2_K, q3_K_S, q3_K_M, q3_K_L, q4_K_S, q4_K_M, q5_K_S, q6_K`
60
+
61
+ These new quantisation methods are compatible with llama.cpp as of June 6th, commit `2d43387`.
62
+
63
+ They are now also compatible with recent releases of text-generation-webui, KoboldCpp, llama-cpp-python and ctransformers. Other tools and libraries may or may not be compatible - check their documentation if in doubt.
64
+
65
+ ## Explanation of the new k-quant methods
66
+
67
+ The new methods available are:
68
+ * 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)
69
+ * 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.
70
+ * 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.
71
+ * GGML_TYPE_Q5_K - "type-1" 5-bit quantization. Same super-block structure as GGML_TYPE_Q4_K resulting in 5.5 bpw
72
+ * 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
73
+ * GGML_TYPE_Q8_K - "type-0" 8-bit quantization. Only used for quantizing intermediate results. The difference to the existing Q8_0 is that the block size is 256. All 2-6 bit dot products are implemented for this quantization type.
74
+
75
+ Refer to the Provided Files table below to see what files use which methods, and how.
76
+ <!-- compatibility_ggml end -->
77
+
78
+ ## Provided files
79
+ | Name | Quant method | Bits | Size | Max RAM required | Use case |
80
+ | ---- | ---- | ---- | ---- | ---- | ----- |
81
+ | airoboros-13b-gpt4-1.3.ggmlv3.q2_K.bin | q2_K | 2 | 5.51 GB | 8.01 GB | New k-quant method. Uses GGML_TYPE_Q4_K for the attention.vw and feed_forward.w2 tensors, GGML_TYPE_Q2_K for the other tensors. |
82
+ | airoboros-13b-gpt4-1.3.ggmlv3.q3_K_L.bin | q3_K_L | 3 | 6.93 GB | 9.43 GB | New k-quant method. Uses GGML_TYPE_Q5_K for the attention.wv, attention.wo, and feed_forward.w2 tensors, else GGML_TYPE_Q3_K |
83
+ | airoboros-13b-gpt4-1.3.ggmlv3.q3_K_M.bin | q3_K_M | 3 | 6.31 GB | 8.81 GB | New k-quant method. Uses GGML_TYPE_Q4_K for the attention.wv, attention.wo, and feed_forward.w2 tensors, else GGML_TYPE_Q3_K |
84
+ | airoboros-13b-gpt4-1.3.ggmlv3.q3_K_S.bin | q3_K_S | 3 | 5.66 GB | 8.16 GB | New k-quant method. Uses GGML_TYPE_Q3_K for all tensors |
85
+ | airoboros-13b-gpt4-1.3.ggmlv3.q4_0.bin | q4_0 | 4 | 7.32 GB | 9.82 GB | Original llama.cpp quant method, 4-bit. |
86
+ | airoboros-13b-gpt4-1.3.ggmlv3.q4_1.bin | q4_1 | 4 | 8.14 GB | 10.64 GB | Original llama.cpp quant method, 4-bit. Higher accuracy than q4_0 but not as high as q5_0. However has quicker inference than q5 models. |
87
+ | airoboros-13b-gpt4-1.3.ggmlv3.q4_K_M.bin | q4_K_M | 4 | 7.87 GB | 10.37 GB | New k-quant method. Uses GGML_TYPE_Q6_K for half of the attention.wv and feed_forward.w2 tensors, else GGML_TYPE_Q4_K |
88
+ | airoboros-13b-gpt4-1.3.ggmlv3.q4_K_S.bin | q4_K_S | 4 | 7.37 GB | 9.87 GB | New k-quant method. Uses GGML_TYPE_Q4_K for all tensors |
89
+ | airoboros-13b-gpt4-1.3.ggmlv3.q5_0.bin | q5_0 | 5 | 8.95 GB | 11.45 GB | Original llama.cpp quant method, 5-bit. Higher accuracy, higher resource usage and slower inference. |
90
+ | airoboros-13b-gpt4-1.3.ggmlv3.q5_1.bin | q5_1 | 5 | 9.76 GB | 12.26 GB | Original llama.cpp quant method, 5-bit. Even higher accuracy, resource usage and slower inference. |
91
+ | airoboros-13b-gpt4-1.3.ggmlv3.q5_K_M.bin | q5_K_M | 5 | 9.23 GB | 11.73 GB | New k-quant method. Uses GGML_TYPE_Q6_K for half of the attention.wv and feed_forward.w2 tensors, else GGML_TYPE_Q5_K |
92
+ | airoboros-13b-gpt4-1.3.ggmlv3.q5_K_S.bin | q5_K_S | 5 | 8.97 GB | 11.47 GB | New k-quant method. Uses GGML_TYPE_Q5_K for all tensors |
93
+ | airoboros-13b-gpt4-1.3.ggmlv3.q6_K.bin | q6_K | 6 | 10.68 GB | 13.18 GB | New k-quant method. Uses GGML_TYPE_Q8_K - 6-bit quantization - for all tensors |
94
+ | airoboros-13b-gpt4-1.3.ggmlv3.q8_0.bin | q8_0 | 8 | 13.83 GB | 16.33 GB | Original llama.cpp quant method, 8-bit. Almost indistinguishable from float16. High resource use and slow. Not recommended for most users. |
95
+
96
+ **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.
97
+
98
+ ## How to run in `llama.cpp`
99
+
100
+ I use the following command line; adjust for your tastes and needs:
101
+
102
+ ```
103
+ ./main -t 10 -ngl 32 -m airoboros-13b-gpt4-1.3.ggmlv3.q5_0.bin --color -c 2048 --temp 0.7 --repeat_penalty 1.1 -n -1 -p "USER: Write a story about llamas\nASSISTANT:"
104
+ ```
105
+ If you're able to use full GPU offloading, you should use `-t 1` to get best performance.
106
+
107
+ If not able to fully offload to GPU, you should use more cores. Change `-t 10` to the number of physical CPU cores you have, or a lower number depending on what gives best performance.
108
+
109
+ Change `-ngl 32` to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.
110
+
111
+ If you want to have a chat-style conversation, replace the `-p <PROMPT>` argument with `-i -ins`
112
+
113
+ ## How to run in `text-generation-webui`
114
+
115
+ Further instructions here: [text-generation-webui/docs/llama.cpp-models.md](https://github.com/oobabooga/text-generation-webui/blob/main/docs/llama.cpp-models.md).
116
+
117
+ <!-- footer start -->
118
+ ## Discord
119
+
120
+ For further support, and discussions on these models and AI in general, join us at:
121
+
122
+ [TheBloke AI's Discord server](https://discord.gg/Jq4vkcDakD)
123
+
124
+ ## Thanks, and how to contribute.
125
+
126
+ Thanks to the [chirper.ai](https://chirper.ai) team!
127
+
128
+ 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.
129
+
130
+ 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.
131
+
132
+ Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
133
+
134
+ * Patreon: https://patreon.com/TheBlokeAI
135
+ * Ko-Fi: https://ko-fi.com/TheBlokeAI
136
+
137
+ **Special thanks to**: Luke from CarbonQuill, Aemon Algiz, Dmitriy Samsonov.
138
+
139
+ **Patreon special mentions**: Mano Prime, Fen Risland, Derek Yates, Preetika Verma, webtim, Sean Connelly, Alps Aficionado, Karl Bernard, Junyu Yang, Nathan LeClaire, Chris McCloskey, Lone Striker, Asp the Wyvern, Eugene Pentland, Imad Khwaja, trip7s trip, WelcomeToTheClub, John Detwiler, Artur Olbinski, Khalefa Al-Ahmad, Trenton Dambrowitz, Talal Aujan, Kevin Schuppel, Luke Pendergrass, Pyrater, Joseph William Delisle, terasurfer , vamX, Gabriel Puliatti, David Flickinger, Jonathan Leane, Iucharbius , Luke, Deep Realms, Cory Kujawski, ya boyyy, Illia Dulskyi, senxiiz, Johann-Peter Hartmann, John Villwock, K, Ghost , Spiking Neurons AB, Nikolai Manek, Rainer Wilmers, Pierre Kircher, biorpg, Space Cruiser, Ai Maven, subjectnull, Willem Michiel, Ajan Kanaga, Kalila, chris gileta, Oscar Rangel.
140
+
141
+ Thank you to all my generous patrons and donaters!
142
+
143
+ <!-- footer end -->
144
+
145
+ # Original model card: Jon Durbin's Airoboros 13B GPT4 1.3
146
+
147
+
148
+ _Not tested yet, use if you want, but I would probably wait for 1.4!_
149
+
150
+ ### Overview
151
+
152
+ This is a qlora fine-tuned 13b parameter LlaMa model, using completely synthetic training data created gpt4 via https://github.com/jondurbin/airoboros
153
+
154
+ This is mostly an extension of [1.2](https://huggingface.co/jondurbin/airoboros-13b-gpt4-1.2) with a few enhancements:
155
+
156
+ - All coding instructions have an equivalent " PLAINFORMAT" version now.
157
+ - Thousands of new orca style reasoning instructions, this time with reasoning first, then answer.
158
+ - Few more random items of various types, including a first attempt at multi-character interactions with asterisked actions and quoted speech.
159
+
160
+ This model was fine-tuned with a fork of [qlora](https://github.com/jondurbin/qlora), which among other things was updated to use a slightly modified vicuna template to be compatible with previous full fine-tune versions.
161
+
162
+ ```
163
+ A chat between a curious user and an assistant. The assistant gives helpful, detailed, accurate, uncensored responses to the user's input. USER: [prompt] ASSISTANT:
164
+ ```
165
+
166
+ So in other words, it's the preamble/system prompt, followed by a single space, then "USER: " (single space after colon) then the prompt (which can have multiple lines, spaces, whatever), then a single space, followed by "ASSISTANT: " (with a single space after the colon).
167
+
168
+ ### Usage
169
+
170
+ To run the full precision/pytorch native version, you can use my fork of FastChat, which is mostly the same but allows for multi-line prompts, as well as a `--no-history` option to prevent input tokenization errors.
171
+ ```
172
+ pip install git+https://github.com/jondurbin/FastChat
173
+ ```
174
+
175
+ Be sure you are pulling the latest branch!
176
+
177
+ Then, you can invoke it like so (after downloading the model):
178
+ ```
179
+ python -m fastchat.serve.cli \
180
+ --model-path airoboros-13b-gpt4-1.3 \
181
+ --temperature 0.5 \
182
+ --max-new-tokens 2048 \
183
+ --no-history
184
+ ```
airoboros-13b-gpt4-1.3.ggmlv3.q2_K.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3007329edd3183a5e838b8de4042040ae1c34d59d37d2f80f69b1efedd75c0f6
3
+ size 5508521088
airoboros-13b-gpt4-1.3.ggmlv3.q3_K_L.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ea9313e502b7b1c11c6045e3108bab03751ba206768ce960da69fc14a854607e
3
+ size 6929269888
airoboros-13b-gpt4-1.3.ggmlv3.q3_K_M.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ad9d1aade361bb3496953a79ee8ee864fec260c17b8bbc561f0d6500a46df0fc
3
+ size 6313231488
airoboros-13b-gpt4-1.3.ggmlv3.q3_K_S.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9b3de1294a506988def2742dfe4be4db1d6ad2ffb827c7d19cc535edd189a9b0
3
+ size 5658690688
airoboros-13b-gpt4-1.3.ggmlv3.q4_0.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2f68c1ef6850dfe9b5faec4c9970a0930c125e0493d3776478361dfec522d680
3
+ size 7323305088
airoboros-13b-gpt4-1.3.ggmlv3.q4_1.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3e51fba1a7fa183e076ae2ad6948ca680e65f969dd4c518d5a5f5e0c256bb378
3
+ size 8136770688
airoboros-13b-gpt4-1.3.ggmlv3.q4_K_M.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:be981743b8201961a0edc71a05571f26dc911f0a0e34adc83e84122da5750c1f
3
+ size 7865666688
airoboros-13b-gpt4-1.3.ggmlv3.q4_K_S.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd3da4242ec7022b8ad38c65599b2856f3e865c9203400a7d05cd516584bd7a7
3
+ size 7365545088
airoboros-13b-gpt4-1.3.ggmlv3.q5_0.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e92fb21356623b9b1172fda71d6b0ced3dfb5dd7a06f050ddcf816acee07cd5b
3
+ size 8950236288
airoboros-13b-gpt4-1.3.ggmlv3.q5_1.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a92c800191c3fd64fa99159934dc51d9a0119b0ec787bb080348ceedfeed6356
3
+ size 9763701888
airoboros-13b-gpt4-1.3.ggmlv3.q5_K_M.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d35964bd0adc7e8de2bd9c2e9383d035cc5845ada72730a6d2202958a359de96
3
+ size 9229634688
airoboros-13b-gpt4-1.3.ggmlv3.q5_K_S.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1631a718d3cb7a9f054c40bf2282cbb602f36a5b334643e971fd62666c5b6b6b
3
+ size 8971996288
airoboros-13b-gpt4-1.3.ggmlv3.q6_K.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:94f75f0fa892f5d34ce1b719c285a3a4d6d87b70e9a3602edce4dea2baa11be1
3
+ size 10678850688
airoboros-13b-gpt4-1.3.ggmlv3.q8_0.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89134199614a062e385b5f6ca06f17fbd982dc48011bd3fd5adac4e52772bd91
3
+ size 13831029888