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
a2af2101
Unverified
Commit
a2af2101
authored
Jul 12, 2024
by
Yen-Ting Lin
Committed by
GitHub
Jul 12, 2024
Browse files
Merge branch 'EleutherAI:main' into main
parents
82cb25c1
d5f39bf8
Changes
1000
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
55 additions
and
25 deletions
+55
-25
lm_eval/tasks/mmlu/flan_n_shot/generative/_mmlu.yaml
lm_eval/tasks/mmlu/flan_n_shot/generative/_mmlu.yaml
+30
-4
lm_eval/tasks/mmlu/flan_n_shot/generative/_mmlu_flan_generative_template_yaml
...lan_n_shot/generative/_mmlu_flan_generative_template_yaml
+7
-3
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_abstract_algebra.yaml
...ks/mmlu/flan_n_shot/generative/mmlu_abstract_algebra.yaml
+1
-1
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_anatomy.yaml
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_anatomy.yaml
+1
-1
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_astronomy.yaml
...val/tasks/mmlu/flan_n_shot/generative/mmlu_astronomy.yaml
+1
-1
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_business_ethics.yaml
...sks/mmlu/flan_n_shot/generative/mmlu_business_ethics.yaml
+1
-1
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_clinical_knowledge.yaml
.../mmlu/flan_n_shot/generative/mmlu_clinical_knowledge.yaml
+1
-1
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_biology.yaml
...sks/mmlu/flan_n_shot/generative/mmlu_college_biology.yaml
+1
-1
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_chemistry.yaml
...s/mmlu/flan_n_shot/generative/mmlu_college_chemistry.yaml
+1
-1
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_computer_science.yaml
...flan_n_shot/generative/mmlu_college_computer_science.yaml
+1
-1
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_mathematics.yaml
...mmlu/flan_n_shot/generative/mmlu_college_mathematics.yaml
+1
-1
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_medicine.yaml
...ks/mmlu/flan_n_shot/generative/mmlu_college_medicine.yaml
+1
-1
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_physics.yaml
...sks/mmlu/flan_n_shot/generative/mmlu_college_physics.yaml
+1
-1
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_computer_security.yaml
...s/mmlu/flan_n_shot/generative/mmlu_computer_security.yaml
+1
-1
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_conceptual_physics.yaml
.../mmlu/flan_n_shot/generative/mmlu_conceptual_physics.yaml
+1
-1
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_econometrics.yaml
.../tasks/mmlu/flan_n_shot/generative/mmlu_econometrics.yaml
+1
-1
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_electrical_engineering.yaml
...u/flan_n_shot/generative/mmlu_electrical_engineering.yaml
+1
-1
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_elementary_mathematics.yaml
...u/flan_n_shot/generative/mmlu_elementary_mathematics.yaml
+1
-1
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_formal_logic.yaml
.../tasks/mmlu/flan_n_shot/generative/mmlu_formal_logic.yaml
+1
-1
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_global_facts.yaml
.../tasks/mmlu/flan_n_shot/generative/mmlu_global_facts.yaml
+1
-1
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/mmlu/flan_n_shot/generative/_mmlu.yaml
View file @
a2af2101
group
:
mmlu_flan_n_shot_generative
group
:
mmlu_flan_n_shot_generative
group_alias
:
mmlu (flan style, generative)
task
:
task
:
-
mmlu_flan_n_shot_generative_stem
-
group
:
stem
-
mmlu_flan_n_shot_generative_other
task
:
-
mmlu_flan_n_shot_generative_social_sciences
-
mmlu_flan_n_shot_generative_stem
-
mmlu_flan_n_shot_generative_humanities
aggregate_metric_list
:
-
metric
:
acc
weight_by_size
:
True
-
group
:
other
task
:
-
mmlu_flan_n_shot_generative_other
aggregate_metric_list
:
-
metric
:
acc
weight_by_size
:
True
-
group
:
social sciences
task
:
-
mmlu_flan_n_shot_generative_social_sciences
aggregate_metric_list
:
-
metric
:
acc
weight_by_size
:
True
-
group
:
humanities
task
:
-
mmlu_flan_n_shot_generative_humanities
aggregate_metric_list
:
-
metric
:
acc
weight_by_size
:
True
aggregate_metric_list
:
-
metric
:
acc
weight_by_size
:
True
metadata
:
version
:
1
lm_eval/tasks/mmlu/flan_n_shot/generative/_mmlu_flan_generative_template_yaml
View file @
a2af2101
group: mmlu_flan_n_shot_generative
dataset_path: hails/mmlu_no_train # a copy of `cais/mmlu` with no auxiliary_train split
dataset_path: hails/mmlu_no_train # a copy of `cais/mmlu` with no auxiliary_train split
test_split: test
test_split: test
fewshot_split: dev
fewshot_split: dev
fewshot_config:
sampler: first_n
output_type: generate_until
output_type: generate_until
doc_to_text: "Q: {{question.strip()}}\n(A) {{choices[0]}} (B) {{choices[1]}} (C) {{choices[2]}} (D) {{choices[3]}}\nA:
"
doc_to_text: "Q: {{question.strip()}}\n(A) {{choices[0]}} (B) {{choices[1]}} (C) {{choices[2]}} (D) {{choices[3]}}\nA:"
doc_to_target: "{{['(A)', '(B)', '(C)', '(D)'][answer]}}"
doc_to_target: "{{['(A)', '(B)', '(C)', '(D)'][answer]}}"
filter_list:
filter_list:
- name: "strict-match"
- name: "strict-match"
...
@@ -22,9 +23,12 @@ generation_kwargs:
...
@@ -22,9 +23,12 @@ generation_kwargs:
- "</s>"
- "</s>"
- "Q:"
- "Q:"
- "<|im_end|>"
- "<|im_end|>"
- "\n"
metric_list:
metric_list:
- metric: exact_match
- metric: exact_match
aggregation: mean
aggregation: mean
higher_is_better: true
higher_is_better: true
metadata:
metadata:
version: 1.0
version: 2.0
dataset_kwargs:
trust_remote_code: true
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_abstract_algebra.yaml
View file @
a2af2101
"
dataset_name"
:
"
abstract_algebra"
"
dataset_name"
:
"
abstract_algebra"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
abstract
\
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
abstract
\
\
algebra.
\n\n
"
\
algebra.
\n\n
"
"
group
"
:
"
mmlu_flan_n_shot_generative_stem"
"
tag
"
:
"
mmlu_flan_n_shot_generative_stem"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_generative_abstract_algebra"
"
task"
:
"
mmlu_flan_n_shot_generative_abstract_algebra"
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_anatomy.yaml
View file @
a2af2101
"
dataset_name"
:
"
anatomy"
"
dataset_name"
:
"
anatomy"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
anatomy.
\n\
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
anatomy.
\n\
\n
"
\n
"
"
group
"
:
"
mmlu_flan_n_shot_generative_stem"
"
tag
"
:
"
mmlu_flan_n_shot_generative_stem"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_generative_anatomy"
"
task"
:
"
mmlu_flan_n_shot_generative_anatomy"
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_astronomy.yaml
View file @
a2af2101
"
dataset_name"
:
"
astronomy"
"
dataset_name"
:
"
astronomy"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
astronomy.
\n\
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
astronomy.
\n\
\n
"
\n
"
"
group
"
:
"
mmlu_flan_n_shot_generative_stem"
"
tag
"
:
"
mmlu_flan_n_shot_generative_stem"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_generative_astronomy"
"
task"
:
"
mmlu_flan_n_shot_generative_astronomy"
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_business_ethics.yaml
View file @
a2af2101
"
dataset_name"
:
"
business_ethics"
"
dataset_name"
:
"
business_ethics"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
business
\
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
business
\
\
ethics.
\n\n
"
\
ethics.
\n\n
"
"
group
"
:
"
mmlu_flan_n_shot_generative_other"
"
tag
"
:
"
mmlu_flan_n_shot_generative_other"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_generative_business_ethics"
"
task"
:
"
mmlu_flan_n_shot_generative_business_ethics"
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_clinical_knowledge.yaml
View file @
a2af2101
"
dataset_name"
:
"
clinical_knowledge"
"
dataset_name"
:
"
clinical_knowledge"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
clinical
\
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
clinical
\
\
knowledge.
\n\n
"
\
knowledge.
\n\n
"
"
group
"
:
"
mmlu_flan_n_shot_generative_other"
"
tag
"
:
"
mmlu_flan_n_shot_generative_other"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_generative_clinical_knowledge"
"
task"
:
"
mmlu_flan_n_shot_generative_clinical_knowledge"
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_biology.yaml
View file @
a2af2101
"
dataset_name"
:
"
college_biology"
"
dataset_name"
:
"
college_biology"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
college
\
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
college
\
\
biology.
\n\n
"
\
biology.
\n\n
"
"
group
"
:
"
mmlu_flan_n_shot_generative_stem"
"
tag
"
:
"
mmlu_flan_n_shot_generative_stem"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_generative_college_biology"
"
task"
:
"
mmlu_flan_n_shot_generative_college_biology"
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_chemistry.yaml
View file @
a2af2101
"
dataset_name"
:
"
college_chemistry"
"
dataset_name"
:
"
college_chemistry"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
college
\
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
college
\
\
chemistry.
\n\n
"
\
chemistry.
\n\n
"
"
group
"
:
"
mmlu_flan_n_shot_generative_stem"
"
tag
"
:
"
mmlu_flan_n_shot_generative_stem"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_generative_college_chemistry"
"
task"
:
"
mmlu_flan_n_shot_generative_college_chemistry"
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_computer_science.yaml
View file @
a2af2101
"
dataset_name"
:
"
college_computer_science"
"
dataset_name"
:
"
college_computer_science"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
college
\
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
college
\
\
computer
science.
\n\n
"
\
computer
science.
\n\n
"
"
group
"
:
"
mmlu_flan_n_shot_generative_stem"
"
tag
"
:
"
mmlu_flan_n_shot_generative_stem"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_generative_college_computer_science"
"
task"
:
"
mmlu_flan_n_shot_generative_college_computer_science"
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_mathematics.yaml
View file @
a2af2101
"
dataset_name"
:
"
college_mathematics"
"
dataset_name"
:
"
college_mathematics"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
college
\
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
college
\
\
mathematics.
\n\n
"
\
mathematics.
\n\n
"
"
group
"
:
"
mmlu_flan_n_shot_generative_stem"
"
tag
"
:
"
mmlu_flan_n_shot_generative_stem"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_generative_college_mathematics"
"
task"
:
"
mmlu_flan_n_shot_generative_college_mathematics"
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_medicine.yaml
View file @
a2af2101
"
dataset_name"
:
"
college_medicine"
"
dataset_name"
:
"
college_medicine"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
college
\
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
college
\
\
medicine.
\n\n
"
\
medicine.
\n\n
"
"
group
"
:
"
mmlu_flan_n_shot_generative_other"
"
tag
"
:
"
mmlu_flan_n_shot_generative_other"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_generative_college_medicine"
"
task"
:
"
mmlu_flan_n_shot_generative_college_medicine"
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_physics.yaml
View file @
a2af2101
"
dataset_name"
:
"
college_physics"
"
dataset_name"
:
"
college_physics"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
college
\
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
college
\
\
physics.
\n\n
"
\
physics.
\n\n
"
"
group
"
:
"
mmlu_flan_n_shot_generative_stem"
"
tag
"
:
"
mmlu_flan_n_shot_generative_stem"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_generative_college_physics"
"
task"
:
"
mmlu_flan_n_shot_generative_college_physics"
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_computer_security.yaml
View file @
a2af2101
"
dataset_name"
:
"
computer_security"
"
dataset_name"
:
"
computer_security"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
computer
\
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
computer
\
\
security.
\n\n
"
\
security.
\n\n
"
"
group
"
:
"
mmlu_flan_n_shot_generative_stem"
"
tag
"
:
"
mmlu_flan_n_shot_generative_stem"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_generative_computer_security"
"
task"
:
"
mmlu_flan_n_shot_generative_computer_security"
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_conceptual_physics.yaml
View file @
a2af2101
"
dataset_name"
:
"
conceptual_physics"
"
dataset_name"
:
"
conceptual_physics"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
conceptual
\
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
conceptual
\
\
physics.
\n\n
"
\
physics.
\n\n
"
"
group
"
:
"
mmlu_flan_n_shot_generative_stem"
"
tag
"
:
"
mmlu_flan_n_shot_generative_stem"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_generative_conceptual_physics"
"
task"
:
"
mmlu_flan_n_shot_generative_conceptual_physics"
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_econometrics.yaml
View file @
a2af2101
"
dataset_name"
:
"
econometrics"
"
dataset_name"
:
"
econometrics"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
econometrics.
\n\
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
econometrics.
\n\
\n
"
\n
"
"
group
"
:
"
mmlu_flan_n_shot_generative_social_sciences"
"
tag
"
:
"
mmlu_flan_n_shot_generative_social_sciences"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_generative_econometrics"
"
task"
:
"
mmlu_flan_n_shot_generative_econometrics"
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_electrical_engineering.yaml
View file @
a2af2101
"
dataset_name"
:
"
electrical_engineering"
"
dataset_name"
:
"
electrical_engineering"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
electrical
\
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
electrical
\
\
engineering.
\n\n
"
\
engineering.
\n\n
"
"
group
"
:
"
mmlu_flan_n_shot_generative_stem"
"
tag
"
:
"
mmlu_flan_n_shot_generative_stem"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_generative_electrical_engineering"
"
task"
:
"
mmlu_flan_n_shot_generative_electrical_engineering"
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_elementary_mathematics.yaml
View file @
a2af2101
"
dataset_name"
:
"
elementary_mathematics"
"
dataset_name"
:
"
elementary_mathematics"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
elementary
\
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
elementary
\
\
mathematics.
\n\n
"
\
mathematics.
\n\n
"
"
group
"
:
"
mmlu_flan_n_shot_generative_stem"
"
tag
"
:
"
mmlu_flan_n_shot_generative_stem"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_generative_elementary_mathematics"
"
task"
:
"
mmlu_flan_n_shot_generative_elementary_mathematics"
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_formal_logic.yaml
View file @
a2af2101
"
dataset_name"
:
"
formal_logic"
"
dataset_name"
:
"
formal_logic"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
formal
\
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
formal
\
\
logic.
\n\n
"
\
logic.
\n\n
"
"
group
"
:
"
mmlu_flan_n_shot_generative_humanities"
"
tag
"
:
"
mmlu_flan_n_shot_generative_humanities"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_generative_formal_logic"
"
task"
:
"
mmlu_flan_n_shot_generative_formal_logic"
lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_global_facts.yaml
View file @
a2af2101
"
dataset_name"
:
"
global_facts"
"
dataset_name"
:
"
global_facts"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
global
\
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
global
\
\
facts.
\n\n
"
\
facts.
\n\n
"
"
group
"
:
"
mmlu_flan_n_shot_generative_other"
"
tag
"
:
"
mmlu_flan_n_shot_generative_other"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_generative_global_facts"
"
task"
:
"
mmlu_flan_n_shot_generative_global_facts"
Prev
1
…
46
47
48
49
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