Clémentine
commited on
Commit
•
d2e8eca
1
Parent(s):
6e8f400
added harness command
Browse files- app.py +7 -12
- src/assets/text_content.py +21 -1
app.py
CHANGED
@@ -310,6 +310,13 @@ with demo:
|
|
310 |
)
|
311 |
with gr.TabItem("About", elem_id="llm-benchmark-tab-table", id=2):
|
312 |
gr.Markdown(LLM_BENCHMARKS_TEXT, elem_classes="markdown-text")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
313 |
|
314 |
with gr.Column():
|
315 |
with gr.Row():
|
@@ -389,18 +396,6 @@ with demo:
|
|
389 |
submission_result,
|
390 |
)
|
391 |
|
392 |
-
with gr.Row():
|
393 |
-
with gr.Column():
|
394 |
-
with gr.Accordion("📙 Citation", open=False):
|
395 |
-
citation_button = gr.Textbox(
|
396 |
-
value=CITATION_BUTTON_TEXT,
|
397 |
-
label=CITATION_BUTTON_LABEL,
|
398 |
-
elem_id="citation-button",
|
399 |
-
).style(show_copy_button=True)
|
400 |
-
with gr.Column():
|
401 |
-
with gr.Accordion("✨ CHANGELOG", open=False):
|
402 |
-
changelog = gr.Markdown(CHANGELOG_TEXT, elem_id="changelog-text")
|
403 |
-
|
404 |
dummy = gr.Textbox(visible=False)
|
405 |
demo.load(
|
406 |
change_tab,
|
|
|
310 |
)
|
311 |
with gr.TabItem("About", elem_id="llm-benchmark-tab-table", id=2):
|
312 |
gr.Markdown(LLM_BENCHMARKS_TEXT, elem_classes="markdown-text")
|
313 |
+
with gr.Accordion("📙 Citation", open=False):
|
314 |
+
citation_button = gr.Textbox(
|
315 |
+
value=CITATION_BUTTON_TEXT,
|
316 |
+
label=CITATION_BUTTON_LABEL,
|
317 |
+
elem_id="citation-button",
|
318 |
+
).style(show_copy_button=True)
|
319 |
+
|
320 |
|
321 |
with gr.Column():
|
322 |
with gr.Row():
|
|
|
396 |
submission_result,
|
397 |
)
|
398 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
399 |
dummy = gr.Textbox(visible=False)
|
400 |
demo.load(
|
401 |
change_tab,
|
src/assets/text_content.py
CHANGED
@@ -60,9 +60,14 @@ INTRODUCTION_TEXT = f"""
|
|
60 |
📐 The 🤗 Open LLM Leaderboard aims to track, rank and evaluate LLMs and chatbots as they are released.
|
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 LLaMa.
|
|
|
|
|
|
|
|
|
63 |
"""
|
64 |
|
65 |
LLM_BENCHMARKS_TEXT = f"""
|
|
|
66 |
With the plethora of large language models (LLMs) and chatbots being released week upon week, often with grandiose claims of their performance, it can be hard to filter out the genuine progress that is being made by the open-source community and which model is the current state of the art.
|
67 |
|
68 |
📈 We evaluate models on 4 key benchmarks from the <a href="https://github.com/EleutherAI/lm-evaluation-harness" target="_blank"> Eleuther AI Language Model Evaluation Harness </a>, a unified framework to test generative language models on a large number of different evaluation tasks.
|
@@ -73,6 +78,21 @@ With the plethora of large language models (LLMs) and chatbots being released we
|
|
73 |
- <a href="https://arxiv.org/abs/2109.07958" target="_blank"> TruthfulQA </a> (0-shot) - a test to measure a model’s propensity to reproduce falsehoods commonly found online.
|
74 |
|
75 |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
"""
|
77 |
|
78 |
EVALUATION_QUEUE_TEXT = f"""
|
@@ -82,7 +102,7 @@ These models will be automatically evaluated on the 🤗 cluster.
|
|
82 |
|
83 |
CITATION_BUTTON_LABEL = "Copy the following snippet to cite these results"
|
84 |
CITATION_BUTTON_TEXT = r"""@misc{open-llm-leaderboard,
|
85 |
-
author = {Edward Beeching, Sheon Han, Nathan Lambert, Nazneen Rajani, Omar Sanseviero, Lewis Tunstall, Thomas Wolf},
|
86 |
title = {Open LLM Leaderboard},
|
87 |
year = {2023},
|
88 |
publisher = {Hugging Face},
|
|
|
60 |
📐 The 🤗 Open LLM Leaderboard aims to track, rank and evaluate LLMs and chatbots as they are released.
|
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 LLaMa.
|
63 |
+
|
64 |
+
Other cool benchmarks for LLMs are developped at HuggingFace, go check them out!
|
65 |
+
- 🙋🤖 [human and GPT4 evaluation](https://huggingface.co/spaces/HuggingFaceH4/human_eval_llm_leaderboard)
|
66 |
+
- 🖥️ [performance benchmarking](https://huggingface.co/spaces/optimum)
|
67 |
"""
|
68 |
|
69 |
LLM_BENCHMARKS_TEXT = f"""
|
70 |
+
# Context
|
71 |
With the plethora of large language models (LLMs) and chatbots being released week upon week, often with grandiose claims of their performance, it can be hard to filter out the genuine progress that is being made by the open-source community and which model is the current state of the art.
|
72 |
|
73 |
📈 We evaluate models on 4 key benchmarks from the <a href="https://github.com/EleutherAI/lm-evaluation-harness" target="_blank"> Eleuther AI Language Model Evaluation Harness </a>, a unified framework to test generative language models on a large number of different evaluation tasks.
|
|
|
78 |
- <a href="https://arxiv.org/abs/2109.07958" target="_blank"> TruthfulQA </a> (0-shot) - a test to measure a model’s propensity to reproduce falsehoods commonly found online.
|
79 |
|
80 |
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.
|
81 |
+
|
82 |
+
|
83 |
+
# Reproduction
|
84 |
+
To reproduce our results, here is the commands you can run, using [this version](https://github.com/EleutherAI/lm-evaluation-harness/tree/e47e01beea79cfe87421e2dac49e64d499c240b4) of the Eleuther AI Harness:
|
85 |
+
`python main.py --model=hf-causal --model_args="pretrained=<your_model>,use_accelerate=True,revision=<your_model_revision>"`
|
86 |
+
` --tasks=<task_list> --num_fewshot=<n_few_shot> --batch_size=2 --output_path=<output_path>`
|
87 |
+
|
88 |
+
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.
|
89 |
+
*You can expect results to vary slightly for different batch sizes because of padding.*
|
90 |
+
|
91 |
+
The tasks and few shots parameters are:
|
92 |
+
- ARC: 25-shot, *arc-challenge*
|
93 |
+
- HellaSwag: 10-shot, *hellaswag*
|
94 |
+
- TruthfulQA: 0-shot, *truthfulqa-mc* (mc2 score)
|
95 |
+
- 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*
|
96 |
"""
|
97 |
|
98 |
EVALUATION_QUEUE_TEXT = f"""
|
|
|
102 |
|
103 |
CITATION_BUTTON_LABEL = "Copy the following snippet to cite these results"
|
104 |
CITATION_BUTTON_TEXT = r"""@misc{open-llm-leaderboard,
|
105 |
+
author = {Edward Beeching, Clémentine Fourrier, Nathan Habib, Sheon Han, Nathan Lambert, Nazneen Rajani, Omar Sanseviero, Lewis Tunstall, Thomas Wolf},
|
106 |
title = {Open LLM Leaderboard},
|
107 |
year = {2023},
|
108 |
publisher = {Hugging Face},
|