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
220 additions
and
0 deletions
+220
-0
lm_eval/tasks/mmlu_prox/es/mmlu_prox_lite_es_health.yaml
lm_eval/tasks/mmlu_prox/es/mmlu_prox_lite_es_health.yaml
+9
-0
lm_eval/tasks/mmlu_prox/es/mmlu_prox_lite_es_history.yaml
lm_eval/tasks/mmlu_prox/es/mmlu_prox_lite_es_history.yaml
+9
-0
lm_eval/tasks/mmlu_prox/es/mmlu_prox_lite_es_law.yaml
lm_eval/tasks/mmlu_prox/es/mmlu_prox_lite_es_law.yaml
+9
-0
lm_eval/tasks/mmlu_prox/es/mmlu_prox_lite_es_math.yaml
lm_eval/tasks/mmlu_prox/es/mmlu_prox_lite_es_math.yaml
+9
-0
lm_eval/tasks/mmlu_prox/es/mmlu_prox_lite_es_other.yaml
lm_eval/tasks/mmlu_prox/es/mmlu_prox_lite_es_other.yaml
+9
-0
lm_eval/tasks/mmlu_prox/es/mmlu_prox_lite_es_philosophy.yaml
lm_eval/tasks/mmlu_prox/es/mmlu_prox_lite_es_philosophy.yaml
+9
-0
lm_eval/tasks/mmlu_prox/es/mmlu_prox_lite_es_physics.yaml
lm_eval/tasks/mmlu_prox/es/mmlu_prox_lite_es_physics.yaml
+9
-0
lm_eval/tasks/mmlu_prox/es/mmlu_prox_lite_es_psychology.yaml
lm_eval/tasks/mmlu_prox/es/mmlu_prox_lite_es_psychology.yaml
+9
-0
lm_eval/tasks/mmlu_prox/fr/_fr_lite_template_yaml
lm_eval/tasks/mmlu_prox/fr/_fr_lite_template_yaml
+35
-0
lm_eval/tasks/mmlu_prox/fr/_mmlu_prox_lite_fr.yaml
lm_eval/tasks/mmlu_prox/fr/_mmlu_prox_lite_fr.yaml
+23
-0
lm_eval/tasks/mmlu_prox/fr/mmlu_prox_lite_fr_biology.yaml
lm_eval/tasks/mmlu_prox/fr/mmlu_prox_lite_fr_biology.yaml
+9
-0
lm_eval/tasks/mmlu_prox/fr/mmlu_prox_lite_fr_business.yaml
lm_eval/tasks/mmlu_prox/fr/mmlu_prox_lite_fr_business.yaml
+9
-0
lm_eval/tasks/mmlu_prox/fr/mmlu_prox_lite_fr_chemistry.yaml
lm_eval/tasks/mmlu_prox/fr/mmlu_prox_lite_fr_chemistry.yaml
+9
-0
lm_eval/tasks/mmlu_prox/fr/mmlu_prox_lite_fr_computer_science.yaml
...asks/mmlu_prox/fr/mmlu_prox_lite_fr_computer_science.yaml
+9
-0
lm_eval/tasks/mmlu_prox/fr/mmlu_prox_lite_fr_economics.yaml
lm_eval/tasks/mmlu_prox/fr/mmlu_prox_lite_fr_economics.yaml
+9
-0
lm_eval/tasks/mmlu_prox/fr/mmlu_prox_lite_fr_engineering.yaml
...val/tasks/mmlu_prox/fr/mmlu_prox_lite_fr_engineering.yaml
+9
-0
lm_eval/tasks/mmlu_prox/fr/mmlu_prox_lite_fr_health.yaml
lm_eval/tasks/mmlu_prox/fr/mmlu_prox_lite_fr_health.yaml
+9
-0
lm_eval/tasks/mmlu_prox/fr/mmlu_prox_lite_fr_history.yaml
lm_eval/tasks/mmlu_prox/fr/mmlu_prox_lite_fr_history.yaml
+9
-0
lm_eval/tasks/mmlu_prox/fr/mmlu_prox_lite_fr_law.yaml
lm_eval/tasks/mmlu_prox/fr/mmlu_prox_lite_fr_law.yaml
+9
-0
lm_eval/tasks/mmlu_prox/fr/mmlu_prox_lite_fr_math.yaml
lm_eval/tasks/mmlu_prox/fr/mmlu_prox_lite_fr_math.yaml
+9
-0
No files found.
lm_eval/tasks/mmlu_prox/es/mmlu_prox_lite_es_health.yaml
0 → 100644
View file @
0b45cc71
description
:
'
Las
siguientes
son
preguntas
de
opción
múltiple
(con
respuestas)
sobre
salud.
Piense
paso
a
paso
y
luego
termine
su
respuesta
con
"La
respuesta
es
(X)"
donde
X
es
la
letra
de
la
opción
correcta.
'
include
:
_es_lite_template_yaml
task
:
mmlu_prox_lite_es_health
task_alias
:
health
process_docs
:
!function
utils.process_health
lm_eval/tasks/mmlu_prox/es/mmlu_prox_lite_es_history.yaml
0 → 100644
View file @
0b45cc71
description
:
'
Las
siguientes
son
preguntas
de
opción
múltiple
(con
respuestas)
sobre
historia.
Piense
paso
a
paso
y
luego
termine
su
respuesta
con
"La
respuesta
es
(X)"
donde
X
es
la
letra
de
la
opción
correcta.
'
include
:
_es_lite_template_yaml
task
:
mmlu_prox_lite_es_history
task_alias
:
history
process_docs
:
!function
utils.process_history
lm_eval/tasks/mmlu_prox/es/mmlu_prox_lite_es_law.yaml
0 → 100644
View file @
0b45cc71
description
:
'
Las
siguientes
son
preguntas
de
opción
múltiple
(con
respuestas)
sobre
derecho.
Piense
paso
a
paso
y
luego
termine
su
respuesta
con
"La
respuesta
es
(X)"
donde
X
es
la
letra
de
la
opción
correcta.
'
include
:
_es_lite_template_yaml
task
:
mmlu_prox_lite_es_law
task_alias
:
law
process_docs
:
!function
utils.process_law
lm_eval/tasks/mmlu_prox/es/mmlu_prox_lite_es_math.yaml
0 → 100644
View file @
0b45cc71
description
:
'
Las
siguientes
son
preguntas
de
opción
múltiple
(con
respuestas)
sobre
matemáticas.
Piense
paso
a
paso
y
luego
termine
su
respuesta
con
"La
respuesta
es
(X)"
donde
X
es
la
letra
de
la
opción
correcta.
'
include
:
_es_lite_template_yaml
task
:
mmlu_prox_lite_es_math
task_alias
:
math
process_docs
:
!function
utils.process_math
lm_eval/tasks/mmlu_prox/es/mmlu_prox_lite_es_other.yaml
0 → 100644
View file @
0b45cc71
description
:
'
Las
siguientes
son
preguntas
de
opción
múltiple
(con
respuestas)
sobre
otro.
Piense
paso
a
paso
y
luego
termine
su
respuesta
con
"La
respuesta
es
(X)"
donde
X
es
la
letra
de
la
opción
correcta.
'
include
:
_es_lite_template_yaml
task
:
mmlu_prox_lite_es_other
task_alias
:
other
process_docs
:
!function
utils.process_other
lm_eval/tasks/mmlu_prox/es/mmlu_prox_lite_es_philosophy.yaml
0 → 100644
View file @
0b45cc71
description
:
'
Las
siguientes
son
preguntas
de
opción
múltiple
(con
respuestas)
sobre
filosofía.
Piense
paso
a
paso
y
luego
termine
su
respuesta
con
"La
respuesta
es
(X)"
donde
X
es
la
letra
de
la
opción
correcta.
'
include
:
_es_lite_template_yaml
task
:
mmlu_prox_lite_es_philosophy
task_alias
:
philosophy
process_docs
:
!function
utils.process_philosophy
lm_eval/tasks/mmlu_prox/es/mmlu_prox_lite_es_physics.yaml
0 → 100644
View file @
0b45cc71
description
:
'
Las
siguientes
son
preguntas
de
opción
múltiple
(con
respuestas)
sobre
física.
Piense
paso
a
paso
y
luego
termine
su
respuesta
con
"La
respuesta
es
(X)"
donde
X
es
la
letra
de
la
opción
correcta.
'
include
:
_es_lite_template_yaml
task
:
mmlu_prox_lite_es_physics
task_alias
:
physics
process_docs
:
!function
utils.process_physics
lm_eval/tasks/mmlu_prox/es/mmlu_prox_lite_es_psychology.yaml
0 → 100644
View file @
0b45cc71
description
:
'
Las
siguientes
son
preguntas
de
opción
múltiple
(con
respuestas)
sobre
psicología.
Piense
paso
a
paso
y
luego
termine
su
respuesta
con
"La
respuesta
es
(X)"
donde
X
es
la
letra
de
la
opción
correcta.
'
include
:
_es_lite_template_yaml
task
:
mmlu_prox_lite_es_psychology
task_alias
:
psychology
process_docs
:
!function
utils.process_psychology
lm_eval/tasks/mmlu_prox/fr/_fr_lite_template_yaml
0 → 100644
View file @
0b45cc71
dataset_path: li-lab/MMLU-ProX-Lite
dataset_name: fr
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: 'La réponse est \(?([ABCDEFGHIJ])\)?'
- function: "take_first"
generation_kwargs:
until:
- "</s>"
- "Q:"
- "Question :"
- "<|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/fr/_mmlu_prox_lite_fr.yaml
0 → 100644
View file @
0b45cc71
group
:
mmlu_prox_lite_fr
task
:
-
mmlu_prox_lite_fr_biology
-
mmlu_prox_lite_fr_business
-
mmlu_prox_lite_fr_chemistry
-
mmlu_prox_lite_fr_computer_science
-
mmlu_prox_lite_fr_economics
-
mmlu_prox_lite_fr_engineering
-
mmlu_prox_lite_fr_health
-
mmlu_prox_lite_fr_history
-
mmlu_prox_lite_fr_law
-
mmlu_prox_lite_fr_math
-
mmlu_prox_lite_fr_other
-
mmlu_prox_lite_fr_philosophy
-
mmlu_prox_lite_fr_physics
-
mmlu_prox_lite_fr_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/fr/mmlu_prox_lite_fr_biology.yaml
0 → 100644
View file @
0b45cc71
description
:
'
Voici
des
questions
à
choix
multiples
(avec
réponses)
sur
biologie.
Réfléchissez
étape
par
étape,
puis
terminez
votre
réponse
par
"La
réponse
est
(X)"
où
X
est
la
lettre
correspondant
au
bon
choix.
'
include
:
_fr_lite_template_yaml
task
:
mmlu_prox_lite_fr_biology
task_alias
:
biology
process_docs
:
!function
utils.process_biology
lm_eval/tasks/mmlu_prox/fr/mmlu_prox_lite_fr_business.yaml
0 → 100644
View file @
0b45cc71
description
:
'
Voici
des
questions
à
choix
multiples
(avec
réponses)
sur
commerce.
Réfléchissez
étape
par
étape,
puis
terminez
votre
réponse
par
"La
réponse
est
(X)"
où
X
est
la
lettre
correspondant
au
bon
choix.
'
include
:
_fr_lite_template_yaml
task
:
mmlu_prox_lite_fr_business
task_alias
:
business
process_docs
:
!function
utils.process_business
lm_eval/tasks/mmlu_prox/fr/mmlu_prox_lite_fr_chemistry.yaml
0 → 100644
View file @
0b45cc71
description
:
'
Voici
des
questions
à
choix
multiples
(avec
réponses)
sur
chimie.
Réfléchissez
étape
par
étape,
puis
terminez
votre
réponse
par
"La
réponse
est
(X)"
où
X
est
la
lettre
correspondant
au
bon
choix.
'
include
:
_fr_lite_template_yaml
task
:
mmlu_prox_lite_fr_chemistry
task_alias
:
chemistry
process_docs
:
!function
utils.process_chemistry
lm_eval/tasks/mmlu_prox/fr/mmlu_prox_lite_fr_computer_science.yaml
0 → 100644
View file @
0b45cc71
description
:
'
Voici
des
questions
à
choix
multiples
(avec
réponses)
sur
informatique.
Réfléchissez
étape
par
étape,
puis
terminez
votre
réponse
par
"La
réponse
est
(X)"
où
X
est
la
lettre
correspondant
au
bon
choix.
'
include
:
_fr_lite_template_yaml
task
:
mmlu_prox_lite_fr_computer_science
task_alias
:
computer_science
process_docs
:
!function
utils.process_computer_science
lm_eval/tasks/mmlu_prox/fr/mmlu_prox_lite_fr_economics.yaml
0 → 100644
View file @
0b45cc71
description
:
'
Voici
des
questions
à
choix
multiples
(avec
réponses)
sur
économie.
Réfléchissez
étape
par
étape,
puis
terminez
votre
réponse
par
"La
réponse
est
(X)"
où
X
est
la
lettre
correspondant
au
bon
choix.
'
include
:
_fr_lite_template_yaml
task
:
mmlu_prox_lite_fr_economics
task_alias
:
economics
process_docs
:
!function
utils.process_economics
lm_eval/tasks/mmlu_prox/fr/mmlu_prox_lite_fr_engineering.yaml
0 → 100644
View file @
0b45cc71
description
:
'
Voici
des
questions
à
choix
multiples
(avec
réponses)
sur
ingénierie.
Réfléchissez
étape
par
étape,
puis
terminez
votre
réponse
par
"La
réponse
est
(X)"
où
X
est
la
lettre
correspondant
au
bon
choix.
'
include
:
_fr_lite_template_yaml
task
:
mmlu_prox_lite_fr_engineering
task_alias
:
engineering
process_docs
:
!function
utils.process_engineering
lm_eval/tasks/mmlu_prox/fr/mmlu_prox_lite_fr_health.yaml
0 → 100644
View file @
0b45cc71
description
:
'
Voici
des
questions
à
choix
multiples
(avec
réponses)
sur
santé.
Réfléchissez
étape
par
étape,
puis
terminez
votre
réponse
par
"La
réponse
est
(X)"
où
X
est
la
lettre
correspondant
au
bon
choix.
'
include
:
_fr_lite_template_yaml
task
:
mmlu_prox_lite_fr_health
task_alias
:
health
process_docs
:
!function
utils.process_health
lm_eval/tasks/mmlu_prox/fr/mmlu_prox_lite_fr_history.yaml
0 → 100644
View file @
0b45cc71
description
:
'
Voici
des
questions
à
choix
multiples
(avec
réponses)
sur
histoire.
Réfléchissez
étape
par
étape,
puis
terminez
votre
réponse
par
"La
réponse
est
(X)"
où
X
est
la
lettre
correspondant
au
bon
choix.
'
include
:
_fr_lite_template_yaml
task
:
mmlu_prox_lite_fr_history
task_alias
:
history
process_docs
:
!function
utils.process_history
lm_eval/tasks/mmlu_prox/fr/mmlu_prox_lite_fr_law.yaml
0 → 100644
View file @
0b45cc71
description
:
'
Voici
des
questions
à
choix
multiples
(avec
réponses)
sur
droit.
Réfléchissez
étape
par
étape,
puis
terminez
votre
réponse
par
"La
réponse
est
(X)"
où
X
est
la
lettre
correspondant
au
bon
choix.
'
include
:
_fr_lite_template_yaml
task
:
mmlu_prox_lite_fr_law
task_alias
:
law
process_docs
:
!function
utils.process_law
lm_eval/tasks/mmlu_prox/fr/mmlu_prox_lite_fr_math.yaml
0 → 100644
View file @
0b45cc71
description
:
'
Voici
des
questions
à
choix
multiples
(avec
réponses)
sur
mathématiques.
Réfléchissez
étape
par
étape,
puis
terminez
votre
réponse
par
"La
réponse
est
(X)"
où
X
est
la
lettre
correspondant
au
bon
choix.
'
include
:
_fr_lite_template_yaml
task
:
mmlu_prox_lite_fr_math
task_alias
:
math
process_docs
:
!function
utils.process_math
Prev
1
…
4
5
6
7
8
9
10
11
12
…
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