"lm_eval/tasks/scrolls.py" did not exist on "4e94af6f3728ac27cf06777e792e30c7949b0eae"
Unverified Commit c26a6ac7 authored by Hanwool Albert Lee's avatar Hanwool Albert Lee Committed by GitHub
Browse files

Added KMMLU evaluation method and changed ReadMe (#1447)



* update kmmlu default formatting

* Update _default_kmmlu_yaml

* Delete lm_eval/tasks/kmmlu/utils.py

* new tasks implemented

* add direct tasks

* update direct evaluate

* update direct eval

* add cot sample

* update cot

* add cot

* Update _cot_kmmlu_yaml

* add kmmlu90

* Update and rename _cot_kmmlu.yaml to _cot_kmmlu_yaml

* Create kmmlu90.yaml

* Update _cot_kmmlu_yaml

* add direct

* Update _cot_kmmlu_yaml

* Update and rename kmmlu90.yaml to kmmlu90_cot.yaml

* Update kmmlu90_direct.yaml

* add kmmlu hard

* Update _cot_kmmlu_yaml

* Update _cot_kmmlu_yaml

* update cot

* update cot

* erase typo

* Update _cot_kmmlu_yaml

* update cot

* Rename dataset to match k-mmlu-hard

* removed kmmlu90

* fixed name 'kmmlu_cot' to 'kmmlu_hard_cot' and revised README

* applied pre-commit before pull requests

* rename datasets and add notes

* Remove DS_Store cache

* Update lm_eval/tasks/kmmlu/README.md
Co-authored-by: default avatarHailey Schoelkopf <65563625+haileyschoelkopf@users.noreply.github.com>

* Change citations and reflect reviews on version

* Added kmmlu_hard and fixed other errors

* fixing minor errors

* remove duplicated

* Rename files

* try ".index"

* minor fix

* minor fix again

* fix revert.

* minor fix. thank for hailey

---------
Co-authored-by: default avatarGUIJIN SON <spthsrbwls123@yonsei.ac.kr>
Co-authored-by: default avatarHailey Schoelkopf <65563625+haileyschoelkopf@users.noreply.github.com>
parent 5ab295c8
dataset_name: Math
include: _direct_kmmlu_yaml
task: kmmlu_direct_math
dataset_name: Mechanical-Engineering
include: _direct_kmmlu_yaml
task: kmmlu_direct_mechanical_engineering
dataset_name: Nondestructive-Testing
include: _direct_kmmlu_yaml
task: kmmlu_direct_nondestructive_testing
dataset_name: Patent
include: _direct_kmmlu_yaml
task: kmmlu_direct_patent
dataset_name: Political-Science-and-Sociology
include: _direct_kmmlu_yaml
task: kmmlu_direct_political_science_and_sociology
dataset_name: Psychology
include: _direct_kmmlu_yaml
task: kmmlu_direct_psychology
dataset_name: Public-Safety
include: _direct_kmmlu_yaml
task: kmmlu_direct_public_safety
dataset_name: Railway-and-Automotive-Engineering
include: _direct_kmmlu_yaml
task: kmmlu_direct_railway_and_automotive_engineering
dataset_name: Real-Estate
include: _direct_kmmlu_yaml
task: kmmlu_direct_real_estate
dataset_name: Refrigerating-Machinery
include: _direct_kmmlu_yaml
task: kmmlu_direct_refrigerating_machinery
dataset_name: Social-Welfare
include: _direct_kmmlu_yaml
task: kmmlu_direct_social_welfare
dataset_name: Taxation
include: _direct_kmmlu_yaml
task: kmmlu_direct_taxation
dataset_name: Telecommunications-and-Wireless-Technology
include: _direct_kmmlu_yaml
task: kmmlu_direct_telecommunications_and_wireless_technology
group:
- kmmlu
- kmmlu_hard_direct
dataset_path: HAERAE-HUB/KMMLU-HARD
output_type: generate_until
test_split: test
fewshot_split: dev
doc_to_text: "{{question.strip()}}\nA. {{A}}\nB. {{B}}\nC. {{C}}\nD. {{D}}\n정답:"
doc_to_target: "{{['A', 'B', 'C', 'D'][answer-1]}}"
metric_list:
- metric: exact_match
aggregation: mean
higher_is_better: true
ignore_case: true
ignore_punctuation: true
regexes_to_ignore:
- " "
generation_kwargs:
until:
- "Q:"
- "\n\n"
- "</s>"
- "."
do_sample: false
temperature: 0.0
metadata:
version: 2.0
dataset_name: accounting
include: _direct_hard_kmmlu_yaml
task: kmmlu_hard_direct_accounting
dataset_name: agricultural_sciences
include: _direct_hard_kmmlu_yaml
task: kmmlu_hard_direct_agricultural_sciences
dataset_name: aviation_engineering_and_maintenance
include: _direct_hard_kmmlu_yaml
task: kmmlu_hard_direct_aviation_engineering_and_maintenance
dataset_name: biology
include: _direct_hard_kmmlu_yaml
task: kmmlu_hard_direct_biology
dataset_name: chemical_engineering
include: _direct_hard_kmmlu_yaml
task: kmmlu_hard_direct_chemical_engineering
dataset_name: chemistry
include: _direct_hard_kmmlu_yaml
task: kmmlu_hard_direct_chemistry
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment