AzureBlack commited on
Commit
620180e
1 Parent(s): 7a2110e

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +124 -0
README.md ADDED
@@ -0,0 +1,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ datasets:
5
+ - garage-bAInd/Open-Platypus
6
+ - Open-Orca/OpenOrca
7
+ license: cc-by-nc-4.0
8
+ ---
9
+
10
+ 4.1bit ExllamaV2
11
+
12
+ Original Card https://huggingface.co/garage-bAInd/Platypus2-70B-instruct
13
+
14
+ # Platypus2-70B-instruct
15
+
16
+ Platypus-70B-instruct is a merge of [`garage-bAInd/Platypus2-70B`](https://huggingface.co/garage-bAInd/Platypus2-70B) and [`upstage/Llama-2-70b-instruct-v2`](https://huggingface.co/upstage/Llama-2-70b-instruct-v2).
17
+
18
+ ![Platty](./Best_Platty_small.jpeg)
19
+
20
+ ### Benchmark Metrics
21
+
22
+ | Metric | Value |
23
+ |-----------------------|-------|
24
+ | MMLU (5-shot) | 70.48 |
25
+ | ARC (25-shot) | 71.84 |
26
+ | HellaSwag (10-shot) | 87.94 |
27
+ | TruthfulQA (0-shot) | 62.26 |
28
+ | Avg. | 73.13 |
29
+
30
+ 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.
31
+
32
+ ### Model Details
33
+
34
+ * **Trained by**: **Platypus2-70B** trained by Cole Hunter & Ariel Lee; **Llama-2-70b-instruct** trained by upstageAI
35
+ * **Model type:** **Platypus2-70B-instruct** is an auto-regressive language model based on the LLaMA 2 transformer architecture.
36
+ * **Language(s)**: English
37
+ * **License**: Non-Commercial Creative Commons license ([CC BY-NC-4.0](https://creativecommons.org/licenses/by-nc/4.0/))
38
+
39
+ ### Prompt Template
40
+ ```
41
+ ### Instruction:
42
+
43
+ <prompt> (without the <>)
44
+
45
+ ### Response:
46
+ ```
47
+
48
+ ### Training Dataset
49
+
50
+ `garage-bAInd/Platypus2-70B` trained using STEM and logic based dataset [`garage-bAInd/Open-Platypus`](https://huggingface.co/datasets/garage-bAInd/Open-Platypus).
51
+
52
+ Please see our [paper](https://arxiv.org/abs/2308.07317) and [project webpage](https://platypus-llm.github.io) for additional information.
53
+
54
+ ### Training Procedure
55
+
56
+ `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.
57
+
58
+ ### Reproducing Evaluation Results
59
+
60
+ Install LM Evaluation Harness:
61
+ ```
62
+ # clone repository
63
+ git clone https://github.com/EleutherAI/lm-evaluation-harness.git
64
+ # change to repo directory
65
+ cd lm-evaluation-harness
66
+ # check out the correct commit
67
+ git checkout b281b0921b636bc36ad05c0b0b0763bd6dd43463
68
+ # install
69
+ pip install -e .
70
+ ```
71
+ Each task was evaluated on a single A100 80GB GPU.
72
+
73
+ ARC:
74
+ ```
75
+ python main.py --model hf-causal-experimental --model_args pretrained=garage-bAInd/Platypus2-70B-instruct --tasks arc_challenge --batch_size 1 --no_cache --write_out --output_path results/Platypus2-70B-instruct/arc_challenge_25shot.json --device cuda --num_fewshot 25
76
+ ```
77
+
78
+ HellaSwag:
79
+ ```
80
+ python main.py --model hf-causal-experimental --model_args pretrained=garage-bAInd/Platypus2-70B-instruct --tasks hellaswag --batch_size 1 --no_cache --write_out --output_path results/Platypus2-70B-instruct/hellaswag_10shot.json --device cuda --num_fewshot 10
81
+ ```
82
+
83
+ MMLU:
84
+ ```
85
+ python main.py --model hf-causal-experimental --model_args pretrained=garage-bAInd/Platypus2-70B-instruct --tasks hendrycksTest-* --batch_size 1 --no_cache --write_out --output_path results/Platypus2-70B-instruct/mmlu_5shot.json --device cuda --num_fewshot 5
86
+ ```
87
+
88
+ TruthfulQA:
89
+ ```
90
+ python main.py --model hf-causal-experimental --model_args pretrained=garage-bAInd/Platypus2-70B-instruct --tasks truthfulqa_mc --batch_size 1 --no_cache --write_out --output_path results/Platypus2-70B-instruct/truthfulqa_0shot.json --device cuda
91
+ ```
92
+ ### Limitations and bias
93
+
94
+ 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.
95
+
96
+ Please see the Responsible Use Guide available at https://ai.meta.com/llama/responsible-use-guide/
97
+
98
+ ### Citations
99
+ ```bibtex
100
+ @article{platypus2023,
101
+ title={Platypus: Quick, Cheap, and Powerful Refinement of LLMs},
102
+ author={Ariel N. Lee and Cole J. Hunter and Nataniel Ruiz},
103
+ booktitle={arXiv preprint arxiv:2308.07317},
104
+ year={2023}
105
+ }
106
+ ```
107
+ ```bibtex
108
+ @misc{touvron2023llama,
109
+ title={Llama 2: Open Foundation and Fine-Tuned Chat Models},
110
+ author={Hugo Touvron and Louis Martin and Kevin Stone and Peter Albert and Amjad Almahairi and Yasmine Babaei and Nikolay Bashlykov year={2023},
111
+ eprint={2307.09288},
112
+ archivePrefix={arXiv},
113
+ }
114
+ ```
115
+ ```bibtex
116
+ @inproceedings{
117
+ hu2022lora,
118
+ title={Lo{RA}: Low-Rank Adaptation of Large Language Models},
119
+ author={Edward J Hu and Yelong Shen and Phillip Wallis and Zeyuan Allen-Zhu and Yuanzhi Li and Shean Wang and Lu Wang and Weizhu Chen},
120
+ booktitle={International Conference on Learning Representations},
121
+ year={2022},
122
+ url={https://openreview.net/forum?id=nZeVKeeFYf9}
123
+ }
124
+ ```