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
7f2a9cbd
Unverified
Commit
7f2a9cbd
authored
Oct 04, 2023
by
Hailey Schoelkopf
Committed by
GitHub
Oct 04, 2023
Browse files
Merge pull request #852 from EleutherAI/bigbench
[Refactor] bigbench
parents
c4fa6fb5
51a43a76
Changes
339
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
113 additions
and
0 deletions
+113
-0
lm_eval/tasks/bigbench/multiple_choice/symbol_interpretation.yaml
...tasks/bigbench/multiple_choice/symbol_interpretation.yaml
+4
-0
lm_eval/tasks/bigbench/multiple_choice/temporal_sequences.yaml
...al/tasks/bigbench/multiple_choice/temporal_sequences.yaml
+4
-0
lm_eval/tasks/bigbench/multiple_choice/tense.yaml
lm_eval/tasks/bigbench/multiple_choice/tense.yaml
+4
-0
lm_eval/tasks/bigbench/multiple_choice/timedial.yaml
lm_eval/tasks/bigbench/multiple_choice/timedial.yaml
+4
-0
lm_eval/tasks/bigbench/multiple_choice/topical_chat.yaml
lm_eval/tasks/bigbench/multiple_choice/topical_chat.yaml
+4
-0
lm_eval/tasks/bigbench/multiple_choice/tracking_shuffled_objects.yaml
...s/bigbench/multiple_choice/tracking_shuffled_objects.yaml
+4
-0
lm_eval/tasks/bigbench/multiple_choice/understanding_fables.yaml
.../tasks/bigbench/multiple_choice/understanding_fables.yaml
+4
-0
lm_eval/tasks/bigbench/multiple_choice/undo_permutation.yaml
lm_eval/tasks/bigbench/multiple_choice/undo_permutation.yaml
+4
-0
lm_eval/tasks/bigbench/multiple_choice/unit_conversion.yaml
lm_eval/tasks/bigbench/multiple_choice/unit_conversion.yaml
+4
-0
lm_eval/tasks/bigbench/multiple_choice/unit_interpretation.yaml
...l/tasks/bigbench/multiple_choice/unit_interpretation.yaml
+4
-0
lm_eval/tasks/bigbench/multiple_choice/unnatural_in_context_learning.yaml
...gbench/multiple_choice/unnatural_in_context_learning.yaml
+4
-0
lm_eval/tasks/bigbench/multiple_choice/vitaminc_fact_verification.yaml
.../bigbench/multiple_choice/vitaminc_fact_verification.yaml
+4
-0
lm_eval/tasks/bigbench/multiple_choice/what_is_the_tao.yaml
lm_eval/tasks/bigbench/multiple_choice/what_is_the_tao.yaml
+4
-0
lm_eval/tasks/bigbench/multiple_choice/which_wiki_edit.yaml
lm_eval/tasks/bigbench/multiple_choice/which_wiki_edit.yaml
+4
-0
lm_eval/tasks/bigbench/multiple_choice/winowhy.yaml
lm_eval/tasks/bigbench/multiple_choice/winowhy.yaml
+4
-0
lm_eval/tasks/bigbench/multiple_choice/word_sorting.yaml
lm_eval/tasks/bigbench/multiple_choice/word_sorting.yaml
+4
-0
lm_eval/tasks/bigbench/multiple_choice/word_unscrambling.yaml
...val/tasks/bigbench/multiple_choice/word_unscrambling.yaml
+4
-0
lm_eval/tasks/bigbench/multiple_choice_template_yaml
lm_eval/tasks/bigbench/multiple_choice_template_yaml
+13
-0
lm_eval/tasks/bigbench/push_bigbench_dataset.py
lm_eval/tasks/bigbench/push_bigbench_dataset.py
+32
-0
No files found.
lm_eval/tasks/bigbench/multiple_choice/symbol_interpretation.yaml
0 → 100644
View file @
7f2a9cbd
# Generated by utils.py
dataset_name
:
symbol_interpretation_zero_shot
include
:
../multiple_choice_template_yaml
task
:
bigbench_symbol_interpretation_multiple_choice
lm_eval/tasks/bigbench/multiple_choice/temporal_sequences.yaml
0 → 100644
View file @
7f2a9cbd
# Generated by utils.py
dataset_name
:
temporal_sequences_zero_shot
include
:
../multiple_choice_template_yaml
task
:
bigbench_temporal_sequences_multiple_choice
lm_eval/tasks/bigbench/multiple_choice/tense.yaml
0 → 100644
View file @
7f2a9cbd
# Generated by utils.py
dataset_name
:
tense_zero_shot
include
:
../multiple_choice_template_yaml
task
:
bigbench_tense_multiple_choice
lm_eval/tasks/bigbench/multiple_choice/timedial.yaml
0 → 100644
View file @
7f2a9cbd
# Generated by utils.py
dataset_name
:
timedial_zero_shot
include
:
../multiple_choice_template_yaml
task
:
bigbench_timedial_multiple_choice
lm_eval/tasks/bigbench/multiple_choice/topical_chat.yaml
0 → 100644
View file @
7f2a9cbd
# Generated by utils.py
dataset_name
:
topical_chat_zero_shot
include
:
../multiple_choice_template_yaml
task
:
bigbench_topical_chat_multiple_choice
lm_eval/tasks/bigbench/multiple_choice/tracking_shuffled_objects.yaml
0 → 100644
View file @
7f2a9cbd
# Generated by utils.py
dataset_name
:
tracking_shuffled_objects_zero_shot
include
:
../multiple_choice_template_yaml
task
:
bigbench_tracking_shuffled_objects_multiple_choice
lm_eval/tasks/bigbench/multiple_choice/understanding_fables.yaml
0 → 100644
View file @
7f2a9cbd
# Generated by utils.py
dataset_name
:
understanding_fables_zero_shot
include
:
../multiple_choice_template_yaml
task
:
bigbench_understanding_fables_multiple_choice
lm_eval/tasks/bigbench/multiple_choice/undo_permutation.yaml
0 → 100644
View file @
7f2a9cbd
# Generated by utils.py
dataset_name
:
undo_permutation_zero_shot
include
:
../multiple_choice_template_yaml
task
:
bigbench_undo_permutation_multiple_choice
lm_eval/tasks/bigbench/multiple_choice/unit_conversion.yaml
0 → 100644
View file @
7f2a9cbd
# Generated by utils.py
dataset_name
:
unit_conversion_zero_shot
include
:
../multiple_choice_template_yaml
task
:
bigbench_unit_conversion_multiple_choice
lm_eval/tasks/bigbench/multiple_choice/unit_interpretation.yaml
0 → 100644
View file @
7f2a9cbd
# Generated by utils.py
dataset_name
:
unit_interpretation_zero_shot
include
:
../multiple_choice_template_yaml
task
:
bigbench_unit_interpretation_multiple_choice
lm_eval/tasks/bigbench/multiple_choice/unnatural_in_context_learning.yaml
0 → 100644
View file @
7f2a9cbd
# Generated by utils.py
dataset_name
:
unnatural_in_context_learning_zero_shot
include
:
../multiple_choice_template_yaml
task
:
bigbench_unnatural_in_context_learning_multiple_choice
lm_eval/tasks/bigbench/multiple_choice/vitaminc_fact_verification.yaml
0 → 100644
View file @
7f2a9cbd
# Generated by utils.py
dataset_name
:
vitaminc_fact_verification_zero_shot
include
:
../multiple_choice_template_yaml
task
:
bigbench_vitaminc_fact_verification_multiple_choice
lm_eval/tasks/bigbench/multiple_choice/what_is_the_tao.yaml
0 → 100644
View file @
7f2a9cbd
# Generated by utils.py
dataset_name
:
what_is_the_tao_zero_shot
include
:
../multiple_choice_template_yaml
task
:
bigbench_what_is_the_tao_multiple_choice
lm_eval/tasks/bigbench/multiple_choice/which_wiki_edit.yaml
0 → 100644
View file @
7f2a9cbd
# Generated by utils.py
dataset_name
:
which_wiki_edit_zero_shot
include
:
../multiple_choice_template_yaml
task
:
bigbench_which_wiki_edit_multiple_choice
lm_eval/tasks/bigbench/multiple_choice/winowhy.yaml
0 → 100644
View file @
7f2a9cbd
# Generated by utils.py
dataset_name
:
winowhy_zero_shot
include
:
../multiple_choice_template_yaml
task
:
bigbench_winowhy_multiple_choice
lm_eval/tasks/bigbench/multiple_choice/word_sorting.yaml
0 → 100644
View file @
7f2a9cbd
# Generated by utils.py
dataset_name
:
word_sorting_zero_shot
include
:
../multiple_choice_template_yaml
task
:
bigbench_word_sorting_multiple_choice
lm_eval/tasks/bigbench/multiple_choice/word_unscrambling.yaml
0 → 100644
View file @
7f2a9cbd
# Generated by utils.py
dataset_name
:
word_unscrambling_zero_shot
include
:
../multiple_choice_template_yaml
task
:
bigbench_word_unscrambling_multiple_choice
lm_eval/tasks/bigbench/multiple_choice_template_yaml
0 → 100644
View file @
7f2a9cbd
group: bigbench
dataset_path: bigbench # will switch to `hails/bigbench` when all tasks are pushed
dataset_kwargs:
# num_shots: 0 # TODO: num of shots for `bigbench` HF dataset should be controlled through this, not through the typical methods
# subtask_name: null
output_type: multiple_choice
test_split: default
doc_to_text: inputs
doc_to_target: "{{multiple_choice_targets.index(targets[0])}}"
doc_to_choice: "{{multiple_choice_targets}}"
metric_list:
- metric: acc
# TODO: brier score and other metrics
lm_eval/tasks/bigbench/push_bigbench_dataset.py
0 → 100644
View file @
7f2a9cbd
"""
A utility script that pushes all Bigbench subtasks from their form in the `bigbench` HF dataset
into `{org name}/bigbench`.
Prior to running, log into HF Hub for the target HF hub org via `huggingface-cli login`.
Requires the installation of
`pip install "bigbench @ https://storage.googleapis.com/public_research_data/bigbench/bigbench-0.0.1.tar.gz"`
and is included so that the bigbench dependency can be avoided.
"""
from
tqdm
import
tqdm
import
datasets
import
bigbench.api.util
as
bb_utils
all_task_names
=
bb_utils
.
get_all_json_task_names
()
num_shots
=
[
0
]
for
shots
in
num_shots
:
for
task_name
in
tqdm
(
all_task_names
):
try
:
print
(
f
"Loading '
{
task_name
}
' with num_shots=
{
shots
}
..."
)
task_ds
=
datasets
.
load_dataset
(
"bigbench"
,
name
=
task_name
,
num_shots
=
shots
)
print
(
f
"Pushing '
{
task_name
}
' with num_shots=
{
shots
}
..."
)
task_ds
.
push_to_hub
(
"hails/bigbench"
,
task_name
+
"_zero_shot"
)
del
task_ds
except
Exception
as
e
:
raise
e
Prev
1
…
13
14
15
16
17
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