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
4a752867
"vscode:/vscode.git/clone" did not exist on "5ccac4fa53c2c0ab7cdd0e0bb8f0965d8b670682"
Commit
4a752867
authored
Sep 04, 2023
by
lintangsutawika
Browse files
update flan mmlu
parent
03be40e2
Changes
173
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
88 additions
and
1 deletion
+88
-1
lm_eval/tasks/mmlu/_generate_configs.py
lm_eval/tasks/mmlu/_generate_configs.py
+1
-1
lm_eval/tasks/mmlu/default/_default_template_yaml
lm_eval/tasks/mmlu/default/_default_template_yaml
+15
-0
lm_eval/tasks/mmlu/default/mmlu_abstract_algebra.yaml
lm_eval/tasks/mmlu/default/mmlu_abstract_algebra.yaml
+4
-0
lm_eval/tasks/mmlu/default/mmlu_anatomy.yaml
lm_eval/tasks/mmlu/default/mmlu_anatomy.yaml
+4
-0
lm_eval/tasks/mmlu/default/mmlu_astronomy.yaml
lm_eval/tasks/mmlu/default/mmlu_astronomy.yaml
+4
-0
lm_eval/tasks/mmlu/default/mmlu_business_ethics.yaml
lm_eval/tasks/mmlu/default/mmlu_business_ethics.yaml
+4
-0
lm_eval/tasks/mmlu/default/mmlu_clinical_knowledge.yaml
lm_eval/tasks/mmlu/default/mmlu_clinical_knowledge.yaml
+4
-0
lm_eval/tasks/mmlu/default/mmlu_college_biology.yaml
lm_eval/tasks/mmlu/default/mmlu_college_biology.yaml
+4
-0
lm_eval/tasks/mmlu/default/mmlu_college_chemistry.yaml
lm_eval/tasks/mmlu/default/mmlu_college_chemistry.yaml
+4
-0
lm_eval/tasks/mmlu/default/mmlu_college_computer_science.yaml
...val/tasks/mmlu/default/mmlu_college_computer_science.yaml
+4
-0
lm_eval/tasks/mmlu/default/mmlu_college_mathematics.yaml
lm_eval/tasks/mmlu/default/mmlu_college_mathematics.yaml
+4
-0
lm_eval/tasks/mmlu/default/mmlu_college_medicine.yaml
lm_eval/tasks/mmlu/default/mmlu_college_medicine.yaml
+4
-0
lm_eval/tasks/mmlu/default/mmlu_college_physics.yaml
lm_eval/tasks/mmlu/default/mmlu_college_physics.yaml
+4
-0
lm_eval/tasks/mmlu/default/mmlu_computer_security.yaml
lm_eval/tasks/mmlu/default/mmlu_computer_security.yaml
+4
-0
lm_eval/tasks/mmlu/default/mmlu_conceptual_physics.yaml
lm_eval/tasks/mmlu/default/mmlu_conceptual_physics.yaml
+4
-0
lm_eval/tasks/mmlu/default/mmlu_econometrics.yaml
lm_eval/tasks/mmlu/default/mmlu_econometrics.yaml
+4
-0
lm_eval/tasks/mmlu/default/mmlu_electrical_engineering.yaml
lm_eval/tasks/mmlu/default/mmlu_electrical_engineering.yaml
+4
-0
lm_eval/tasks/mmlu/default/mmlu_elementary_mathematics.yaml
lm_eval/tasks/mmlu/default/mmlu_elementary_mathematics.yaml
+4
-0
lm_eval/tasks/mmlu/default/mmlu_formal_logic.yaml
lm_eval/tasks/mmlu/default/mmlu_formal_logic.yaml
+4
-0
lm_eval/tasks/mmlu/default/mmlu_global_facts.yaml
lm_eval/tasks/mmlu/default/mmlu_global_facts.yaml
+4
-0
No files found.
lm_eval/tasks/mmlu/_generate_configs.py
View file @
4a752867
...
@@ -106,7 +106,7 @@ if __name__ == "__main__":
...
@@ -106,7 +106,7 @@ if __name__ == "__main__":
yaml_dict
=
{
yaml_dict
=
{
"include"
:
base_yaml_name
,
"include"
:
base_yaml_name
,
"task"
:
f
"mmlu_
{
args
.
task_prefix
}
_
{
subject
}
"
,
"task"
:
f
"mmlu_
{
args
.
task_prefix
}
_
{
subject
}
"
if
args
.
task_prefix
!=
""
else
f
"mmlu_
{
subject
}
"
,
"dataset_name"
:
subject
,
"dataset_name"
:
subject
,
"description"
:
description
,
"description"
:
description
,
}
}
...
...
lm_eval/tasks/mmlu/default/_default_template_yaml
0 → 100644
View file @
4a752867
group: mmlu
dataset_path: cais/mmlu
test_split: test
fewshot_split: dev
output_type: multiple_choice
doc_to_text: "{{question.strip()}}\nA. {{choices[0]}}\nB. {{choices[1]}}\nC. {{choices[2]}}\nD. {{choices[3]}}\nAnswer:"
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
\ No newline at end of file
lm_eval/tasks/mmlu/default/mmlu_abstract_algebra.yaml
0 → 100644
View file @
4a752867
"
dataset_name"
:
"
abstract_algebra"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
abstract
algebra.
\n\n
"
"
include"
:
"
_default_template_yaml"
"
task"
:
"
mmlu_abstract_algebra"
lm_eval/tasks/mmlu/default/mmlu_anatomy.yaml
0 → 100644
View file @
4a752867
"
dataset_name"
:
"
anatomy"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
anatomy.
\n\n
"
"
include"
:
"
_default_template_yaml"
"
task"
:
"
mmlu_anatomy"
lm_eval/tasks/mmlu/default/mmlu_astronomy.yaml
0 → 100644
View file @
4a752867
"
dataset_name"
:
"
astronomy"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
astronomy.
\n\n
"
"
include"
:
"
_default_template_yaml"
"
task"
:
"
mmlu_astronomy"
lm_eval/tasks/mmlu/default/mmlu_business_ethics.yaml
0 → 100644
View file @
4a752867
"
dataset_name"
:
"
business_ethics"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
business
ethics.
\n\n
"
"
include"
:
"
_default_template_yaml"
"
task"
:
"
mmlu_business_ethics"
lm_eval/tasks/mmlu/default/mmlu_clinical_knowledge.yaml
0 → 100644
View file @
4a752867
"
dataset_name"
:
"
clinical_knowledge"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
clinical
knowledge.
\n\n
"
"
include"
:
"
_default_template_yaml"
"
task"
:
"
mmlu_clinical_knowledge"
lm_eval/tasks/mmlu/default/mmlu_college_biology.yaml
0 → 100644
View file @
4a752867
"
dataset_name"
:
"
college_biology"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
college
biology.
\n\n
"
"
include"
:
"
_default_template_yaml"
"
task"
:
"
mmlu_college_biology"
lm_eval/tasks/mmlu/default/mmlu_college_chemistry.yaml
0 → 100644
View file @
4a752867
"
dataset_name"
:
"
college_chemistry"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
college
chemistry.
\n\n
"
"
include"
:
"
_default_template_yaml"
"
task"
:
"
mmlu_college_chemistry"
lm_eval/tasks/mmlu/default/mmlu_college_computer_science.yaml
0 → 100644
View file @
4a752867
"
dataset_name"
:
"
college_computer_science"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
college
computer
science.
\n\n
"
"
include"
:
"
_default_template_yaml"
"
task"
:
"
mmlu_college_computer_science"
lm_eval/tasks/mmlu/default/mmlu_college_mathematics.yaml
0 → 100644
View file @
4a752867
"
dataset_name"
:
"
college_mathematics"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
college
mathematics.
\n\n
"
"
include"
:
"
_default_template_yaml"
"
task"
:
"
mmlu_college_mathematics"
lm_eval/tasks/mmlu/default/mmlu_college_medicine.yaml
0 → 100644
View file @
4a752867
"
dataset_name"
:
"
college_medicine"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
college
medicine.
\n\n
"
"
include"
:
"
_default_template_yaml"
"
task"
:
"
mmlu_college_medicine"
lm_eval/tasks/mmlu/default/mmlu_college_physics.yaml
0 → 100644
View file @
4a752867
"
dataset_name"
:
"
college_physics"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
college
physics.
\n\n
"
"
include"
:
"
_default_template_yaml"
"
task"
:
"
mmlu_college_physics"
lm_eval/tasks/mmlu/default/mmlu_computer_security.yaml
0 → 100644
View file @
4a752867
"
dataset_name"
:
"
computer_security"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
computer
security.
\n\n
"
"
include"
:
"
_default_template_yaml"
"
task"
:
"
mmlu_computer_security"
lm_eval/tasks/mmlu/default/mmlu_conceptual_physics.yaml
0 → 100644
View file @
4a752867
"
dataset_name"
:
"
conceptual_physics"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
conceptual
physics.
\n\n
"
"
include"
:
"
_default_template_yaml"
"
task"
:
"
mmlu_conceptual_physics"
lm_eval/tasks/mmlu/default/mmlu_econometrics.yaml
0 → 100644
View file @
4a752867
"
dataset_name"
:
"
econometrics"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
econometrics.
\n\n
"
"
include"
:
"
_default_template_yaml"
"
task"
:
"
mmlu_econometrics"
lm_eval/tasks/mmlu/default/mmlu_electrical_engineering.yaml
0 → 100644
View file @
4a752867
"
dataset_name"
:
"
electrical_engineering"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
electrical
engineering.
\n\n
"
"
include"
:
"
_default_template_yaml"
"
task"
:
"
mmlu_electrical_engineering"
lm_eval/tasks/mmlu/default/mmlu_elementary_mathematics.yaml
0 → 100644
View file @
4a752867
"
dataset_name"
:
"
elementary_mathematics"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
elementary
mathematics.
\n\n
"
"
include"
:
"
_default_template_yaml"
"
task"
:
"
mmlu_elementary_mathematics"
lm_eval/tasks/mmlu/default/mmlu_formal_logic.yaml
0 → 100644
View file @
4a752867
"
dataset_name"
:
"
formal_logic"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
formal
logic.
\n\n
"
"
include"
:
"
_default_template_yaml"
"
task"
:
"
mmlu_formal_logic"
lm_eval/tasks/mmlu/default/mmlu_global_facts.yaml
0 → 100644
View file @
4a752867
"
dataset_name"
:
"
global_facts"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
global
facts.
\n\n
"
"
include"
:
"
_default_template_yaml"
"
task"
:
"
mmlu_global_facts"
Prev
1
2
3
4
5
…
9
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