Download all the zipped files
Hi. I truly appreciate your contributions for releasing the cleaned data to community.
I am very new to Huggingface, and want to download the entire zipped files!
But I don't know how to do it... Can you let me know how to do it?
From Python, you can run:
from huggingface_hub import login, snapshot_download
login()
snapshot_download(repo_id='mlfoundations/t4-full', repo_type='dataset')
You will need to have huggingface_hub installed and it will ask you to provide credentials which you need to generate on the HuggingFace website.
This will put them all in your huggingface cache (typically ~/.cache/huggingface
) inside some datasets--mlfoundations--t4-full/blobs/
folder with random names - but they are still the same zip
files, even though they are called like 26e6338772ac56ec982ebe811ede22b18d34fd95c4d47d9b60ee716965a3e76d
without even the final .zip
.
FYI I am also downloading the zip files directly, because:
- "standard" iterable dataset (
load_dataset('mlfoundations/t4-full', streaming=True)
) doesn't work - "standard" non-iterable dataset (as above, but without the
streaming=True
flag) is terribly slow - ... and anyway both of the above seem to provide tables row-by-row, if you just want the real same tables, the only option seems to download the zip files?