unable to load dataset
#3
by
pszemraj
- opened
Hi! Thanks for the great work - unfortunately, I am unable to load the dataset. Should be running latest dataset/pkg versions. When trying this code:
from datasets import load_dataset
ds = load_dataset("EleuetherAI/proof-pile-2")
# To load only a specific subset, pass it as an argument, e.g
ds_arxiv = load_dataset("EleutherAI/proof-pile-2", "arxiv")
I get:
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
<ipython-input-27-a3bd18f14c01> in <cell line: 2>()
1 from datasets import load_dataset
----> 2 ds = load_dataset("EleuetherAI/proof-pile-2")
3
4 # To load only a specific subset, pass it as an argument, e.g
5 ds_arxiv = load_dataset("EleutherAI/proof-pile-2", "arxiv")
2 frames
/usr/local/lib/python3.10/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, ignore_verifications, keep_in_memory, save_infos, revision, token, use_auth_token, task, streaming, num_proc, storage_options, **config_kwargs)
2127
2128 # Create a dataset builder
-> 2129 builder_instance = load_dataset_builder(
2130 path=path,
2131 name=name,
/usr/local/lib/python3.10/dist-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, token, use_auth_token, storage_options, **config_kwargs)
1813 download_config = download_config.copy() if download_config else DownloadConfig()
1814 download_config.storage_options.update(storage_options)
-> 1815 dataset_module = dataset_module_factory(
1816 path,
1817 revision=revision,
/usr/local/lib/python3.10/dist-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, dynamic_modules_path, data_dir, data_files, **download_kwargs)
1506 raise e1 from None
1507 if isinstance(e1, FileNotFoundError):
-> 1508 raise FileNotFoundError(
1509 f"Couldn't find a dataset script at {relative_to_absolute_path(combined_path)} or any data file in the same directory. "
1510 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}"
FileNotFoundError: Couldn't find a dataset script at /content/EleuetherAI/proof-pile-2/proof-pile-2.py or any data file in the same directory. Couldn't find 'EleuetherAI/proof-pile-2' on the Hugging Face Hub either: FileNotFoundError: Dataset 'EleuetherAI/proof-pile-2' doesn't exist on the Hub
if I comment out the generic load and try just loading arxiv
via
ds_arxiv = load_dataset("EleutherAI/proof-pile-2", "arxiv")
print(ds_arxiv)
This appears to load a dataset with 0 rows in all splits? Let me know if I'm doing something wrong :)
DatasetDict({
train: Dataset({
features: ['text', 'meta'],
num_rows: 0
})
validation: Dataset({
features: ['text', 'meta'],
num_rows: 0
})
test: Dataset({
features: ['text', 'meta'],
num_rows: 0
})
})
I had it working in a PR recently, you can try
load_dataset("EleutherAI/proof-pile-2", "arxiv", revision="refs/pr/2")
from https://huggingface.co/datasets/EleutherAI/proof-pile-2/discussions/2
(note that this PR was reverted but the reason hasn't been communicated yet apparently)