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
7e875dcf
Commit
7e875dcf
authored
Aug 29, 2023
by
lintangsutawika
Browse files
moved templates, edit templates
parent
db79d927
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
48 additions
and
85 deletions
+48
-85
lm_eval/benchmarks/flan/flan_cot_yaml
lm_eval/benchmarks/flan/flan_cot_yaml
+0
-0
lm_eval/benchmarks/flan/flan_held_in.yaml
lm_eval/benchmarks/flan/flan_held_in.yaml
+0
-37
lm_eval/benchmarks/flan/prompt_templates/flan_anli.yaml
lm_eval/benchmarks/flan/prompt_templates/flan_anli.yaml
+18
-18
lm_eval/benchmarks/flan/prompt_templates/flan_boolq.yaml
lm_eval/benchmarks/flan/prompt_templates/flan_boolq.yaml
+20
-20
lm_eval/benchmarks/flan/prompt_templates/flan_rte.yaml
lm_eval/benchmarks/flan/prompt_templates/flan_rte.yaml
+9
-9
lm_eval/benchmarks/flan/yaml_templates/cot_template_yaml
lm_eval/benchmarks/flan/yaml_templates/cot_template_yaml
+1
-1
lm_eval/benchmarks/flan/yaml_templates/held_in_template_yaml
lm_eval/benchmarks/flan/yaml_templates/held_in_template_yaml
+0
-0
No files found.
lm_eval/benchmarks/flan/cot_yaml
→
lm_eval/benchmarks/flan/
flan_
cot_yaml
View file @
7e875dcf
File moved
lm_eval/benchmarks/flan/flan_held_in.yaml
deleted
100644 → 0
View file @
db79d927
group
:
flan_held_in
task
:
-
include
:
held_in_template_yaml
dataset_path
:
super_glue
dataset_name
:
boolq
use_prompt
:
prompt_templates/flan_boolq.yaml:*
validation_split
:
validation
-
include
:
held_in_template_yaml
dataset_path
:
super_glue
dataset_name
:
rte
use_prompt
:
prompt_templates/flan_rte.yaml:*
validation_split
:
validation
-
include
:
held_in_template_yaml
task
:
anli_r1
dataset_path
:
anli
use_prompt
:
prompt_templates/flan_anli.yaml:*
validation_split
:
dev_r1
-
include
:
held_in_template_yaml
task
:
anli_r2
dataset_path
:
anli
use_prompt
:
prompt_templates/flan_anli.yaml:*
validation_split
:
dev_r2
-
include
:
held_in_template_yaml
task
:
anli_r3
dataset_path
:
anli
use_prompt
:
prompt_templates/flan_anli.yaml:*
validation_split
:
dev_r3
# - include: held_in_template_yaml
# task: ai2_arc
# dataset_path: ARC-Easy
# use_prompt: local:*
# validation_split: validation
# - include: held_in_template_yaml
# task: ai2_arc
# dataset_path: ARC-Challange
# use_prompt: local:*
# validation_split: validation
lm_eval/benchmarks/flan/prompt_templates/flan_anli.yaml
View file @
7e875dcf
# Flan Prompt Templates
# Flan Prompt Templates
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
:
"
{{
answer
}}"
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
:
"
{{
answer
}}"
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
:
"
{{
answer
}}"
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
:
"
{{
answer
}}"
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
:
"
{{
answer
}}"
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
:
"
{{
answer
}}"
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
:
"
{{
answer
}}"
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
:
"
{{
answer
}}"
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
:
"
{{
answer
}}"
doc_to_target
:
"
{{
[['Yes',
'It
\
's
impossible
to
say',
'No']][label]
}}"
lm_eval/benchmarks/flan/prompt_templates/flan_boolq.yaml
View file @
7e875dcf
# Flan Prompt Templates
# Flan Prompt Templates
prompts
:
prompts
:
"
template-0"
:
"
template-0"
:
doc_to_text
:
"
{{
text
}}
\n\n
Can
we
conclude
that
{{question}}?
\n\n
OPTIONS:
\n
-
no
\n
-
yes"
doc_to_text
:
"
{{
passage
}}
\n\n
Can
we
conclude
that
{{question}}?
\n\n
OPTIONS:
\n
-
no
\n
-
yes"
doc_to_target
:
"
{{
answer
}}"
doc_to_target
:
"
{{
['no',
'yes'][label]
}}"
"
template-1"
:
"
template-1"
:
doc_to_text
:
"
{{
text
}}
\n\n
Is
it
true
that
{{question}}?
\n\n
OPTIONS:
\n
-
no
\n
-
yes"
doc_to_text
:
"
{{
passage
}}
\n\n
Is
it
true
that
{{question}}?
\n\n
OPTIONS:
\n
-
no
\n
-
yes"
doc_to_target
:
"
{{
answer
}}"
doc_to_target
:
"
{{
['no',
'yes'][label]
}}"
"
template-2"
:
"
template-2"
:
doc_to_text
:
"
{{
text
}}
\n\n
{{question}}?
\n\n
OPTIONS:
\n
-
no
\n
-
yes"
doc_to_text
:
"
{{
passage
}}
\n\n
{{question}}?
\n\n
OPTIONS:
\n
-
no
\n
-
yes"
doc_to_target
:
"
{{
answer
}}"
doc_to_target
:
"
{{
['no',
'yes'][label]
}}"
"
template-3"
:
"
template-3"
:
doc_to_text
:
"
Text:
{{
text
}}
\n\n
Question:
{{question}}?
\n\n
OPTIONS:
\n
-
no
\n
-
yes"
doc_to_text
:
"
Text:
{{
passage
}}
\n\n
Question:
{{question}}?
\n\n
OPTIONS:
\n
-
no
\n
-
yes"
doc_to_target
:
"
{{
answer
}}"
doc_to_target
:
"
{{
['no',
'yes'][label]
}}"
"
template-4"
:
"
template-4"
:
doc_to_text
:
"
{{
text
}}
\n\n
What's
the
best
answer
to
this
question:
{{question}}?
\n\n
OPTIONS:
\n
-
no
\n
-
yes"
doc_to_text
:
"
{{
passage
}}
\n\n
What's
the
best
answer
to
this
question:
{{question}}?
\n\n
OPTIONS:
\n
-
no
\n
-
yes"
doc_to_target
:
"
{{
answer
}}"
doc_to_target
:
"
{{
['no',
'yes'][label]
}}"
"
template-5"
:
"
template-5"
:
doc_to_text
:
"
{{
text
}}
\n
Based
on
the
above
text
what's
the
best
answer
to
this
question:
{{question}}?
\n\n
OPTIONS:
\n
-
no
\n
-
yes"
doc_to_text
:
"
{{
passage
}}
\n
Based
on
the
above
text
what's
the
best
answer
to
this
question:
{{question}}?
\n\n
OPTIONS:
\n
-
no
\n
-
yes"
doc_to_target
:
"
{{
answer
}}"
doc_to_target
:
"
{{
['no',
'yes'][label]
}}"
"
template-6"
:
"
template-6"
:
doc_to_text
:
"
{{
text
}}
\n
Answer
this
question
making
sure
that
the
answer
is
supposed
by
the
text:
{{question}}?
\n\n
OPTIONS:
\n
-
no
\n
-
yes"
doc_to_text
:
"
{{
passage
}}
\n
Answer
this
question
making
sure
that
the
answer
is
supposed
by
the
text:
{{question}}?
\n\n
OPTIONS:
\n
-
no
\n
-
yes"
doc_to_target
:
"
{{
answer
}}"
doc_to_target
:
"
{{
['no',
'yes'][label]
}}"
"
template-7"
:
"
template-7"
:
doc_to_text
:
"
{{
text
}}
\n\n
Is
the
following
statement
correct
based
on
the
text
\n\n
{{question}}
\n\n
OPTIONS:
\n
-
no
\n
-
yes"
doc_to_text
:
"
{{
passage
}}
\n\n
Is
the
following
statement
correct
based
on
the
text
\n\n
{{question}}
\n\n
OPTIONS:
\n
-
no
\n
-
yes"
doc_to_target
:
"
{{
answer
}}"
doc_to_target
:
"
{{
['no',
'yes'][label]
}}"
"
template-8"
:
"
template-8"
:
doc_to_text
:
"
{{title}}
\n\n
{{
text
}}
\n\n
Is
this
statement
correct
\"
{{question}}
\"
?
\n\n
OPTIONS:
\n
-
no
\n
-
yes"
doc_to_text
:
"
{{title}}
\n\n
{{
passage
}}
\n\n
Is
this
statement
correct
\"
{{question}}
\"
?
\n\n
OPTIONS:
\n
-
no
\n
-
yes"
doc_to_target
:
"
{{
answer
}}"
doc_to_target
:
"
{{
['no',
'yes'][label]
}}"
"
template-9"
:
"
template-9"
:
doc_to_text
:
"
Is
it
true
that
{{question}}
based
on
the
following
text?
\n\n
{{
text
}}
\n\n
OPTIONS:
\n
-
no
\n
-
yes"
doc_to_text
:
"
Is
it
true
that
{{question}}
based
on
the
following
text?
\n\n
{{
passage
}}
\n\n
OPTIONS:
\n
-
no
\n
-
yes"
doc_to_target
:
"
{{
answer
}}"
doc_to_target
:
"
{{
['no',
'yes'][label]
}}"
lm_eval/benchmarks/flan/prompt_templates/flan_rte.yaml
View file @
7e875dcf
...
@@ -2,28 +2,28 @@
...
@@ -2,28 +2,28 @@
prompts
:
prompts
:
"
template-0"
:
"
template-0"
:
doc_to_text
:
"
{{premise}}
\n\n
Question
with
options:
Based
on
the
paragraph
above
can
we
conclude
that
\"
{{hypothesis}}
\"
?
\n\n
OPTIONS:
\n
-
yes
\n
-
no"
doc_to_text
:
"
{{premise}}
\n\n
Question
with
options:
Based
on
the
paragraph
above
can
we
conclude
that
\"
{{hypothesis}}
\"
?
\n\n
OPTIONS:
\n
-
yes
\n
-
no"
doc_to_target
:
"
{{
answer
}}"
doc_to_target
:
"
{{
[['yes',
'no']][label]
}}"
"
template-1"
:
"
template-1"
:
doc_to_text
:
"
{{premise}}
\n\n
Based
on
that
paragraph
can
we
conclude
that
the
sentence
below
is
true?
\n
{{hypothesis}}
\n\n
OPTIONS:
\n
-
yes
\n
-
no"
doc_to_text
:
"
{{premise}}
\n\n
Based
on
that
paragraph
can
we
conclude
that
the
sentence
below
is
true?
\n
{{hypothesis}}
\n\n
OPTIONS:
\n
-
yes
\n
-
no"
doc_to_target
:
"
{{
answer
}}"
doc_to_target
:
"
{{
[['yes',
'no']][label]
}}"
"
template-2"
:
"
template-2"
:
doc_to_text
:
"
{{premise}}
\n\n
Q
with
options:
Can
we
draw
the
following
conclusion?
\n
{{hypothesis}}
\n\n
OPTIONS:
\n
-
yes
\n
-
no"
doc_to_text
:
"
{{premise}}
\n\n
Q
with
options:
Can
we
draw
the
following
conclusion?
\n
{{hypothesis}}
\n\n
OPTIONS:
\n
-
yes
\n
-
no"
doc_to_target
:
"
{{
answer
}}"
doc_to_target
:
"
{{
[['yes',
'no']][label]
}}"
"
template-3"
:
"
template-3"
:
doc_to_text
:
"
{{premise}}
\n
Does
this
next
sentence
follow,
given
the
preceding
text?
\n
{{hypothesis}}
\n\n
OPTIONS:
\n
-
yes
\n
-
no"
doc_to_text
:
"
{{premise}}
\n
Does
this
next
sentence
follow,
given
the
preceding
text?
\n
{{hypothesis}}
\n\n
OPTIONS:
\n
-
yes
\n
-
no"
doc_to_target
:
"
{{
answer
}}"
doc_to_target
:
"
{{
[['yes',
'no']][label]
}}"
"
template-4"
:
"
template-4"
:
doc_to_text
:
"
{{premise}}
\n
OPTIONS:
\n
-
yes
\n
-
no
\n
Question:
Can
we
infer
the
following?
\n
{{hypothesis}}"
doc_to_text
:
"
{{premise}}
\n
OPTIONS:
\n
-
yes
\n
-
no
\n
Question:
Can
we
infer
the
following?
\n
{{hypothesis}}"
doc_to_target
:
"
{{
answer
}}"
doc_to_target
:
"
{{
[['yes',
'no']][label]
}}"
"
template-5"
:
"
template-5"
:
doc_to_text
:
"
Read
the
following
paragraph
and
determine
if
the
hypothesis
is
true.
Select
from
options
at
the
end:
\n\n
{{premise}}
\n\n
Hypothesis:
{{hypothesis}}
\n
OPTIONS:
\n
-
yes
\n
-
no
\n
The
answer
is"
doc_to_text
:
"
Read
the
following
paragraph
and
determine
if
the
hypothesis
is
true.
Select
from
options
at
the
end:
\n\n
{{premise}}
\n\n
Hypothesis:
{{hypothesis}}
\n
OPTIONS:
\n
-
yes
\n
-
no
\n
The
answer
is"
doc_to_target
:
"
{{
answer
}}"
doc_to_target
:
"
{{
[['yes',
'no']][label]
}}"
"
template-6"
:
"
template-6"
:
doc_to_text
:
"
Read
the
text
and
determine
if
the
sentence
is
true:
\n\n
{{premise}}
\n\n
Sentence:
{{hypothesis}}
\n
OPTIONS:
\n
-
yes
\n
-
no
\n
A:"
doc_to_text
:
"
Read
the
text
and
determine
if
the
sentence
is
true:
\n\n
{{premise}}
\n\n
Sentence:
{{hypothesis}}
\n
OPTIONS:
\n
-
yes
\n
-
no
\n
A:"
doc_to_target
:
"
{{
answer
}}"
doc_to_target
:
"
{{
[['yes',
'no']][label]
}}"
"
template-7"
:
"
template-7"
:
doc_to_text
:
"
Question
with
options:
can
we
draw
the
following
hypothesis
from
the
context?
\n\n
Context:
\n\n
{{premise}}
\n\n
Hypothesis:
{{hypothesis}}
\n
OPTIONS:
\n
-
yes
\n
-
no
\n
A:"
doc_to_text
:
"
Question
with
options:
can
we
draw
the
following
hypothesis
from
the
context?
\n\n
Context:
\n\n
{{premise}}
\n\n
Hypothesis:
{{hypothesis}}
\n
OPTIONS:
\n
-
yes
\n
-
no
\n
A:"
doc_to_target
:
"
{{
answer
}}"
doc_to_target
:
"
{{
[['yes',
'no']][label]
}}"
"
template-8"
:
"
template-8"
:
doc_to_text
:
"
Determine
if
the
sentence
is
true
based
on
the
text
below.
Choose
from
options.
\n
{{hypothesis}}
\n\n
{{premise}}
\n
OPTIONS:
\n
-
yes
\n
-
no"
doc_to_text
:
"
Determine
if
the
sentence
is
true
based
on
the
text
below.
Choose
from
options.
\n
{{hypothesis}}
\n\n
{{premise}}
\n
OPTIONS:
\n
-
yes
\n
-
no"
doc_to_target
:
"
{{
answer
}}"
doc_to_target
:
"
{{
[['yes',
'no']][label]
}}"
lm_eval/benchmarks/flan/cot_template_yaml
→
lm_eval/benchmarks/flan/
yaml_templates/
cot_template_yaml
View file @
7e875dcf
group:
zero-shot
-cot
group:
flan
-cot
output_type: greedy_until
output_type: greedy_until
validation_split: validation
validation_split: validation
doc_to_target: "{{answer}}"
doc_to_target: "{{answer}}"
...
...
lm_eval/benchmarks/flan/held_in_template_yaml
→
lm_eval/benchmarks/flan/
yaml_templates/
held_in_template_yaml
View file @
7e875dcf
File moved
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