█

AI/TLDR

Buy me a coffee
Buy me a coffee

Synthetic Data Generator

Build training datasets from natural-language descriptions

Synthetic DataOpen source
Language
Python
License
Apache-2.0
$pip install synthetic-dataset-generator
IN SHORT

What is Synthetic Data Generator?

Synthetic Data Generator is a tool from Argilla for creating datasets used to train and fine-tune language models. You describe the kind of data you want in plain language, and it uses distilabel and an LLM to generate matching examples. It sits in the Synthetic Data category of the Data & Labeling tools and is open-source, written in Python and licensed Apache-2.0.

Overview

Synthetic Data Generator is a tool from Argilla for creating datasets used to train and fine-tune language models. You describe the kind of data you want in plain language, and it uses distilabel and an LLM to generate matching examples. It runs as a Gradio app you can launch locally or on Hugging Face Spaces.

It targets ML engineers and researchers who need custom datasets but do not want to label everything by hand. You can iterate on a small sample first, then scale up to a full dataset, and push the result to the Hugging Face Hub or to Argilla for review and curation.

Within the synthetic data and labeling space, it focuses on three task types: text classification, chat data for supervised fine-tuning, and retrieval-augmented generation. Because each pipeline is built on distilabel, you can swap the LLM or adjust the pipeline steps. Note that the original authors have moved on and now point users to a successor project, aisheets.

What it does

  • Describe the dataset you want in natural language and generate samples to iterate on before producing the full-scale dataset
  • Supports text classification, chat data for supervised fine-tuning, and retrieval-augmented generation tasks
  • Built on distilabel, so you can change the LLM or customize the pipeline steps
  • Works with multiple providers via environment variables: Hugging Face Inference, OpenAI-compatible APIs, Ollama, and vLLM
  • Push generated datasets to the Hugging Face Hub or to Argilla for curation, or save them to a local directory
  • Tunable generation through env vars like MAX_NUM_ROWS, MAX_NUM_TOKENS, and DEFAULT_BATCH_SIZE

Getting started

Install the package, set a Hugging Face token, and launch the Gradio app to start generating datasets.

Install the package

Install from PyPI with pip.

bashbash
pip install synthetic-dataset-generator

Set your Hugging Face token

Set HF_TOKEN to push datasets to the Hub and use free completions from Hugging Face Inference Endpoints.

bashbash
export HF_TOKEN=hf_...

Launch the app

Call launch() to start the Gradio interface, then describe the dataset you want.

pythonpython
from synthetic_dataset_generator import launch

launch()

Choose a different model or provider (optional)

Override the model and base URL with env vars to use OpenAI-compatible APIs, Ollama, or vLLM instead of the default.

bashbash
export MODEL=meta-llama/Meta-Llama-3.1-8B-Instruct

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Bootstrap a text-classification dataset for a new domain when you have no labeled data yet
  • Generate chat conversations for supervised fine-tuning of an instruction-following model
  • Create question-answer pairs to build or evaluate a retrieval-augmented generation system
  • Prototype a sample dataset quickly, then scale it up and push it to the Hugging Face Hub or Argilla for review

How Synthetic Data Generator compares

Synthetic Data Generator alongside other open-source synthetic data tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
Easy Dataset★ 15.2kAn application that parses your documents and converts them into structured question-answer datasets for fine-tuning, RAG, and model evaluation.
SDV (Synthetic Data Vault)★ 3.6kA Python library that learns patterns from real tabular data and generates realistic synthetic tables.
distilabel★ 3.5kA framework for building synthetic-data and AI-feedback pipelines that call any LLM to generate and judge datasets.
NeMo Data Designer★ 2.4kAn NVIDIA library for orchestrating LLM-based synthetic-data pipelines with validation and quality scoring.
NeMo Curator★ 1.9kAn NVIDIA toolkit for cleaning, deduplicating, and curating large text datasets used to train LLMs.
Augmentoolkit★ 1.9kA tool that turns raw documents into synthetic instruction and conversation datasets for fine-tuning models.
Curator★ 1.8kA Python library for generating and curating large synthetic datasets to train and post-train language models.
Synthetic Data Generator★ 590Build training datasets from natural-language descriptions