You can create datasets in three ways: upload a JSONL file, generate synthetic data, or import from Hugging Face. Choose the method that best fits your needs.
What Are Datasets?
A Dataset is a collection of datapoints that we will use to train a model how to respond to specific types of inputs. Understanding JSONL Datasets for Fine-Tuning A dataset for fine-tuning is a collection of examples in JSONL format (JSON Lines), where each line represents a single conversation example.Dataset Structure
Each line in your JSONL file contains a JSON object with a single field called “messages”. This field holds an array of 3 message objects, each with:-
A
"role"field (identifying who is speaking) -
A
"content"field (containing the actual text)
-
"system": Provides context and instructions that guide the model’s behavior -
"user": Represents what a human user would say or ask -
"assistant": Contains the ideal response you want the model to learn to generate
Create a Dataset
In Prem, you can create datasets in three ways:Upload JSONL
Upload an existing dataset in JSONL format.
Generate Synthetic Data
Generate datasets from files, videos, or websites.
Import from Hugging Face
Import datasets from Hugging Face using templates.
Do More With Datasets
Create a Snapshot
Save a snapshot of your dataset.
Enrich a Dataset
Enrich your dataset with additional synthetic data.
Autosplit a Dataset
Automatically split your dataset into training, validation, and test sets.