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
741a6a69
Commit
741a6a69
authored
Aug 20, 2024
by
lintangsutawika
Browse files
Merge branch 'main' of
https://github.com/EleutherAI/lm-evaluation-harness
into mela
parents
494a4515
b536f067
Changes
1000
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
91 additions
and
14 deletions
+91
-14
lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd10cm_medium.yaml
...tasks/med_concepts_qa/med_concepts_qa_icd10cm_medium.yaml
+5
-0
lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd10proc_easy.yaml
...tasks/med_concepts_qa/med_concepts_qa_icd10proc_easy.yaml
+5
-0
lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd10proc_hard.yaml
...tasks/med_concepts_qa/med_concepts_qa_icd10proc_hard.yaml
+5
-0
lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd10proc_medium.yaml
...sks/med_concepts_qa/med_concepts_qa_icd10proc_medium.yaml
+5
-0
lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd9cm_easy.yaml
...al/tasks/med_concepts_qa/med_concepts_qa_icd9cm_easy.yaml
+5
-0
lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd9cm_hard.yaml
...al/tasks/med_concepts_qa/med_concepts_qa_icd9cm_hard.yaml
+5
-0
lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd9cm_medium.yaml
.../tasks/med_concepts_qa/med_concepts_qa_icd9cm_medium.yaml
+5
-0
lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd9proc_easy.yaml
.../tasks/med_concepts_qa/med_concepts_qa_icd9proc_easy.yaml
+5
-0
lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd9proc_hard.yaml
.../tasks/med_concepts_qa/med_concepts_qa_icd9proc_hard.yaml
+5
-0
lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd9proc_medium.yaml
...asks/med_concepts_qa/med_concepts_qa_icd9proc_medium.yaml
+5
-0
lm_eval/tasks/mmlu/_generate_configs.py
lm_eval/tasks/mmlu/_generate_configs.py
+1
-2
lm_eval/tasks/mmlu/continuation/_continuation_template_yaml
lm_eval/tasks/mmlu/continuation/_continuation_template_yaml
+3
-1
lm_eval/tasks/mmlu/continuation/_mmlu.yaml
lm_eval/tasks/mmlu/continuation/_mmlu.yaml
+30
-4
lm_eval/tasks/mmlu/continuation/mmlu_abstract_algebra.yaml
lm_eval/tasks/mmlu/continuation/mmlu_abstract_algebra.yaml
+1
-1
lm_eval/tasks/mmlu/continuation/mmlu_anatomy.yaml
lm_eval/tasks/mmlu/continuation/mmlu_anatomy.yaml
+1
-1
lm_eval/tasks/mmlu/continuation/mmlu_astronomy.yaml
lm_eval/tasks/mmlu/continuation/mmlu_astronomy.yaml
+1
-1
lm_eval/tasks/mmlu/continuation/mmlu_business_ethics.yaml
lm_eval/tasks/mmlu/continuation/mmlu_business_ethics.yaml
+1
-1
lm_eval/tasks/mmlu/continuation/mmlu_clinical_knowledge.yaml
lm_eval/tasks/mmlu/continuation/mmlu_clinical_knowledge.yaml
+1
-1
lm_eval/tasks/mmlu/continuation/mmlu_college_biology.yaml
lm_eval/tasks/mmlu/continuation/mmlu_college_biology.yaml
+1
-1
lm_eval/tasks/mmlu/continuation/mmlu_college_chemistry.yaml
lm_eval/tasks/mmlu/continuation/mmlu_college_chemistry.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/med_concepts_qa/med_concepts_qa_icd10cm_medium.yaml
0 → 100644
View file @
741a6a69
dataset_name
:
icd10cm_medium
include
:
_default_template_yaml
tag
:
med_concepts_qa_icd10cm_tasks
task
:
med_concepts_qa_icd10cm_medium
task_alias
:
icd10cm_medium
lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd10proc_easy.yaml
0 → 100644
View file @
741a6a69
dataset_name
:
icd10proc_easy
include
:
_default_template_yaml
tag
:
med_concepts_qa_icd10proc_tasks
task
:
med_concepts_qa_icd10proc_easy
task_alias
:
icd10proc_easy
lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd10proc_hard.yaml
0 → 100644
View file @
741a6a69
dataset_name
:
icd10proc_hard
include
:
_default_template_yaml
tag
:
med_concepts_qa_icd10proc_tasks
task
:
med_concepts_qa_icd10proc_hard
task_alias
:
icd10proc_hard
lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd10proc_medium.yaml
0 → 100644
View file @
741a6a69
dataset_name
:
icd10proc_medium
include
:
_default_template_yaml
tag
:
med_concepts_qa_icd10proc_tasks
task
:
med_concepts_qa_icd10proc_medium
task_alias
:
icd10proc_medium
lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd9cm_easy.yaml
0 → 100644
View file @
741a6a69
dataset_name
:
icd9cm_easy
include
:
_default_template_yaml
tag
:
med_concepts_qa_icd9cm_tasks
task
:
med_concepts_qa_icd9cm_easy
task_alias
:
icd9cm_easy
lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd9cm_hard.yaml
0 → 100644
View file @
741a6a69
dataset_name
:
icd9cm_hard
include
:
_default_template_yaml
tag
:
med_concepts_qa_icd9cm_tasks
task
:
med_concepts_qa_icd9cm_hard
task_alias
:
icd9cm_hard
lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd9cm_medium.yaml
0 → 100644
View file @
741a6a69
dataset_name
:
icd9cm_medium
include
:
_default_template_yaml
tag
:
med_concepts_qa_icd9cm_tasks
task
:
med_concepts_qa_icd9cm_medium
task_alias
:
icd9cm_medium
lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd9proc_easy.yaml
0 → 100644
View file @
741a6a69
dataset_name
:
icd9proc_easy
include
:
_default_template_yaml
tag
:
med_concepts_qa_icd9proc_tasks
task
:
med_concepts_qa_icd9proc_easy
task_alias
:
icd9proc_easy
lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd9proc_hard.yaml
0 → 100644
View file @
741a6a69
dataset_name
:
icd9proc_hard
include
:
_default_template_yaml
tag
:
med_concepts_qa_icd9proc_tasks
task
:
med_concepts_qa_icd9proc_hard
task_alias
:
icd9proc_hard
lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd9proc_medium.yaml
0 → 100644
View file @
741a6a69
dataset_name
:
icd9proc_medium
include
:
_default_template_yaml
tag
:
med_concepts_qa_icd9proc_tasks
task
:
med_concepts_qa_icd9proc_medium
task_alias
:
icd9proc_medium
lm_eval/tasks/mmlu/_generate_configs.py
View file @
741a6a69
...
@@ -110,10 +110,9 @@ if __name__ == "__main__":
...
@@ -110,10 +110,9 @@ if __name__ == "__main__":
yaml_dict
=
{
yaml_dict
=
{
"include"
:
base_yaml_name
,
"include"
:
base_yaml_name
,
"
group
"
:
f
"mmlu_
{
args
.
task_prefix
}
_
{
category
}
"
"
tag
"
:
f
"mmlu_
{
args
.
task_prefix
}
_
{
category
}
"
if
args
.
task_prefix
!=
""
if
args
.
task_prefix
!=
""
else
f
"mmlu_
{
category
}
"
,
else
f
"mmlu_
{
category
}
"
,
"group_alias"
:
category
.
replace
(
"_"
,
" "
),
"task"
:
f
"mmlu_
{
args
.
task_prefix
}
_
{
subject
}
"
"task"
:
f
"mmlu_
{
args
.
task_prefix
}
_
{
subject
}
"
if
args
.
task_prefix
!=
""
if
args
.
task_prefix
!=
""
else
f
"mmlu_
{
subject
}
"
,
else
f
"mmlu_
{
subject
}
"
,
...
...
lm_eval/tasks/mmlu/continuation/_continuation_template_yaml
View file @
741a6a69
...
@@ -8,4 +8,6 @@ doc_to_text: "Question: {{question.strip()}}\nAnswer:"
...
@@ -8,4 +8,6 @@ doc_to_text: "Question: {{question.strip()}}\nAnswer:"
doc_to_choice: "{{choices}}"
doc_to_choice: "{{choices}}"
doc_to_target: "{{answer}}"
doc_to_target: "{{answer}}"
metadata:
metadata:
version: 0.0
version: 1.0
dataset_kwargs:
trust_remote_code: true
lm_eval/tasks/mmlu/continuation/_mmlu.yaml
View file @
741a6a69
group
:
mmlu_continuation
group
:
mmlu_continuation
group_alias
:
mmlu (continuation)
task
:
task
:
-
mmlu_continuation_stem
-
group
:
stem
-
mmlu_continuation_other
task
:
-
mmlu_continuation_social_sciences
-
mmlu_continuation_stem
-
mmlu_continuation_humanities
aggregate_metric_list
:
-
metric
:
acc
weight_by_size
:
True
-
group
:
other
task
:
-
mmlu_continuation_other
aggregate_metric_list
:
-
metric
:
acc
weight_by_size
:
True
-
group
:
social sciences
task
:
-
mmlu_continuation_social_sciences
aggregate_metric_list
:
-
metric
:
acc
weight_by_size
:
True
-
group
:
humanities
task
:
-
mmlu_continuation_humanities
aggregate_metric_list
:
-
metric
:
acc
weight_by_size
:
True
aggregate_metric_list
:
-
metric
:
acc
weight_by_size
:
True
metadata
:
version
:
2
lm_eval/tasks/mmlu/continuation/mmlu_abstract_algebra.yaml
View file @
741a6a69
"
dataset_name"
:
"
abstract_algebra"
"
dataset_name"
:
"
abstract_algebra"
"
description"
:
"
The
following
are
questions
(with
answers)
about
abstract
\
"
description"
:
"
The
following
are
questions
(with
answers)
about
abstract
\
\
algebra.
\n\n
"
\
algebra.
\n\n
"
"
group
"
:
"
mmlu_continuation_stem"
"
tag
"
:
"
mmlu_continuation_stem"
"
include"
:
"
_continuation_template_yaml"
"
include"
:
"
_continuation_template_yaml"
"
task"
:
"
mmlu_continuation_abstract_algebra"
"
task"
:
"
mmlu_continuation_abstract_algebra"
lm_eval/tasks/mmlu/continuation/mmlu_anatomy.yaml
View file @
741a6a69
"
dataset_name"
:
"
anatomy"
"
dataset_name"
:
"
anatomy"
"
description"
:
"
The
following
are
questions
(with
answers)
about
anatomy.
\n\
"
description"
:
"
The
following
are
questions
(with
answers)
about
anatomy.
\n\
\n
"
\n
"
"
group
"
:
"
mmlu_continuation_stem"
"
tag
"
:
"
mmlu_continuation_stem"
"
include"
:
"
_continuation_template_yaml"
"
include"
:
"
_continuation_template_yaml"
"
task"
:
"
mmlu_continuation_anatomy"
"
task"
:
"
mmlu_continuation_anatomy"
lm_eval/tasks/mmlu/continuation/mmlu_astronomy.yaml
View file @
741a6a69
"
dataset_name"
:
"
astronomy"
"
dataset_name"
:
"
astronomy"
"
description"
:
"
The
following
are
questions
(with
answers)
about
astronomy.
\n\
"
description"
:
"
The
following
are
questions
(with
answers)
about
astronomy.
\n\
\n
"
\n
"
"
group
"
:
"
mmlu_continuation_stem"
"
tag
"
:
"
mmlu_continuation_stem"
"
include"
:
"
_continuation_template_yaml"
"
include"
:
"
_continuation_template_yaml"
"
task"
:
"
mmlu_continuation_astronomy"
"
task"
:
"
mmlu_continuation_astronomy"
lm_eval/tasks/mmlu/continuation/mmlu_business_ethics.yaml
View file @
741a6a69
"
dataset_name"
:
"
business_ethics"
"
dataset_name"
:
"
business_ethics"
"
description"
:
"
The
following
are
questions
(with
answers)
about
business
\
"
description"
:
"
The
following
are
questions
(with
answers)
about
business
\
\
ethics.
\n\n
"
\
ethics.
\n\n
"
"
group
"
:
"
mmlu_continuation_other"
"
tag
"
:
"
mmlu_continuation_other"
"
include"
:
"
_continuation_template_yaml"
"
include"
:
"
_continuation_template_yaml"
"
task"
:
"
mmlu_continuation_business_ethics"
"
task"
:
"
mmlu_continuation_business_ethics"
lm_eval/tasks/mmlu/continuation/mmlu_clinical_knowledge.yaml
View file @
741a6a69
"
dataset_name"
:
"
clinical_knowledge"
"
dataset_name"
:
"
clinical_knowledge"
"
description"
:
"
The
following
are
questions
(with
answers)
about
clinical
\
"
description"
:
"
The
following
are
questions
(with
answers)
about
clinical
\
\
knowledge.
\n\n
"
\
knowledge.
\n\n
"
"
group
"
:
"
mmlu_continuation_other"
"
tag
"
:
"
mmlu_continuation_other"
"
include"
:
"
_continuation_template_yaml"
"
include"
:
"
_continuation_template_yaml"
"
task"
:
"
mmlu_continuation_clinical_knowledge"
"
task"
:
"
mmlu_continuation_clinical_knowledge"
lm_eval/tasks/mmlu/continuation/mmlu_college_biology.yaml
View file @
741a6a69
"
dataset_name"
:
"
college_biology"
"
dataset_name"
:
"
college_biology"
"
description"
:
"
The
following
are
questions
(with
answers)
about
college
\
"
description"
:
"
The
following
are
questions
(with
answers)
about
college
\
\
biology.
\n\n
"
\
biology.
\n\n
"
"
group
"
:
"
mmlu_continuation_stem"
"
tag
"
:
"
mmlu_continuation_stem"
"
include"
:
"
_continuation_template_yaml"
"
include"
:
"
_continuation_template_yaml"
"
task"
:
"
mmlu_continuation_college_biology"
"
task"
:
"
mmlu_continuation_college_biology"
lm_eval/tasks/mmlu/continuation/mmlu_college_chemistry.yaml
View file @
741a6a69
"
dataset_name"
:
"
college_chemistry"
"
dataset_name"
:
"
college_chemistry"
"
description"
:
"
The
following
are
questions
(with
answers)
about
college
\
"
description"
:
"
The
following
are
questions
(with
answers)
about
college
\
\
chemistry.
\n\n
"
\
chemistry.
\n\n
"
"
group
"
:
"
mmlu_continuation_stem"
"
tag
"
:
"
mmlu_continuation_stem"
"
include"
:
"
_continuation_template_yaml"
"
include"
:
"
_continuation_template_yaml"
"
task"
:
"
mmlu_continuation_college_chemistry"
"
task"
:
"
mmlu_continuation_college_chemistry"
Prev
1
…
35
36
37
38
39
40
41
42
43
…
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