Text Generation
Transformers
PyTorch
Safetensors
English
llama
text-generation-inference
Inference Endpoints
arielnlee commited on
Commit
8bcecb6
1 Parent(s): d990495

Create README.md

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