mlcommons/croissant

Croissant is a high-level format for machine learning datasets that brings together four rich layers.

What it solves

Working with machine learning datasets is often difficult because every dataset uses a unique file structure and organization. This forces developers to write custom code just to load and understand each new dataset. Croissant provides a standardized, high-level format that makes datasets easier to find, use, and integrate into machine learning workflows.

How it works

Croissant creates a single, unified file that acts as a blueprint for a dataset. It builds on the widely used schema.org vocabulary to organize information into four layers:

  • Metadata: Descriptions of the dataset and its properties.
  • Resources: Links to the raw data files.
  • Structure: Instructions on how to arrange raw data into usable data structures.
  • ML Semantics: Information on how the data is typically used in machine learning tasks.

Who it’s for

Croissant is designed for data scientists, machine learning engineers, and researchers who want to streamline the process of loading and sharing datasets. It is also intended for developers building tools for dataset management and for organizations hosting datasets who want to make their data more accessible.

Highlights

  • Standardized Format: Replaces custom, ad-hoc dataset loading code with a consistent, machine-readable format.
  • Broad Integration: Supported by major platforms like Hugging Face, Kaggle, OpenML, and TensorFlow Datasets.
  • Easy Adoption: Uses JSON-LD, making it compatible with existing web standards and search engines.
  • Tooling Support: Includes a Python library (mlcroissant) to help developers inspect, load, and prepare datasets for training.

Related

  • Project
  • Project
  • Project
  • Dispatch
  • Project