Datasets:

Modalities:
Tabular
Text
ArXiv:
DOI:
License:

Cannot load with datasets

#4
by mbanon - opened

Hi, I am not able to make this piece of code from the README work:

>>> from datasets import load_dataset
>>> fw = load_dataset("HuggingFaceFW/fineweb-2", name="hrv_Latn", split="train", streaming=True)

I get the following error:

>>> fw = load_dataset("HuggingFaceFW/fineweb-2", name="hrv_Latn", split="train", streaming=True)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/work/venvs/venv-hf/lib/python3.10/site-packages/datasets/load.py", line 2129, in load_dataset
    builder_instance = load_dataset_builder(
  File "/work/venvs/venv-hf/lib/python3.10/site-packages/datasets/load.py", line 1849, in load_dataset_builder
    dataset_module = dataset_module_factory(
  File "/work/venvs/venv-hf/lib/python3.10/site-packages/datasets/load.py", line 1731, in dataset_module_factory
    raise e1 from None
  File "/work/venvs/venv-hf/lib/python3.10/site-packages/datasets/load.py", line 1696, in dataset_module_factory
    ).get_module()
  File "/work/venvs/venv-hf/lib/python3.10/site-packages/datasets/load.py", line 1073, in get_module
    module_name, default_builder_kwargs = infer_module_for_data_files(
  File "/work/venvs/venv-hf/lib/python3.10/site-packages/datasets/load.py", line 601, in infer_module_for_data_files
    raise ValueError(f"Couldn't infer the same data file format for all splits. Got {split_modules}")
ValueError: Couldn't infer the same data file format for all splits. Got {'test': (None, {}), 'train': ('parquet', {})}

Any clues of what's going on? I tried datasets version 3.2.0 and 2.21.0. Other datasets worked fine (i.e. load_dataset('nyu-mll/glue', 'sst2', split='train', streaming=True))

Thanks.

HuggingFaceFW org
edited 4 days ago

Sorry about that, we're currently pushing a small update and had to reupload some data. You can load the old version with revision="v2.0.0" or wait a few hours for the new version's upload to complete.

EDIT: for hrv_Latn, the upload should be done now

HuggingFaceFW org

Fully updated now :)

guipenedo changed discussion status to closed

Thanks, it's working now :)

Sign up or log in to comment