# Upload efficiently for lazy split download

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fupload-efficiently-for-lazy-split-download%2F165834%3E%5C
**Category:** Beginners\
**Created:** [August 6, 2025, 10:06am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fupload-efficiently-for-lazy-split-download%2F165834 "2025-08-06T10:06:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [August 6, 2025, 12:54pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fupload-efficiently-for-lazy-split-download%2F165834%2F2 "2025-08-06T12:54:16Z")

</div>

Currently, your dataset has labels (such as “cat”) in the file names, but [if you use directory (or archive file) names as labels instead of file names and organize them hierarchically, you should be able to organize the dataset hierarchically via `ImageFolder`](https://huggingface.co/docs/datasets/en/image_dataset).  
Incidentally, [`ImageFolder` does not seem to be very efficient when the dataset is huge](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fstandard-way-to-upload-huge-dataset%2F81265).  
[https://github.com/huggingface/datasets/issues/5317](https://github.com/huggingface/datasets/issues/5317)

> 2

I think the dataset builder script is executed locally.  
By the way, [since executing the dataset builder directly from Hub is no longer recommended](https://github.com/huggingface/datasets/issues/7693), it might be more convenient to publish the built data set if you want to make it public.

> 3

Maybe true. I think it’s more convenient to divide them intentionally to a certain extent [in some cases](https://github.com/huggingface/datasets/issues/5243).

---

_[View the full topic](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fupload-efficiently-for-lazy-split-download%2F165834)._
