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
95360bc2
Commit
95360bc2
authored
Aug 15, 2023
by
lintangsutawika
Browse files
Merge branch 'big-refactor' of
https://github.com/EleutherAI/lm-evaluation-harness
into add-readme
parents
545fb8fc
30aa9c33
Changes
137
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
170 additions
and
0 deletions
+170
-0
lm_eval/tasks/blimp/existential_there_subject_raising.yaml
lm_eval/tasks/blimp/existential_there_subject_raising.yaml
+4
-0
lm_eval/tasks/blimp/expletive_it_object_raising.yaml
lm_eval/tasks/blimp/expletive_it_object_raising.yaml
+4
-0
lm_eval/tasks/blimp/generate_configs.py
lm_eval/tasks/blimp/generate_configs.py
+94
-0
lm_eval/tasks/blimp/inchoative.yaml
lm_eval/tasks/blimp/inchoative.yaml
+4
-0
lm_eval/tasks/blimp/intransitive.yaml
lm_eval/tasks/blimp/intransitive.yaml
+4
-0
lm_eval/tasks/blimp/irregular_past_participle_adjectives.yaml
...val/tasks/blimp/irregular_past_participle_adjectives.yaml
+4
-0
lm_eval/tasks/blimp/irregular_past_participle_verbs.yaml
lm_eval/tasks/blimp/irregular_past_participle_verbs.yaml
+4
-0
lm_eval/tasks/blimp/irregular_plural_subject_verb_agreement_1.yaml
...asks/blimp/irregular_plural_subject_verb_agreement_1.yaml
+4
-0
lm_eval/tasks/blimp/irregular_plural_subject_verb_agreement_2.yaml
...asks/blimp/irregular_plural_subject_verb_agreement_2.yaml
+4
-0
lm_eval/tasks/blimp/left_branch_island_echo_question.yaml
lm_eval/tasks/blimp/left_branch_island_echo_question.yaml
+4
-0
lm_eval/tasks/blimp/left_branch_island_simple_question.yaml
lm_eval/tasks/blimp/left_branch_island_simple_question.yaml
+4
-0
lm_eval/tasks/blimp/matrix_question_npi_licensor_present.yaml
...val/tasks/blimp/matrix_question_npi_licensor_present.yaml
+4
-0
lm_eval/tasks/blimp/npi_present_1.yaml
lm_eval/tasks/blimp/npi_present_1.yaml
+4
-0
lm_eval/tasks/blimp/npi_present_2.yaml
lm_eval/tasks/blimp/npi_present_2.yaml
+4
-0
lm_eval/tasks/blimp/only_npi_licensor_present.yaml
lm_eval/tasks/blimp/only_npi_licensor_present.yaml
+4
-0
lm_eval/tasks/blimp/only_npi_scope.yaml
lm_eval/tasks/blimp/only_npi_scope.yaml
+4
-0
lm_eval/tasks/blimp/passive_1.yaml
lm_eval/tasks/blimp/passive_1.yaml
+4
-0
lm_eval/tasks/blimp/passive_2.yaml
lm_eval/tasks/blimp/passive_2.yaml
+4
-0
lm_eval/tasks/blimp/principle_A_c_command.yaml
lm_eval/tasks/blimp/principle_A_c_command.yaml
+4
-0
lm_eval/tasks/blimp/principle_A_case_1.yaml
lm_eval/tasks/blimp/principle_A_case_1.yaml
+4
-0
No files found.
lm_eval/tasks/blimp/existential_there_subject_raising.yaml
0 → 100644
View file @
95360bc2
# Generated by utils.py
dataset_name
:
existential_there_subject_raising
include
:
template_yaml
task
:
blimp_existential_there_subject_raising
lm_eval/tasks/blimp/expletive_it_object_raising.yaml
0 → 100644
View file @
95360bc2
# Generated by utils.py
dataset_name
:
expletive_it_object_raising
include
:
template_yaml
task
:
blimp_expletive_it_object_raising
lm_eval/tasks/blimp/generate_configs.py
0 → 100644
View file @
95360bc2
import
yaml
all_subtasks
=
[
"adjunct_island"
,
"anaphor_gender_agreement"
,
"anaphor_number_agreement"
,
"animate_subject_passive"
,
"animate_subject_trans"
,
"causative"
,
"complex_NP_island"
,
"coordinate_structure_constraint_complex_left_branch"
,
"coordinate_structure_constraint_object_extraction"
,
"determiner_noun_agreement_1"
,
"determiner_noun_agreement_2"
,
"determiner_noun_agreement_irregular_1"
,
"determiner_noun_agreement_irregular_2"
,
"determiner_noun_agreement_with_adj_2"
,
"determiner_noun_agreement_with_adj_irregular_1"
,
"determiner_noun_agreement_with_adj_irregular_2"
,
"determiner_noun_agreement_with_adjective_1"
,
"distractor_agreement_relational_noun"
,
"distractor_agreement_relative_clause"
,
"drop_argument"
,
"ellipsis_n_bar_1"
,
"ellipsis_n_bar_2"
,
"existential_there_object_raising"
,
"existential_there_quantifiers_1"
,
"existential_there_quantifiers_2"
,
"existential_there_subject_raising"
,
"expletive_it_object_raising"
,
"inchoative"
,
"intransitive"
,
"irregular_past_participle_adjectives"
,
"irregular_past_participle_verbs"
,
"irregular_plural_subject_verb_agreement_1"
,
"irregular_plural_subject_verb_agreement_2"
,
"left_branch_island_echo_question"
,
"left_branch_island_simple_question"
,
"matrix_question_npi_licensor_present"
,
"npi_present_1"
,
"npi_present_2"
,
"only_npi_licensor_present"
,
"only_npi_scope"
,
"passive_1"
,
"passive_2"
,
"principle_A_c_command"
,
"principle_A_case_1"
,
"principle_A_case_2"
,
"principle_A_domain_1"
,
"principle_A_domain_2"
,
"principle_A_domain_3"
,
"principle_A_reconstruction"
,
"regular_plural_subject_verb_agreement_1"
,
"regular_plural_subject_verb_agreement_2"
,
"sentential_negation_npi_licensor_present"
,
"sentential_negation_npi_scope"
,
"sentential_subject_island"
,
"superlative_quantifiers_1"
,
"superlative_quantifiers_2"
,
"tough_vs_raising_1"
,
"tough_vs_raising_2"
,
"transitive"
,
"wh_island"
,
"wh_questions_object_gap"
,
"wh_questions_subject_gap"
,
"wh_questions_subject_gap_long_distance"
,
"wh_vs_that_no_gap"
,
"wh_vs_that_no_gap_long_distance"
,
"wh_vs_that_with_gap"
,
"wh_vs_that_with_gap_long_distance"
,
]
def
main
()
->
None
:
for
task
in
all_subtasks
:
file_name
=
f
"
{
task
}
.yaml"
try
:
with
open
(
f
"
{
file_name
}
"
,
"w"
)
as
f
:
f
.
write
(
"# Generated by utils.py
\n
"
)
yaml
.
dump
(
{
"include"
:
"template_yaml"
,
"task"
:
"blimp_"
+
task
,
"dataset_name"
:
task
,
},
f
,
)
except
FileExistsError
:
pass
if
__name__
==
"__main__"
:
main
()
lm_eval/tasks/blimp/inchoative.yaml
0 → 100644
View file @
95360bc2
# Generated by utils.py
dataset_name
:
inchoative
include
:
template_yaml
task
:
blimp_inchoative
lm_eval/tasks/blimp/intransitive.yaml
0 → 100644
View file @
95360bc2
# Generated by utils.py
dataset_name
:
intransitive
include
:
template_yaml
task
:
blimp_intransitive
lm_eval/tasks/blimp/irregular_past_participle_adjectives.yaml
0 → 100644
View file @
95360bc2
# Generated by utils.py
dataset_name
:
irregular_past_participle_adjectives
include
:
template_yaml
task
:
blimp_irregular_past_participle_adjectives
lm_eval/tasks/blimp/irregular_past_participle_verbs.yaml
0 → 100644
View file @
95360bc2
# Generated by utils.py
dataset_name
:
irregular_past_participle_verbs
include
:
template_yaml
task
:
blimp_irregular_past_participle_verbs
lm_eval/tasks/blimp/irregular_plural_subject_verb_agreement_1.yaml
0 → 100644
View file @
95360bc2
# Generated by utils.py
dataset_name
:
irregular_plural_subject_verb_agreement_1
include
:
template_yaml
task
:
blimp_irregular_plural_subject_verb_agreement_1
lm_eval/tasks/blimp/irregular_plural_subject_verb_agreement_2.yaml
0 → 100644
View file @
95360bc2
# Generated by utils.py
dataset_name
:
irregular_plural_subject_verb_agreement_2
include
:
template_yaml
task
:
blimp_irregular_plural_subject_verb_agreement_2
lm_eval/tasks/blimp/left_branch_island_echo_question.yaml
0 → 100644
View file @
95360bc2
# Generated by utils.py
dataset_name
:
left_branch_island_echo_question
include
:
template_yaml
task
:
blimp_left_branch_island_echo_question
lm_eval/tasks/blimp/left_branch_island_simple_question.yaml
0 → 100644
View file @
95360bc2
# Generated by utils.py
dataset_name
:
left_branch_island_simple_question
include
:
template_yaml
task
:
blimp_left_branch_island_simple_question
lm_eval/tasks/blimp/matrix_question_npi_licensor_present.yaml
0 → 100644
View file @
95360bc2
# Generated by utils.py
dataset_name
:
matrix_question_npi_licensor_present
include
:
template_yaml
task
:
blimp_matrix_question_npi_licensor_present
lm_eval/tasks/blimp/npi_present_1.yaml
0 → 100644
View file @
95360bc2
# Generated by utils.py
dataset_name
:
npi_present_1
include
:
template_yaml
task
:
blimp_npi_present_1
lm_eval/tasks/blimp/npi_present_2.yaml
0 → 100644
View file @
95360bc2
# Generated by utils.py
dataset_name
:
npi_present_2
include
:
template_yaml
task
:
blimp_npi_present_2
lm_eval/tasks/blimp/only_npi_licensor_present.yaml
0 → 100644
View file @
95360bc2
# Generated by utils.py
dataset_name
:
only_npi_licensor_present
include
:
template_yaml
task
:
blimp_only_npi_licensor_present
lm_eval/tasks/blimp/only_npi_scope.yaml
0 → 100644
View file @
95360bc2
# Generated by utils.py
dataset_name
:
only_npi_scope
include
:
template_yaml
task
:
blimp_only_npi_scope
lm_eval/tasks/blimp/passive_1.yaml
0 → 100644
View file @
95360bc2
# Generated by utils.py
dataset_name
:
passive_1
include
:
template_yaml
task
:
blimp_passive_1
lm_eval/tasks/blimp/passive_2.yaml
0 → 100644
View file @
95360bc2
# Generated by utils.py
dataset_name
:
passive_2
include
:
template_yaml
task
:
blimp_passive_2
lm_eval/tasks/blimp/principle_A_c_command.yaml
0 → 100644
View file @
95360bc2
# Generated by utils.py
dataset_name
:
principle_A_c_command
include
:
template_yaml
task
:
blimp_principle_A_c_command
lm_eval/tasks/blimp/principle_A_case_1.yaml
0 → 100644
View file @
95360bc2
# Generated by utils.py
dataset_name
:
principle_A_case_1
include
:
template_yaml
task
:
blimp_principle_A_case_1
Prev
1
2
3
4
5
6
7
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