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
1e4e058c
Commit
1e4e058c
authored
Jun 24, 2024
by
Yu Shi Jie
Browse files
mmlu-pro: added continuation and flan_cot_zeroshot
parent
23bd3449
Changes
32
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
154 additions
and
0 deletions
+154
-0
lm_eval/tasks/mmlu_pro/continuation/_continuation_template_yaml
...l/tasks/mmlu_pro/continuation/_continuation_template_yaml
+10
-0
lm_eval/tasks/mmlu_pro/continuation/_mmlu_pro.yaml
lm_eval/tasks/mmlu_pro/continuation/_mmlu_pro.yaml
+6
-0
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_biology.yaml
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_biology.yaml
+6
-0
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_business.yaml
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_business.yaml
+6
-0
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_chemistry.yaml
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_chemistry.yaml
+6
-0
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_computer_science.yaml
...asks/mmlu_pro/continuation/mmlu_pro_computer_science.yaml
+6
-0
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_economics.yaml
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_economics.yaml
+6
-0
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_engineering.yaml
...val/tasks/mmlu_pro/continuation/mmlu_pro_engineering.yaml
+6
-0
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_health.yaml
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_health.yaml
+6
-0
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_history.yaml
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_history.yaml
+6
-0
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_law.yaml
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_law.yaml
+6
-0
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_math.yaml
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_math.yaml
+6
-0
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_other.yaml
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_other.yaml
+6
-0
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_philosophy.yaml
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_philosophy.yaml
+6
-0
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_physics.yaml
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_physics.yaml
+6
-0
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_psychology.yaml
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_psychology.yaml
+6
-0
lm_eval/tasks/mmlu_pro/flan_cot_zeroshot/_mmlu_pro.yaml
lm_eval/tasks/mmlu_pro/flan_cot_zeroshot/_mmlu_pro.yaml
+6
-0
lm_eval/tasks/mmlu_pro/flan_cot_zeroshot/_mmlu_pro_flan_cot_zeroshot_template_yaml
...an_cot_zeroshot/_mmlu_pro_flan_cot_zeroshot_template_yaml
+36
-0
lm_eval/tasks/mmlu_pro/flan_cot_zeroshot/mmlu_pro_biology.yaml
...al/tasks/mmlu_pro/flan_cot_zeroshot/mmlu_pro_biology.yaml
+6
-0
lm_eval/tasks/mmlu_pro/flan_cot_zeroshot/mmlu_pro_business.yaml
...l/tasks/mmlu_pro/flan_cot_zeroshot/mmlu_pro_business.yaml
+6
-0
No files found.
lm_eval/tasks/mmlu_pro/continuation/_continuation_template_yaml
0 → 100644
View file @
1e4e058c
dataset_path: sjyuxyz/MMLU-Pro-with-subset
test_split: test
fewshot_split: dev
fewshot_config:
sampler: first_n
doc_to_text: "Question: {{question.strip()}}\nAnswer:"
doc_to_choice: "{{choices}}"
doc_to_target: "{{answer}}"
metadata:
version: 0.0
lm_eval/tasks/mmlu_pro/continuation/_mmlu_pro.yaml
0 → 100644
View file @
1e4e058c
group
:
mmlu_pro_continuation
task
:
-
mmlu_pro_continuation_stem
-
mmlu_pro_continuation_other
-
mmlu_pro_continuation_social_sciences
-
mmlu_pro_continuation_humanities
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_biology.yaml
0 → 100644
View file @
1e4e058c
"
dataset_name"
:
"
biology"
"
description"
:
"
The
following
are
questions
(with
answers)
about
biology.
\n\
\n
"
"
group"
:
"
mmlu_continuation_stem"
"
include"
:
"
_continuation_template_yaml"
"
task"
:
"
mmlu_continuation_biology"
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_business.yaml
0 → 100644
View file @
1e4e058c
"
dataset_name"
:
"
business"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
business.
\n\
\n
"
"
group"
:
"
mmlu_continuation_other"
"
include"
:
"
_continuation_template_yaml"
"
task"
:
"
mmlu_continuation_business"
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_chemistry.yaml
0 → 100644
View file @
1e4e058c
"
dataset_name"
:
"
math"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
math.
\n\
\n
"
"
group"
:
"
mmlu_continuation_stem"
"
include"
:
"
_continuation_template_yaml"
"
task"
:
"
mmlu_continuation_chemistry"
\ No newline at end of file
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_computer_science.yaml
0 → 100644
View file @
1e4e058c
"
dataset_name"
:
"
computer_science"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
computer_science.
\n\
\n
"
"
group"
:
"
mmlu_continuation_stem"
"
include"
:
"
_continuation_template_yaml"
"
task"
:
"
mmlu_continuation_computer_science"
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_economics.yaml
0 → 100644
View file @
1e4e058c
"
dataset_name"
:
"
economics"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
economics.
\n\
\n
"
"
group"
:
"
mmlu_continuation_social_sciences"
"
include"
:
"
_continuation_template_yaml"
"
task"
:
"
mmlu_continuation_economics"
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_engineering.yaml
0 → 100644
View file @
1e4e058c
"
dataset_name"
:
"
engineering"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
engineering.
\n\
\n
"
"
group"
:
"
mmlu_continuation_stem"
"
include"
:
"
_continuation_template_yaml"
"
task"
:
"
mmlu_continuation_engineering"
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_health.yaml
0 → 100644
View file @
1e4e058c
"
dataset_name"
:
"
health"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
health.
\n\
\n
"
"
group"
:
"
mmlu_continuation_other"
"
include"
:
"
_continuation_template_yaml"
"
task"
:
"
mmlu_continuation_health"
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_history.yaml
0 → 100644
View file @
1e4e058c
"
dataset_name"
:
"
history"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
history.
\n\
\n
"
"
group"
:
"
mmlu_continuation_humanities"
"
include"
:
"
_continuation_template_yaml"
"
task"
:
"
mmlu_continuation_history"
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_law.yaml
0 → 100644
View file @
1e4e058c
"
dataset_name"
:
"
law"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
law.
\n\
\n
"
"
group"
:
"
mmlu_continuation_humanities"
"
include"
:
"
_continuation_template_yaml"
"
task"
:
"
mmlu_continuation_law"
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_math.yaml
0 → 100644
View file @
1e4e058c
"
dataset_name"
:
"
math"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
math.
\n\
\n
"
"
group"
:
"
mmlu_continuation_stem"
"
include"
:
"
_continuation_template_yaml"
"
task"
:
"
mmlu_continuation_math"
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_other.yaml
0 → 100644
View file @
1e4e058c
"
dataset_name"
:
"
other"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
other.
\n\
\n
"
"
group"
:
"
mmlu_continuation_other"
"
include"
:
"
_continuation_template_yaml"
"
task"
:
"
mmlu_continuation_other"
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_philosophy.yaml
0 → 100644
View file @
1e4e058c
"
dataset_name"
:
"
philosophy"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
philosophy.
\n\
\n
"
"
group"
:
"
mmlu_continuation_humanities"
"
include"
:
"
_continuation_template_yaml"
"
task"
:
"
mmlu_continuation_philosophy"
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_physics.yaml
0 → 100644
View file @
1e4e058c
"
dataset_name"
:
"
physics"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
physics.
\n\
\n
"
"
group"
:
"
mmlu_continuation_stem"
"
include"
:
"
_continuation_template_yaml"
"
task"
:
"
mmlu_continuation_physics"
lm_eval/tasks/mmlu_pro/continuation/mmlu_pro_psychology.yaml
0 → 100644
View file @
1e4e058c
"
dataset_name"
:
"
psychology"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
psychology.
\n\
\n
"
"
group"
:
"
mmlu_continuation_social_sciences"
"
include"
:
"
_continuation_template_yaml"
"
task"
:
"
mmlu_continuation_psychology"
lm_eval/tasks/mmlu_pro/flan_cot_zeroshot/_mmlu_pro.yaml
0 → 100644
View file @
1e4e058c
group
:
mmlu_pro_flan_cot_zeroshot
task
:
-
mmlu_pro_flan_cot_zeroshot_stem
-
mmlu_pro_flan_cot_zeroshot_other
-
mmlu_pro_flan_cot_zeroshot_social_sciences
-
mmlu_pro_flan_cot_zeroshot_humanities
lm_eval/tasks/mmlu_pro/flan_cot_zeroshot/_mmlu_pro_flan_cot_zeroshot_template_yaml
0 → 100644
View file @
1e4e058c
dataset_path: sjyuxyz/MMLU-Pro-with-subset
validation_split: validation
fewshot_split: dev
output_type: generate_until
doc_to_text: "Q: {{question.strip()}}\n(A) {{choices[0]}} (B) {{choices[1]}} (C) {{choices[2]}} (D) {{choices[3]}} (E) {{choices[4]}} (F) {{choices[5]}} (G) {{choices[6]}} (H) {{choices[7]}} (I) {{choices[8]}} (J) {{choices[9]}}\nA: Let's think step by step."
doc_to_target: "{{['(A)', '(B)', '(C)', '(D)', '(E)', '(F)', '(G)', '(H)', '(I)', '(J)'][answer]}}"
filter_list:
- name: "strict-match"
filter:
- function: "regex"
regex_pattern: "((?<=The answer is )(.*)(?=.)|(?<=answer is )(.*)(?=.)|(?<=The answer: )(.*)(?=.)|(?<=The final answer: )(.*)(?=.))"
- function: "take_first"
- name: "flexible-extract"
filter:
- function: !function utils.MultiChoiceRegexFilter
group_select: -1
ignore_case: true
ignore_punctuation: true
regex_pattern: "(\\([A-Z]\\))"
- function: "take_first"
generation_kwargs:
until:
- "</s>"
- "Q:"
- "<|im_end|>"
do_sample: false
temperature: 0.0
num_fewshot: 0
metric_list:
- metric: exact_match
aggregation: mean
higher_is_better: true
ignore_case: true
ignore_punctuation: true
metadata:
version: 2.0
lm_eval/tasks/mmlu_pro/flan_cot_zeroshot/mmlu_pro_biology.yaml
0 → 100644
View file @
1e4e058c
"
dataset_name"
:
"
biology"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
biology.
\n\
\n
"
"
group"
:
"
mmlu_pro_flan_cot_zeroshot_stem"
"
include"
:
"
_mmlu_pro_flan_cot_zeroshot_template_yaml"
"
task"
:
"
mmlu_pro_flan_cot_zeroshot_biology"
lm_eval/tasks/mmlu_pro/flan_cot_zeroshot/mmlu_pro_business.yaml
0 → 100644
View file @
1e4e058c
"
dataset_name"
:
"
business"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
business.
\n\
\n
"
"
group"
:
"
mmlu_pro_flan_cot_zeroshot_other"
"
include"
:
"
_mmlu_pro_flan_cot_zeroshot_template_yaml"
"
task"
:
"
mmlu_pro_flan_cot_zeroshot_business"
Prev
1
2
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