DatasetSource
createTrainer accepts one dataset, expressed as a discriminated union on type.
Signature
Variants
HuggingFace
This is the form the bundled templates (
triage / translate / redaction) use. Most projects start here.
Blob URL
Use this for datasets you host yourself (signed S3 URL, internal CDN, etc.). The backend pulls the URL once at the start of the run.
Behavior
Picking a form
- Reach for
huggingfacewhen the dataset is already on the Hub. It is the most-tested path. - Reach for
blobwhen you need a dataset that cannot live on the Hub (proprietary content, signed URL, internal-only).
{ type: "file", path: "./data.jsonl" }) are not in DatasetSource today. To use one, host it as a blob URL or upload it to a private HuggingFace repo first.
See also
createTrainerfor thedatasetfield that consumes this type- Customizing templates recipe for swapping the bundled HuggingFace dataset