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
a5f5d92b
Commit
a5f5d92b
authored
May 15, 2023
by
lintangsutawika
Browse files
adjust super glue cb
parent
600918bb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
26 deletions
+27
-26
lm_eval/tasks/super_glue/cb/base.yaml
lm_eval/tasks/super_glue/cb/base.yaml
+0
-16
lm_eval/tasks/super_glue/cb/based_on_previous_passage.yaml
lm_eval/tasks/super_glue/cb/based_on_previous_passage.yaml
+15
-4
lm_eval/tasks/super_glue/cb/can_we_infer.yaml
lm_eval/tasks/super_glue/cb/can_we_infer.yaml
+6
-3
lm_eval/tasks/super_glue/cb/claim_true_false_inconclusive.yaml
...al/tasks/super_glue/cb/claim_true_false_inconclusive.yaml
+6
-3
No files found.
lm_eval/tasks/super_glue/cb/base.yaml
deleted
100644 → 0
View file @
600918bb
group
:
-
t0-eval
-
super-glue
task
:
super_glue_cb_yaml
dataset_path
:
super_glue
dataset_name
:
cb
training_split
:
train
validation_split
:
validation
doc_to_text
:
"
Suppose
{{premise}}
Can
we
infer
that
\"
{{hypothesis}}
\"
?
Yes,
no,
or
maybe?"
doc_to_target
:
"
{%
set
answer_choices
=
['Yes',
'No',
'Maybe']
%}{{answer_choices[label]}}"
metric_list
:
-
metric
:
exact_match
aggregation
:
mean
higher_is_better
:
true
ignore_case
:
true
ignore_punctuation
:
true
lm_eval/tasks/super_glue/cb/based_on_previous_passage.yaml
View file @
a5f5d92b
!task
name
:
based on the previous passage
group
:
-
super-glue-cb
task
:
based on the previous passage
reference
:
"
Adapted
from
the
BoolQ
prompts
in
Schick
&
Sch
\xFC
tze
2021."
doc_to_text
:
'
{{premise}}
Based
on
the
previous
passage,
is
it
true
that
"{{hypothesis}}"?
Yes,
no,
or
maybe?'
doc_to_target
:
'
{%
set
answer_choices
=
['Yes', 'No', 'Maybe'] %}{{answer_choices[label]}}'
\ No newline at end of file
dataset_path
:
super_glue
dataset_name
:
cb
training_split
:
train
validation_split
:
validation
doc_to_text
:
"
{{premise}}
Based
on
the
previous
passage,
is
it
true
that
\"
{{hypothesis}}
\"
?
Yes,
no,
or
maybe?"
doc_to_target
:
"
{%
set
answer_choices
=
['Yes',
'No',
'Maybe']
%}{{answer_choices[label]}}"
metric_list
:
-
metric
:
exact_match
aggregation
:
mean
higher_is_better
:
true
ignore_case
:
true
ignore_punctuation
:
true
lm_eval/tasks/super_glue/cb/can_we_infer.yaml
View file @
a5f5d92b
name
:
can we infer
group
:
-
super-glue-cb
include
:
based_on_previous_passage.yaml
task
:
can we infer
reference
:
Webson & Pavlick
2021
doc_to_text
:
'
Suppose
{{premise}}
Can
we
infer
that
"{{hypothesis}}"?
Yes,
no,
or
maybe?
'
doc_to_target
:
'
{%
set
answer_choices
=
['Yes', 'No', 'Maybe'] %}{{answer_choices[label]}}
'
doc_to_text
:
"
Suppose
{{premise}}
Can
we
infer
that
\
"
{{hypothesis}}
\
"
?
Yes,
no,
or
maybe?
"
doc_to_target
:
"
{%
set
answer_choices
=
['Yes',
'No',
'Maybe']
%}{{answer_choices[label]}}
"
lm_eval/tasks/super_glue/cb/claim_true_false_inconclusive.yaml
View file @
a5f5d92b
name
:
claim
true
/false/inconclusive
group
:
-
super-glue-cb
include
:
based_on_previous_passage.yaml
task
:
claim
true
/false/inconclusive
reference
:
Sanh et al.
2021
doc_to_text
:
'
{{premise}}
Based
on
that
information,
is
the
claim:
"{{hypothesis}}"
{{
"true
"}},
{{
"false"
}}
,
or
{{
"inconclusive
"}}?'
doc_to_target
:
'
{%
set
answer_choices
=
['True', 'False', 'Inconclusive'] %}{{answer_choices[label]}}
'
doc_to_text
:
"
{{premise}}
Based
on
that
information,
is
the
claim:
\
"
{{hypothesis}}
\
"
\
"
true
\"
,
\
"
false
\
"
,
or
\
"
inconclusive
\"
?"
doc_to_target
:
"
{%
set
answer_choices
=
['True',
'False',
'Inconclusive']
%}{{answer_choices[label]}}
"
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