GGUF
English
Inference Endpoints
mav23 commited on
Commit
7b14ef4
·
verified ·
1 Parent(s): ac1e7a5

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. .gitattributes +1 -0
  2. README.md +121 -0
  3. platypus2-70b-instruct.Q4_0.gguf +3 -0
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ platypus2-70b-instruct.Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ # Platypus2-70B-instruct
11
+
12
+ 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).
13
+
14
+ ![Platty](./Best_Platty_small.jpeg)
15
+
16
+ ### Model Details
17
+
18
+ * **Trained by**: **Platypus2-70B** trained by Cole Hunter & Ariel Lee; **Llama-2-70b-instruct** trained by upstageAI
19
+ * **Model type:** **Platypus2-70B-instruct** is an auto-regressive language model based on the LLaMA 2 transformer architecture.
20
+ * **Language(s)**: English
21
+ * **License**: Non-Commercial Creative Commons license ([CC BY-NC-4.0](https://creativecommons.org/licenses/by-nc/4.0/))
22
+
23
+ ### Prompt Template
24
+ ```
25
+ ### Instruction:
26
+
27
+ <prompt> (without the <>)
28
+
29
+ ### Response:
30
+ ```
31
+
32
+ ### Training Dataset
33
+
34
+ `garage-bAInd/Platypus2-70B` trained using STEM and logic based dataset [`garage-bAInd/Open-Platypus`](https://huggingface.co/datasets/garage-bAInd/Open-Platypus).
35
+
36
+ Please see our [paper](https://arxiv.org/abs/2308.07317) and [project webpage](https://platypus-llm.github.io) for additional information.
37
+
38
+ ### Training Procedure
39
+
40
+ `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.
41
+
42
+ ### Reproducing Evaluation Results
43
+
44
+ Install LM Evaluation Harness:
45
+ ```
46
+ # clone repository
47
+ git clone https://github.com/EleutherAI/lm-evaluation-harness.git
48
+ # change to repo directory
49
+ cd lm-evaluation-harness
50
+ # check out the correct commit
51
+ git checkout b281b0921b636bc36ad05c0b0b0763bd6dd43463
52
+ # install
53
+ pip install -e .
54
+ ```
55
+ Each task was evaluated on a single A100 80GB GPU.
56
+
57
+ ARC:
58
+ ```
59
+ 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
60
+ ```
61
+
62
+ HellaSwag:
63
+ ```
64
+ 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
65
+ ```
66
+
67
+ MMLU:
68
+ ```
69
+ 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
70
+ ```
71
+
72
+ TruthfulQA:
73
+ ```
74
+ 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
75
+ ```
76
+ ### Limitations and bias
77
+
78
+ 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.
79
+
80
+ Please see the Responsible Use Guide available at https://ai.meta.com/llama/responsible-use-guide/
81
+
82
+ ### Citations
83
+ ```bibtex
84
+ @article{platypus2023,
85
+ title={Platypus: Quick, Cheap, and Powerful Refinement of LLMs},
86
+ author={Ariel N. Lee and Cole J. Hunter and Nataniel Ruiz},
87
+ booktitle={arXiv preprint arxiv:2308.07317},
88
+ year={2023}
89
+ }
90
+ ```
91
+ ```bibtex
92
+ @misc{touvron2023llama,
93
+ title={Llama 2: Open Foundation and Fine-Tuned Chat Models},
94
+ author={Hugo Touvron and Louis Martin and Kevin Stone and Peter Albert and Amjad Almahairi and Yasmine Babaei and Nikolay Bashlykov year={2023},
95
+ eprint={2307.09288},
96
+ archivePrefix={arXiv},
97
+ }
98
+ ```
99
+ ```bibtex
100
+ @inproceedings{
101
+ hu2022lora,
102
+ title={Lo{RA}: Low-Rank Adaptation of Large Language Models},
103
+ 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},
104
+ booktitle={International Conference on Learning Representations},
105
+ year={2022},
106
+ url={https://openreview.net/forum?id=nZeVKeeFYf9}
107
+ }
108
+ ```
109
+ # [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
110
+ Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_garage-bAInd__Platypus2-70B-instruct)
111
+
112
+ | Metric | Value |
113
+ |-----------------------|---------------------------|
114
+ | Avg. | 66.89 |
115
+ | ARC (25-shot) | 71.84 |
116
+ | HellaSwag (10-shot) | 87.94 |
117
+ | MMLU (5-shot) | 70.48 |
118
+ | TruthfulQA (0-shot) | 62.26 |
119
+ | Winogrande (5-shot) | 82.72 |
120
+ | GSM8K (5-shot) | 40.56 |
121
+ | DROP (3-shot) | 52.41 |
platypus2-70b-instruct.Q4_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:86e6bbade07031ed773224fae44c2ba43d7e3d656c4b05a62312ff7f9d5c2cdf
3
+ size 38872249824