When use load_data to download, Occur Error.
ds = load_dataset("togethercomputer/RedPajama-Data-1T", cache_dir="/ai/LLM_DATA/llm_data")
File "/ai/shenwei/miniconda3/envs/demo/lib/python3.9/site-packages/datasets/load.py", line 1791, in load_dataset
builder_instance.download_and_prepare(
File "/ai/shenwei/miniconda3/envs/demo/lib/python3.9/site-packages/datasets/builder.py", line 891, in download_and_prepare
self._download_and_prepare(
File "/ai/shenwei/miniconda3/envs/demo/lib/python3.9/site-packages/datasets/builder.py", line 1651, in _download_and_prepare
super()._download_and_prepare(
File "/ai/shenwei/miniconda3/envs/demo/lib/python3.9/site-packages/datasets/builder.py", line 986, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/ai/shenwei/miniconda3/envs/demo/lib/python3.9/site-packages/datasets/builder.py", line 1490, in _prepare_split
for job_id, done, content in self._prepare_split_single(
File "/ai/shenwei/miniconda3/envs/demo/lib/python3.9/site-packages/datasets/builder.py", line 1646, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.builder.DatasetGenerationError: An error occurred while generating the dataset
I've uploaded a patch with a bug fix and better error logging. Can you try again now with this:
from datasets import load_dataset
ds = load_dataset("togethercomputer/RedPajama-Data-1T-Sample", download_mode="reuse_cache_if_exists")
That option should hopefully just download the new load_dataset function, and not all the original files.