Spaces:
Runtime error
Runtime error
Update src/assets/text_content.py
Browse files- src/assets/text_content.py +20 -193
src/assets/text_content.py
CHANGED
@@ -1,202 +1,36 @@
|
|
1 |
-
CHANGELOG_TEXT = f"""
|
2 |
-
## [2023-06-19]
|
3 |
-
- Added model type column
|
4 |
-
- Hid revision and 8bit columns since all models are the same atm
|
5 |
|
6 |
-
## [2023-06-16]
|
7 |
-
- Refactored code base
|
8 |
-
- Added new columns: number of parameters, hub likes, license
|
9 |
|
10 |
-
|
11 |
-
- Adjust description for TruthfulQA
|
12 |
-
|
13 |
-
## [2023-06-12]
|
14 |
-
- Add Human & GPT-4 Evaluations
|
15 |
-
|
16 |
-
## [2023-06-05]
|
17 |
-
- Increase concurrent thread count to 40
|
18 |
-
- Search models on ENTER
|
19 |
-
|
20 |
-
## [2023-06-02]
|
21 |
-
- Add a typeahead search bar
|
22 |
-
- Use webhooks to automatically spawn a new Space when someone opens a PR
|
23 |
-
- Start recording `submitted_time` for eval requests
|
24 |
-
- Limit AutoEvalColumn max-width
|
25 |
-
|
26 |
-
## [2023-05-30]
|
27 |
-
- Add a citation button
|
28 |
-
- Simplify Gradio layout
|
29 |
-
|
30 |
-
## [2023-05-29]
|
31 |
-
- Auto-restart every hour for the latest results
|
32 |
-
- Sync with the internal version (minor style changes)
|
33 |
-
|
34 |
-
## [2023-05-24]
|
35 |
-
- Add a baseline that has 25.0 for all values
|
36 |
-
- Add CHANGELOG
|
37 |
-
|
38 |
-
## [2023-05-23]
|
39 |
-
- Fix a CSS issue that made the leaderboard hard to read in dark mode
|
40 |
-
|
41 |
-
## [2023-05-22]
|
42 |
-
- Display a success/error message after submitting evaluation requests
|
43 |
-
- Reject duplicate submission
|
44 |
-
- Do not display results that have incomplete results
|
45 |
-
- Display different queues for jobs that are RUNNING, PENDING, FINISHED status
|
46 |
-
|
47 |
-
## [2023-05-15]
|
48 |
-
- Fix a typo: from "TruthQA" to "QA"
|
49 |
-
|
50 |
-
## [2023-05-10]
|
51 |
-
- Fix a bug that prevented auto-refresh
|
52 |
-
|
53 |
-
## [2023-05-10]
|
54 |
-
- Release the leaderboard to public
|
55 |
-
"""
|
56 |
-
|
57 |
-
TITLE = """<h1 align="center" id="space-title">🤗 Open LLM Leaderboard</h1>"""
|
58 |
|
59 |
INTRODUCTION_TEXT = f"""
|
60 |
-
|
61 |
-
|
62 |
-
🤗 Anyone from the community can submit a model for automated evaluation on the 🤗 GPU cluster, as long as it is a 🤗 Transformers model with weights on the Hub. We also support evaluation of models with delta-weights for non-commercial licensed models, such as the original LLaMa release.
|
63 |
|
64 |
-
|
65 |
"""
|
66 |
|
67 |
LLM_BENCHMARKS_TEXT = f"""
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
For all these evaluations, a higher score is a better score.
|
79 |
-
We chose these benchmarks as they test a variety of reasoning and general knowledge across a wide variety of fields in 0-shot and few-shot settings.
|
80 |
-
|
81 |
-
# Some good practices before submitting a model
|
82 |
-
|
83 |
-
### 1) Make sure you can load your model and tokenizer using AutoClasses:
|
84 |
-
```python
|
85 |
-
from transformers import AutoConfig, AutoModel, AutoTokenizer
|
86 |
-
config = AutoConfig.from_pretrained("your model name", revision=revision)
|
87 |
-
model = AutoModel.from_pretrained("your model name", revision=revision)
|
88 |
-
tokenizer = AutoTokenizer.from_pretrained("your model name", revision=revision)
|
89 |
-
```
|
90 |
-
If this step fails, follow the error messages to debug your model before submitting it. It's likely your model has been improperly uploaded.
|
91 |
-
|
92 |
-
Note: make sure your model is public!
|
93 |
-
Note: if your model needs `use_remote_code=True`, we do not support this option yet but we are working on adding it, stay posted!
|
94 |
-
|
95 |
-
### 2) Convert your model weights to [safetensors](https://huggingface.co/docs/safetensors/index)
|
96 |
-
It's a new format for storing weights which is safer and faster to load and use. It will also allow us to add the number of weights of your model to the `Extended Viewer`!
|
97 |
-
|
98 |
-
### 3) Make sure your model has an open license!
|
99 |
-
This is a leaderboard for Open LLMs, and we'd love for as many people as possible to know they can use your model 🤗
|
100 |
-
|
101 |
-
### 4) Fill up your model card
|
102 |
-
When we add extra information about models to the leaderboard, it will be automatically taken from the model card
|
103 |
-
|
104 |
-
# Reproducibility and details
|
105 |
-
|
106 |
-
### Details and logs
|
107 |
-
You can find:
|
108 |
-
- detailed numerical results in the `results` Hugging Face dataset: https://huggingface.co/datasets/open-llm-leaderboard/results
|
109 |
-
- details on the input/outputs for the models in the `details` Hugging Face dataset: https://huggingface.co/datasets/open-llm-leaderboard/details
|
110 |
-
- community queries and running status in the `requests` Hugging Face dataset: https://huggingface.co/datasets/open-llm-leaderboard/requests
|
111 |
-
|
112 |
-
### Reproducibility
|
113 |
-
To reproduce our results, here is the commands you can run, using [this version](https://github.com/EleutherAI/lm-evaluation-harness/tree/b281b0921b636bc36ad05c0b0b0763bd6dd43463) of the Eleuther AI Harness:
|
114 |
-
`python main.py --model=hf-causal --model_args="pretrained=<your_model>,use_accelerate=True,revision=<your_model_revision>"`
|
115 |
-
` --tasks=<task_list> --num_fewshot=<n_few_shot> --batch_size=2 --output_path=<output_path>`
|
116 |
-
|
117 |
-
The total batch size we get for models which fit on one A100 node is 16 (8 GPUs * 2). If you don't use parallelism, adapt your batch size to fit.
|
118 |
-
*You can expect results to vary slightly for different batch sizes because of padding.*
|
119 |
-
|
120 |
-
The tasks and few shots parameters are:
|
121 |
-
- ARC: 25-shot, *arc-challenge* (`acc_norm`)
|
122 |
-
- HellaSwag: 10-shot, *hellaswag* (`acc_norm`)
|
123 |
-
- TruthfulQA: 0-shot, *truthfulqa-mc* (`mc2`)
|
124 |
-
- MMLU: 5-shot, *hendrycksTest-abstract_algebra,hendrycksTest-anatomy,hendrycksTest-astronomy,hendrycksTest-business_ethics,hendrycksTest-clinical_knowledge,hendrycksTest-college_biology,hendrycksTest-college_chemistry,hendrycksTest-college_computer_science,hendrycksTest-college_mathematics,hendrycksTest-college_medicine,hendrycksTest-college_physics,hendrycksTest-computer_security,hendrycksTest-conceptual_physics,hendrycksTest-econometrics,hendrycksTest-electrical_engineering,hendrycksTest-elementary_mathematics,hendrycksTest-formal_logic,hendrycksTest-global_facts,hendrycksTest-high_school_biology,hendrycksTest-high_school_chemistry,hendrycksTest-high_school_computer_science,hendrycksTest-high_school_european_history,hendrycksTest-high_school_geography,hendrycksTest-high_school_government_and_politics,hendrycksTest-high_school_macroeconomics,hendrycksTest-high_school_mathematics,hendrycksTest-high_school_microeconomics,hendrycksTest-high_school_physics,hendrycksTest-high_school_psychology,hendrycksTest-high_school_statistics,hendrycksTest-high_school_us_history,hendrycksTest-high_school_world_history,hendrycksTest-human_aging,hendrycksTest-human_sexuality,hendrycksTest-international_law,hendrycksTest-jurisprudence,hendrycksTest-logical_fallacies,hendrycksTest-machine_learning,hendrycksTest-management,hendrycksTest-marketing,hendrycksTest-medical_genetics,hendrycksTest-miscellaneous,hendrycksTest-moral_disputes,hendrycksTest-moral_scenarios,hendrycksTest-nutrition,hendrycksTest-philosophy,hendrycksTest-prehistory,hendrycksTest-professional_accounting,hendrycksTest-professional_law,hendrycksTest-professional_medicine,hendrycksTest-professional_psychology,hendrycksTest-public_relations,hendrycksTest-security_studies,hendrycksTest-sociology,hendrycksTest-us_foreign_policy,hendrycksTest-virology,hendrycksTest-world_religions* (`acc` of `all`)
|
125 |
-
|
126 |
-
### Quantization
|
127 |
-
To get more information about quantization, see:
|
128 |
-
- 8 bits: [blog post](https://huggingface.co/blog/hf-bitsandbytes-integration), [paper](https://arxiv.org/abs/2208.07339)
|
129 |
-
- 4 bits: [blog post](https://huggingface.co/blog/4bit-transformers-bitsandbytes), [paper](https://arxiv.org/abs/2305.14314)
|
130 |
-
|
131 |
-
### Icons
|
132 |
-
🟢 means that the model is pretrained
|
133 |
-
🔶 that it is finetuned
|
134 |
-
🟦 that is was trained with RL.
|
135 |
-
If there is no icon, we have not uploaded the information on the model yet, feel free to open an issue with the model information!
|
136 |
-
|
137 |
-
|
138 |
-
# In case of model failure
|
139 |
-
If your model is displayed in the `FAILED` category, its execution stopped.
|
140 |
-
Make sure you have followed the above steps first.
|
141 |
-
If everything is done, check you can launch the EleutherAIHarness on your model locally, using the above command without modifications (you can add `--limit` to limit the number of examples per task).
|
142 |
|
143 |
"""
|
144 |
|
145 |
-
|
146 |
-
# Evaluation Queue for the 🤗 Open LLM Leaderboard
|
147 |
-
These models will be automatically evaluated on the 🤗 cluster.
|
148 |
-
"""
|
149 |
|
150 |
CITATION_BUTTON_LABEL = "Copy the following snippet to cite these results"
|
151 |
CITATION_BUTTON_TEXT = r"""
|
152 |
-
|
153 |
-
|
154 |
-
title
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
}
|
159 |
-
@software{eval-harness,
|
160 |
-
author = {Gao, Leo and
|
161 |
-
Tow, Jonathan and
|
162 |
-
Biderman, Stella and
|
163 |
-
Black, Sid and
|
164 |
-
DiPofi, Anthony and
|
165 |
-
Foster, Charles and
|
166 |
-
Golding, Laurence and
|
167 |
-
Hsu, Jeffrey and
|
168 |
-
McDonell, Kyle and
|
169 |
-
Muennighoff, Niklas and
|
170 |
-
Phang, Jason and
|
171 |
-
Reynolds, Laria and
|
172 |
-
Tang, Eric and
|
173 |
-
Thite, Anish and
|
174 |
-
Wang, Ben and
|
175 |
-
Wang, Kevin and
|
176 |
-
Zou, Andy},
|
177 |
-
title = {A framework for few-shot language model evaluation},
|
178 |
-
month = sep,
|
179 |
-
year = 2021,
|
180 |
-
publisher = {Zenodo},
|
181 |
-
version = {v0.0.1},
|
182 |
-
doi = {10.5281/zenodo.5371628},
|
183 |
-
url = {https://doi.org/10.5281/zenodo.5371628}
|
184 |
-
}
|
185 |
-
@misc{clark2018think,
|
186 |
-
title={Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challenge},
|
187 |
-
author={Peter Clark and Isaac Cowhey and Oren Etzioni and Tushar Khot and Ashish Sabharwal and Carissa Schoenick and Oyvind Tafjord},
|
188 |
-
year={2018},
|
189 |
-
eprint={1803.05457},
|
190 |
-
archivePrefix={arXiv},
|
191 |
-
primaryClass={cs.AI}
|
192 |
-
}
|
193 |
-
@misc{zellers2019hellaswag,
|
194 |
-
title={HellaSwag: Can a Machine Really Finish Your Sentence?},
|
195 |
-
author={Rowan Zellers and Ari Holtzman and Yonatan Bisk and Ali Farhadi and Yejin Choi},
|
196 |
-
year={2019},
|
197 |
-
eprint={1905.07830},
|
198 |
-
archivePrefix={arXiv},
|
199 |
-
primaryClass={cs.CL}
|
200 |
}
|
201 |
@misc{hendrycks2021measuring,
|
202 |
title={Measuring Massive Multitask Language Understanding},
|
@@ -206,11 +40,4 @@ CITATION_BUTTON_TEXT = r"""
|
|
206 |
archivePrefix={arXiv},
|
207 |
primaryClass={cs.CY}
|
208 |
}
|
209 |
-
|
210 |
-
title={TruthfulQA: Measuring How Models Mimic Human Falsehoods},
|
211 |
-
author={Stephanie Lin and Jacob Hilton and Owain Evans},
|
212 |
-
year={2022},
|
213 |
-
eprint={2109.07958},
|
214 |
-
archivePrefix={arXiv},
|
215 |
-
primaryClass={cs.CL}
|
216 |
-
}"""
|
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
2 |
|
3 |
+
TITLE = """<h1 align="center" id="space-title"> KG LLM Leaderboard</h1>"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
INTRODUCTION_TEXT = f"""
|
6 |
+
🐨 KG LLM Leaderboard aims to track, rank, and evaluate the performance of released Large Language Models on traditional KBQA/KGQA datasets.
|
|
|
|
|
7 |
|
8 |
+
The data on this page is sourced from a research paper. If you intend to use the data from this page, please remember to cite the following source: https://arxiv.org/abs/2303.07992
|
9 |
"""
|
10 |
|
11 |
LLM_BENCHMARKS_TEXT = f"""
|
12 |
+
ChatGPT is a powerful large language model (LLM) that
|
13 |
+
covers knowledge resources such as Wikipedia and supports natural language question answering using its own knowledge. Therefore, there is
|
14 |
+
growing interest in exploring whether ChatGPT can replace traditional
|
15 |
+
knowledge-based question answering (KBQA) models. Although there
|
16 |
+
have been some works analyzing the question answering performance of
|
17 |
+
ChatGPT, there is still a lack of large-scale, comprehensive testing of various types of complex questions to analyze the limitations of the model.
|
18 |
+
In this paper, we present a framework that follows the black-box testing specifications of CheckList proposed by Microsoft. We evaluate ChatGPT
|
19 |
+
and its family of LLMs on eight real-world KB-based complex question answering datasets, which include six English datasets and two multilingual datasets.
|
20 |
+
The total number of test cases is approximately 190,000.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
"""
|
23 |
|
24 |
+
|
|
|
|
|
|
|
25 |
|
26 |
CITATION_BUTTON_LABEL = "Copy the following snippet to cite these results"
|
27 |
CITATION_BUTTON_TEXT = r"""
|
28 |
+
|
29 |
+
@article{tan2023evaluation,
|
30 |
+
title={Evaluation of ChatGPT as a question answering system for answering complex questions},
|
31 |
+
author={Tan, Yiming and Min, Dehai and Li, Yu and Li, Wenbo and Hu, Nan and Chen, Yongrui and Qi, Guilin},
|
32 |
+
journal={arXiv preprint arXiv:2303.07992},
|
33 |
+
year={2023}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
}
|
35 |
@misc{hendrycks2021measuring,
|
36 |
title={Measuring Massive Multitask Language Understanding},
|
|
|
40 |
archivePrefix={arXiv},
|
41 |
primaryClass={cs.CY}
|
42 |
}
|
43 |
+
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|