Text Generation
Transformers
English
llama
text-generation-inference
TheBloke commited on
Commit
da4ab3c
1 Parent(s): a7b47e9

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +143 -51
README.md CHANGED
@@ -1,29 +1,35 @@
1
  ---
2
  datasets:
3
  - garage-bAInd/Open-Platypus
 
4
  inference: false
5
  language:
6
  - en
7
- license: other
 
8
  model_creator: Open-Orca
9
  model_link: https://huggingface.co/Open-Orca/OpenOrca-Platypus2-13B
10
  model_name: OpenOrca Platypus2 13B
11
  model_type: llama
 
12
  quantized_by: TheBloke
13
  ---
14
 
15
  <!-- header start -->
16
- <div style="width: 100%;">
17
- <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
 
18
  </div>
19
  <div style="display: flex; justify-content: space-between; width: 100%;">
20
  <div style="display: flex; flex-direction: column; align-items: flex-start;">
21
- <p><a href="https://discord.gg/theblokeai">Chat & support: my new Discord server</a></p>
22
  </div>
23
  <div style="display: flex; flex-direction: column; align-items: flex-end;">
24
- <p><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p>
25
  </div>
26
  </div>
 
 
27
  <!-- header end -->
28
 
29
  # OpenOrca Platypus2 13B - GGML
@@ -34,6 +40,13 @@ quantized_by: TheBloke
34
 
