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ets:
|
3 |
+
- Open-Orca/OpenOrca
|
4 |
+
inference: false
|
5 |
+
language:
|
6 |
+
- en
|
7 |
+
library_name: transformers
|
8 |
+
license: other
|
9 |
+
model_type: llama
|
10 |
+
pipeline_tag: text-generation
|
11 |
+
---
|
12 |
+
|
13 |
+
<!-- header start -->
|
14 |
+
<div style="width: 100%;">
|
15 |
+
<img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
|
16 |
+
</div>
|
17 |
+
<div style="display: flex; justify-content: space-between; width: 100%;">
|
18 |
+
<div style="display: flex; flex-direction: column; align-items: flex-start;">
|
19 |
+
<p><a href="https://discord.gg/theblokeai">Chat & support: my new Discord server</a></p>
|
20 |
+
</div>
|
21 |
+
<div style="display: flex; flex-direction: column; align-items: flex-end;">
|
22 |
+
<p><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p>
|
23 |
+
</div>
|
24 |
+
</div>
|
25 |
+
<!-- header end -->
|
26 |
+
|
27 |
+
# Open-Orca's OpenOrca Preview1 200k GPT4 LLaMA 13B GGML
|
28 |
+
|
29 |
+
These files are GGML format model files for [Open-Orca's OpenOrca Preview1 200k GPT4 LLaMA 13B](https://huggingface.co/Open-Orca/OpenOrca_Preview1-200k-GPT4_LLaMA-13B).
|
30 |
+
|
31 |
+
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:
|
32 |
+
* [KoboldCpp](https://github.com/LostRuins/koboldcpp), a powerful GGML web UI with full GPU acceleration out of the box. Especially good for story telling.
|
33 |
+
* [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui), a great web UI with GPU acceleration via the c_transformers backend.
|
34 |
+
* [LM Studio](https://lmstudio.ai/), a fully featured local GUI. Supports full GPU accel on macOS. Also supports Windows, without GPU accel.
|
35 |
+
* [text-generation-webui](https://github.com/oobabooga/text-generation-webui), the most popular web UI. Requires extra steps to enable GPU accel via llama.cpp backend.
|
36 |
+
* [ctransformers](https://github.com/marella/ctransformers), a Python library with LangChain support and OpenAI-compatible AI server.
|
37 |
+
* [llama-cpp-python](https://github.com/abetlen/llama-cpp-python), a Python library with OpenAI-compatible API server.
|
38 |
+
|
39 |
+
These files were quantised using hardware kindly provided by [Latitude.sh](https://www.latitude.sh/accelerate).
|
40 |
+
|
41 |
+
## Repositories available
|
42 |
+
|
43 |
+
* [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/OpenOrca_Preview1-200k-GPT4_LLaMA-13B-GPTQ)
|
44 |
+
* [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference](https://huggingface.co/TheBloke/OpenOrca_Preview1-200k-GPT4_LLaMA-13B-GGML)
|
45 |
+
* [Unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/Open-Orca/OpenOrca_Preview1-200k-GPT4_LLaMA-13B)
|
46 |
+
|
47 |
+
## Prompt template: Alpaca
|
48 |
+
|
49 |
+
```
|
50 |
+
Below is an instruction that describes a task. Write a response that appropriately completes the request.
|
51 |
+
|
52 |
+
### Instruction: {prompt}
|
53 |
+
|
54 |
+
### Response:
|
55 |
+
```
|
56 |
+
|
57 |
+
<!-- compatibility_ggml start -->
|
58 |
+
## Compatibility
|
59 |
+
|
60 |
+
### Original llama.cpp quant methods: `q4_0, q4_1, q5_0, q5_1, q8_0`
|
61 |
+
|
62 |
+
These are guaranteed to be compatible with any UIs, tools and libraries released since late May. They may be phased out soon, as they are largely superseded by the new k-quant methods.
|
63 |
+
|
64 |
+
### 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`
|
65 |
+
|
66 |
+
These new quantisation methods are compatible with llama.cpp as of June 6th, commit `2d43387`.
|
67 |
+
|
68 |
+
They are now also compatible with recent releases of text-generation-webui, KoboldCpp, llama-cpp-python, ctransformers, rustformers and most others. For compatibility with other tools and libraries, please check their documentation.
|
69 |
+
|
70 |
+
## Explanation of the new k-quant methods
|
71 |
+
<details>
|
72 |
+
<summary>Click to see details</summary>
|
73 |
+
|
74 |
+
The new methods available are:
|
75 |
+
* 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)
|
76 |
+
* 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.
|
77 |
+
* 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.
|
78 |
+
* GGML_TYPE_Q5_K - "type-1" 5-bit quantization. Same super-block structure as GGML_TYPE_Q4_K resulting in 5.5 bpw
|
79 |
+
* 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
|
80 |
+
* 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.
|
81 |
+
|
82 |
+
Refer to the Provided Files table below to see what files use which methods, and how.
|
83 |
+
</details>
|
84 |
+
<!-- compatibility_ggml end -->
|
85 |
+
|
86 |
+
## Provided files
|
87 |
+
| Name | Quant method | Bits | Size | Max RAM required | Use case |
|
88 |
+
| ---- | ---- | ---- | ---- | ---- | ----- |
|
89 |
+
|
90 |
+
|
91 |
+
**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.
|
92 |
+
|
93 |
+
## How to run in `llama.cpp`
|
94 |
+
|
95 |
+
I use the following command line; adjust for your tastes and needs:
|
96 |
+
|
97 |
+
```
|
98 |
+
./main -t 10 -ngl 32 -m openorca-preview1-200k-llama-13b.ggmlv3.q4_0.bin --color -c 2048 --temp 0.7 --repeat_penalty 1.1 -n -1 -p "### Instruction: Write a story about llamas\n### Response:"
|
99 |
+
```
|
100 |
+
Change `-t 10` to the number of physical CPU cores you have. For example if your system has 8 cores/16 threads, use `-t 8`.
|
101 |
+
|
102 |
+
Change `-ngl 32` to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.
|
103 |
+
|
104 |
+
If you want to have a chat-style conversation, replace the `-p <PROMPT>` argument with `-i -ins`
|
105 |
+
|
106 |
+
## How to run in `text-generation-webui`
|
107 |
+
|
108 |
+
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).
|
109 |
+
|
110 |
+
<!-- footer start -->
|
111 |
+
## Discord
|
112 |
+
|
113 |
+
For further support, and discussions on these models and AI in general, join us at:
|
114 |
+
|
115 |
+
[TheBloke AI's Discord server](https://discord.gg/theblokeai)
|
116 |
+
|
117 |
+
## Thanks, and how to contribute.
|
118 |
+
|
119 |
+
Thanks to the [chirper.ai](https://chirper.ai) team!
|
120 |
+
|
121 |
+
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.
|
122 |
+
|
123 |
+
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.
|
124 |
+
|
125 |
+
Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
|
126 |
+
|
127 |
+
* Patreon: https://patreon.com/TheBlokeAI
|
128 |
+
* Ko-Fi: https://ko-fi.com/TheBlokeAI
|
129 |
+
|
130 |
+
**Special thanks to**: Luke from CarbonQuill, Aemon Algiz.
|
131 |
+
|
132 |
+
**Patreon special mentions**: Space Cruiser, Nikolai Manek, Sam, Chris McCloskey, Rishabh Srivastava, Kalila, Spiking Neurons AB, Khalefa Al-Ahmad, WelcomeToTheClub, Chadd, Lone Striker, Viktor Bowallius, Edmond Seymore, Ai Maven, Chris Smitley, Dave, Alexandros Triantafyllidis, Luke @flexchar, Elle, ya boyyy, Talal Aujan, Alex , Jonathan Leane, Deep Realms, Randy H, subjectnull, Preetika Verma, Joseph William Delisle, Michael Levine, chris gileta, K, Oscar Rangel, LangChain4j, Trenton Dambrowitz, Eugene Pentland, Johann-Peter Hartmann, Femi Adebogun, Illia Dulskyi, senxiiz, Daniel P. Andersen, Sean Connelly, Artur Olbinski, RoA, Mano Prime, Derek Yates, Raven Klaugh, David Flickinger, Willem Michiel, Pieter, Willian Hasse, vamX, Luke Pendergrass, webtim, Ghost , Rainer Wilmers, Nathan LeClaire, Will Dee, Cory Kujawski, John Detwiler, Fred von Graf, biorpg, Iucharbius , Imad Khwaja, Pierre Kircher, terasurfer , Asp the Wyvern, John Villwock, theTransient, zynix , Gabriel Tamborski, Fen Risland, Gabriel Puliatti, Matthew Berman, Pyrater, SuperWojo, Stephen Murray, Karl Bernard, Ajan Kanaga, Greatston Gnanesh, Junyu Yang.
|
133 |
+
|
134 |
+
Thank you to all my generous patrons and donaters!
|
135 |
+
|
136 |
+
<!-- footer end -->
|
137 |
+
|
138 |
+
# Original model card: Open-Orca's OpenOrca Preview1 200k GPT4 LLaMA 13B
|
139 |
+
|
140 |
+
|
141 |
+
<p><h1>🐋 The First OpenOrca Model Preview! 🐋</h1></p>
|
142 |
+
|
143 |
+
# OpenOrca_Preview1-200k-GPT4_LLaMA-13B
|
144 |
+
|
145 |
+
We have used our own [OpenOrca dataset](https://huggingface.co/datasets/Open-Orca/OpenOrca) to fine-tune LLaMA-13B.
|
146 |
+
This dataset is our attempt to reproduce the dataset generated for Microsoft Research's [Orca Paper](https://arxiv.org/abs/2306.02707).
|
147 |
+
|
148 |
+
We have trained on less than 6% of our data, just to give a preview of what is possible while we further refine our dataset!
|
149 |
+
We trained a refined selection of 200k GPT-4 entries from OpenOrca.
|
150 |
+
We have filtered our GPT-4 augmentations to remove statements like, "As an AI language model..." and other responses which have been shown to harm model reasoning capabilities. Further details on our dataset curation practices will be forthcoming with our full model releases.
|
151 |
+
|
152 |
+
This release highlights that even a small portion of our training data can produce state of the art results in this model class with training costs <$200 in total.
|
153 |
+
|
154 |
+
We are in-process with training more models, so keep a look out on our org for releases coming soon with exciting partners.
|
155 |
+
|
156 |
+
We will also give sneak-peak announcements on our Discord, which you can find here:
|
157 |
+
|
158 |
+
https://AlignmentLab.ai
|
159 |
+
|
160 |
+
|
161 |
+
# Evaluation
|
162 |
+
|
163 |
+
We have evaluated OpenOrca_Preview1-200k-GPT4_LLaMA-13B on hard reasoning tasks from BigBench-Hard and AGIEval as outlined in the Orca paper.
|
164 |
+
|
165 |
+
Our average performance for BigBench-Hard: 0.3753
|
166 |
+
|
167 |
+
Average for AGIEval: 0.3638
|
168 |
+
|
169 |
+
In the Orca paper, they measured their score relative to Vicuna on these evals.
|
170 |
+
We've done the same and have found our score averages to ~60% of the total improvement that was shown in the Orca paper.
|
171 |
+
|
172 |
+
So we got 60% of the improvement with 6% of the data!
|
173 |
+
|
174 |
+
## BigBench-Hard Performance
|
175 |
+
![OpenOrca Preview1 BigBench-Hard Performance](https://huggingface.co/Open-Orca/OpenOrca_Preview1-200k-GPT4_LLaMA-13B/resolve/main/OO_Preview1_BigBenchHard.png "BigBench-Hard Performance")
|
176 |
+
|
177 |
+
## AGIEval Performance
|
178 |
+
![OpenOrca Preview1 AGIEval Performance](https://huggingface.co/Open-Orca/OpenOrca_Preview1-200k-GPT4_LLaMA-13B/resolve/main/OO_Preview1_AGIEval.png "AGIEval Performance")
|
179 |
+
|
180 |
+
We will report our results on [HuggingFaceH4 Open LLM Leaderboard](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard) Evals once we receive them.
|
181 |
+
|
182 |
+
|
183 |
+
# Dataset
|
184 |
+
|
185 |
+
We used a small (6%, 200k) subset of our data from OpenOrca, which aims to reproduce the Orca Research Paper dataset.
|
186 |
+
|
187 |
+
As this release is intended as a preview, please await our full releases for further details on the training data.
|
188 |
+
|
189 |
+
|
190 |
+
# Training
|
191 |
+
|
192 |
+
[<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)
|
193 |
+
|
194 |
+
We trained with 8x A100-80G GPUs for 15 hours. Commodity cost was < $200.
|
195 |
+
|
196 |
+
We trained for 4 epochs and selected a snapshot at 3 epochs for peak performance.
|
197 |
+
|
198 |
+
Please await our full releases for further training details.
|
199 |
+
|
200 |
+
|
201 |
+
# Citation
|
202 |
+
|
203 |
+
```bibtex
|
204 |
+
@software{OpenOrca_Preview1,
|
205 |
+
title = {OpenOrca_Preview1: A LLaMA-13B Model Fine-tuned on Small Portion of OpenOrcaV1 Dataset},
|
206 |
+
author = {Wing Lian and Bleys Goodson and Eugene Pentland and Austin Cook and "NanoBit" and "Teknium"},
|
207 |
+
year = {2023},
|
208 |
+
publisher = {HuggingFace},
|
209 |
+
journal = {HuggingFace repository},
|
210 |
+
howpublished = {\url{https://https://huggingface.co/Open-Orca/OpenOrca_Preview1-200k-GPT4_LLaMA-13B},
|
211 |
+
}
|
212 |
+
```
|
213 |
+
```bibtex
|
214 |
+
@misc{mukherjee2023orca,
|
215 |
+
title={Orca: Progressive Learning from Complex Explanation Traces of GPT-4},
|
216 |
+
author={Subhabrata Mukherjee and Arindam Mitra and Ganesh Jawahar and Sahaj Agarwal and Hamid Palangi and Ahmed Awadallah},
|
217 |
+
year={2023},
|
218 |
+
eprint={2306.02707},
|
219 |
+
archivePrefix={arXiv},
|
220 |
+
primaryClass={cs.CL}
|
221 |
+
}
|
222 |
+
```
|
223 |
+
```bibtex
|
224 |
+
@misc{longpre2023flan,
|
225 |
+
title={The Flan Collection: Designing Data and Methods for Effective Instruction Tuning},
|
226 |
+
author={Shayne Longpre and Le Hou and Tu Vu and Albert Webson and Hyung Won Chung and Yi Tay and Denny Zhou and Quoc V. Le and Barret Zoph and Jason Wei and Adam Roberts},
|
227 |
+
year={2023},
|
228 |
+
eprint={2301.13688},
|
229 |
+
archivePrefix={arXiv},
|
230 |
+
primaryClass={cs.AI}
|
231 |
+
}
|
232 |
+
```
|
233 |
+
```bibtex
|
234 |
+
@software{touvron2023llama,
|
235 |
+
title={LLaMA: Open and Efficient Foundation Language Models},
|
236 |
+
author={Touvron, Hugo and Lavril, Thibaut and Izacard, Gautier and Martinet, Xavier and Lachaux, Marie-Anne and Lacroix, Timoth{\'e}e and Rozi{\`e}re, Baptiste and Goyal, Naman and Hambro, Eric and Azhar, Faisal and Rodriguez, Aurelien and Joulin, Armand and Grave, Edouard and Lample, Guillaume},
|
237 |
+
journal={arXiv preprint arXiv:2302.13971},
|
238 |
+
year={2023}
|
239 |
+
}
|
240 |
+
```
|