datasets icon indicating copy to clipboard operation
datasets copied to clipboard

load_from_disk

Open ghaith-mq opened this issue 2 years ago • 3 comments

Describe the bug

I have data saved with save_to_disk. The data is big (700Gb). When I try loading it, the only option is load_from_disk, and this function copies the data to a tmp directory, causing me to run out of disk space. Is there an alternative solution to that?

Steps to reproduce the bug

when trying to load data using load_From_disk after being saved using save_to_disk

Expected behavior

run out of disk space

Environment info

lateest version

ghaith-mq avatar Oct 31 '24 11:10 ghaith-mq

Hello, It's an interesting issue here. I have the same problem, I have a local dataset and I want to push the dataset to the hub but huggingface does a copy of it.

from datasets import load_dataset

dataset = load_dataset("webdataset", data_files="/media/works/data/*.tar") # copy here
dataset.push_to_hub("WaveGenAI/audios2")

Edit: I can use HfApi for my use case

Jourdelune avatar Oct 31 '24 14:10 Jourdelune

Is there any update on this issue? I found the same behavior too. My datasets version is 2.13.2

Macchiatobin avatar Jul 01 '25 06:07 Macchiatobin

Updating to the newest version of datasets lib resolved the issue.

ghaith-mq avatar Jul 01 '25 08:07 ghaith-mq