35
  This repo contains GGML format model files for [Open-Orca's OpenOrca Platypus2 13B](https://huggingface.co/Open-Orca/OpenOrca-Platypus2-13B).
36
 
 
 
 
 
 
 
 
37
  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:
38
  * [text-generation-webui](https://github.com/oobabooga/text-generation-webui), the most popular web UI. Supports NVidia CUDA GPU acceleration.
39
  * [KoboldCpp](https://github.com/LostRuins/koboldcpp), a powerful GGML web UI with GPU acceleration on all platforms (CUDA and OpenCL). Especially good for story telling.
@@ -45,7 +58,8 @@ GGML files are for CPU + GPU inference using [llama.cpp](https://github.com/gger
45
  ## Repositories available
46
 
47
  * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/OpenOrca-Platypus2-13B-GPTQ)
48
- * [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference](https://huggingface.co/TheBloke/OpenOrca-Platypus2-13B-GGML)
 
49
  * [Open-Orca's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/Open-Orca/OpenOrca-Platypus2-13B)
50
 
51
  ## Prompt template: Alpaca-InstructOnly
@@ -56,14 +70,19 @@ GGML files are for CPU + GPU inference using [llama.cpp](https://github.com/gger
56
  {prompt}
57
 
58
  ### Response:
 
59
  ```
60
 
61
  <!-- compatibility_ggml start -->
62
  ## Compatibility
63
 
64
- These quantised GGML files are compatible with llama.cpp as of June 6th, commit `2d43387`.
 
 
65
 
66
- They should also be compatible with all UIs, libraries and utilities which use GGML.
 
 
67
 
68
  ## Explanation of the new k-quant methods
69
  <details>
@@ -86,17 +105,17 @@ Refer to the Provided Files table below to see what files use which methods, and
86
  | Name | Quant method | Bits | Size | Max RAM required | Use case |
87
  | ---- | ---- | ---- | ---- | ---- | ----- |
88
  | [openorca-platypus2-13b.ggmlv3.q2_K.bin](https://huggingface.co/TheBloke/OpenOrca-Platypus2-13B-GGML/blob/main/openorca-platypus2-13b.ggmlv3.q2_K.bin) | q2_K | 2 | 5.74 GB| 8.24 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. |
89
- | [openorca-platypus2-13b.ggmlv3.q3_K_L.bin](https://huggingface.co/TheBloke/OpenOrca-Platypus2-13B-GGML/blob/main/openorca-platypus2-13b.ggmlv3.q3_K_L.bin) | q3_K_L | 3 | 7.14 GB| 9.64 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 |
90
- | [openorca-platypus2-13b.ggmlv3.q3_K_M.bin](https://huggingface.co/TheBloke/OpenOrca-Platypus2-13B-GGML/blob/main/openorca-platypus2-13b.ggmlv3.q3_K_M.bin) | q3_K_M | 3 | 6.53 GB| 9.03 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 |
91
  | [openorca-platypus2-13b.ggmlv3.q3_K_S.bin](https://huggingface.co/TheBloke/OpenOrca-Platypus2-13B-GGML/blob/main/openorca-platypus2-13b.ggmlv3.q3_K_S.bin) | q3_K_S | 3 | 5.87 GB| 8.37 GB | New k-quant method. Uses GGML_TYPE_Q3_K for all tensors |
 
 
92
  | [openorca-platypus2-13b.ggmlv3.q4_0.bin](https://huggingface.co/TheBloke/OpenOrca-Platypus2-13B-GGML/blob/main/openorca-platypus2-13b.ggmlv3.q4_0.bin) | q4_0 | 4 | 7.32 GB| 9.82 GB | Original quant method, 4-bit. |
93
- | [openorca-platypus2-13b.ggmlv3.q4_1.bin](https://huggingface.co/TheBloke/OpenOrca-Platypus2-13B-GGML/blob/main/openorca-platypus2-13b.ggmlv3.q4_1.bin) | q4_1 | 4 | 8.14 GB| 10.64 GB | Original quant method, 4-bit. Higher accuracy than q4_0 but not as high as q5_0. However has quicker inference than q5 models. |
94
- | [openorca-platypus2-13b.ggmlv3.q4_K_M.bin](https://huggingface.co/TheBloke/OpenOrca-Platypus2-13B-GGML/blob/main/openorca-platypus2-13b.ggmlv3.q4_K_M.bin) | q4_K_M | 4 | 8.06 GB| 10.56 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 |
95
  | [openorca-platypus2-13b.ggmlv3.q4_K_S.bin](https://huggingface.co/TheBloke/OpenOrca-Platypus2-13B-GGML/blob/main/openorca-platypus2-13b.ggmlv3.q4_K_S.bin) | q4_K_S | 4 | 7.56 GB| 10.06 GB | New k-quant method. Uses GGML_TYPE_Q4_K for all tensors |
 
 
96
  | [openorca-platypus2-13b.ggmlv3.q5_0.bin](https://huggingface.co/TheBloke/OpenOrca-Platypus2-13B-GGML/blob/main/openorca-platypus2-13b.ggmlv3.q5_0.bin) | q5_0 | 5 | 8.95 GB| 11.45 GB | Original quant method, 5-bit. Higher accuracy, higher resource usage and slower inference. |
97
- | [openorca-platypus2-13b.ggmlv3.q5_1.bin](https://huggingface.co/TheBloke/OpenOrca-Platypus2-13B-GGML/blob/main/openorca-platypus2-13b.ggmlv3.q5_1.bin) | q5_1 | 5 | 9.76 GB| 12.26 GB | Original quant method, 5-bit. Even higher accuracy, resource usage and slower inference. |
98
- | [openorca-platypus2-13b.ggmlv3.q5_K_M.bin](https://huggingface.co/TheBloke/OpenOrca-Platypus2-13B-GGML/blob/main/openorca-platypus2-13b.ggmlv3.q5_K_M.bin) | q5_K_M | 5 | 9.40 GB| 11.90 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 |
99
  | [openorca-platypus2-13b.ggmlv3.q5_K_S.bin](https://huggingface.co/TheBloke/OpenOrca-Platypus2-13B-GGML/blob/main/openorca-platypus2-13b.ggmlv3.q5_K_S.bin) | q5_K_S | 5 | 9.14 GB| 11.64 GB | New k-quant method. Uses GGML_TYPE_Q5_K for all tensors |
 
 
100
  | [openorca-platypus2-13b.ggmlv3.q6_K.bin](https://huggingface.co/TheBloke/OpenOrca-Platypus2-13B-GGML/blob/main/openorca-platypus2-13b.ggmlv3.q6_K.bin) | q6_K | 6 | 10.83 GB| 13.33 GB | New k-quant method. Uses GGML_TYPE_Q8_K for all tensors - 6-bit quantization |
101
  | [openorca-platypus2-13b.ggmlv3.q8_0.bin](https://huggingface.co/TheBloke/OpenOrca-Platypus2-13B-GGML/blob/main/openorca-platypus2-13b.ggmlv3.q8_0.bin) | q8_0 | 8 | 13.83 GB| 16.33 GB | Original quant method, 8-bit. Almost indistinguishable from float16. High resource use and slow. Not recommended for most users. |
102
 
@@ -104,10 +123,12 @@ Refer to the Provided Files table below to see what files use which methods, and
104
 
105
  ## How to run in `llama.cpp`
106
 
107
- I use the following command line; adjust for your tastes and needs:
 
 
108
 
109
  ```
110
- ./main -t 10 -ngl 32 -m openorca-platypus2-13b.ggmlv3.q4_K_M.bin --color -c 2048 --temp 0.7 --repeat_penalty 1.1 -n -1 -p "### Instruction: Write a story about llamas\n### Response:"
111
  ```
112
  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`.
113
 
@@ -121,9 +142,10 @@ For other parameters and how to use them, please refer to [the llama.cpp documen
121
 
122
  ## How to run in `text-generation-webui`
123
 
124
- 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).
125
 
126
  <!-- footer start -->
 
127
  ## Discord
128
 
129
  For further support, and discussions on these models and AI in general, join us at:
@@ -143,13 +165,15 @@ Donaters will get priority support on any and all AI/LLM/model questions and req
143
  * Patreon: https://patreon.com/TheBlokeAI
144
  * Ko-Fi: https://ko-fi.com/TheBlokeAI
145
 
146
- **Special thanks to**: Luke from CarbonQuill, Aemon Algiz.
147
 
148
- **Patreon special mentions**: Ajan Kanaga, David Ziegler, Raymond Fosdick, SuperWojo, Sam, webtim, Steven Wood, knownsqashed, Tony Hughes, Junyu Yang, J, Olakabola, Dan Guido, Stephen Murray, John Villwock, vamX, William Sang, Sean Connelly, LangChain4j, Olusegun Samson, Fen Risland, Derek Yates, Karl Bernard, transmissions 11, Trenton Dambrowitz, Pieter, Preetika Verma, Swaroop Kallakuri, Andrey, Slarti, Jonathan Leane, Michael Levine, Kalila, Joseph William Delisle, Rishabh Srivastava, Deo Leter, Luke Pendergrass, Spencer Kim, Geoffrey Montalvo, Thomas Belote, Jeffrey Morgan, Mandus, ya boyyy, Matthew Berman, Magnesian, Ai Maven, senxiiz, Alps Aficionado, Luke @flexchar, Raven Klaugh, Imad Khwaja, Gabriel Puliatti, Johann-Peter Hartmann, usrbinkat, Spiking Neurons AB, Artur Olbinski, chris gileta, danny, Willem Michiel, WelcomeToTheClub, Deep Realms, alfie_i, Dave, Leonard Tan, NimbleBox.ai, Randy H, Daniel P. Andersen, Pyrater, Will Dee, Elle, Space Cruiser, Gabriel Tamborski, Asp the Wyvern, Illia Dulskyi, Nikolai Manek, Sid, Brandon Frisco, Nathan LeClaire, Edmond Seymore, Enrico Ros, Pedro Madruga, Eugene Pentland, John Detwiler, Mano Prime, Stanislav Ovsiannikov, Alex, Vitor Caleffi, K, biorpg, Michael Davis, Lone Striker, Pierre Kircher, theTransient, Fred von Graf, Sebastain Graf, Vadim, Iucharbius, Clay Pascal, Chadd, Mesiah Bishop, terasurfer, Rainer Wilmers, Alexandros Triantafyllidis, Stefan Sabev, Talal Aujan, Cory Kujawski, Viktor Bowallius, subjectnull, ReadyPlayerEmma, zynix
149
 
150
 
151
  Thank you to all my generous patrons and donaters!
152
 
 
 
153
  <!-- footer end -->
154
 
155
  # Original model card: Open-Orca's OpenOrca Platypus2 13B
@@ -164,12 +188,28 @@ Thank you to all my generous patrons and donaters!
164
 
165
  OpenOrca-Platypus2-13B is a merge of [`garage-bAInd/Platypus2-13B`](https://huggingface.co/garage-bAInd/Platypus2-13B) and [`Open-Orca/OpenOrcaxOpenChat-Preview2-13B`](https://huggingface.co/Open-Orca/OpenOrcaxOpenChat-Preview2-13B).
166
 
167
- This model is more than the sum of its parts! We are happy to be teaming up with the Platypus team to bring you a new model which once again tops the leaderboards!
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
168
 
 
169
 
170
- # Benchmark Metrics
171
 
172
- | Metric | Value |
173
  |-----------------------|-------|
174
  | MMLU (5-shot) | 59.5 |
175
  | ARC (25-shot) | 62.88 |
@@ -177,19 +217,42 @@ This model is more than the sum of its parts! We are happy to be teaming up with
177
  | TruthfulQA (0-shot) | 52.69 |
178
  | Avg. | 64.56 |
179
 
180
- We use [Language Model Evaluation Harness](https://github.com/EleutherAI/lm-evaluation-harness) to run the benchmark tests above, using the same version as the HuggingFace LLM Leaderboard. Please see below for detailed instructions on reproducing benchmark results.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
181
 
182
 
183
  # Model Details
184
 
185
  * **Trained by**: **Platypus2-13B** trained by Cole Hunter & Ariel Lee; **OpenOrcaxOpenChat-Preview2-13B** trained by Open-Orca
186
- * **Model type:** **OpenOrca-Platypus2-13B** is an auto-regressive language model based on the LLaMA 2 transformer architecture.
187
  * **Language(s)**: English
188
  * **License for Platypus2-13B base weights**: Non-Commercial Creative Commons license ([CC BY-NC-4.0](https://creativecommons.org/licenses/by-nc/4.0/))
189
- * **License for OpenOrcaxOpenChat-Preview2-13B base weights**: LLaMa-2 commercial
 
 
 
190
 
 
191
 
192
- # Prompt Template for base Platypus2-13B
193
  ```
194
  ### Instruction:
195
 
@@ -199,26 +262,31 @@ We use [Language Model Evaluation Harness](https://github.com/EleutherAI/lm-eval
199
  ```
200
 
201
 
202
- # Prompt Template for base OpenOrcaxOpenChat-Preview2-13B
203
 
204
  OpenChat Llama2 V1: see [OpenOrcaxOpenChat-Preview2-13B](https://huggingface.co/Open-Orca/OpenOrcaxOpenChat-Preview2-13B) for additional information.
205
 
206
 
207
- # Training Datasets
 
 
208
 
209
  `garage-bAInd/Platypus2-13B` trained using STEM and logic based dataset [`garage-bAInd/Open-Platypus`](https://huggingface.co/datasets/garage-bAInd/Open-Platypus).
210
 
211
- Please see our [paper](https://platypus-llm.github.io/Platypus.pdf) and [project webpage](https://platypus-llm.github.io) for additional information.
 
 
212
 
213
- [`Open-Orca/OpenOrcaxOpenChat-Preview2-13B`] trained using a refined subset of most of the GPT-4 data from the [OpenOrca dataset](https://huggingface.co/datasets/Open-Orca/OpenOrca).
214
 
 
215
 
216
- # Training Procedure
 
217
 
218
- `Open-Orca/Platypus2-13B` was instruction fine-tuned using LoRA on 1 A100 80GB. For training details and inference instructions please see the [Platypus](https://github.com/arielnlee/Platypus) GitHub repo.
219
 
 
220
 
221
- # Reproducing Evaluation Results
222
 
223
  Install LM Evaluation Harness:
224
  ```
@@ -231,7 +299,7 @@ git checkout b281b0921b636bc36ad05c0b0b0763bd6dd43463
231
  # install
232
  pip install -e .
233
  ```
234
- Each task was evaluated on a single A100 80GB GPU.
235
 
236
  ARC:
237
  ```
@@ -254,7 +322,7 @@ python main.py --model hf-causal-experimental --model_args pretrained=Open-Orca/
254
  ```
255
 
256
 
257
- # Limitations and bias
258
 
259
  Llama 2 and fine-tuned variants are a new technology that carries risks with use. Testing conducted to date has been in English, and has not covered, nor could it cover all scenarios. For these reasons, as with all LLMs, Llama 2 and any fine-tuned varient's potential outputs cannot be predicted in advance, and the model may in some instances produce inaccurate, biased or other objectionable responses to user prompts. Therefore, before deploying any applications of Llama 2 variants, developers should perform safety testing and tuning tailored to their specific applications of the model.
260
 
@@ -264,22 +332,20 @@ Please see the Responsible Use Guide available at https://ai.meta.com/llama/resp
264
  # Citations
265
 
266
  ```bibtex
267
- @misc{touvron2023llama,
268
- title={Llama 2: Open Foundation and Fine-Tuned Chat Models},
269
- author={Hugo Touvron and Louis Martin and Kevin Stone and Peter Albert and Amjad Almahairi and Yasmine Babaei and Nikolay Bashlykov and Soumya Batra and Prajjwal Bhargava and Shruti Bhosale and Dan Bikel and Lukas Blecher and Cristian Canton Ferrer and Moya Chen and Guillem Cucurull and David Esiobu and Jude Fernandes and Jeremy Fu and Wenyin Fu and Brian Fuller and Cynthia Gao and Vedanuj Goswami and Naman Goyal and Anthony Hartshorn and Saghar Hosseini and Rui Hou and Hakan Inan and Marcin Kardas and Viktor Kerkez and Madian Khabsa and Isabel Kloumann and Artem Korenev and Punit Singh Koura and Marie-Anne Lachaux and Thibaut Lavril and Jenya Lee and Diana Liskovich and Yinghai Lu and Yuning Mao and Xavier Martinet and Todor Mihaylov and Pushkar Mishra and Igor Molybog and Yixin Nie and Andrew Poulton and Jeremy Reizenstein and Rashi Rungta and Kalyan Saladi and Alan Schelten and Ruan Silva and Eric Michael Smith and Ranjan Subramanian and Xiaoqing Ellen Tan and Binh Tang and Ross Taylor and Adina Williams and Jian Xiang Kuan and Puxin Xu and Zheng Yan and Iliyan Zarov and Yuchen Zhang and Angela Fan and Melanie Kambadur and Sharan Narang and Aurelien Rodriguez and Robert Stojnic and Sergey Edunov and Thomas Scialom},
270
- year={2023},
271
- eprint= arXiv 2307.09288
 
 
272
  }
273
- ```
274
- ```bibtex
275
- @article{hu2021lora,
276
- title={LoRA: Low-Rank Adaptation of Large Language Models},
277
- author={Hu, Edward J. and Shen, Yelong and Wallis, Phillip and Allen-Zhu, Zeyuan and Li, Yuanzhi and Wang, Shean and Chen, Weizhu},
278
- journal={CoRR},
279
- year={2021}
280
  }
281
- ```
282
- ```bibtex
283
  @software{OpenOrcaxOpenChatPreview2,
284
  title = {OpenOrcaxOpenChatPreview2: Llama2-13B Model Instruct-tuned on Filtered OpenOrcaV1 GPT-4 Dataset},
285
  author = {Guan Wang and Bleys Goodson and Wing Lian and Eugene Pentland and Austin Cook and Chanvichet Vong and "Teknium"},
@@ -288,8 +354,6 @@ Please see the Responsible Use Guide available at https://ai.meta.com/llama/resp
288
  journal = {HuggingFace repository},
289
  howpublished = {\url{https://https://huggingface.co/Open-Orca/OpenOrcaxOpenChat-Preview2-13B},
290
  }
291
- ```
292
- ```bibtex
293
  @software{openchat,
294
  title = {{OpenChat: Advancing Open-source Language Models with Imperfect Data}},
295
  author = {Wang, Guan and Cheng, Sijie and Yu, Qiying and Liu, Changling},
@@ -299,4 +363,32 @@ Please see the Responsible Use Guide available at https://ai.meta.com/llama/resp
299
  year = {2023},
300
  month = {7},
301
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
302
  ```
 
1
  ---
2
  datasets:
3
  - garage-bAInd/Open-Platypus
4
+ - Open-Orca/OpenOrca
5
  inference: false
6
  language:
7
  - en
8
+ library_name: transformers
9
+ license: llama2
10
  model_creator: Open-Orca
11
  model_link: https://huggingface.co/Open-Orca/OpenOrca-Platypus2-13B
12
  model_name: OpenOrca Platypus2 13B
13
  model_type: llama
14
+ pipeline_tag: text-generation
15
  quantized_by: TheBloke
16
  ---
17
 
18
  <!-- header start -->
19
+ <!-- 200823 -->
20
+ <div style="width: auto; margin-left: auto; margin-right: auto">
21
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
22
  </div>
23
  <div style="display: flex; justify-content: space-between; width: 100%;">
24
  <div style="display: flex; flex-direction: column; align-items: flex-start;">
25
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
26
  </div>
27
  <div style="display: flex; flex-direction: column; align-items: flex-end;">
28
+ <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>
29
  </div>
30
  </div>
31
+ <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>
32
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
33
  <!-- header end -->
34
 
35
  # OpenOrca Platypus2 13B - GGML
 
40
 
41
  This repo contains GGML format model files for [Open-Orca's OpenOrca Platypus2 13B](https://huggingface.co/Open-Orca/OpenOrca-Platypus2-13B).
42
 
43
+ ### Important note regarding GGML files.
44
+
45
+ The GGML format has now been superseded by GGUF. As of August 21st 2023, [llama.cpp](https://github.com/ggerganov/llama.cpp) no longer supports GGML models. Third party clients and libraries are expected to still support it for a time, but many may also drop support.
46
+
47
+ Please use the GGUF models instead.
48
+ ### About GGML
49
+
50
  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:
51
  * [text-generation-webui](https://github.com/oobabooga/text-generation-webui), the most popular web UI. Supports NVidia CUDA GPU acceleration.
52
  * [KoboldCpp](https://github.com/LostRuins/koboldcpp), a powerful GGML web UI with GPU acceleration on all platforms (CUDA and OpenCL). Especially good for story telling.
 
58
  ## Repositories available
59
 
60
  * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/OpenOrca-Platypus2-13B-GPTQ)
61
+ * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/OpenOrca-Platypus2-13B-GGUF)
62
+ * [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference (deprecated)](https://huggingface.co/TheBloke/OpenOrca-Platypus2-13B-GGML)
63
  * [Open-Orca's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/Open-Orca/OpenOrca-Platypus2-13B)
64
 
65
  ## Prompt template: Alpaca-InstructOnly
 
70
  {prompt}
71
 
72
  ### Response:
73
+
74
  ```
75
 
76
  <!-- compatibility_ggml start -->
77
  ## Compatibility
78
 
79
+ These quantised GGML files are compatible with llama.cpp between June 6th (commit `2d43387`) and August 21st 2023.
80
+
81
+ For support with latest llama.cpp, please use GGUF files instead.
82
 
83
+ The final llama.cpp commit with support for GGML was: [dadbed99e65252d79f81101a392d0d6497b86caa](https://github.com/ggerganov/llama.cpp/commit/dadbed99e65252d79f81101a392d0d6497b86caa)
84
+
85
+ As of August 23rd 2023 they are still compatible with all UIs, libraries and utilities which use GGML. This may change in the future.
86
 
87
  ## Explanation of the new k-quant methods
88
  <details>
 
105
  | Name | Quant method | Bits | Size | Max RAM required | Use case |
106
  | ---- | ---- | ---- | ---- | ---- | ----- |
107
  | [openorca-platypus2-13b.ggmlv3.q2_K.bin](https://huggingface.co/TheBloke/OpenOrca-Platypus2-13B-GGML/blob/main/openorca-platypus2-13b.ggmlv3.q2_K.bin) | q2_K | 2 | 5.74 GB| 8.24 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. |
 
 
108
  | [openorca-platypus2-13b.ggmlv3.q3_K_S.bin](https://huggingface.co/TheBloke/OpenOrca-Platypus2-13B-GGML/blob/main/openorca-platypus2-13b.ggmlv3.q3_K_S.bin) | q3_K_S | 3 | 5.87 GB| 8.37 GB | New k-quant method. Uses GGML_TYPE_Q3_K for all tensors |
109
+ | [openorca-platypus2-13b.ggmlv3.q3_K_M.bin](https://huggingface.co/TheBloke/OpenOrca-Platypus2-13B-GGML/blob/main/openorca-platypus2-13b.ggmlv3.q3_K_M.bin) | q3_K_M | 3 | 6.53 GB| 9.03 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 |
110
+ | [openorca-platypus2-13b.ggmlv3.q3_K_L.bin](https://huggingface.co/TheBloke/OpenOrca-Platypus2-13B-GGML/blob/main/openorca-platypus2-13b.ggmlv3.q3_K_L.bin) | q3_K_L | 3 | 7.14 GB| 9.64 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 |
111
  | [openorca-platypus2-13b.ggmlv3.q4_0.bin](https://huggingface.co/TheBloke/OpenOrca-Platypus2-13B-GGML/blob/main/openorca-platypus2-13b.ggmlv3.q4_0.bin) | q4_0 | 4 | 7.32 GB| 9.82 GB | Original quant method, 4-bit. |
 
 
112
  | [openorca-platypus2-13b.ggmlv3.q4_K_S.bin](https://huggingface.co/TheBloke/OpenOrca-Platypus2-13B-GGML/blob/main/openorca-platypus2-13b.ggmlv3.q4_K_S.bin) | q4_K_S | 4 | 7.56 GB| 10.06 GB | New k-quant method. Uses GGML_TYPE_Q4_K for all tensors |
113
+ | [openorca-platypus2-13b.ggmlv3.q4_K_M.bin](https://huggingface.co/TheBloke/OpenOrca-Platypus2-13B-GGML/blob/main/openorca-platypus2-13b.ggmlv3.q4_K_M.bin) | q4_K_M | 4 | 8.06 GB| 10.56 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 |
114
+ | [openorca-platypus2-13b.ggmlv3.q4_1.bin](https://huggingface.co/TheBloke/OpenOrca-Platypus2-13B-GGML/blob/main/openorca-platypus2-13b.ggmlv3.q4_1.bin) | q4_1 | 4 | 8.14 GB| 10.64 GB | Original quant method, 4-bit. Higher accuracy than q4_0 but not as high as q5_0. However has quicker inference than q5 models. |
115
  | [openorca-platypus2-13b.ggmlv3.q5_0.bin](https://huggingface.co/TheBloke/OpenOrca-Platypus2-13B-GGML/blob/main/openorca-platypus2-13b.ggmlv3.q5_0.bin) | q5_0 | 5 | 8.95 GB| 11.45 GB | Original quant method, 5-bit. Higher accuracy, higher resource usage and slower inference. |
 
 
116
  | [openorca-platypus2-13b.ggmlv3.q5_K_S.bin](https://huggingface.co/TheBloke/OpenOrca-Platypus2-13B-GGML/blob/main/openorca-platypus2-13b.ggmlv3.q5_K_S.bin) | q5_K_S | 5 | 9.14 GB| 11.64 GB | New k-quant method. Uses GGML_TYPE_Q5_K for all tensors |
117
+ | [openorca-platypus2-13b.ggmlv3.q5_K_M.bin](https://huggingface.co/TheBloke/OpenOrca-Platypus2-13B-GGML/blob/main/openorca-platypus2-13b.ggmlv3.q5_K_M.bin) | q5_K_M | 5 | 9.40 GB| 11.90 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 |
118
+ | [openorca-platypus2-13b.ggmlv3.q5_1.bin](https://huggingface.co/TheBloke/OpenOrca-Platypus2-13B-GGML/blob/main/openorca-platypus2-13b.ggmlv3.q5_1.bin) | q5_1 | 5 | 9.76 GB| 12.26 GB | Original quant method, 5-bit. Even higher accuracy, resource usage and slower inference. |
119
  | [openorca-platypus2-13b.ggmlv3.q6_K.bin](https://huggingface.co/TheBloke/OpenOrca-Platypus2-13B-GGML/blob/main/openorca-platypus2-13b.ggmlv3.q6_K.bin) | q6_K | 6 | 10.83 GB| 13.33 GB | New k-quant method. Uses GGML_TYPE_Q8_K for all tensors - 6-bit quantization |
120
  | [openorca-platypus2-13b.ggmlv3.q8_0.bin](https://huggingface.co/TheBloke/OpenOrca-Platypus2-13B-GGML/blob/main/openorca-platypus2-13b.ggmlv3.q8_0.bin) | q8_0 | 8 | 13.83 GB| 16.33 GB | Original quant method, 8-bit. Almost indistinguishable from float16. High resource use and slow. Not recommended for most users. |
121
 
 
123
 
124
  ## How to run in `llama.cpp`
125
 
126
+ Make sure you are using `llama.cpp` from commit [dadbed99e65252d79f81101a392d0d6497b86caa](https://github.com/ggerganov/llama.cpp/commit/dadbed99e65252d79f81101a392d0d6497b86caa) or earlier.
127
+
128
+ For compatibility with latest llama.cpp, please use GGUF files instead.
129
 
130
  ```
131
+ ./main -t 10 -ngl 32 -m openorca-platypus2-13b.ggmlv3.q4_K_M.bin --color -c 2048 --temp 0.7 --repeat_penalty 1.1 -n -1 -p "### Instruction:\n\nWrite a story about llamas\n\n### Response:"
132
  ```
133
  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`.
134
 
 
142
 
143
  ## How to run in `text-generation-webui`
144
 
145
+ Further instructions here: [text-generation-webui/docs/llama.cpp.md](https://github.com/oobabooga/text-generation-webui/blob/main/docs/llama.cpp.md).
146
 
147
  <!-- footer start -->
148
+ <!-- 200823 -->
149
  ## Discord
150
 
151
  For further support, and discussions on these models and AI in general, join us at:
 
165
  * Patreon: https://patreon.com/TheBlokeAI
166
  * Ko-Fi: https://ko-fi.com/TheBlokeAI
167
 
168
+ **Special thanks to**: Aemon Algiz.
169
 
170
+ **Patreon special mentions**: Russ Johnson, J, alfie_i, Alex, NimbleBox.ai, Chadd, Mandus, Nikolai Manek, Ken Nordquist, ya boyyy, Illia Dulskyi, Viktor Bowallius, vamX, Iucharbius, zynix, Magnesian, Clay Pascal, Pierre Kircher, Enrico Ros, Tony Hughes, Elle, Andrey, knownsqashed, Deep Realms, Jerry Meng, Lone Striker, Derek Yates, Pyrater, Mesiah Bishop, James Bentley, Femi Adebogun, Brandon Frisco, SuperWojo, Alps Aficionado, Michael Dempsey, Vitor Caleffi, Will Dee, Edmond Seymore, usrbinkat, LangChain4j, Kacper Wikieł, Luke Pendergrass, John Detwiler, theTransient, Nathan LeClaire, Tiffany J. Kim, biorpg, Eugene Pentland, Stanislav Ovsiannikov, Fred von Graf, terasurfer, Kalila, Dan Guido, Nitin Borwankar, 阿明, Ai Maven, John Villwock, Gabriel Puliatti, Stephen Murray, Asp the Wyvern, danny, Chris Smitley, ReadyPlayerEmma, S_X, Daniel P. Andersen, Olakabola, Jeffrey Morgan, Imad Khwaja, Caitlyn Gatomon, webtim, Alicia Loh, Trenton Dambrowitz, Swaroop Kallakuri, Erik Bjäreholt, Leonard Tan, Spiking Neurons AB, Luke @flexchar, Ajan Kanaga, Thomas Belote, Deo Leter, RoA, Willem Michiel, transmissions 11, subjectnull, Matthew Berman, Joseph William Delisle, David Ziegler, Michael Davis, Johann-Peter Hartmann, Talal Aujan, senxiiz, Artur Olbinski, Rainer Wilmers, Spencer Kim, Fen Risland, Cap'n Zoog, Rishabh Srivastava, Michael Levine, Geoffrey Montalvo, Sean Connelly, Alexandros Triantafyllidis, Pieter, Gabriel Tamborski, Sam, Subspace Studios, Junyu Yang, Pedro Madruga, Vadim, Cory Kujawski, K, Raven Klaugh, Randy H, Mano Prime, Sebastain Graf, Space Cruiser
171
 
172
 
173
  Thank you to all my generous patrons and donaters!
174
 
175
+ And thank you again to a16z for their generous grant.
176
+
177
  <!-- footer end -->
178
 
179
  # Original model card: Open-Orca's OpenOrca Platypus2 13B
 
188
 
189
  OpenOrca-Platypus2-13B is a merge of [`garage-bAInd/Platypus2-13B`](https://huggingface.co/garage-bAInd/Platypus2-13B) and [`Open-Orca/OpenOrcaxOpenChat-Preview2-13B`](https://huggingface.co/Open-Orca/OpenOrcaxOpenChat-Preview2-13B).
190
 
191
+ This model is more than the sum of its parts! We are happy to be teaming up with the [Platypus](https://platypus-llm.github.io/) team to bring you a new model which once again tops the leaderboards!
192
+
193
+ Want to visualize our full (pre-filtering) dataset? Check out our [Nomic Atlas Map](https://atlas.nomic.ai/map/c1b88b47-2d9b-47e0-9002-b80766792582/2560fd25-52fe-42f1-a58f-ff5eccc890d2).
194
+
195
+
196
+ [<img src="https://huggingface.co/Open-Orca/OpenOrca-Preview1-13B/resolve/main/OpenOrca%20Nomic%20Atlas.png" alt="Atlas Nomic Dataset Map" width="400" height="400" />](https://atlas.nomic.ai/map/c1b88b47-2d9b-47e0-9002-b80766792582/2560fd25-52fe-42f1-a58f-ff5eccc890d2)
197
+
198
+
199
+ We are in-process with training more models, so keep a look out on our org for releases coming soon with exciting partners.
200
+
201
+ We will also give sneak-peak announcements on our Discord, which you can find here:
202
+
203
+ https://AlignmentLab.ai
204
+
205
+ # Evaluation
206
+
207
+ ## HuggingFace Leaderboard Performance
208
 
209
+ ![HF Leaderboard](https://huggingface.co/Open-Orca/OpenOrca-Platypus2-13B/resolve/main/Images/OrcaPlatypus13BHFLeaderboard.webp)
210
 
 
211
 
212
+ | Metric | Value |
213
  |-----------------------|-------|
214
  | MMLU (5-shot) | 59.5 |
215
  | ARC (25-shot) | 62.88 |
 
217
  | TruthfulQA (0-shot) | 52.69 |
218
  | Avg. | 64.56 |
219
 
220
+ We use [Language Model Evaluation Harness](https://github.com/EleutherAI/lm-evaluation-harness) to run the benchmark tests above, using the same version as the HuggingFace LLM Leaderboard.
221
+
222
+ Please see below for detailed instructions on reproducing benchmark results.
223
+
224
+
225
+ ## AGIEval Performance
226
+
227
+ We compare our results to our base Preview2 model (using LM Evaluation Harness).
228
+
229
+ We find **112%** of the base model's performance on AGI Eval, averaging **0.463**.
230
+ A large part of this boost is the substantial improvement to LSAT Logical Reasoning performance.
231
+
232
+ ![OpenOrca-Platypus2-13B AGIEval Performance](https://huggingface.co/Open-Orca/OpenOrca-Platypus2-13B/resolve/main/Images/OrcaPlatypus13BAGIEval.webp "AGIEval Performance")
233
+
234
+ ## BigBench-Hard Performance
235
+
236
+ We compare our results to our base Preview2 model (using LM Evaluation Harness).
237
+
238
+ We find **105%** of the base model's performance on BigBench-Hard, averaging **0.442**.
239
+
240
+ ![OpenOrca-Platypus2-13B BigBench-Hard Performance](https://huggingface.co/Open-Orca/OpenOrca-Platypus2-13B/resolve/main/Images/OrcaPlatypus13BBigBenchHard.webp "BigBench-Hard Performance")
241
 
242
 
243
  # Model Details
244
 
245
  * **Trained by**: **Platypus2-13B** trained by Cole Hunter & Ariel Lee; **OpenOrcaxOpenChat-Preview2-13B** trained by Open-Orca
246
+ * **Model type:** **OpenOrca-Platypus2-13B** is an auto-regressive language model based on the Lllama 2 transformer architecture.
247
  * **Language(s)**: English
248
  * **License for Platypus2-13B base weights**: Non-Commercial Creative Commons license ([CC BY-NC-4.0](https://creativecommons.org/licenses/by-nc/4.0/))
249
+ * **License for OpenOrcaxOpenChat-Preview2-13B base weights**: Llama 2 Commercial
250
+
251
+
252
+ # Prompting
253
 
254
+ ## Prompt Template for base Platypus2-13B
255
 
 
256
  ```
257
  ### Instruction:
258
 
 
262
  ```
263
 
264
 
265
+ ## Prompt Template for base OpenOrcaxOpenChat-Preview2-13B
266
 
267
  OpenChat Llama2 V1: see [OpenOrcaxOpenChat-Preview2-13B](https://huggingface.co/Open-Orca/OpenOrcaxOpenChat-Preview2-13B) for additional information.
268
 
269
 
270
+ # Training
271
+
272
+ ## Training Datasets
273
 
274
  `garage-bAInd/Platypus2-13B` trained using STEM and logic based dataset [`garage-bAInd/Open-Platypus`](https://huggingface.co/datasets/garage-bAInd/Open-Platypus).
275
 
276
+ Please see our [paper](https://arxiv.org/abs/2308.07317) and [project webpage](https://platypus-llm.github.io) for additional information.
277
+
278
+ `Open-Orca/OpenOrcaxOpenChat-Preview2-13B` trained using a refined subset of most of the GPT-4 data from the [OpenOrca dataset](https://huggingface.co/datasets/Open-Orca/OpenOrca).
279
 
 
280
 
281
+ ## Training Procedure
282
 
283
+ `Open-Orca/Platypus2-13B` was instruction fine-tuned using LoRA on 1x A100-80GB.
284
+ For training details and inference instructions please see the [Platypus](https://github.com/arielnlee/Platypus) GitHub repo.
285
 
 
286
 
287
+ # Supplemental
288
 
289
+ ## Reproducing Evaluation Results (for HuggingFace Leaderboard Eval)
290
 
291
  Install LM Evaluation Harness:
292
  ```
 
299
  # install
300
  pip install -e .
301
  ```
302
+ Each task was evaluated on a single A100-80GB GPU.
303
 
304
  ARC:
305
  ```
 
322
  ```
323
 
324
 
325
+ ## Limitations and bias
326
 
327
  Llama 2 and fine-tuned variants are a new technology that carries risks with use. Testing conducted to date has been in English, and has not covered, nor could it cover all scenarios. For these reasons, as with all LLMs, Llama 2 and any fine-tuned varient's potential outputs cannot be predicted in advance, and the model may in some instances produce inaccurate, biased or other objectionable responses to user prompts. Therefore, before deploying any applications of Llama 2 variants, developers should perform safety testing and tuning tailored to their specific applications of the model.
328
 
 
332
  # Citations
333
 
334
  ```bibtex
335
+ @software{hunterlee2023orcaplaty1
336
+ title = {OpenOrcaPlatypus: Llama2-13B Model Instruct-tuned on Filtered OpenOrcaV1 GPT-4 Dataset and Merged with divergent STEM and Logic Dataset Model},
337
+ author = {Ariel N. Lee and Cole J. Hunter and Nataniel Ruiz and Bleys Goodson and Wing Lian and Guan Wang and Eugene Pentland and Austin Cook and Chanvichet Vong and "Teknium"},
338
+ year = {2023},
339
+ publisher = {HuggingFace},
340
+ journal = {HuggingFace repository},
341
+ howpublished = {\url{https://huggingface.co/Open-Orca/OpenOrca-Platypus2-13B},
342
  }
343
+ @article{platypus2023,
344
+ title={Platypus: Quick, Cheap, and Powerful Refinement of LLMs},
345
+ author={Ariel N. Lee and Cole J. Hunter and Nataniel Ruiz},
346
+ booktitle={arXiv preprint arxiv:2308.07317},
347
+ year={2023}
 
 
348
  }
 
 
349
  @software{OpenOrcaxOpenChatPreview2,
350
  title = {OpenOrcaxOpenChatPreview2: Llama2-13B Model Instruct-tuned on Filtered OpenOrcaV1 GPT-4 Dataset},
351
  author = {Guan Wang and Bleys Goodson and Wing Lian and Eugene Pentland and Austin Cook and Chanvichet Vong and "Teknium"},
 
354
  journal = {HuggingFace repository},
355
  howpublished = {\url{https://https://huggingface.co/Open-Orca/OpenOrcaxOpenChat-Preview2-13B},
356
  }
 
 
357
  @software{openchat,
358
  title = {{OpenChat: Advancing Open-source Language Models with Imperfect Data}},
359
  author = {Wang, Guan and Cheng, Sijie and Yu, Qiying and Liu, Changling},
 
363
  year = {2023},
364
  month = {7},
365
  }
366
+ @misc{mukherjee2023orca,
367
+ title={Orca: Progressive Learning from Complex Explanation Traces of GPT-4},
368
+ author={Subhabrata Mukherjee and Arindam Mitra and Ganesh Jawahar and Sahaj Agarwal and Hamid Palangi and Ahmed Awadallah},
369
+ year={2023},
370
+ eprint={2306.02707},
371
+ archivePrefix={arXiv},
372
+ primaryClass={cs.CL}
373
+ }
374
+ @misc{touvron2023llama,
375
+ title={Llama 2: Open Foundation and Fine-Tuned Chat Models},
376
+ author={Hugo Touvron and Louis Martin and Kevin Stone and Peter Albert and Amjad Almahairi and Yasmine Babaei and Nikolay Bashlykov and Soumya Batra and Prajjwal Bhargava and Shruti Bhosale and Dan Bikel and Lukas Blecher and Cristian Canton Ferrer and Moya Chen and Guillem Cucurull and David Esiobu and Jude Fernandes and Jeremy Fu and Wenyin Fu and Brian Fuller and Cynthia Gao and Vedanuj Goswami and Naman Goyal and Anthony Hartshorn and Saghar Hosseini and Rui Hou and Hakan Inan and Marcin Kardas and Viktor Kerkez and Madian Khabsa and Isabel Kloumann and Artem Korenev and Punit Singh Koura and Marie-Anne Lachaux and Thibaut Lavril and Jenya Lee and Diana Liskovich and Yinghai Lu and Yuning Mao and Xavier Martinet and Todor Mihaylov and Pushkar Mishra and Igor Molybog and Yixin Nie and Andrew Poulton and Jeremy Reizenstein and Rashi Rungta and Kalyan Saladi and Alan Schelten and Ruan Silva and Eric Michael Smith and Ranjan Subramanian and Xiaoqing Ellen Tan and Binh Tang and Ross Taylor and Adina Williams and Jian Xiang Kuan and Puxin Xu and Zheng Yan and Iliyan Zarov and Yuchen Zhang and Angela Fan and Melanie Kambadur and Sharan Narang and Aurelien Rodriguez and Robert Stojnic and Sergey Edunov and Thomas Scialom},
377
+ year={2023},
378
+ eprint= arXiv 2307.09288
379
+ }
380
+ @misc{longpre2023flan,
381
+ title={The Flan Collection: Designing Data and Methods for Effective Instruction Tuning},
382
+ 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},
383
+ year={2023},
384
+ eprint={2301.13688},
385
+ archivePrefix={arXiv},
386
+ primaryClass={cs.AI}
387
+ }
388
+ @article{hu2021lora,
389
+ title={LoRA: Low-Rank Adaptation of Large Language Models},
390
+ author={Hu, Edward J. and Shen, Yelong and Wallis, Phillip and Allen-Zhu, Zeyuan and Li, Yuanzhi and Wang, Shean and Chen, Weizhu},
391
+ journal={CoRR},
392
+ year={2021}
393
+ }
394
  ```