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
0b45cc71
Unverified
Commit
0b45cc71
authored
Aug 26, 2025
by
Weihao XUAN
Committed by
GitHub
Aug 25, 2025
Browse files
Update MMLU-ProX task (#3174)
* update MMLU_ProX * update MMLU_ProX * cleanup code by pre-commit
parent
05b37f20
Changes
741
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
244 additions
and
0 deletions
+244
-0
lm_eval/tasks/mmlu_prox/zh/mmlu_prox_lite_zh_health.yaml
lm_eval/tasks/mmlu_prox/zh/mmlu_prox_lite_zh_health.yaml
+7
-0
lm_eval/tasks/mmlu_prox/zh/mmlu_prox_lite_zh_history.yaml
lm_eval/tasks/mmlu_prox/zh/mmlu_prox_lite_zh_history.yaml
+7
-0
lm_eval/tasks/mmlu_prox/zh/mmlu_prox_lite_zh_law.yaml
lm_eval/tasks/mmlu_prox/zh/mmlu_prox_lite_zh_law.yaml
+7
-0
lm_eval/tasks/mmlu_prox/zh/mmlu_prox_lite_zh_math.yaml
lm_eval/tasks/mmlu_prox/zh/mmlu_prox_lite_zh_math.yaml
+7
-0
lm_eval/tasks/mmlu_prox/zh/mmlu_prox_lite_zh_other.yaml
lm_eval/tasks/mmlu_prox/zh/mmlu_prox_lite_zh_other.yaml
+7
-0
lm_eval/tasks/mmlu_prox/zh/mmlu_prox_lite_zh_philosophy.yaml
lm_eval/tasks/mmlu_prox/zh/mmlu_prox_lite_zh_philosophy.yaml
+7
-0
lm_eval/tasks/mmlu_prox/zh/mmlu_prox_lite_zh_physics.yaml
lm_eval/tasks/mmlu_prox/zh/mmlu_prox_lite_zh_physics.yaml
+7
-0
lm_eval/tasks/mmlu_prox/zh/mmlu_prox_lite_zh_psychology.yaml
lm_eval/tasks/mmlu_prox/zh/mmlu_prox_lite_zh_psychology.yaml
+7
-0
lm_eval/tasks/mmlu_prox/zu/_mmlu_prox_lite_zu.yaml
lm_eval/tasks/mmlu_prox/zu/_mmlu_prox_lite_zu.yaml
+23
-0
lm_eval/tasks/mmlu_prox/zu/_mmlu_prox_zu.yaml
lm_eval/tasks/mmlu_prox/zu/_mmlu_prox_zu.yaml
+23
-0
lm_eval/tasks/mmlu_prox/zu/_zu_lite_template_yaml
lm_eval/tasks/mmlu_prox/zu/_zu_lite_template_yaml
+35
-0
lm_eval/tasks/mmlu_prox/zu/_zu_template_yaml
lm_eval/tasks/mmlu_prox/zu/_zu_template_yaml
+35
-0
lm_eval/tasks/mmlu_prox/zu/mmlu_prox_lite_zu_biology.yaml
lm_eval/tasks/mmlu_prox/zu/mmlu_prox_lite_zu_biology.yaml
+9
-0
lm_eval/tasks/mmlu_prox/zu/mmlu_prox_lite_zu_business.yaml
lm_eval/tasks/mmlu_prox/zu/mmlu_prox_lite_zu_business.yaml
+9
-0
lm_eval/tasks/mmlu_prox/zu/mmlu_prox_lite_zu_chemistry.yaml
lm_eval/tasks/mmlu_prox/zu/mmlu_prox_lite_zu_chemistry.yaml
+9
-0
lm_eval/tasks/mmlu_prox/zu/mmlu_prox_lite_zu_computer_science.yaml
...asks/mmlu_prox/zu/mmlu_prox_lite_zu_computer_science.yaml
+9
-0
lm_eval/tasks/mmlu_prox/zu/mmlu_prox_lite_zu_economics.yaml
lm_eval/tasks/mmlu_prox/zu/mmlu_prox_lite_zu_economics.yaml
+9
-0
lm_eval/tasks/mmlu_prox/zu/mmlu_prox_lite_zu_engineering.yaml
...val/tasks/mmlu_prox/zu/mmlu_prox_lite_zu_engineering.yaml
+9
-0
lm_eval/tasks/mmlu_prox/zu/mmlu_prox_lite_zu_health.yaml
lm_eval/tasks/mmlu_prox/zu/mmlu_prox_lite_zu_health.yaml
+9
-0
lm_eval/tasks/mmlu_prox/zu/mmlu_prox_lite_zu_history.yaml
lm_eval/tasks/mmlu_prox/zu/mmlu_prox_lite_zu_history.yaml
+9
-0
No files found.
lm_eval/tasks/mmlu_prox/zh/mmlu_prox_lite_zh_health.yaml
0 → 100644
View file @
0b45cc71
description
:
'
以下是关于健康的选择题(带有答案)。请逐步思考,然后以"答案是
(X)"结束您的回答,其中X是正确的选项字母。
'
include
:
_zh_lite_template_yaml
task
:
mmlu_prox_lite_zh_health
task_alias
:
health
process_docs
:
!function
utils.process_health
lm_eval/tasks/mmlu_prox/zh/mmlu_prox_lite_zh_history.yaml
0 → 100644
View file @
0b45cc71
description
:
'
以下是关于历史的选择题(带有答案)。请逐步思考,然后以"答案是
(X)"结束您的回答,其中X是正确的选项字母。
'
include
:
_zh_lite_template_yaml
task
:
mmlu_prox_lite_zh_history
task_alias
:
history
process_docs
:
!function
utils.process_history
lm_eval/tasks/mmlu_prox/zh/mmlu_prox_lite_zh_law.yaml
0 → 100644
View file @
0b45cc71
description
:
'
以下是关于法律的选择题(带有答案)。请逐步思考,然后以"答案是
(X)"结束您的回答,其中X是正确的选项字母。
'
include
:
_zh_lite_template_yaml
task
:
mmlu_prox_lite_zh_law
task_alias
:
law
process_docs
:
!function
utils.process_law
lm_eval/tasks/mmlu_prox/zh/mmlu_prox_lite_zh_math.yaml
0 → 100644
View file @
0b45cc71
description
:
'
以下是关于数学的选择题(带有答案)。请逐步思考,然后以"答案是
(X)"结束您的回答,其中X是正确的选项字母。
'
include
:
_zh_lite_template_yaml
task
:
mmlu_prox_lite_zh_math
task_alias
:
math
process_docs
:
!function
utils.process_math
lm_eval/tasks/mmlu_prox/zh/mmlu_prox_lite_zh_other.yaml
0 → 100644
View file @
0b45cc71
description
:
'
以下是关于其他的选择题(带有答案)。请逐步思考,然后以"答案是
(X)"结束您的回答,其中X是正确的选项字母。
'
include
:
_zh_lite_template_yaml
task
:
mmlu_prox_lite_zh_other
task_alias
:
other
process_docs
:
!function
utils.process_other
lm_eval/tasks/mmlu_prox/zh/mmlu_prox_lite_zh_philosophy.yaml
0 → 100644
View file @
0b45cc71
description
:
'
以下是关于哲学的选择题(带有答案)。请逐步思考,然后以"答案是
(X)"结束您的回答,其中X是正确的选项字母。
'
include
:
_zh_lite_template_yaml
task
:
mmlu_prox_lite_zh_philosophy
task_alias
:
philosophy
process_docs
:
!function
utils.process_philosophy
lm_eval/tasks/mmlu_prox/zh/mmlu_prox_lite_zh_physics.yaml
0 → 100644
View file @
0b45cc71
description
:
'
以下是关于物理学的选择题(带有答案)。请逐步思考,然后以"答案是
(X)"结束您的回答,其中X是正确的选项字母。
'
include
:
_zh_lite_template_yaml
task
:
mmlu_prox_lite_zh_physics
task_alias
:
physics
process_docs
:
!function
utils.process_physics
lm_eval/tasks/mmlu_prox/zh/mmlu_prox_lite_zh_psychology.yaml
0 → 100644
View file @
0b45cc71
description
:
'
以下是关于心理学的选择题(带有答案)。请逐步思考,然后以"答案是
(X)"结束您的回答,其中X是正确的选项字母。
'
include
:
_zh_lite_template_yaml
task
:
mmlu_prox_lite_zh_psychology
task_alias
:
psychology
process_docs
:
!function
utils.process_psychology
lm_eval/tasks/mmlu_prox/zu/_mmlu_prox_lite_zu.yaml
0 → 100644
View file @
0b45cc71
group
:
mmlu_prox_lite_zu
task
:
-
mmlu_prox_lite_zu_biology
-
mmlu_prox_lite_zu_business
-
mmlu_prox_lite_zu_chemistry
-
mmlu_prox_lite_zu_computer_science
-
mmlu_prox_lite_zu_economics
-
mmlu_prox_lite_zu_engineering
-
mmlu_prox_lite_zu_health
-
mmlu_prox_lite_zu_history
-
mmlu_prox_lite_zu_law
-
mmlu_prox_lite_zu_math
-
mmlu_prox_lite_zu_other
-
mmlu_prox_lite_zu_philosophy
-
mmlu_prox_lite_zu_physics
-
mmlu_prox_lite_zu_psychology
aggregate_metric_list
:
-
aggregation
:
mean
metric
:
exact_match
weight_by_size
:
true
filter_list
:
custom-extract
metadata
:
version
:
0.0
lm_eval/tasks/mmlu_prox/zu/_mmlu_prox_zu.yaml
0 → 100644
View file @
0b45cc71
group
:
mmlu_prox_zu
task
:
-
mmlu_prox_zu_biology
-
mmlu_prox_zu_business
-
mmlu_prox_zu_chemistry
-
mmlu_prox_zu_computer_science
-
mmlu_prox_zu_economics
-
mmlu_prox_zu_engineering
-
mmlu_prox_zu_health
-
mmlu_prox_zu_history
-
mmlu_prox_zu_law
-
mmlu_prox_zu_math
-
mmlu_prox_zu_other
-
mmlu_prox_zu_philosophy
-
mmlu_prox_zu_physics
-
mmlu_prox_zu_psychology
aggregate_metric_list
:
-
aggregation
:
mean
metric
:
exact_match
weight_by_size
:
true
filter_list
:
custom-extract
metadata
:
version
:
0.0
lm_eval/tasks/mmlu_prox/zu/_zu_lite_template_yaml
0 → 100644
View file @
0b45cc71
dataset_path: li-lab/MMLU-ProX-Lite
dataset_name: zu
test_split: test
fewshot_split: validation
fewshot_config:
sampler: first_n
doc_to_text: !function utils.fewshot_to_text
doc_to_target: ""
output_type: generate_until
doc_to_text: !function utils.doc_to_text
doc_to_target: answer
filter_list:
- name: "custom-extract"
filter:
- function: "regex"
regex_pattern: 'Impendulo ithi \(?([ABCDEFGHIJ])\)?'
- function: "take_first"
generation_kwargs:
until:
- "</s>"
- "Q:"
- "Umbuzo:"
- "<|im_end|>"
do_sample: false
temperature: 0.0
max_gen_toks: 2048
num_fewshot: 5
metric_list:
- metric: exact_match
aggregation: mean
higher_is_better: true
ignore_case: true
ignore_punctuation: true
metadata:
version: 0.0
lm_eval/tasks/mmlu_prox/zu/_zu_template_yaml
0 → 100644
View file @
0b45cc71
dataset_path: li-lab/MMLU-ProX
dataset_name: zu
test_split: test
fewshot_split: validation
fewshot_config:
sampler: first_n
doc_to_text: !function utils.fewshot_to_text
doc_to_target: ""
output_type: generate_until
doc_to_text: !function utils.doc_to_text
doc_to_target: answer
filter_list:
- name: "custom-extract"
filter:
- function: "regex"
regex_pattern: 'Impendulo ithi \(?([ABCDEFGHIJ])\)?'
- function: "take_first"
generation_kwargs:
until:
- "</s>"
- "Q:"
- "Umbuzo:"
- "<|im_end|>"
do_sample: false
temperature: 0.0
max_gen_toks: 2048
num_fewshot: 5
metric_list:
- metric: exact_match
aggregation: mean
higher_is_better: true
ignore_case: true
ignore_punctuation: true
metadata:
version: 0.0
lm_eval/tasks/mmlu_prox/zu/mmlu_prox_lite_zu_biology.yaml
0 → 100644
View file @
0b45cc71
description
:
'
Okulandelayo
yimibuzo
ehlukahlukene
(enezimpendulo)
mayelana
ne-isayensi
yezilwane.
Cabanga
isinyathelo
ngesinyathelo
bese
uqeda
impendulo
yakho
nge-"Impendulo
ithi
(X)"
lapho
u-X
eyinhlamvu
eyisinqumo
esifanele.
'
include
:
_zu_lite_template_yaml
task
:
mmlu_prox_lite_zu_biology
task_alias
:
biology
process_docs
:
!function
utils.process_biology
lm_eval/tasks/mmlu_prox/zu/mmlu_prox_lite_zu_business.yaml
0 → 100644
View file @
0b45cc71
description
:
'
Okulandelayo
yimibuzo
ehlukahlukene
(enezimpendulo)
mayelana
ne-ibhizinisi.
Cabanga
isinyathelo
ngesinyathelo
bese
uqeda
impendulo
yakho
nge-"Impendulo
ithi
(X)"
lapho
u-X
eyinhlamvu
eyisinqumo
esifanele.
'
include
:
_zu_lite_template_yaml
task
:
mmlu_prox_lite_zu_business
task_alias
:
business
process_docs
:
!function
utils.process_business
lm_eval/tasks/mmlu_prox/zu/mmlu_prox_lite_zu_chemistry.yaml
0 → 100644
View file @
0b45cc71
description
:
'
Okulandelayo
yimibuzo
ehlukahlukene
(enezimpendulo)
mayelana
ne-i-chemistry.
Cabanga
isinyathelo
ngesinyathelo
bese
uqeda
impendulo
yakho
nge-"Impendulo
ithi
(X)"
lapho
u-X
eyinhlamvu
eyisinqumo
esifanele.
'
include
:
_zu_lite_template_yaml
task
:
mmlu_prox_lite_zu_chemistry
task_alias
:
chemistry
process_docs
:
!function
utils.process_chemistry
lm_eval/tasks/mmlu_prox/zu/mmlu_prox_lite_zu_computer_science.yaml
0 → 100644
View file @
0b45cc71
description
:
'
Okulandelayo
yimibuzo
ehlukahlukene
(enezimpendulo)
mayelana
ne-isayensi
yekhompyutha.
Cabanga
isinyathelo
ngesinyathelo
bese
uqeda
impendulo
yakho
nge-"Impendulo
ithi
(X)"
lapho
u-X
eyinhlamvu
eyisinqumo
esifanele.
'
include
:
_zu_lite_template_yaml
task
:
mmlu_prox_lite_zu_computer_science
task_alias
:
computer_science
process_docs
:
!function
utils.process_computer_science
lm_eval/tasks/mmlu_prox/zu/mmlu_prox_lite_zu_economics.yaml
0 → 100644
View file @
0b45cc71
description
:
'
Okulandelayo
yimibuzo
ehlukahlukene
(enezimpendulo)
mayelana
ne-ezomnotho.
Cabanga
isinyathelo
ngesinyathelo
bese
uqeda
impendulo
yakho
nge-"Impendulo
ithi
(X)"
lapho
u-X
eyinhlamvu
eyisinqumo
esifanele.
'
include
:
_zu_lite_template_yaml
task
:
mmlu_prox_lite_zu_economics
task_alias
:
economics
process_docs
:
!function
utils.process_economics
lm_eval/tasks/mmlu_prox/zu/mmlu_prox_lite_zu_engineering.yaml
0 → 100644
View file @
0b45cc71
description
:
'
Okulandelayo
yimibuzo
ehlukahlukene
(enezimpendulo)
mayelana
ne-ubunjiniyela.
Cabanga
isinyathelo
ngesinyathelo
bese
uqeda
impendulo
yakho
nge-"Impendulo
ithi
(X)"
lapho
u-X
eyinhlamvu
eyisinqumo
esifanele.
'
include
:
_zu_lite_template_yaml
task
:
mmlu_prox_lite_zu_engineering
task_alias
:
engineering
process_docs
:
!function
utils.process_engineering
lm_eval/tasks/mmlu_prox/zu/mmlu_prox_lite_zu_health.yaml
0 → 100644
View file @
0b45cc71
description
:
'
Okulandelayo
yimibuzo
ehlukahlukene
(enezimpendulo)
mayelana
ne-ezempilo.
Cabanga
isinyathelo
ngesinyathelo
bese
uqeda
impendulo
yakho
nge-"Impendulo
ithi
(X)"
lapho
u-X
eyinhlamvu
eyisinqumo
esifanele.
'
include
:
_zu_lite_template_yaml
task
:
mmlu_prox_lite_zu_health
task_alias
:
health
process_docs
:
!function
utils.process_health
lm_eval/tasks/mmlu_prox/zu/mmlu_prox_lite_zu_history.yaml
0 → 100644
View file @
0b45cc71
description
:
'
Okulandelayo
yimibuzo
ehlukahlukene
(enezimpendulo)
mayelana
ne-umlando.
Cabanga
isinyathelo
ngesinyathelo
bese
uqeda
impendulo
yakho
nge-"Impendulo
ithi
(X)"
lapho
u-X
eyinhlamvu
eyisinqumo
esifanele.
'
include
:
_zu_lite_template_yaml
task
:
mmlu_prox_lite_zu_history
task_alias
:
history
process_docs
:
!function
utils.process_history
Prev
1
…
32
33
34
35
36
37
38
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