Skip to content

Datasets v4 is not compatible with current implmentaion #2891

@Samoed

Description

@Samoed

Describe the bug

Datasets v4 is not compatible with our implementation

FAILED tests/test_benchmark/test_benchmark.py::test_prompt_name_passed_to_all_encodes_with_prompts[False-task17] - TypeError: Wrong key type: '0' of type '<class 'numpy.int64'>'. Expected one of int, slice, range, str or Iterable.
FAILED tests/test_benchmark/test_benchmark.py::test_mulitple_mteb_tasks[model0-tasks0] - TypeError: Wrong key type: '1' of type '<class 'numpy.int64'>'. Expected one of int, slice, range, str or Iterable.
FAILED tests/test_benchmark/test_benchmark.py::test_prompt_name_passed_to_all_encodes_with_prompts[False-task18] - TypeError: Wrong key type: '0' of type '<class 'numpy.int64'>'. Expected one of int, slice, range, str or Iterable.
FAILED tests/test_benchmark/test_benchmark.py::test_benchmark_encoders_on_task[model0-task3] - TypeError: Wrong key type: '1' of type '<class 'numpy.int64'>'. Expected one of int, slice, range, str or Iterable.
FAILED tests/test_benchmark/test_benchmark.py::test_benchmark_encoders_on_task[model0-task4] - TypeError: Wrong key type: '1' of type '<class 'numpy.int64'>'. Expected one of int, slice, range, str or Iterable.
FAILED tests/test_benchmark/test_benchmark.py::test_benchmark_encoders_on_task[model0-task17] - TypeError: Wrong key type: '0' of type '<class 'numpy.int64'>'. Expected one of int, slice, range, str or Iterable.
  1. They've deprecated trust_remote_code, so some of our datasets are not compatible with this version ref [v2] Reupload datasets with trust_remote_code #1877
  2. It seems now we can't pass numpy objects as index

To reproduce

CI:

Additional information

No response

Are you interested to contribute a fix for this bug?

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions