bulk_download#
- stable_pretraining.data.bulk_download(urls: Iterable[str], dest_folder: str | Path, backend: str = 'filesystem', cache_dir: str = '~/.stable_pretraining/')[source]#
Download multiple files concurrently.
Example:
import stable_pretraining stable_pretraining.data.bulk_download( [ "https://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz", "https://www.cs.toronto.edu/~kriz/cifar-100-python.tar.gz", ], "todelete", )