Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
lm-evaluation-harness
Commits
3a4e4674
Unverified
Commit
3a4e4674
authored
Jan 21, 2025
by
Minho Ryu
Committed by
GitHub
Jan 21, 2025
Browse files
apply precommit (#2636)
parent
6dac8c69
Changes
1000
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
197 additions
and
0 deletions
+197
-0
lm_eval/tasks/global_mmlu/full/am/global_mmlu_full_am_world_religions.yaml
...bal_mmlu/full/am/global_mmlu_full_am_world_religions.yaml
+5
-0
lm_eval/tasks/global_mmlu/full/am/utils.py
lm_eval/tasks/global_mmlu/full/am/utils.py
+73
-0
lm_eval/tasks/global_mmlu/full/ar/_ar_template_yaml
lm_eval/tasks/global_mmlu/full/ar/_ar_template_yaml
+16
-0
lm_eval/tasks/global_mmlu/full/ar/_global_mmlu_full_ar.yaml
lm_eval/tasks/global_mmlu/full/ar/_global_mmlu_full_ar.yaml
+11
-0
lm_eval/tasks/global_mmlu/full/ar/_global_mmlu_full_ar_humanities.yaml
.../global_mmlu/full/ar/_global_mmlu_full_ar_humanities.yaml
+8
-0
lm_eval/tasks/global_mmlu/full/ar/_global_mmlu_full_ar_other.yaml
...tasks/global_mmlu/full/ar/_global_mmlu_full_ar_other.yaml
+8
-0
lm_eval/tasks/global_mmlu/full/ar/_global_mmlu_full_ar_social_sciences.yaml
...al_mmlu/full/ar/_global_mmlu_full_ar_social_sciences.yaml
+8
-0
lm_eval/tasks/global_mmlu/full/ar/_global_mmlu_full_ar_stem.yaml
.../tasks/global_mmlu/full/ar/_global_mmlu_full_ar_stem.yaml
+8
-0
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_abstract_algebra.yaml
...al_mmlu/full/ar/global_mmlu_full_ar_abstract_algebra.yaml
+5
-0
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_anatomy.yaml
...asks/global_mmlu/full/ar/global_mmlu_full_ar_anatomy.yaml
+5
-0
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_astronomy.yaml
...ks/global_mmlu/full/ar/global_mmlu_full_ar_astronomy.yaml
+5
-0
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_business_ethics.yaml
...bal_mmlu/full/ar/global_mmlu_full_ar_business_ethics.yaml
+5
-0
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_clinical_knowledge.yaml
..._mmlu/full/ar/global_mmlu_full_ar_clinical_knowledge.yaml
+5
-0
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_college_biology.yaml
...bal_mmlu/full/ar/global_mmlu_full_ar_college_biology.yaml
+5
-0
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_college_chemistry.yaml
...l_mmlu/full/ar/global_mmlu_full_ar_college_chemistry.yaml
+5
-0
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_college_computer_science.yaml
...full/ar/global_mmlu_full_ar_college_computer_science.yaml
+5
-0
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_college_mathematics.yaml
...mmlu/full/ar/global_mmlu_full_ar_college_mathematics.yaml
+5
-0
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_college_medicine.yaml
...al_mmlu/full/ar/global_mmlu_full_ar_college_medicine.yaml
+5
-0
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_college_physics.yaml
...bal_mmlu/full/ar/global_mmlu_full_ar_college_physics.yaml
+5
-0
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_computer_security.yaml
...l_mmlu/full/ar/global_mmlu_full_ar_computer_security.yaml
+5
-0
No files found.
Too many changes to show.
To preserve performance only
1000 of 1000+
files are displayed.
Plain diff
Email patch
lm_eval/tasks/global_mmlu/full/am/global_mmlu_full_am_world_religions.yaml
0 → 100644
View file @
3a4e4674
# Generated by _generate_configs.py
include
:
_am_template_yaml
process_docs
:
!function
utils.process_world_religions
tag
:
global_mmlu_full_am_humanities_tasks
task
:
global_mmlu_full_am_world_religions
lm_eval/tasks/global_mmlu/full/am/utils.py
0 → 100644
View file @
3a4e4674
from
functools
import
partial
SUBJECTS
=
[
"abstract_algebra"
,
"anatomy"
,
"astronomy"
,
"business_ethics"
,
"clinical_knowledge"
,
"college_biology"
,
"college_chemistry"
,
"college_computer_science"
,
"college_mathematics"
,
"college_medicine"
,
"college_physics"
,
"computer_security"
,
"conceptual_physics"
,
"econometrics"
,
"electrical_engineering"
,
"elementary_mathematics"
,
"formal_logic"
,
"global_facts"
,
"high_school_biology"
,
"high_school_chemistry"
,
"high_school_computer_science"
,
"high_school_european_history"
,
"high_school_geography"
,
"high_school_government_and_politics"
,
"high_school_macroeconomics"
,
"high_school_mathematics"
,
"high_school_microeconomics"
,
"high_school_physics"
,
"high_school_psychology"
,
"high_school_statistics"
,
"high_school_us_history"
,
"high_school_world_history"
,
"human_aging"
,
"human_sexuality"
,
"international_law"
,
"jurisprudence"
,
"logical_fallacies"
,
"machine_learning"
,
"management"
,
"marketing"
,
"medical_genetics"
,
"miscellaneous"
,
"moral_disputes"
,
"moral_scenarios"
,
"nutrition"
,
"philosophy"
,
"prehistory"
,
"professional_accounting"
,
"professional_law"
,
"professional_medicine"
,
"professional_psychology"
,
"public_relations"
,
"security_studies"
,
"sociology"
,
"us_foreign_policy"
,
"virology"
,
"world_religions"
,
]
def
process_docs
(
dataset
,
subject
):
return
dataset
.
filter
(
lambda
x
:
x
[
"subject"
]
==
subject
)
process_functions
=
{
f
"process_
{
subject
}
"
:
partial
(
process_docs
,
subject
=
subject
)
for
subject
in
SUBJECTS
}
globals
().
update
(
process_functions
)
lm_eval/tasks/global_mmlu/full/ar/_ar_template_yaml
0 → 100644
View file @
3a4e4674
dataset_path: CohereForAI/Global-MMLU
dataset_name: ar
test_split: test
fewshot_split: dev
fewshot_config:
sampler: first_n
output_type: multiple_choice
doc_to_text: "{{question.strip()}}\nA. {{option_a}}\nB. {{option_b}}\nC. {{option_c}}\nD. {{option_d}}\nAnswer:"
doc_to_choice: ["A", "B", "C", "D"]
doc_to_target: answer
metric_list:
- metric: acc
aggregation: mean
higher_is_better: true
metadata:
version: 0.0
lm_eval/tasks/global_mmlu/full/ar/_global_mmlu_full_ar.yaml
0 → 100644
View file @
3a4e4674
group
:
global_mmlu_full_ar
task
:
-
global_mmlu_full_ar_stem
-
global_mmlu_full_ar_other
-
global_mmlu_full_ar_social_sciences
-
global_mmlu_full_ar_humanities
aggregate_metric_list
:
-
metric
:
acc
weight_by_size
:
True
metadata
:
version
:
1.0
lm_eval/tasks/global_mmlu/full/ar/_global_mmlu_full_ar_humanities.yaml
0 → 100644
View file @
3a4e4674
group
:
global_mmlu_full_ar_humanities
task
:
-
global_mmlu_full_ar_humanities_tasks
aggregate_metric_list
:
-
metric
:
acc
weight_by_size
:
true
metadata
:
version
:
0.0
lm_eval/tasks/global_mmlu/full/ar/_global_mmlu_full_ar_other.yaml
0 → 100644
View file @
3a4e4674
group
:
global_mmlu_full_ar_other
task
:
-
global_mmlu_full_ar_other_tasks
aggregate_metric_list
:
-
metric
:
acc
weight_by_size
:
true
metadata
:
version
:
0.0
lm_eval/tasks/global_mmlu/full/ar/_global_mmlu_full_ar_social_sciences.yaml
0 → 100644
View file @
3a4e4674
group
:
global_mmlu_full_ar_social_sciences
task
:
-
global_mmlu_full_ar_social_sciences_tasks
aggregate_metric_list
:
-
metric
:
acc
weight_by_size
:
true
metadata
:
version
:
0.0
lm_eval/tasks/global_mmlu/full/ar/_global_mmlu_full_ar_stem.yaml
0 → 100644
View file @
3a4e4674
group
:
global_mmlu_full_ar_stem
task
:
-
global_mmlu_full_ar_stem_tasks
aggregate_metric_list
:
-
metric
:
acc
weight_by_size
:
true
metadata
:
version
:
0.0
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_abstract_algebra.yaml
0 → 100644
View file @
3a4e4674
# Generated by _generate_configs.py
include
:
_ar_template_yaml
process_docs
:
!function
utils.process_abstract_algebra
tag
:
global_mmlu_full_ar_stem_tasks
task
:
global_mmlu_full_ar_abstract_algebra
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_anatomy.yaml
0 → 100644
View file @
3a4e4674
# Generated by _generate_configs.py
include
:
_ar_template_yaml
process_docs
:
!function
utils.process_anatomy
tag
:
global_mmlu_full_ar_stem_tasks
task
:
global_mmlu_full_ar_anatomy
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_astronomy.yaml
0 → 100644
View file @
3a4e4674
# Generated by _generate_configs.py
include
:
_ar_template_yaml
process_docs
:
!function
utils.process_astronomy
tag
:
global_mmlu_full_ar_stem_tasks
task
:
global_mmlu_full_ar_astronomy
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_business_ethics.yaml
0 → 100644
View file @
3a4e4674
# Generated by _generate_configs.py
include
:
_ar_template_yaml
process_docs
:
!function
utils.process_business_ethics
tag
:
global_mmlu_full_ar_other_tasks
task
:
global_mmlu_full_ar_business_ethics
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_clinical_knowledge.yaml
0 → 100644
View file @
3a4e4674
# Generated by _generate_configs.py
include
:
_ar_template_yaml
process_docs
:
!function
utils.process_clinical_knowledge
tag
:
global_mmlu_full_ar_other_tasks
task
:
global_mmlu_full_ar_clinical_knowledge
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_college_biology.yaml
0 → 100644
View file @
3a4e4674
# Generated by _generate_configs.py
include
:
_ar_template_yaml
process_docs
:
!function
utils.process_college_biology
tag
:
global_mmlu_full_ar_stem_tasks
task
:
global_mmlu_full_ar_college_biology
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_college_chemistry.yaml
0 → 100644
View file @
3a4e4674
# Generated by _generate_configs.py
include
:
_ar_template_yaml
process_docs
:
!function
utils.process_college_chemistry
tag
:
global_mmlu_full_ar_stem_tasks
task
:
global_mmlu_full_ar_college_chemistry
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_college_computer_science.yaml
0 → 100644
View file @
3a4e4674
# Generated by _generate_configs.py
include
:
_ar_template_yaml
process_docs
:
!function
utils.process_college_computer_science
tag
:
global_mmlu_full_ar_stem_tasks
task
:
global_mmlu_full_ar_college_computer_science
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_college_mathematics.yaml
0 → 100644
View file @
3a4e4674
# Generated by _generate_configs.py
include
:
_ar_template_yaml
process_docs
:
!function
utils.process_college_mathematics
tag
:
global_mmlu_full_ar_stem_tasks
task
:
global_mmlu_full_ar_college_mathematics
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_college_medicine.yaml
0 → 100644
View file @
3a4e4674
# Generated by _generate_configs.py
include
:
_ar_template_yaml
process_docs
:
!function
utils.process_college_medicine
tag
:
global_mmlu_full_ar_other_tasks
task
:
global_mmlu_full_ar_college_medicine
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_college_physics.yaml
0 → 100644
View file @
3a4e4674
# Generated by _generate_configs.py
include
:
_ar_template_yaml
process_docs
:
!function
utils.process_college_physics
tag
:
global_mmlu_full_ar_stem_tasks
task
:
global_mmlu_full_ar_college_physics
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_computer_security.yaml
0 → 100644
View file @
3a4e4674
# Generated by _generate_configs.py
include
:
_ar_template_yaml
process_docs
:
!function
utils.process_computer_security
tag
:
global_mmlu_full_ar_stem_tasks
task
:
global_mmlu_full_ar_computer_security
Prev
1
2
3
4
5
6
7
8
9
…
50
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment