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
e1ae8a2f
Commit
e1ae8a2f
authored
Nov 26, 2023
by
Herbie Bradley
Browse files
Merge remote-tracking branch 'origin/big-refactor' into calibration
parents
50e99bd7
30936bc7
Changes
1000
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
111 additions
and
0 deletions
+111
-0
lm_eval/tasks/bbh/flan_cot_zeroshot/navigate.yaml
lm_eval/tasks/bbh/flan_cot_zeroshot/navigate.yaml
+5
-0
lm_eval/tasks/bbh/flan_cot_zeroshot/object_counting.yaml
lm_eval/tasks/bbh/flan_cot_zeroshot/object_counting.yaml
+5
-0
lm_eval/tasks/bbh/flan_cot_zeroshot/penguins_in_a_table.yaml
lm_eval/tasks/bbh/flan_cot_zeroshot/penguins_in_a_table.yaml
+5
-0
lm_eval/tasks/bbh/flan_cot_zeroshot/reasoning_about_colored_objects.yaml
...bh/flan_cot_zeroshot/reasoning_about_colored_objects.yaml
+5
-0
lm_eval/tasks/bbh/flan_cot_zeroshot/ruin_names.yaml
lm_eval/tasks/bbh/flan_cot_zeroshot/ruin_names.yaml
+5
-0
lm_eval/tasks/bbh/flan_cot_zeroshot/salient_translation_error_detection.yaml
...lan_cot_zeroshot/salient_translation_error_detection.yaml
+5
-0
lm_eval/tasks/bbh/flan_cot_zeroshot/snarks.yaml
lm_eval/tasks/bbh/flan_cot_zeroshot/snarks.yaml
+5
-0
lm_eval/tasks/bbh/flan_cot_zeroshot/sports_understanding.yaml
...val/tasks/bbh/flan_cot_zeroshot/sports_understanding.yaml
+5
-0
lm_eval/tasks/bbh/flan_cot_zeroshot/temporal_sequences.yaml
lm_eval/tasks/bbh/flan_cot_zeroshot/temporal_sequences.yaml
+5
-0
lm_eval/tasks/bbh/flan_cot_zeroshot/tracking_shuffled_objects_five_objects.yaml
..._cot_zeroshot/tracking_shuffled_objects_five_objects.yaml
+5
-0
lm_eval/tasks/bbh/flan_cot_zeroshot/tracking_shuffled_objects_seven_objects.yaml
...cot_zeroshot/tracking_shuffled_objects_seven_objects.yaml
+5
-0
lm_eval/tasks/bbh/flan_cot_zeroshot/tracking_shuffled_objects_three_objects.yaml
...cot_zeroshot/tracking_shuffled_objects_three_objects.yaml
+5
-0
lm_eval/tasks/bbh/flan_cot_zeroshot/web_of_lies.yaml
lm_eval/tasks/bbh/flan_cot_zeroshot/web_of_lies.yaml
+5
-0
lm_eval/tasks/bbh/flan_cot_zeroshot/word_sorting.yaml
lm_eval/tasks/bbh/flan_cot_zeroshot/word_sorting.yaml
+5
-0
lm_eval/tasks/bbh/flan_fewshot/_flan_fewshot_template_yaml
lm_eval/tasks/bbh/flan_fewshot/_flan_fewshot_template_yaml
+16
-0
lm_eval/tasks/bbh/flan_fewshot/boolean_expressions.yaml
lm_eval/tasks/bbh/flan_fewshot/boolean_expressions.yaml
+5
-0
lm_eval/tasks/bbh/flan_fewshot/causal_judgement.yaml
lm_eval/tasks/bbh/flan_fewshot/causal_judgement.yaml
+5
-0
lm_eval/tasks/bbh/flan_fewshot/date_understanding.yaml
lm_eval/tasks/bbh/flan_fewshot/date_understanding.yaml
+5
-0
lm_eval/tasks/bbh/flan_fewshot/disambiguation_qa.yaml
lm_eval/tasks/bbh/flan_fewshot/disambiguation_qa.yaml
+5
-0
lm_eval/tasks/bbh/flan_fewshot/dyck_languages.yaml
lm_eval/tasks/bbh/flan_fewshot/dyck_languages.yaml
+5
-0
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/bbh/flan_cot_zeroshot/navigate.yaml
0 → 100644
View file @
e1ae8a2f
"
dataset_name"
:
"
navigate"
"
description"
:
"
Given
a
series
of
navigation
instructions,
determine
whether
one
would
end
up
back
at
the
starting
point.
\n\n
"
"
doc_to_text"
:
"
Q:
{{input}}
\n
A:
Let's
think
step
by
step.
\n
"
"
include"
:
"
_flan_cot_zeroshot_template_yaml"
"
task"
:
"
bbh_flan_cot_zeroshot_navigate"
lm_eval/tasks/bbh/flan_cot_zeroshot/object_counting.yaml
0 → 100644
View file @
e1ae8a2f
"
dataset_name"
:
"
object_counting"
"
description"
:
"
Questions
that
involve
enumerating
objects
and
asking
the
model
to
count
them.
\n\n
"
"
doc_to_text"
:
"
Q:
{{input}}
\n
A:
Let's
think
step
by
step.
\n
"
"
include"
:
"
_flan_cot_zeroshot_template_yaml"
"
task"
:
"
bbh_flan_cot_zeroshot_object_counting"
lm_eval/tasks/bbh/flan_cot_zeroshot/penguins_in_a_table.yaml
0 → 100644
View file @
e1ae8a2f
"
dataset_name"
:
"
penguins_in_a_table"
"
description"
:
"
Answer
questions
about
a
table
of
penguins
and
their
attributes.
\n\n
"
"
doc_to_text"
:
"
Q:
{{input}}
\n
A:
Let's
think
step
by
step.
\n
"
"
include"
:
"
_flan_cot_zeroshot_template_yaml"
"
task"
:
"
bbh_flan_cot_zeroshot_penguins_in_a_table"
lm_eval/tasks/bbh/flan_cot_zeroshot/reasoning_about_colored_objects.yaml
0 → 100644
View file @
e1ae8a2f
"
dataset_name"
:
"
reasoning_about_colored_objects"
"
description"
:
"
Answer
extremely
simple
questions
about
the
colors
of
objects
on
a
surface.
\n\n
"
"
doc_to_text"
:
"
Q:
{{input}}
\n
A:
Let's
think
step
by
step.
\n
"
"
include"
:
"
_flan_cot_zeroshot_template_yaml"
"
task"
:
"
bbh_flan_cot_zeroshot_reasoning_about_colored_objects"
lm_eval/tasks/bbh/flan_cot_zeroshot/ruin_names.yaml
0 → 100644
View file @
e1ae8a2f
"
dataset_name"
:
"
ruin_names"
"
description"
:
"
Select
the
humorous
edit
that
'ruins'
the
input
movie
or
musical
artist
name.
\n\n
"
"
doc_to_text"
:
"
Q:
{{input}}
\n
A:
Let's
think
step
by
step.
\n
"
"
include"
:
"
_flan_cot_zeroshot_template_yaml"
"
task"
:
"
bbh_flan_cot_zeroshot_ruin_names"
lm_eval/tasks/bbh/flan_cot_zeroshot/salient_translation_error_detection.yaml
0 → 100644
View file @
e1ae8a2f
"
dataset_name"
:
"
salient_translation_error_detection"
"
description"
:
"
Detect
the
type
of
error
in
an
English
translation
of
a
German
source
sentence.
\n\n
"
"
doc_to_text"
:
"
Q:
{{input}}
\n
A:
Let's
think
step
by
step.
\n
"
"
include"
:
"
_flan_cot_zeroshot_template_yaml"
"
task"
:
"
bbh_flan_cot_zeroshot_salient_translation_error_detection"
lm_eval/tasks/bbh/flan_cot_zeroshot/snarks.yaml
0 → 100644
View file @
e1ae8a2f
"
dataset_name"
:
"
snarks"
"
description"
:
"
Determine
which
of
two
sentences
is
sarcastic.
\n\n
According
to
Cambridge
University
Dictionary,
sarcasm
is
\"
the
use
of
remarks
that
clearly
mean
the
opposite
of
what
they
say,
made
in
order
to
hurt
someone's
feelings
or
to
criticize
something
in
a
humorous
way.
\"
Sarcastic
sentences
often
contain
satirical
or
ironic
utterances,
hyperboles,
ambivalent
or
witty
remarks.
\n\n
"
"
doc_to_text"
:
"
Q:
{{input}}
\n
A:
Let's
think
step
by
step.
\n
"
"
include"
:
"
_flan_cot_zeroshot_template_yaml"
"
task"
:
"
bbh_flan_cot_zeroshot_snarks"
lm_eval/tasks/bbh/flan_cot_zeroshot/sports_understanding.yaml
0 → 100644
View file @
e1ae8a2f
"
dataset_name"
:
"
sports_understanding"
"
description"
:
"
Determine
whether
an
artificially
constructed
sentence
relating
to
sports
is
plausible
or
not.
\n\n
"
"
doc_to_text"
:
"
Q:
{{input}}
\n
A:
Let's
think
step
by
step.
\n
"
"
include"
:
"
_flan_cot_zeroshot_template_yaml"
"
task"
:
"
bbh_flan_cot_zeroshot_sports_understanding"
lm_eval/tasks/bbh/flan_cot_zeroshot/temporal_sequences.yaml
0 → 100644
View file @
e1ae8a2f
"
dataset_name"
:
"
temporal_sequences"
"
description"
:
"
Task
description:
Answer
questions
about
which
times
certain
events
could
have
occurred.
\n\n
"
"
doc_to_text"
:
"
Q:
{{input}}
\n
A:
Let's
think
step
by
step.
\n
"
"
include"
:
"
_flan_cot_zeroshot_template_yaml"
"
task"
:
"
bbh_flan_cot_zeroshot_temporal_sequences"
lm_eval/tasks/bbh/flan_cot_zeroshot/tracking_shuffled_objects_five_objects.yaml
0 → 100644
View file @
e1ae8a2f
"
dataset_name"
:
"
tracking_shuffled_objects_five_objects"
"
description"
:
"
A
task
requiring
determining
the
final
positions
of
a
set
of
objects
given
their
initial
positions
and
a
description
of
a
sequence
of
swaps.
\n\n
"
"
doc_to_text"
:
"
Q:
{{input}}
\n
A:
Let's
think
step
by
step.
\n
"
"
include"
:
"
_flan_cot_zeroshot_template_yaml"
"
task"
:
"
bbh_flan_cot_zeroshot_tracking_shuffled_objects_five_objects"
lm_eval/tasks/bbh/flan_cot_zeroshot/tracking_shuffled_objects_seven_objects.yaml
0 → 100644
View file @
e1ae8a2f
"
dataset_name"
:
"
tracking_shuffled_objects_seven_objects"
"
description"
:
"
A
task
requiring
determining
the
final
positions
of
a
set
of
objects
given
their
initial
positions
and
a
description
of
a
sequence
of
swaps.
\n\n
"
"
doc_to_text"
:
"
Q:
{{input}}
\n
A:
Let's
think
step
by
step.
\n
"
"
include"
:
"
_flan_cot_zeroshot_template_yaml"
"
task"
:
"
bbh_flan_cot_zeroshot_tracking_shuffled_objects_seven_objects"
lm_eval/tasks/bbh/flan_cot_zeroshot/tracking_shuffled_objects_three_objects.yaml
0 → 100644
View file @
e1ae8a2f
"
dataset_name"
:
"
tracking_shuffled_objects_three_objects"
"
description"
:
"
A
task
requiring
determining
the
final
positions
of
a
set
of
objects
given
their
initial
positions
and
a
description
of
a
sequence
of
swaps.
\n\n
"
"
doc_to_text"
:
"
Q:
{{input}}
\n
A:
Let's
think
step
by
step.
\n
"
"
include"
:
"
_flan_cot_zeroshot_template_yaml"
"
task"
:
"
bbh_flan_cot_zeroshot_tracking_shuffled_objects_three_objects"
lm_eval/tasks/bbh/flan_cot_zeroshot/web_of_lies.yaml
0 → 100644
View file @
e1ae8a2f
"
dataset_name"
:
"
web_of_lies"
"
description"
:
"
Evaluate
a
random
boolean
function
expressed
as
a
word
problem.
\n\n
"
"
doc_to_text"
:
"
Q:
{{input}}
\n
A:
Let's
think
step
by
step.
\n
"
"
include"
:
"
_flan_cot_zeroshot_template_yaml"
"
task"
:
"
bbh_flan_cot_zeroshot_web_of_lies"
lm_eval/tasks/bbh/flan_cot_zeroshot/word_sorting.yaml
0 → 100644
View file @
e1ae8a2f
"
dataset_name"
:
"
word_sorting"
"
description"
:
"
Sort
a
list
of
words.
\n\n
"
"
doc_to_text"
:
"
Q:
{{input}}
\n
A:
Let's
think
step
by
step.
\n
"
"
include"
:
"
_flan_cot_zeroshot_template_yaml"
"
task"
:
"
bbh_flan_cot_zeroshot_word_sorting"
lm_eval/tasks/bbh/flan_fewshot/_flan_fewshot_template_yaml
0 → 100644
View file @
e1ae8a2f
group: bbh_flan_fewshot
dataset_path: lukaemon/bbh
output_type: generate_until
test_split: test
doc_to_target: "{{target}}"
metric_list:
- metric: exact_match
aggregation: mean
higher_is_better: true
# ignore_case: true
# ignore_punctuation: true
generation_kwargs:
until:
- "</s>"
do_sample: false
temperature: 0.0
lm_eval/tasks/bbh/flan_fewshot/boolean_expressions.yaml
0 → 100644
View file @
e1ae8a2f
"
dataset_name"
:
"
boolean_expressions"
"
description"
:
"
Evaluate
the
result
of
a
random
Boolean
expression.
\n\n
"
"
doc_to_text"
:
"
Q:
not
(
(
not
not
True
)
)
is
\n
A:
False
\n\n
Q:
True
and
False
and
not
True
and
True
is
\n
A:
False
\n\n
Q:
not
not
(
not
(
False
)
)
is
\n
A:
True
\n\n
Q:
{{input}}
\n
A:"
"
include"
:
"
_flan_fewshot_template_yaml"
"
task"
:
"
bbh_flan_fewshot_boolean_expressions"
lm_eval/tasks/bbh/flan_fewshot/causal_judgement.yaml
0 → 100644
View file @
e1ae8a2f
"
dataset_name"
:
"
causal_judgement"
"
description"
:
"
Answer
questions
about
causal
attribution.
\n\n
"
"
doc_to_text"
:
"
Q:
How
would
a
typical
person
answer
each
of
the
following
questions
about
causation?
\n
Frank
T.,
had
an
ongoing
dispute
with
his
neighbor
over
a
stretch
of
land
and
one
day
decided
to
shoot
his
neighbor
in
the
body.
Frank
T.
had
no
experience
with
guns,
his
hand
slipped
on
the
barrel
of
the
gun,
and
the
shot
went
wild.
Nonetheless,
the
bullet
bounced
off
a
large
boulder
several
feet
away
and
hit
the
neighbor's
body,
causing
significant
injury.
Did
Frank
T.
intentionally
shoot
his
neighbor
in
the
body?
\n
Options:
\n
-
Yes
\n
-
No
\n
A:
No
\n\n
Q:
How
would
a
typical
person
answer
each
of
the
following
questions
about
causation?
\n
Suzy
and
Billy
are
working
on
a
project
that
is
very
important
for
our
nation's
security.
The
boss
tells
them
both:
\"
Be
sure
that
you
are
here
at
exactly
9
am.
It
is
absolutely
essential
that
you
arrive
at
that
time.
\"
Both
Billy
and
Suzy
arrive
at
9
am.
As
it
happens,
there
was
a
motion
detector
installed
in
the
room
where
they
arrived.
The
motion
detector
was
set
up
to
be
triggered
if
at
least
one
person
appeared
in
the
room
at
the
same
time.
So
the
motion
detector
went
off.
Did
Billy
cause
the
motion
detector
to
go
off?
\n
Options:
\n
-
Yes
\n
-
No
\n
A:
Yes
\n\n
Q:
How
would
a
typical
person
answer
each
of
the
following
questions
about
causation?
\n
George
and
his
sister
Lena
reunite
at
their
parents'
house
for
Thanksgiving.
Whereas
George
just
got
into
medical
school,
Lena
is
unhappy
in
her
marriage
and
recently
lost
her
job.
Over
the
course
of
the
day,
George
and
Lena
get
into
a
number
of
heated
arguments.
Later
in
the
afternoon
they
play
a
game
of
darts.
They
split
the
first
two
games,
and
the
third
game
is
close
until
the
end.
Who
will
win
comes
down
to
George's
last
shot.
If
he
hits
a
high
point
region,
he
wins;
if
he
hits
a
low
point
region,
Lena
wins.
George
thinks
of
the
difficult
time
Lena
is
having,
and
he
really
wants
to
let
her
win.
He
aims
the
dart
at
the
low
point
region.
He
sets
up
his
shot
and
the
dart
lands
in
the
low
point
region.
After
his
shot,
Lena
wins
the
game
and
is
very
happy.
Did
George
hit
the
low
point
region
intentionally?
\n
Options:
\n
-
Yes
\n
-
No
\n
A:
Yes
\n\n
Q:
{{input}}
\n
A:"
"
include"
:
"
_flan_fewshot_template_yaml"
"
task"
:
"
bbh_flan_fewshot_causal_judgement"
lm_eval/tasks/bbh/flan_fewshot/date_understanding.yaml
0 → 100644
View file @
e1ae8a2f
"
dataset_name"
:
"
date_understanding"
"
description"
:
"
Infer
the
date
from
context.
\n\n
"
"
doc_to_text"
:
"
Q:
Today
is
Christmas
Eve
of
1937.
What
is
the
date
10
days
ago
in
MM/DD/YYYY?
\n
Options:
\n
(A)
12/14/2026
\n
(B)
12/14/1950
\n
(C)
12/14/2007
\n
(D)
12/14/1937
\n
(E)
07/14/1938
\n
(F)
12/14/1988
\n
A:
(D)
\n\n
Q:
Tomorrow
is
11/12/2019.
What
is
the
date
one
year
ago
from
today
in
MM/DD/YYYY?
\n
Options:
\n
(A)
09/04/2018
\n
(B)
11/11/2018
\n
(C)
08/25/2018
\n
(D)
11/02/2018
\n
(E)
11/04/2018
\n
A:
(B)
\n\n
Q:
Jane
and
John
married
on
Jan
2,
1958.
It
is
their
5-year
anniversary
today.
What
is
the
date
tomorrow
in
MM/DD/YYYY?
\n
Options:
\n
(A)
01/11/1961
\n
(B)
01/03/1963
\n
(C)
01/18/1961
\n
(D)
10/14/1960
\n
(E)
01/03/1982
\n
(F)
12/03/1960
\n
A:
(B)
\n\n
Q:
{{input}}
\n
A:"
"
include"
:
"
_flan_fewshot_template_yaml"
"
task"
:
"
bbh_flan_fewshot_date_understanding"
lm_eval/tasks/bbh/flan_fewshot/disambiguation_qa.yaml
0 → 100644
View file @
e1ae8a2f
"
dataset_name"
:
"
disambiguation_qa"
"
description"
:
"
Clarify
the
meaning
of
sentences
with
ambiguous
pronouns.
\n\n
"
"
doc_to_text"
:
"
Q:
In
the
following
sentences,
explain
the
antecedent
of
the
pronoun
(which
thing
the
pronoun
refers
to),
or
state
that
it
is
ambiguous.
\n
Sentence:
The
chief
told
the
counselor
that
they
took
the
day
off.
\n
Options:
\n
(A)
The
chief
took
the
day
off
\n
(B)
The
counselor
took
the
day
off
\n
(C)
Ambiguous
\n
A:
(A)
\n\n
Q:
In
the
following
sentences,
explain
the
antecedent
of
the
pronoun
(which
thing
the
pronoun
refers
to),
or
state
that
it
is
ambiguous.
\n
Sentence:
The
manager
sent
a
message
to
the
secretary,
but
he
didn't
reply
yet.
\n
Options:
\n
(A)
The
secretary
didn't
reply
yet
\n
(B)
The
manager
didn't
reply
yet
\n
(C)
Ambiguous
\n
A:
(A)
\n\n
Q:
In
the
following
sentences,
explain
the
antecedent
of
the
pronoun
(which
thing
the
pronoun
refers
to),
or
state
that
it
is
ambiguous.
\n
Sentence:
Bailey
will
plan
to
meet
the
director
at
his
office
\n
Options:
\n
(A)
It
will
be
Bailey's
office
\n
(B)
It
will
be
the
director's
office
\n
(C)
Ambiguous
\n
A:
(C)
\n\n
Q:
{{input}}
\n
A:"
"
include"
:
"
_flan_fewshot_template_yaml"
"
task"
:
"
bbh_flan_fewshot_disambiguation_qa"
lm_eval/tasks/bbh/flan_fewshot/dyck_languages.yaml
0 → 100644
View file @
e1ae8a2f
"
dataset_name"
:
"
dyck_languages"
"
description"
:
"
Correctly
close
a
Dyck-n
word.
\n\n
"
"
doc_to_text"
:
"
Q:
Complete
the
rest
of
the
sequence,
making
sure
that
the
parentheses
are
closed
properly.
Input:
[
{
[
\n
A:
]
}
]
\n\n
Q:
Complete
the
rest
of
the
sequence,
making
sure
that
the
parentheses
are
closed
properly.
Input:
<
>
(
(
[
[
(
{
}
)
[
<
>
]
]
\n
A:
]
)
)
\n\n
Q:
Complete
the
rest
of
the
sequence,
making
sure
that
the
parentheses
are
closed
properly.
Input:
<
[
<
[
{
<
[
]
<
{
}
>
>
}
]
>
{
{
(
)
}
{
<
[
<
>
]
>
}
\n
A:
}
]
>
\n\n
Q:
{{input}}
\n
A:"
"
include"
:
"
_flan_fewshot_template_yaml"
"
task"
:
"
bbh_flan_fewshot_dyck_languages"
Prev
1
2
3
4
5
6
7
8
9
…
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