forked from EleutherAI/lm-evaluation-harness
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add goat support * Fix word generation metric * Pre-commit fixes * Review fixes * Add matching tasks support * Rename sootv to matching * Change goat dataset path * Fix uncorrect dataset names and remove matching validation * Add support for multiple choice literature tasks * Rename goat tasks groups * Fix word_in_set metric code * Delete config for matching tasks and remove unused metrics * Fix word_in_set metric and add support for more eos tokens * Add new eos token
- Loading branch information
1 parent
568d885
commit 6559712
Showing
10 changed files
with
137 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
dataset_path: deepvk/goat | ||
output_type: generate_until | ||
test_split: test | ||
fewshot_split: dev | ||
fewshot_config: | ||
sampler: first_n | ||
doc_to_text: "Вопрос: {{input.strip()}}\nОтвет должен состоять из последовательности цифр, написанных слитно.\n\nОтвет: " | ||
doc_to_target: "{{answer}}" | ||
metric_list: | ||
- metric: multi_choice_em_unordered | ||
aggregation: mean | ||
higher_is_better: true | ||
ignore_case: true | ||
ignore_punctuation: false | ||
generation_kwargs: | ||
until: | ||
- "\n\n" | ||
- "Вопрос:" | ||
- "</s>" | ||
- "<|end_of_text|>" | ||
- "<|im_end|>" | ||
do_sample: false | ||
temperature: 0.0 | ||
num_beams: 3 | ||
repeats: 1 | ||
num_fewshot: 5 | ||
filter_list: | ||
- name: "get-answer" | ||
filter: | ||
- function: "regex" | ||
regex_pattern: "([0-9\\,]+)" | ||
- function: "take_first" | ||
metadata: | ||
version: 0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
dataset_path: deepvk/goat | ||
test_split: test | ||
num_fewshot: 5 | ||
fewshot_split: dev | ||
fewshot_config: | ||
sampler: first_n | ||
output_type: multiple_choice | ||
doc_to_text: "{{input.strip()}}\nA. {{A}}\nB. {{B}}\nC. {{C}}\nD. {{D}}\nОтвет: " | ||
doc_to_choice: ["A", "B", "C", "D"] | ||
doc_to_target: answer | ||
metric_list: | ||
- metric: acc | ||
aggregation: mean | ||
higher_is_better: true | ||
metadata: | ||
version: 0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
dataset_path: deepvk/goat | ||
output_type: generate_until | ||
test_split: test | ||
fewshot_split: dev | ||
fewshot_config: | ||
sampler: first_n | ||
doc_to_text: "Вопрос: {{input.strip()}}\nОтвет должен состоять из одного или нескольких слов, написанных слитно, без пробелов и без запятых.\n\nОтвет: " | ||
doc_to_target: "{{answer}}" | ||
metric_list: | ||
- metric: word_in_set | ||
aggregation: mean | ||
higher_is_better: true | ||
generation_kwargs: | ||
until: | ||
- "\n\n" | ||
- "Вопрос:" | ||
- "</s>" | ||
- "<|end_of_text|>" | ||
- "<|im_end|>" | ||
do_sample: false | ||
temperature: 0.0 | ||
num_beams: 3 | ||
repeats: 1 | ||
num_fewshot: 5 | ||
metadata: | ||
version: 0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
group: goat | ||
task: | ||
- social_science | ||
- literature |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
"dataset_name": "literature_multiple_choice" | ||
"task": "literature_multiple_choice" | ||
"description": "The following are multiple choice questions (with answers) about literature.\n\n" | ||
"group": "literature" | ||
"group_alias": "literature" | ||
"include": "_default_multiple_choice_template_yaml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
"dataset_name": "sociology_multiple_choice" | ||
"task": "sociology_multiple_choice" | ||
"description": "The following are multiple choice questions (with answers) about sociology.\n\n" | ||
"group": "social_science" | ||
"group_alias": "social_science" | ||
"include": "_default_multiple_choice_template_yaml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
"dataset_name": "sociology_single_choice" | ||
"task": "sociology_single_choice" | ||
"description": "The following are single choice questions (with answers) about sociology.\n\n" | ||
"group": "social_science" | ||
"group_alias": "social_science" | ||
"include": "_default_single_choice_template_yaml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
"dataset_name": "literature_word_generation" | ||
"task": "literature_word_generation" | ||
"description": "The following are word generation questions (with answers) about literature.\n\n" | ||
"group": "literature" | ||
"group_alias": "literature" | ||
"include": "_default_word_generation_template_yaml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
"dataset_name": "sociology_word_generation" | ||
"task": "sociology_word_generation" | ||
"description": "The following are word generation questions (with answers) about sociology.\n\n" | ||
"group": "social_science" | ||
"group_alias": "social_science" | ||
"include": "_default_word_generation_template_yaml" |