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
ccca64f7
Unverified
Commit
ccca64f7
authored
Nov 07, 2023
by
Lintang Sutawika
Committed by
GitHub
Nov 07, 2023
Browse files
Merge branch 'big-refactor' into cont-metrics
parents
0a39d055
b7a4ea06
Changes
304
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
13 deletions
+14
-13
lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_us_foreign_policy.yaml
...mlu/flan_n_shot/loglikelihood/mmlu_us_foreign_policy.yaml
+6
-0
lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_virology.yaml
...l/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_virology.yaml
+4
-2
lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_world_religions.yaml
.../mmlu/flan_n_shot/loglikelihood/mmlu_world_religions.yaml
+4
-2
lm_eval/tasks/pubmedqa/preprocess_pubmedqa.py
lm_eval/tasks/pubmedqa/preprocess_pubmedqa.py
+0
-9
No files found.
lm_eval/tasks/mmlu/flan_n_shot/mmlu
_log
_us_foreign_policy.yaml
→
lm_eval/tasks/mmlu/flan_n_shot/
loglikelihood/
mmlu_us_foreign_policy.yaml
View file @
ccca64f7
"
dataset_name"
:
"
us_foreign_policy"
"
dataset_name"
:
"
us_foreign_policy"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
us
foreign
policy.
\n\n
"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
us
\
\
foreign
policy.
\n\n
"
"
group"
:
"
mmlu_flan_n_shot_generative_social_sciences"
"
include"
:
"
_mmlu_flan_loglikelihood_template_yaml"
"
include"
:
"
_mmlu_flan_loglikelihood_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_
loglikelihood
_us_foreign_policy"
"
task"
:
"
mmlu_flan_n_shot_
generative
_us_foreign_policy"
lm_eval/tasks/mmlu/flan_n_shot/mmlu
_log
_virology.yaml
→
lm_eval/tasks/mmlu/flan_n_shot/
loglikelihood/
mmlu_virology.yaml
View file @
ccca64f7
"
dataset_name"
:
"
virology"
"
dataset_name"
:
"
virology"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
virology.
\n\n
"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
virology.
\n\
\n
"
"
group"
:
"
mmlu_flan_n_shot_generative_other"
"
include"
:
"
_mmlu_flan_loglikelihood_template_yaml"
"
include"
:
"
_mmlu_flan_loglikelihood_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_
loglikelihood
_virology"
"
task"
:
"
mmlu_flan_n_shot_
generative
_virology"
lm_eval/tasks/mmlu/flan_n_shot/mmlu
_log
_world_religions.yaml
→
lm_eval/tasks/mmlu/flan_n_shot/
loglikelihood/
mmlu_world_religions.yaml
View file @
ccca64f7
"
dataset_name"
:
"
world_religions"
"
dataset_name"
:
"
world_religions"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
world
religions.
\n\n
"
"
description"
:
"
The
following
are
multiple
choice
questions
(with
answers)
about
world
\
\
religions.
\n\n
"
"
group"
:
"
mmlu_flan_n_shot_generative_humanities"
"
include"
:
"
_mmlu_flan_loglikelihood_template_yaml"
"
include"
:
"
_mmlu_flan_loglikelihood_template_yaml"
"
task"
:
"
mmlu_flan_n_shot_
loglikelihood
_world_religions"
"
task"
:
"
mmlu_flan_n_shot_
generative
_world_religions"
lm_eval/tasks/pubmedqa/preprocess_pubmedqa.py
View file @
ccca64f7
...
@@ -3,12 +3,3 @@ def doc_to_text(doc) -> str:
...
@@ -3,12 +3,3 @@ def doc_to_text(doc) -> str:
return
"Abstract: {}
\n
Question: {}
\n
Answer:"
.
format
(
return
"Abstract: {}
\n
Question: {}
\n
Answer:"
.
format
(
ctxs
,
doc
[
"QUESTION"
],
doc
[
"final_decision"
]
ctxs
,
doc
[
"QUESTION"
],
doc
[
"final_decision"
]
)
)
def
doc_to_target
(
doc
)
->
str
:
return
" {}"
.
format
(
doc
[
"final_decision"
])
def
gold_alias
(
doc
):
dict_to_label
=
{
"yes"
:
0
,
"no"
:
1
,
"maybe"
:
2
}
return
dict_to_label
[
doc
[
"final_decision"
]]
Prev
1
…
12
13
14
15
16
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