Skip to content

Fix KeyError: 'default' for bigbench tasks with nonexistent split#1262

Open
nuthalapativarun wants to merge 1 commit into
huggingface:mainfrom
nuthalapativarun:fix/1163-bigbench-default-split-keyerror
Open

Fix KeyError: 'default' for bigbench tasks with nonexistent split#1262
nuthalapativarun wants to merge 1 commit into
huggingface:mainfrom
nuthalapativarun:fix/1163-bigbench-default-split-keyerror

Conversation

@nuthalapativarun

Copy link
Copy Markdown

All 166 `bigbench:*` tasks in `src/lighteval/tasks/tasks/bigbench.py` (e.g. `bigbench:tracking_shuffled_objects`) set `evaluation_splits=["default"]` and `hf_avail_splits=["default", "train", "validation"]`, but the underlying `tasksource/bigbench` dataset configs only have `train` and `validation` splits — there is no `default` split. This causes `self.dataset[split]` to raise `KeyError: 'default'` when loading documents.

This updates all 166 `bigbench:*` task configs to use `evaluation_splits=["validation"]` and `hf_avail_splits=["train", "validation"]`, matching the splits actually present on the Hub (verified via the datasets-server API for several configs, including `tracking_shuffled_objects`).

Closes #1163

@nuthalapativarun

Copy link
Copy Markdown
Author

Hi folks, just floating this back up in the queue. Take your time, just wanted to make sure it's on the radar. Thanks for all the work on lighteval!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] KeyError: 'default'

1 participant