Skip to content

[Bug] HuggingFace Datasets dropped support for dataset scripts #27

Description

@fcoelhomrc

As of datasets >= 4.5.0, dataset scripts are no longer supported.

Attempting to fetch data with:

datasets.load_dataset(
    "MahmoodLab/Patho-Bench",
    cache_dir=".",
    dataset_to_download="cptac_ccrcc",
    task_in_dataset="BAP1_mutation",
    trust_remote_code=True,
)

Raises the warning:

`trust_remote_code` is not supported anymore.
Please check that the Hugging Face dataset 'MahmoodLab/Patho-Bench' isn't based on a loading script and remove `trust_remote_code`.
If the dataset is based on a loading script, please ask the dataset author to remove it and convert it to a standard format like Parquet.

and the RuntimeError(f"Dataset scripts are no longer supported, but found {filename}")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions