Spaces:
Runtime error
Runtime error
Nathan Habib commited on
Commit ·
2a73df7
1
Parent(s): 1b8a36b
add new evals to the leaderboard
Browse filesFiles changed (5)
87 unmodified lines88899091929313 unmodified lines107108109110111112113402 unmodified lines51651751851952052152252352452552652752852953053153253353453553653753853987 unmodified linesAutoEvalColumn.hellaswag,AutoEvalColumn.mmlu,AutoEvalColumn.truthfulqa,]]13 unmodified linesleaderboard_df = original_df.copy()models = original_df["model_name_for_query"].tolist() # needed for model backlinks in their to the leaderboardplot_df = create_plot_df(create_scores_df(join_model_info_with_results(original_df)))to_be_dumped = f"models = {repr(models)}\n"(402 unmodified linesqueue=True,)with gr.TabItem("📈 Metrics evolution through time", elem_id="llm-benchmark-tab-table", id=4):with gr.Row():with gr.Column():chart = create_metric_plot_obj(plot_df,["Average ⬆️"],HUMAN_BASELINES,title="Average of Top Scores and Human Baseline Over Time",)gr.Plot(value=chart, interactive=False, width=500, height=500)with gr.Column():chart = create_metric_plot_obj(plot_df,["ARC", "HellaSwag", "MMLU", "TruthfulQA"],HUMAN_BASELINES,title="Top Scores and Human Baseline Over Time",)gr.Plot(value=chart, interactive=False, width=500, height=500)with gr.TabItem("📝 About", elem_id="llm-benchmark-tab-table", id=2):gr.Markdown(LLM_BENCHMARKS_TEXT, elem_classes="markdown-text")87 unmodified lines88899091929394959613 unmodified lines110111112113114115116402 unmodified lines51952052152252352452552652752852953053153253353453553653753853954054154287 unmodified linesAutoEvalColumn.hellaswag,AutoEvalColumn.mmlu,AutoEvalColumn.truthfulqa,AutoEvalColumn.winogrande,AutoEvalColumn.gsm8k,AutoEvalColumn.drop]]13 unmodified linesleaderboard_df = original_df.copy()models = original_df["model_name_for_query"].tolist() # needed for model backlinks in their to the leaderboard#plot_df = create_plot_df(create_scores_df(join_model_info_with_results(original_df)))to_be_dumped = f"models = {repr(models)}\n"(402 unmodified linesqueue=True,)# with gr.TabItem("📈 Metrics evolution through time", elem_id="llm-benchmark-tab-table", id=4):# with gr.Row():# with gr.Column():# chart = create_metric_plot_obj(# plot_df,# ["Average ⬆️"],# HUMAN_BASELINES,# title="Average of Top Scores and Human Baseline Over Time",# )# gr.Plot(value=chart, interactive=False, width=500, height=500)# with gr.Column():# chart = create_metric_plot_obj(# plot_df,# ["ARC", "HellaSwag", "MMLU", "TruthfulQA", "Winogrande", "GSM8K", "DROP"],# HUMAN_BASELINES,# title="Top Scores and Human Baseline Over Time",# )# gr.Plot(value=chart, interactive=False, width=500, height=500)with gr.TabItem("📝 About", elem_id="llm-benchmark-tab-table", id=2):gr.Markdown(LLM_BENCHMARKS_TEXT, elem_classes="markdown-text")
34 unmodified lines35363738394034 unmodified linesAutoEvalColumn.hellaswag.name: 25.0,AutoEvalColumn.mmlu.name: 25.0,AutoEvalColumn.truthfulqa.name: 25.0,AutoEvalColumn.dummy.name: "baseline",AutoEvalColumn.model_type.name: "",}34 unmodified lines35363738394041424334 unmodified linesAutoEvalColumn.hellaswag.name: 25.0,AutoEvalColumn.mmlu.name: 25.0,AutoEvalColumn.truthfulqa.name: 25.0,AutoEvalColumn.winogrande.name: 50.0,AutoEvalColumn.gsm8k.name: 0.21,AutoEvalColumn.drop.name: 0.47,AutoEvalColumn.dummy.name: "baseline",AutoEvalColumn.model_type.name: "",}
30 unmodified lines3132333435363717 unmodified lines555657585960105 unmodified lines16616716816930 unmodified lines- <a href="https://arxiv.org/abs/1803.05457" target="_blank"> AI2 Reasoning Challenge </a> (25-shot) - a set of grade-school science questions.- <a href="https://arxiv.org/abs/1905.07830" target="_blank"> HellaSwag </a> (10-shot) - a test of commonsense inference, which is easy for humans (~95%) but challenging for SOTA models.- <a href="https://arxiv.org/abs/2009.03300" target="_blank"> MMLU </a> (5-shot) - a test to measure a text model's multitask accuracy. The test covers 57 tasks including elementary mathematics, US history, computer science, law, and more.- <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. Note: TruthfulQA in the Harness is actually a minima a 6-shots task, as it is prepended by 6 examples systematically, even when launched using 0 for the number of few-shot examples.For all these evaluations, a higher score is a better score.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.17 unmodified lines- HellaSwag: 10-shot, *hellaswag* (`acc_norm`)- TruthfulQA: 0-shot, *truthfulqa-mc* (`mc2`)- 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* (average of all the results `acc`)## QuantizationTo get more information about quantization, see:105 unmodified lineseprint={2109.07958},archivePrefix={arXiv},primaryClass={cs.CL}}"""30 unmodified lines3132333435363738394017 unmodified lines5859606162636465666768697071105 unmodified lines17717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022130 unmodified lines- <a href="https://arxiv.org/abs/1803.05457" target="_blank"> AI2 Reasoning Challenge </a> (25-shot) - a set of grade-school science questions.- <a href="https://arxiv.org/abs/1905.07830" target="_blank"> HellaSwag </a> (10-shot) - a test of commonsense inference, which is easy for humans (~95%) but challenging for SOTA models.- <a href="https://arxiv.org/abs/2009.03300" target="_blank"> MMLU </a> (5-shot) - a test to measure a text model's multitask accuracy. The test covers 57 tasks including elementary mathematics, US history, computer science, law, and more.- <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. Note: TruthfulQA in the Harness is actually a minima a 6-shots task, as it is prepended by 6 examples systematically, even when launched using 0 for the number of few-shot examples.- <a href="https://arxiv.org/abs/1907.10641" target="_blank"> Winogrande </a> (5-shot) - an adversarial and difficult Winograd benchmark at scale, for commonsense reasoning.- <a href="https://arxiv.org/abs/2110.14168" target="_blank"> GSM8k </a> (5-shot) - diverse grade school math word problems to measure a model's ability to solve multi-step mathematical reasoning problems.- <a href="https://arxiv.org/abs/1903.00161" target="_blank"> DROP </a> (3-shot) - English reading comprehension benchmark requiring Discrete Reasoning Over the content of Paragraphs.For all these evaluations, a higher score is a better score.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.17 unmodified lines- HellaSwag: 10-shot, *hellaswag* (`acc_norm`)- TruthfulQA: 0-shot, *truthfulqa-mc* (`mc2`)- 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* (average of all the results `acc`)- Winogrande: 5-shot, *winogrande* (`acc`)- GSM8k: 5-shot, *gsm8k* (`acc`)- DROP: 3-shot, *drop* (`f1`)Side note on the baseline scores:- for log-likelihood evaluation, we select the random baseline- for DROP, we select the best submission score according to [their leaderboard](https://leaderboard.allenai.org/drop/submissions/public) when the paper came out (NAQANet score)- for GSM8K, we select the score obtained in the paper after inetuning a 6B model on the full GSM8K training set for 50 epochs## QuantizationTo get more information about quantization, see:105 unmodified lineseprint={2109.07958},archivePrefix={arXiv},primaryClass={cs.CL}}@misc{DBLP:journals/corr/abs-1907-10641,title={{WINOGRANDE:} An Adversarial Winograd Schema Challenge at Scale},author={Keisuke Sakaguchi and Ronan Le Bras and Chandra Bhagavatula and Yejin Choi},year={2019},eprint={1907.10641},archivePrefix={arXiv},primaryClass={cs.CL}}@misc{DBLP:journals/corr/abs-2110-14168,title={Training Verifiers to Solve Math Word Problems},author={Karl Cobbe andVineet Kosaraju andMohammad Bavarian andMark Chen andHeewoo Jun andLukasz Kaiser andMatthias Plappert andJerry Tworek andJacob Hilton andReiichiro Nakano andChristopher Hesse andJohn Schulman},year={2021},eprint={2110.14168},archivePrefix={arXiv},primaryClass={cs.CL}}@misc{DBLP:journals/corr/abs-1903-00161,title={{DROP:} {A} Reading Comprehension Benchmark Requiring Discrete ReasoningOver Paragraphs},author={Dheeru Dua andYizhong Wang andPradeep Dasigi andGabriel Stanovsky andSameer Singh andMatt Gardner},year={2019},eprinttype={arXiv},eprint={1903.00161},primaryClass={cs.CL}}"""
28 unmodified lines29303132333428 unmodified lineshellaswag = ColumnContent("HellaSwag", "number", True)mmlu = ColumnContent("MMLU", "number", True)truthfulqa = ColumnContent("TruthfulQA", "number", True)model_type = ColumnContent("Type", "str", False)precision = ColumnContent("Precision", "str", False) # , True)license = ColumnContent("Hub License", "str", False)28 unmodified lines29303132333435363728 unmodified lineshellaswag = ColumnContent("HellaSwag", "number", True)mmlu = ColumnContent("MMLU", "number", True)truthfulqa = ColumnContent("TruthfulQA", "number", True)winogrande = ColumnContent("Winogrande", "number", True)gsm8k = ColumnContent("GSM8K", "number", True)drop = ColumnContent("DROP", "number", True)model_type = ColumnContent("Type", "str", False)precision = ColumnContent("Precision", "str", False) # , True)license = ColumnContent("Hub License", "str", False)
7 unmodified lines89101112131415161718192025 unmodified lines464748495051527 unmodified linesfrom src.get_model_info.utils import AutoEvalColumn, make_clickable_modelMETRICS = ["acc_norm", "acc_norm", "acc", "mc2"]BENCHMARKS = ["arc:challenge", "hellaswag", "hendrycksTest", "truthfulqa:mc"]BENCH_TO_NAME = {"arc:challenge": AutoEvalColumn.arc.name,"hellaswag": AutoEvalColumn.hellaswag.name,"hendrycksTest": AutoEvalColumn.mmlu.name,"truthfulqa:mc": AutoEvalColumn.truthfulqa.name,}25 unmodified linesdata_dict[AutoEvalColumn.model.name] = make_clickable_model(base_model)data_dict[AutoEvalColumn.dummy.name] = base_modeldata_dict[AutoEvalColumn.revision.name] = self.revisiondata_dict[AutoEvalColumn.average.name] = sum([v for k, v in self.results.items()]) / 4.0data_dict[AutoEvalColumn.still_on_hub.name] = (is_model_on_hub(base_model, self.revision)[0] or base_model == "baseline")7 unmodified lines89101112131415161718192021222325 unmodified lines495051525354557 unmodified linesfrom src.get_model_info.utils import AutoEvalColumn, make_clickable_modelMETRICS = ["acc_norm", "acc_norm", "acc", "mc2", "acc", "acc", "f1"]BENCHMARKS = ["arc:challenge", "hellaswag", "hendrycksTest", "truthfulqa:mc", "winogrande", "gsm8k", "drop"]BENCH_TO_NAME = {"arc:challenge": AutoEvalColumn.arc.name,"hellaswag": AutoEvalColumn.hellaswag.name,"hendrycksTest": AutoEvalColumn.mmlu.name,"truthfulqa:mc": AutoEvalColumn.truthfulqa.name,"winogrande": AutoEvalColumn.winogrande.name,"gsm8k": AutoEvalColumn.gsm8k.name,"drop": AutoEvalColumn.drop.name,}25 unmodified linesdata_dict[AutoEvalColumn.model.name] = make_clickable_model(base_model)data_dict[AutoEvalColumn.dummy.name] = base_modeldata_dict[AutoEvalColumn.revision.name] = self.revisiondata_dict[AutoEvalColumn.average.name] = sum([v for k, v in self.results.items()]) / 7.0data_dict[AutoEvalColumn.still_on_hub.name] = (is_model_on_hub(base_model, self.revision)[0] or base_model == "baseline")
app.py+22-19
src/assets/hardcoded_evals.py+3
src/assets/text_content.py+53-1
src/get_model_info/utils.py+3
src/plots/read_results.py+6-3