Text Generation
Transformers
PyTorch
English
llama
text-generation-inference
Inference Endpoints
arielnlee commited on
Commit
8a857f6
1 Parent(s): 22e993e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +108 -1
README.md CHANGED
@@ -1,3 +1,110 @@
1
  ---
2
- license: llama2
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ datasets:
5
+ - garage-bAInd/Open-Platypus
6
+ license: cc-by-nc-4.0
7
  ---
8
+
9
+ # OpenOrca-Platypus2-13B
10
+
11
+ 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).
12
+
13
+ ![Platty](./Best_Platty_small.jpeg)
14
+
15
+ ### Benchmark Metrics
16
+
17
+ | Metric | Value |
18
+ |-----------------------|-------|
19
+ | MMLU (5-shot) | - |
20
+ | ARC (25-shot) | - |
21
+ | HellaSwag (10-shot) | - |
22
+ | TruthfulQA (0-shot) | - |
23
+ | Avg. | - |
24
+
25
+ We use state-of-the-art [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.
26
+
27
+ ### Model Details
28
+
29
+ * **Trained by**: **Platypus2-13B** trained by Cole Hunter & Ariel Lee; **OpenOrcaxOpenChat-Preview2-13B** trained by OpenOrca
30
+ * **Model type:** **OpenOrca-Platypus2-13B** is an auto-regressive language model based on the LLaMA 2 transformer architecture.
31
+ * **Language(s)**: English
32
+ * **License for Platypus2-13B base weights**: Non-Commercial Creative Commons license ([CC BY-NC-4.0](https://creativecommons.org/licenses/by-nc/4.0/))
33
+
34
+ ### Prompt Template for base Platypus2-13B
35
+ ```
36
+ ### Instruction:
37
+
38
+ <prompt> (without the <>)
39
+
40
+ ### Response:
41
+ ```
42
+
43
+ ### Training Dataset
44
+
45
+ `garage-bAInd/Platypus2-13B` trained using STEM and logic based dataset [`garage-bAInd/Open-Platypus`](https://huggingface.co/datasets/garage-bAInd/Open-Platypus).
46
+
47
+ Please see our [paper](https://platypus-llm.github.io/Platypus.pdf) and [project webpage](https://platypus-llm.github.io) for additional information.
48
+
49
+ ### Training Procedure
50
+
51
+ `garage-bAInd/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.
52
+
53
+ ### Reproducing Evaluation Results
54
+
55
+ Install LM Evaluation Harness:
56
+ ```
57
+ # clone repository
58
+ git clone https://github.com/EleutherAI/lm-evaluation-harness.git
59
+ # change to repo directory
60
+ cd lm-evaluation-harness
61
+ # check out the correct commit
62
+ git checkout b281b0921b636bc36ad05c0b0b0763bd6dd43463
63
+ # install
64
+ pip install -e .
65
+ ```
66
+ Each task was evaluated on a single A100 80GB GPU.
67
+
68
+ ARC:
69
+ ```
70
+ python main.py --model hf-causal-experimental --model_args pretrained=garage-bAInd/OpenOrca-Platypus2-13B --tasks arc_challenge --batch_size 1 --no_cache --write_out --output_path results/OpenOrca-Platypus2-13B/arc_challenge_25shot.json --device cuda --num_fewshot 25
71
+ ```
72
+
73
+ HellaSwag:
74
+ ```
75
+ python main.py --model hf-causal-experimental --model_args pretrained=garage-bAInd/OpenOrca-Platypus2-13B --tasks hellaswag --batch_size 1 --no_cache --write_out --output_path results/OpenOrca-Platypus2-13B/hellaswag_10shot.json --device cuda --num_fewshot 10
76
+ ```
77
+
78
+ MMLU:
79
+ ```
80
+ python main.py --model hf-causal-experimental --model_args pretrained=garage-bAInd/OpenOrca-Platypus2-13B --tasks hendrycksTest-* --batch_size 1 --no_cache --write_out --output_path results/OpenOrca-Platypus2-13B/mmlu_5shot.json --device cuda --num_fewshot 5
81
+ ```
82
+
83
+ TruthfulQA:
84
+ ```
85
+ python main.py --model hf-causal-experimental --model_args pretrained=garage-bAInd/OpenOrca-Platypus2-13B --tasks truthfulqa_mc --batch_size 1 --no_cache --write_out --output_path results/OpenOrca-Platypus2-13B/truthfulqa_0shot.json --device cuda
86
+ ```
87
+ ### Limitations and bias
88
+
89
+ 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.
90
+
91
+ Please see the Responsible Use Guide available at https://ai.meta.com/llama/responsible-use-guide/
92
+
93
+ ### Citations
94
+
95
+ ```bibtex
96
+ @misc{touvron2023llama,
97
+ title={Llama 2: Open Foundation and Fine-Tuned Chat Models},
98
+ 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},
99
+ year={2023},
100
+ eprint= arXiv 2307.09288
101
+ }
102
+ ```
103
+ ```bibtex
104
+ @article{hu2021lora,
105
+ title={LoRA: Low-Rank Adaptation of Large Language Models},
106
+ author={Hu, Edward J. and Shen, Yelong and Wallis, Phillip and Allen-Zhu, Zeyuan and Li, Yuanzhi and Wang, Shean and Chen, Weizhu},
107
+ journal={CoRR},
108
+ year={2021}
109
+ }
110
+ ```