Datasets:

Modalities:
Text
ArXiv:
Libraries:
Datasets

Request to add retries into RedPajama-Data-V2.py script

#16
by yura38 - opened

A common problem I encounter with is 500x on gzip.open inside RedPajama-Data-V2.py (aiohttp.client_exceptions.ClientResponseError: 500, message='Internal Server Error', url=URL(...)

Could you please add some reasonable amount of retries in these places?

Together org

Hi @yura38 , you can pass a download config to the load_dataset function directly, and set the number of retries to something large than 1 (the default). For example, if you want to set the number of max retries to 5, you can do

from datasets import load_dataset, DownloadConfig

dl_config = DownloadConfig(max_retries=5)

ds = load_dataset(
    "togethercomputer/RedPajama-Data-V2",
    name="default",
    partition="head_middle",
    snapshots=["2023-06"],
    languages=["en"],
    download_config=dl_config
)
mauriceweber changed discussion status to closed

Sign up or log in to comment