huggingface / huggingface/nanoVLM
Enable streaming mode to avoid full dataset download when using data_cutoff_idx
- Dominant language
- Python
- Stars
- 5k
- Forks
- 510
- PR merge metrics
- No merged PRs in 30d
Description
First, congrats on this amazing repo! 🎉
While testing the code locally, I ran into a disk space issue due to the size of HuggingFaceM4/the_cauldron. I tried setting data_cutoff_idx in the config file to reduce training size—which works for training—but it still downloads the entire dataset upfront, taking the same disk space.
This defeats the purpose of cutting off the dataset size for quick experiments or running low-spec machines.
Suggestion:
It would be great to integrate streaming=True from datasets.load_dataset, or offer a config option to load a small subset using Hugging Face's streaming mode. This would let people download and train on only a portion of the dataset—without needing full disk space.
Since this repo is also an amazing learning resource, supporting streaming can make it more accessible to students and devs with limited local storage.
Thanks again for your great work! 🚀
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the dataset-loading entry point that handles data_cutoff_idx and inspect how Hugging Face datasets.load_dataset is called. Compare streaming=True with the current loading path, then verify that a cutoff-limited training run avoids downloading the full dataset while still training on the intended subset.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data, machine-learning
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100