arielnlee commited on
Commit
a66fbb4
1 Parent(s): 4693b89

Update README.md

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