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
c3764d2c
Commit
c3764d2c
authored
Aug 31, 2023
by
lintangsutawika
Browse files
update to generate bbh configs
parent
525f1d15
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
lm_eval/benchmarks/flan/prompt_templates/flan_anli.yaml
lm_eval/benchmarks/flan/prompt_templates/flan_anli.yaml
+9
-9
lm_eval/tasks/bbh/_generate_configs.py
lm_eval/tasks/bbh/_generate_configs.py
+1
-1
No files found.
lm_eval/benchmarks/flan/prompt_templates/flan_anli.yaml
View file @
c3764d2c
...
@@ -2,28 +2,28 @@
...
@@ -2,28 +2,28 @@
prompts
:
prompts
:
"
template-0"
:
"
template-0"
:
doc_to_text
:
"
{{context}}
\n\n
Choose
your
answer:
based
on
the
paragraph
above
can
we
conclude
that
\"
{{hypothesis}}
\"
?
\n\n
OPTIONS:
\n
-
Yes
\n
-
It's
impossible
to
say
\n
-
No
\n
I
think
the
answer
is"
doc_to_text
:
"
{{context}}
\n\n
Choose
your
answer:
based
on
the
paragraph
above
can
we
conclude
that
\"
{{hypothesis}}
\"
?
\n\n
OPTIONS:
\n
-
Yes
\n
-
It's
impossible
to
say
\n
-
No
\n
I
think
the
answer
is"
doc_to_target
:
"
{{[
'
Yes
'
,
'
It
\
's
impossible
to
say
'
,
'
No
'
][label]}}"
doc_to_target
:
"
"
"
{{[
"
Yes
"
,
"
It's impossible to say
"
,
"
No
"
][label]}}"
""
"
template-1"
:
"
template-1"
:
doc_to_text
:
"
{{context}}
\n\n
Based
on
that
paragraph
can
we
conclude
that
this
sentence
is
true?
\n
{{hypothesis}}
\n\n
OPTIONS:
\n
-
Yes
\n
-
It's
impossible
to
say
\n
-
No"
doc_to_text
:
"
{{context}}
\n\n
Based
on
that
paragraph
can
we
conclude
that
this
sentence
is
true?
\n
{{hypothesis}}
\n\n
OPTIONS:
\n
-
Yes
\n
-
It's
impossible
to
say
\n
-
No"
doc_to_target
:
"
{{[
'
Yes
'
,
'
It
\
's
impossible
to
say
'
,
'
No
'
][label]}}"
doc_to_target
:
"
{{[
"
Yes
"
,
"
It's impossible to say
"
,
"
No
"
][label]}}"
"
template-2"
:
"
template-2"
:
doc_to_text
:
"
{{context}}
\n\n
Can
we
draw
the
following
conclusion?
\n
{{hypothesis}}
\n\n
OPTIONS:
\n
-
Yes
\n
-
It's
impossible
to
say
\n
-
No"
doc_to_text
:
"
{{context}}
\n\n
Can
we
draw
the
following
conclusion?
\n
{{hypothesis}}
\n\n
OPTIONS:
\n
-
Yes
\n
-
It's
impossible
to
say
\n
-
No"
doc_to_target
:
"
{{[
'
Yes
'
,
'
It
\
's
impossible
to
say
'
,
'
No
'
][label]}}"
doc_to_target
:
"
{{[
"
Yes
"
,
"
It's impossible to say
"
,
"
No
"
][label]}}"
"
template-3"
:
"
template-3"
:
doc_to_text
:
"
{{context}}
\n
Does
this
next
sentence
follow,
given
the
preceding
text?
\n
{{hypothesis}}
\n\n
OPTIONS:
\n
-
Yes
\n
-
It's
impossible
to
say
\n
-
No"
doc_to_text
:
"
{{context}}
\n
Does
this
next
sentence
follow,
given
the
preceding
text?
\n
{{hypothesis}}
\n\n
OPTIONS:
\n
-
Yes
\n
-
It's
impossible
to
say
\n
-
No"
doc_to_target
:
"
{{[
'
Yes
'
,
'
It
\
's
impossible
to
say
'
,
'
No
'
][label]}}"
doc_to_target
:
"
{{[
"
Yes
"
,
"
It's impossible to say
"
,
"
No
"
][label]}}"
"
template-4"
:
"
template-4"
:
doc_to_text
:
"
{{context}}
\n
Can
we
infer
the
following?
\n
{{hypothesis}}
\n\n
OPTIONS:
\n
-
Yes
\n
-
It's
impossible
to
say
\n
-
No
\n
The
answer
is:"
doc_to_text
:
"
{{context}}
\n
Can
we
infer
the
following?
\n
{{hypothesis}}
\n\n
OPTIONS:
\n
-
Yes
\n
-
It's
impossible
to
say
\n
-
No
\n
The
answer
is:"
doc_to_target
:
"
{{[
'
Yes
'
,
'
It
\
's
impossible
to
say
'
,
'
No
'
][label]}}"
doc_to_target
:
"
{{[
"
Yes
"
,
"
It's impossible to say
"
,
"
No
"
][label]}}"
"
template-5"
:
"
template-5"
:
doc_to_text
:
"
Read
the
following
paragraph
and
determine
if
the
hypothesis
is
true:
\n\n
{{context}}
\n\n
OPTIONS:
\n
-
Yes
\n
-
It's
impossible
to
say
\n
-
No
\n
Hypothesis:
{{hypothesis}}
\n\n\n
"
doc_to_text
:
"
Read
the
following
paragraph
and
determine
if
the
hypothesis
is
true:
\n\n
{{context}}
\n\n
OPTIONS:
\n
-
Yes
\n
-
It's
impossible
to
say
\n
-
No
\n
Hypothesis:
{{hypothesis}}
\n\n\n
"
doc_to_target
:
"
{{[
'
Yes
'
,
'
It
\
's
impossible
to
say
'
,
'
No
'
][label]}}"
doc_to_target
:
"
{{[
"
Yes
"
,
"
It's impossible to say
"
,
"
No
"
][label]}}"
"
template-6"
:
"
template-6"
:
doc_to_text
:
"
Read
the
text
and
determine
if
the
sentence
is
true
(see
options
at
the
end):
\n\n
{{context}}
\n\n
Sentence:
{{hypothesis}}
\n
OPTIONS:
\n
-
Yes
\n
-
It's
impossible
to
say
\n
-
No"
doc_to_text
:
"
Read
the
text
and
determine
if
the
sentence
is
true
(see
options
at
the
end):
\n\n
{{context}}
\n\n
Sentence:
{{hypothesis}}
\n
OPTIONS:
\n
-
Yes
\n
-
It's
impossible
to
say
\n
-
No"
doc_to_target
:
"
{{[
'
Yes
'
,
'
It
\
's
impossible
to
say
'
,
'
No
'
][label]}}"
doc_to_target
:
"
{{[
"
Yes
"
,
"
It's impossible to say
"
,
"
No
"
][label]}}"
"
template-7"
:
"
template-7"
:
doc_to_text
:
"
Can
we
draw
the
following
hypothesis
from
the
context
(see
options)?
\n\n
Context:
\n\n
{{context}}
\n\n
Hypothesis:
{{hypothesis}}
\n
OPTIONS:
\n
-
Yes
\n
-
It's
impossible
to
say
\n
-
No"
doc_to_text
:
"
Can
we
draw
the
following
hypothesis
from
the
context
(see
options)?
\n\n
Context:
\n\n
{{context}}
\n\n
Hypothesis:
{{hypothesis}}
\n
OPTIONS:
\n
-
Yes
\n
-
It's
impossible
to
say
\n
-
No"
doc_to_target
:
"
{{[
'
Yes
'
,
'
It
\
's
impossible
to
say
'
,
'
No
'
][label]}}"
doc_to_target
:
"
{{[
"
Yes
"
,
"
It's impossible to say
"
,
"
No
"
][label]}}"
"
template-8"
:
"
template-8"
:
doc_to_text
:
"
Choose
from
options:
Determine
if
the
sentence
is
true
based
on
the
text
below:
\n
{{hypothesis}}
\n\n
{{context}}
\n
OPTIONS:
\n
-
Yes
\n
-
It's
impossible
to
say
\n
-
No"
doc_to_text
:
"
Choose
from
options:
Determine
if
the
sentence
is
true
based
on
the
text
below:
\n
{{hypothesis}}
\n\n
{{context}}
\n
OPTIONS:
\n
-
Yes
\n
-
It's
impossible
to
say
\n
-
No"
doc_to_target
:
"
{{[
'
Yes
'
,
'
It
\
's
impossible
to
say
'
,
'
No
'
][label]}}"
doc_to_target
:
"
{{[
"
Yes
"
,
"
It's impossible to say
"
,
"
No
"
][label]}}"
lm_eval/tasks/bbh/_generate_configs.py
View file @
c3764d2c
...
@@ -26,4 +26,4 @@ def main() -> None:
...
@@ -26,4 +26,4 @@ def main() -> None:
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
main
()
main
()
\ No newline at end of file
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