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
6769119f
Unverified
Commit
6769119f
authored
Oct 06, 2023
by
Hailey Schoelkopf
Committed by
GitHub
Oct 06, 2023
Browse files
Merge pull request #816 from EleutherAI/flan-benchmark
[Refactor] Flan benchmark
parents
4824a832
7d5e511c
Changes
448
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
105 additions
and
0 deletions
+105
-0
lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_world_religions.yaml
...al/tasks/mmlu/flan_cot_zeroshot/mmlu_world_religions.yaml
+8
-0
lm_eval/tasks/mmlu/flan_n_shot/_mmlu_flan_generative_template_yaml
...asks/mmlu/flan_n_shot/_mmlu_flan_generative_template_yaml
+14
-0
lm_eval/tasks/mmlu/flan_n_shot/_mmlu_flan_loglikelihood_template_yaml
...s/mmlu/flan_n_shot/_mmlu_flan_loglikelihood_template_yaml
+15
-0
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_abstract_algebra.yaml
...val/tasks/mmlu/flan_n_shot/mmlu_gen_abstract_algebra.yaml
+4
-0
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_anatomy.yaml
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_anatomy.yaml
+4
-0
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_astronomy.yaml
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_astronomy.yaml
+4
-0
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_business_ethics.yaml
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_business_ethics.yaml
+4
-0
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_clinical_knowledge.yaml
...l/tasks/mmlu/flan_n_shot/mmlu_gen_clinical_knowledge.yaml
+4
-0
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_college_biology.yaml
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_college_biology.yaml
+4
-0
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_college_chemistry.yaml
...al/tasks/mmlu/flan_n_shot/mmlu_gen_college_chemistry.yaml
+4
-0
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_college_computer_science.yaml
...s/mmlu/flan_n_shot/mmlu_gen_college_computer_science.yaml
+4
-0
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_college_mathematics.yaml
.../tasks/mmlu/flan_n_shot/mmlu_gen_college_mathematics.yaml
+4
-0
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_college_medicine.yaml
...val/tasks/mmlu/flan_n_shot/mmlu_gen_college_medicine.yaml
+4
-0
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_college_physics.yaml
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_college_physics.yaml
+4
-0
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_computer_security.yaml
...al/tasks/mmlu/flan_n_shot/mmlu_gen_computer_security.yaml
+4
-0
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_conceptual_physics.yaml
...l/tasks/mmlu/flan_n_shot/mmlu_gen_conceptual_physics.yaml
+4
-0
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_econometrics.yaml
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_econometrics.yaml
+4
-0
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_electrical_engineering.yaml
...sks/mmlu/flan_n_shot/mmlu_gen_electrical_engineering.yaml
+4
-0
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_elementary_mathematics.yaml
...sks/mmlu/flan_n_shot/mmlu_gen_elementary_mathematics.yaml
+4
-0
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_formal_logic.yaml
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_formal_logic.yaml
+4
-0
No files found.
lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_world_religions.yaml
0 → 100644
View file @
6769119f
dataset_name
:
world_religions
description
:
'
The
following
are
multiple
choice
questions
(with
answers)
about
world
religions.
'
include
:
_mmlu_flan_generative_template_yaml
task
:
mmlu_flan_cot_zeroshot_world_religions
lm_eval/tasks/mmlu/flan_n_shot/_mmlu_flan_generative_template_yaml
0 → 100644
View file @
6769119f
group: mmlu_flan_n_shot_generative
dataset_path: cais/mmlu
test_split: test
fewshot_split: dev
output_type: greedy_until
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]}}"
generation_kwargs:
until:
- "</s>"
metric_list:
- metric: exact_match
aggregation: mean
higher_is_better: true
lm_eval/tasks/mmlu/flan_n_shot/_mmlu_flan_loglikelihood_template_yaml
0 → 100644
View file @
6769119f
group: mmlu_flan_n_shot_loglikelihood
dataset_path: cais/mmlu
test_split: test
fewshot_split: dev
output_type: multiple_choice
doc_to_text: "Q: {{question.strip()}}\n(A) {{choices[0]}} (B) {{choices[1]}} (C) {{choices[2]}} (D) {{choices[3]}}\nA: "
doc_to_choice: ["(A)", "(B)", "(C)", "(D)"]
doc_to_target: answer
metric_list:
- metric: acc
aggregation: mean
higher_is_better: true
- metric: acc_norm
aggregation: mean
higher_is_better: true
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_abstract_algebra.yaml
0 → 100644
View file @
6769119f
"
dataset_name"
:
"
abstract_algebra"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
abstract
algebra.
\n\n
"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_generative_abstract_algebra"
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_anatomy.yaml
0 → 100644
View file @
6769119f
"
dataset_name"
:
"
anatomy"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
anatomy.
\n\n
"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_generative_anatomy"
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_astronomy.yaml
0 → 100644
View file @
6769119f
"
dataset_name"
:
"
astronomy"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
astronomy.
\n\n
"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_generative_astronomy"
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_business_ethics.yaml
0 → 100644
View file @
6769119f
"
dataset_name"
:
"
business_ethics"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
business
ethics.
\n\n
"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_generative_business_ethics"
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_clinical_knowledge.yaml
0 → 100644
View file @
6769119f
"
dataset_name"
:
"
clinical_knowledge"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
clinical
knowledge.
\n\n
"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_generative_clinical_knowledge"
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_college_biology.yaml
0 → 100644
View file @
6769119f
"
dataset_name"
:
"
college_biology"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
college
biology.
\n\n
"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_generative_college_biology"
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_college_chemistry.yaml
0 → 100644
View file @
6769119f
"
dataset_name"
:
"
college_chemistry"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
college
chemistry.
\n\n
"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_generative_college_chemistry"
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_college_computer_science.yaml
0 → 100644
View file @
6769119f
"
dataset_name"
:
"
college_computer_science"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
college
computer
science.
\n\n
"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_generative_college_computer_science"
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_college_mathematics.yaml
0 → 100644
View file @
6769119f
"
dataset_name"
:
"
college_mathematics"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
college
mathematics.
\n\n
"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_generative_college_mathematics"
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_college_medicine.yaml
0 → 100644
View file @
6769119f
"
dataset_name"
:
"
college_medicine"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
college
medicine.
\n\n
"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_generative_college_medicine"
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_college_physics.yaml
0 → 100644
View file @
6769119f
"
dataset_name"
:
"
college_physics"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
college
physics.
\n\n
"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_generative_college_physics"
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_computer_security.yaml
0 → 100644
View file @
6769119f
"
dataset_name"
:
"
computer_security"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
computer
security.
\n\n
"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_generative_computer_security"
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_conceptual_physics.yaml
0 → 100644
View file @
6769119f
"
dataset_name"
:
"
conceptual_physics"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
conceptual
physics.
\n\n
"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_generative_conceptual_physics"
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_econometrics.yaml
0 → 100644
View file @
6769119f
"
dataset_name"
:
"
econometrics"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
econometrics.
\n\n
"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_generative_econometrics"
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_electrical_engineering.yaml
0 → 100644
View file @
6769119f
"
dataset_name"
:
"
electrical_engineering"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
electrical
engineering.
\n\n
"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_generative_electrical_engineering"
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_elementary_mathematics.yaml
0 → 100644
View file @
6769119f
"
dataset_name"
:
"
elementary_mathematics"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
elementary
mathematics.
\n\n
"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_generative_elementary_mathematics"
lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_formal_logic.yaml
0 → 100644
View file @
6769119f
"
dataset_name"
:
"
formal_logic"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
formal
logic.
\n\n
"
"
include"
:
"
_mmlu_flan_generative_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_generative_formal_logic"
Prev
1
…
13
14
15
16
17
18
19
20
21
…
23
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