How can I add my custom data to huggingface datasets
NONE
Hey @xiagod 

The easiest way to add your custom data to Hugging Face Datasets is to use the built-in load_dataset function with your local files. Some examples include:

CSV files:
from datasets import load_dataset
dataset = load_dataset("csv", data_files="my_file.csv")

JSON or JSONL files:
from datasets import load_dataset
dataset = load_dataset("json", data_files="my_file.json")


Images stored in folders (e.g. data/train/cat/, data/train/dog/):
from datasets import load_dataset
dataset = load_dataset("imagefolder", data_dir="/path/to/pokemon")


These methods let you quickly create a custom dataset without needing to write a full script.

More information can be found in Hugging Face's tutorial "Create a dataset" or "Load" documentation here: 

https://huggingface.co/docs/datasets/create_dataset 

https://huggingface.co/docs/datasets/loading#local-and-remote-files



If you want to submit your dataset to the Hugging Face Datasets GitHub repo so others can load it follow this guide: 

https://huggingface.co/docs/datasets/upload_dataset 



2025-07-05T18:19:37Z
https://github.com/huggingface/datasets/issues/7669#issuecomment-3039528978
https://api.github.com/repos/huggingface/datasets/issues/7669
IC_kwDODunzps61K4gS
https://api.github.com/repos/huggingface/datasets/issues/comments/3039528978/reactions
2025-07-05T18:19:37Z
https://api.github.com/repos/huggingface/datasets/issues/comments/3039528978
https://avatars.githubusercontent.com/u/76807356?v=4
https://api.github.com/users/kevJ711/events{/privacy}
https://api.github.com/users/kevJ711/followers
https://api.github.com/users/kevJ711/following{/other_user}
https://api.github.com/users/kevJ711/gists{/gist_id}
https://github.com/kevJ711
kevJ711
MDQ6VXNlcjc2ODA3MzU2
https://api.github.com/users/kevJ711/orgs
https://api.github.com/users/kevJ711/received_events
https://api.github.com/users/kevJ711/repos
https://api.github.com/users/kevJ711/starred{/owner}{/repo}
https://api.github.com/users/kevJ711/subscriptions
User
https://api.github.com/users/kevJ711
public
I want to add my custom dataset in huggingface dataset. Please guide me how to achieve that.