Skip to main content

Overview

In custom recipes, you can load datasets using the AdaptiveDataset class, which provides a convenient way to access dataset files and work with them in your training or inference tasks. Dataset loading is done through the config feature.

Step 1: Define Dataset in Your Config

First, define your dataset in your recipe’s input configuration:

Step 2: Access the Dataset File

In your recipe function, you can access the dataset file directly:

Loading from Hugging Face

You can also load datasets directly from Hugging Face: