The Hub is home to an extensive collection of community-curated and research datasets. We encourage you to share your dataset to the Hub to help grow the ML community and accelerate progress for everyone. All contributions are welcome; adding a dataset is just a drag and drop away!
Start by creating a Hugging Face Hub account if you don’t have one yet.
The Hub’s web-based interface allows users without any developer experience to upload a dataset.
A repository hosts all your dataset files, including the revision history, making storing more than one dataset version possible.
.csv
, .mp3
, and .jpg
(see the full list of File formats).Adding a Dataset card is super valuable for helping users find your dataset and understand how to use it responsibly.
README.md
file in your repository.At the top, you’ll see the Metadata UI with several fields to select from such as license, language, and task categories. These are the most important tags for helping users discover your dataset on the Hub (when applicable). When you select an option for a field, it will be automatically added to the top of the dataset card.
You can also look at the Dataset Card specifications, which has a complete set of allowed tags, including optional like annotations_creators
, to help you choose the ones that are useful for your dataset.
Write your dataset documentation in the Dataset Card to introduce your dataset to the community and help users understand what is inside: what are the use cases and limitations, where the data comes from, what are important ethical considerations, and any other relevant details.
You can click on the Import dataset card template link at the top of the editor to automatically create a dataset card template. For a detailed example of what a good Dataset card should look like, take a look at the CNN DailyMail Dataset card.
The Dataset Viewer is useful to know how the data actually looks like before you download it. It is enabled by default for all public datasets.
Make sure the Dataset Viewer correctly shows your data, or Configure the Dataset Viewer.
The rich features set in the huggingface_hub
library allows you to manage repositories, including creating repos and uploading datasets to the Hub. Visit the client library’s documentation to learn more.
Some libraries like 🤗 Datasets, Pandas, Dask or DuckDB can upload files to the Hub. See the list of Libraries supported by the Datasets Hub for more information.
Since dataset repos are Git repositories, you can use Git to push your data files to the Hub. Follow the guide on Getting Started with Repositories to learn about using the git
CLI to commit and push your datasets.
The Hub natively supports multiple file formats:
It also supports files compressed using ZIP (.zip), GZIP (.gz), ZSTD (.zst), BZ2 (.bz2), LZ4 (.lz4) and LZMA (.xz).
Image and audio resources can also have additional metadata files, see the Data files Configuration on image and audio datasets.
You may want to convert your files to these formats to benefit from all the Hub features. Other formats and structures may not be recognized by the Hub.