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
89b6bdb3
Commit
89b6bdb3
authored
Feb 06, 2025
by
Baber
Browse files
Merge branch 'main' into ai2d
parents
59053d58
144a1e58
Changes
1000
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
191 additions
and
0 deletions
+191
-0
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_moral_disputes.yaml
...obal_mmlu/full/ar/global_mmlu_full_ar_moral_disputes.yaml
+5
-0
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_moral_scenarios.yaml
...bal_mmlu/full/ar/global_mmlu_full_ar_moral_scenarios.yaml
+5
-0
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_nutrition.yaml
...ks/global_mmlu/full/ar/global_mmlu_full_ar_nutrition.yaml
+5
-0
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_philosophy.yaml
...s/global_mmlu/full/ar/global_mmlu_full_ar_philosophy.yaml
+5
-0
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_prehistory.yaml
...s/global_mmlu/full/ar/global_mmlu_full_ar_prehistory.yaml
+5
-0
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_professional_accounting.yaml
.../full/ar/global_mmlu_full_ar_professional_accounting.yaml
+5
-0
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_professional_law.yaml
...al_mmlu/full/ar/global_mmlu_full_ar_professional_law.yaml
+5
-0
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_professional_medicine.yaml
...lu/full/ar/global_mmlu_full_ar_professional_medicine.yaml
+5
-0
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_professional_psychology.yaml
.../full/ar/global_mmlu_full_ar_professional_psychology.yaml
+5
-0
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_public_relations.yaml
...al_mmlu/full/ar/global_mmlu_full_ar_public_relations.yaml
+5
-0
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_security_studies.yaml
...al_mmlu/full/ar/global_mmlu_full_ar_security_studies.yaml
+5
-0
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_sociology.yaml
...ks/global_mmlu/full/ar/global_mmlu_full_ar_sociology.yaml
+5
-0
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_us_foreign_policy.yaml
...l_mmlu/full/ar/global_mmlu_full_ar_us_foreign_policy.yaml
+5
-0
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_virology.yaml
...sks/global_mmlu/full/ar/global_mmlu_full_ar_virology.yaml
+5
-0
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_world_religions.yaml
...bal_mmlu/full/ar/global_mmlu_full_ar_world_religions.yaml
+5
-0
lm_eval/tasks/global_mmlu/full/ar/utils.py
lm_eval/tasks/global_mmlu/full/ar/utils.py
+73
-0
lm_eval/tasks/global_mmlu/full/bn/_bn_template_yaml
lm_eval/tasks/global_mmlu/full/bn/_bn_template_yaml
+16
-0
lm_eval/tasks/global_mmlu/full/bn/_global_mmlu_full_bn.yaml
lm_eval/tasks/global_mmlu/full/bn/_global_mmlu_full_bn.yaml
+11
-0
lm_eval/tasks/global_mmlu/full/bn/_global_mmlu_full_bn_humanities.yaml
.../global_mmlu/full/bn/_global_mmlu_full_bn_humanities.yaml
+8
-0
lm_eval/tasks/global_mmlu/full/bn/_global_mmlu_full_bn_other.yaml
...tasks/global_mmlu/full/bn/_global_mmlu_full_bn_other.yaml
+8
-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/ar/global_mmlu_full_ar_moral_disputes.yaml
0 → 100644
View file @
89b6bdb3
# Generated by _generate_configs.py
include
:
_ar_template_yaml
process_docs
:
!function
utils.process_moral_disputes
tag
:
global_mmlu_full_ar_humanities_tasks
task
:
global_mmlu_full_ar_moral_disputes
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_moral_scenarios.yaml
0 → 100644
View file @
89b6bdb3
# Generated by _generate_configs.py
include
:
_ar_template_yaml
process_docs
:
!function
utils.process_moral_scenarios
tag
:
global_mmlu_full_ar_humanities_tasks
task
:
global_mmlu_full_ar_moral_scenarios
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_nutrition.yaml
0 → 100644
View file @
89b6bdb3
# Generated by _generate_configs.py
include
:
_ar_template_yaml
process_docs
:
!function
utils.process_nutrition
tag
:
global_mmlu_full_ar_other_tasks
task
:
global_mmlu_full_ar_nutrition
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_philosophy.yaml
0 → 100644
View file @
89b6bdb3
# Generated by _generate_configs.py
include
:
_ar_template_yaml
process_docs
:
!function
utils.process_philosophy
tag
:
global_mmlu_full_ar_humanities_tasks
task
:
global_mmlu_full_ar_philosophy
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_prehistory.yaml
0 → 100644
View file @
89b6bdb3
# Generated by _generate_configs.py
include
:
_ar_template_yaml
process_docs
:
!function
utils.process_prehistory
tag
:
global_mmlu_full_ar_humanities_tasks
task
:
global_mmlu_full_ar_prehistory
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_professional_accounting.yaml
0 → 100644
View file @
89b6bdb3
# Generated by _generate_configs.py
include
:
_ar_template_yaml
process_docs
:
!function
utils.process_professional_accounting
tag
:
global_mmlu_full_ar_other_tasks
task
:
global_mmlu_full_ar_professional_accounting
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_professional_law.yaml
0 → 100644
View file @
89b6bdb3
# Generated by _generate_configs.py
include
:
_ar_template_yaml
process_docs
:
!function
utils.process_professional_law
tag
:
global_mmlu_full_ar_humanities_tasks
task
:
global_mmlu_full_ar_professional_law
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_professional_medicine.yaml
0 → 100644
View file @
89b6bdb3
# Generated by _generate_configs.py
include
:
_ar_template_yaml
process_docs
:
!function
utils.process_professional_medicine
tag
:
global_mmlu_full_ar_other_tasks
task
:
global_mmlu_full_ar_professional_medicine
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_professional_psychology.yaml
0 → 100644
View file @
89b6bdb3
# Generated by _generate_configs.py
include
:
_ar_template_yaml
process_docs
:
!function
utils.process_professional_psychology
tag
:
global_mmlu_full_ar_social_sciences_tasks
task
:
global_mmlu_full_ar_professional_psychology
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_public_relations.yaml
0 → 100644
View file @
89b6bdb3
# Generated by _generate_configs.py
include
:
_ar_template_yaml
process_docs
:
!function
utils.process_public_relations
tag
:
global_mmlu_full_ar_social_sciences_tasks
task
:
global_mmlu_full_ar_public_relations
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_security_studies.yaml
0 → 100644
View file @
89b6bdb3
# Generated by _generate_configs.py
include
:
_ar_template_yaml
process_docs
:
!function
utils.process_security_studies
tag
:
global_mmlu_full_ar_social_sciences_tasks
task
:
global_mmlu_full_ar_security_studies
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_sociology.yaml
0 → 100644
View file @
89b6bdb3
# Generated by _generate_configs.py
include
:
_ar_template_yaml
process_docs
:
!function
utils.process_sociology
tag
:
global_mmlu_full_ar_social_sciences_tasks
task
:
global_mmlu_full_ar_sociology
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_us_foreign_policy.yaml
0 → 100644
View file @
89b6bdb3
# Generated by _generate_configs.py
include
:
_ar_template_yaml
process_docs
:
!function
utils.process_us_foreign_policy
tag
:
global_mmlu_full_ar_social_sciences_tasks
task
:
global_mmlu_full_ar_us_foreign_policy
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_virology.yaml
0 → 100644
View file @
89b6bdb3
# Generated by _generate_configs.py
include
:
_ar_template_yaml
process_docs
:
!function
utils.process_virology
tag
:
global_mmlu_full_ar_other_tasks
task
:
global_mmlu_full_ar_virology
lm_eval/tasks/global_mmlu/full/ar/global_mmlu_full_ar_world_religions.yaml
0 → 100644
View file @
89b6bdb3
# Generated by _generate_configs.py
include
:
_ar_template_yaml
process_docs
:
!function
utils.process_world_religions
tag
:
global_mmlu_full_ar_humanities_tasks
task
:
global_mmlu_full_ar_world_religions
lm_eval/tasks/global_mmlu/full/ar/utils.py
0 → 100644
View file @
89b6bdb3
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/bn/_bn_template_yaml
0 → 100644
View file @
89b6bdb3
dataset_path: CohereForAI/Global-MMLU
dataset_name: bn
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/bn/_global_mmlu_full_bn.yaml
0 → 100644
View file @
89b6bdb3
group
:
global_mmlu_full_bn
task
:
-
global_mmlu_full_bn_stem
-
global_mmlu_full_bn_other
-
global_mmlu_full_bn_social_sciences
-
global_mmlu_full_bn_humanities
aggregate_metric_list
:
-
metric
:
acc
weight_by_size
:
True
metadata
:
version
:
0.0
lm_eval/tasks/global_mmlu/full/bn/_global_mmlu_full_bn_humanities.yaml
0 → 100644
View file @
89b6bdb3
group
:
global_mmlu_full_bn_humanities
task
:
-
global_mmlu_full_bn_humanities_tasks
aggregate_metric_list
:
-
metric
:
acc
weight_by_size
:
true
metadata
:
version
:
0.0
lm_eval/tasks/global_mmlu/full/bn/_global_mmlu_full_bn_other.yaml
0 → 100644
View file @
89b6bdb3
group
:
global_mmlu_full_bn_other
task
:
-
global_mmlu_full_bn_other_tasks
aggregate_metric_list
:
-
metric
:
acc
weight_by_size
:
true
metadata
:
version
:
0.0
Prev
1
…
22
23
24
25
26
27
28
29
30
…
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