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
5c006ed4
Unverified
Commit
5c006ed4
authored
Jan 25, 2025
by
Minho Ryu
Committed by
GitHub
Jan 24, 2025
Browse files
separate category for `global_mmlu` (#2652)
* separate category * set version 0.0 * apply precommit
parent
370e2f9e
Changes
193
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
84 additions
and
40 deletions
+84
-40
lm_eval/tasks/global_mmlu/default/global_mmlu_fr.yaml
lm_eval/tasks/global_mmlu/default/global_mmlu_fr.yaml
+0
-4
lm_eval/tasks/global_mmlu/default/global_mmlu_hi.yaml
lm_eval/tasks/global_mmlu/default/global_mmlu_hi.yaml
+0
-4
lm_eval/tasks/global_mmlu/default/global_mmlu_id.yaml
lm_eval/tasks/global_mmlu/default/global_mmlu_id.yaml
+0
-4
lm_eval/tasks/global_mmlu/default/global_mmlu_it.yaml
lm_eval/tasks/global_mmlu/default/global_mmlu_it.yaml
+0
-4
lm_eval/tasks/global_mmlu/default/global_mmlu_ja.yaml
lm_eval/tasks/global_mmlu/default/global_mmlu_ja.yaml
+0
-4
lm_eval/tasks/global_mmlu/default/global_mmlu_ko.yaml
lm_eval/tasks/global_mmlu/default/global_mmlu_ko.yaml
+0
-4
lm_eval/tasks/global_mmlu/default/global_mmlu_pt.yaml
lm_eval/tasks/global_mmlu/default/global_mmlu_pt.yaml
+0
-4
lm_eval/tasks/global_mmlu/default/global_mmlu_sw.yaml
lm_eval/tasks/global_mmlu/default/global_mmlu_sw.yaml
+0
-4
lm_eval/tasks/global_mmlu/default/global_mmlu_yo.yaml
lm_eval/tasks/global_mmlu/default/global_mmlu_yo.yaml
+0
-4
lm_eval/tasks/global_mmlu/default/global_mmlu_zh.yaml
lm_eval/tasks/global_mmlu/default/global_mmlu_zh.yaml
+0
-4
lm_eval/tasks/global_mmlu/default/hi/_global_mmlu_hi.yaml
lm_eval/tasks/global_mmlu/default/hi/_global_mmlu_hi.yaml
+13
-0
lm_eval/tasks/global_mmlu/default/hi/_hi_template_yaml
lm_eval/tasks/global_mmlu/default/hi/_hi_template_yaml
+16
-0
lm_eval/tasks/global_mmlu/default/hi/global_mmlu_hi_business.yaml
...tasks/global_mmlu/default/hi/global_mmlu_hi_business.yaml
+4
-0
lm_eval/tasks/global_mmlu/default/hi/global_mmlu_hi_humanities.yaml
...sks/global_mmlu/default/hi/global_mmlu_hi_humanities.yaml
+4
-0
lm_eval/tasks/global_mmlu/default/hi/global_mmlu_hi_medical.yaml
.../tasks/global_mmlu/default/hi/global_mmlu_hi_medical.yaml
+4
-0
lm_eval/tasks/global_mmlu/default/hi/global_mmlu_hi_other.yaml
...al/tasks/global_mmlu/default/hi/global_mmlu_hi_other.yaml
+4
-0
lm_eval/tasks/global_mmlu/default/hi/global_mmlu_hi_social_sciences.yaml
...lobal_mmlu/default/hi/global_mmlu_hi_social_sciences.yaml
+4
-0
lm_eval/tasks/global_mmlu/default/hi/global_mmlu_hi_stem.yaml
...val/tasks/global_mmlu/default/hi/global_mmlu_hi_stem.yaml
+4
-0
lm_eval/tasks/global_mmlu/default/hi/utils.py
lm_eval/tasks/global_mmlu/default/hi/utils.py
+18
-0
lm_eval/tasks/global_mmlu/default/id/_global_mmlu_id.yaml
lm_eval/tasks/global_mmlu/default/id/_global_mmlu_id.yaml
+13
-0
No files found.
lm_eval/tasks/global_mmlu/default/global_mmlu_fr.yaml
deleted
100644 → 0
View file @
370e2f9e
# Generated by _generate_configs.py
dataset_name
:
fr
include
:
_default_yaml
task
:
global_mmlu_fr
lm_eval/tasks/global_mmlu/default/global_mmlu_hi.yaml
deleted
100644 → 0
View file @
370e2f9e
# Generated by _generate_configs.py
dataset_name
:
hi
include
:
_default_yaml
task
:
global_mmlu_hi
lm_eval/tasks/global_mmlu/default/global_mmlu_id.yaml
deleted
100644 → 0
View file @
370e2f9e
# Generated by _generate_configs.py
dataset_name
:
id
include
:
_default_yaml
task
:
global_mmlu_id
lm_eval/tasks/global_mmlu/default/global_mmlu_it.yaml
deleted
100644 → 0
View file @
370e2f9e
# Generated by _generate_configs.py
dataset_name
:
it
include
:
_default_yaml
task
:
global_mmlu_it
lm_eval/tasks/global_mmlu/default/global_mmlu_ja.yaml
deleted
100644 → 0
View file @
370e2f9e
# Generated by _generate_configs.py
dataset_name
:
ja
include
:
_default_yaml
task
:
global_mmlu_ja
lm_eval/tasks/global_mmlu/default/global_mmlu_ko.yaml
deleted
100644 → 0
View file @
370e2f9e
# Generated by _generate_configs.py
dataset_name
:
ko
include
:
_default_yaml
task
:
global_mmlu_ko
lm_eval/tasks/global_mmlu/default/global_mmlu_pt.yaml
deleted
100644 → 0
View file @
370e2f9e
# Generated by _generate_configs.py
dataset_name
:
pt
include
:
_default_yaml
task
:
global_mmlu_pt
lm_eval/tasks/global_mmlu/default/global_mmlu_sw.yaml
deleted
100644 → 0
View file @
370e2f9e
# Generated by _generate_configs.py
dataset_name
:
sw
include
:
_default_yaml
task
:
global_mmlu_sw
lm_eval/tasks/global_mmlu/default/global_mmlu_yo.yaml
deleted
100644 → 0
View file @
370e2f9e
# Generated by _generate_configs.py
dataset_name
:
yo
include
:
_default_yaml
task
:
global_mmlu_yo
lm_eval/tasks/global_mmlu/default/global_mmlu_zh.yaml
deleted
100644 → 0
View file @
370e2f9e
# Generated by _generate_configs.py
dataset_name
:
zh
include
:
_default_yaml
task
:
global_mmlu_zh
lm_eval/tasks/global_mmlu/default/hi/_global_mmlu_hi.yaml
0 → 100644
View file @
5c006ed4
group
:
global_mmlu_hi
task
:
-
global_mmlu_hi_business
-
global_mmlu_hi_humanities
-
global_mmlu_hi_medical
-
global_mmlu_hi_other
-
global_mmlu_hi_stem
-
global_mmlu_hi_social_sciences
aggregate_metric_list
:
-
metric
:
acc
weight_by_size
:
True
metadata
:
version
:
0.0
lm_eval/tasks/global_mmlu/default/hi/_hi_template_yaml
0 → 100644
View file @
5c006ed4
dataset_path: CohereForAI/Global-MMLU-Lite
dataset_name: hi
test_split: test
fewshot_split: dev
fewshot_config:
sampler: default
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/default/hi/global_mmlu_hi_business.yaml
0 → 100644
View file @
5c006ed4
# Generated by _generate_configs.py
include
:
_hi_template_yaml
process_docs
:
!function
utils.process_business
task
:
global_mmlu_hi_business
lm_eval/tasks/global_mmlu/default/hi/global_mmlu_hi_humanities.yaml
0 → 100644
View file @
5c006ed4
# Generated by _generate_configs.py
include
:
_hi_template_yaml
process_docs
:
!function
utils.process_humanities
task
:
global_mmlu_hi_humanities
lm_eval/tasks/global_mmlu/default/hi/global_mmlu_hi_medical.yaml
0 → 100644
View file @
5c006ed4
# Generated by _generate_configs.py
include
:
_hi_template_yaml
process_docs
:
!function
utils.process_medical
task
:
global_mmlu_hi_medical
lm_eval/tasks/global_mmlu/default/hi/global_mmlu_hi_other.yaml
0 → 100644
View file @
5c006ed4
# Generated by _generate_configs.py
include
:
_hi_template_yaml
process_docs
:
!function
utils.process_other
task
:
global_mmlu_hi_other
lm_eval/tasks/global_mmlu/default/hi/global_mmlu_hi_social_sciences.yaml
0 → 100644
View file @
5c006ed4
# Generated by _generate_configs.py
include
:
_hi_template_yaml
process_docs
:
!function
utils.process_social_sciences
task
:
global_mmlu_hi_social_sciences
lm_eval/tasks/global_mmlu/default/hi/global_mmlu_hi_stem.yaml
0 → 100644
View file @
5c006ed4
# Generated by _generate_configs.py
include
:
_hi_template_yaml
process_docs
:
!function
utils.process_stem
task
:
global_mmlu_hi_stem
lm_eval/tasks/global_mmlu/default/hi/utils.py
0 → 100644
View file @
5c006ed4
from
functools
import
partial
CATEGORIES
=
[
"Business"
,
"Humanities"
,
"Medical"
,
"Other"
,
"STEM"
,
"Social Sciences"
]
def
process_docs
(
dataset
,
category
):
return
dataset
.
filter
(
lambda
x
:
x
[
"subject_category"
]
==
category
)
process_functions
=
{
f
"process_
{
category
.
lower
().
replace
(
' '
,
'_'
)
}
"
:
partial
(
process_docs
,
category
=
category
)
for
category
in
CATEGORIES
}
globals
().
update
(
process_functions
)
lm_eval/tasks/global_mmlu/default/id/_global_mmlu_id.yaml
0 → 100644
View file @
5c006ed4
group
:
global_mmlu_id
task
:
-
global_mmlu_id_business
-
global_mmlu_id_humanities
-
global_mmlu_id_medical
-
global_mmlu_id_other
-
global_mmlu_id_stem
-
global_mmlu_id_social_sciences
aggregate_metric_list
:
-
metric
:
acc
weight_by_size
:
True
metadata
:
version
:
0.0
Prev
1
2
3
4
5
6
7
8
…
10
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