About Data Curation#

The curate category turns a raw text corpus into a filtered, verified, decontaminated training set with a recorded rationale for every threshold that was applied. It consists of six registered steps built on NeMo Curator and a flow driver that runs them from one configuration.

Step

What it does

Drops rows

curate/ingest

Normalizes Parquet or JSONL, mints content-derived document identifiers, and maps source columns

No

curate/profile

Measures quality-signal distributions on the unfiltered corpus and writes candidate thresholds

No

curate/nemo_curator

Applies language, word-count, and domain gates and an approved filter policy

Yes

curate/audit

Verifies the filtered corpus against the manifest and ledger the filter step wrote

No

curate/decontamination

Removes training documents that overlap a held-out evaluation set

Yes

curate/subset

Cuts nested token-budget tiers for scaling experiments

No

The steps run individually with nemotron steps run, or together through the flow driver.

Two Runs, Not One#

Choosing a threshold requires knowing what it removes. The flow therefore runs twice over the same corpus:

  1. A measurement run ingests and profiles the corpus and writes candidate_policies.yaml with approved: false. Nothing is filtered.

  2. A person reads profile_summary.md, chooses thresholds, and records the approval in the configuration.

  3. An application run promotes the candidate to an approved policy, filters, audits, decontaminates, and subsets.

The filter step refuses a policy that has not been approved. Two-Run Curation: Measure, Approve, Apply explains why the two runs cannot be collapsed into one.

        flowchart LR
    RAW[Raw Parquet or JSONL] --> ING[ingest]
    ING --> PROF[profile]
    PROF --> REV{{Review and approve}}
    REV --> FILT[filter]
    FILT --> AUD[audit]
    FILT --> DEC[decontamination]
    DEC --> SUB[subset]
    SUB --> OUT[Tiered training corpus]
    

Choosing an Entry Point#

Situation

Start with

A new corpus or a new language, and thresholds have not been chosen

Run the Measure and Apply Flow

An approved policy already exists for this corpus and language pack

Apply a Known Policy

Only language, word-count, or domain gates are needed, without a policy

Enable Curation Filters

A filtered corpus exists and its integrity has to be verified

Audit a Curated Corpus

A filtered corpus has to be protected against evaluation leakage or cut into tiers

Decontaminate and Subset a Corpus

An approved policy has to be scored against labelled documents

Evaluate a Policy

A first local run to verify the installation

Getting Started With Data Curation

Note

The category does not crawl web pages, extract Common Crawl WARC files, or run corpus-wide deduplication. Use a dedicated NeMo Curator recipe for those jobs before ingestion.

Documentation Series#

Tutorial

Install the Nemotron CLI, run a local tiny JSONL verification, and inspect output shards.

Getting Started With Data Curation
Explanation

Why curation measures before it filters, how signals depend on language packs, and what each artifact proves.

Curation Concepts
How-To Guides

Run the measure and apply flow, apply a known policy, audit, decontaminate, subset, and evaluate.

Curation How-To Guides
Reference

Per-step parameters and errors, flow configuration, policy schema, CLI syntax, and troubleshooting.

Curation Reference

All Documentation#

Guide

What you do

Getting Started With Data Curation

Run curate/nemo_curator on the packaged tiny JSONL fixture

Page

Question it answers

Two-Run Curation: Measure, Approve, Apply

Why is measurement separated from application, and what does approval record?

Signals and Language Packs

Which signals transfer between languages, and what does a language pack supply?

Curation Pipeline Artifacts

What do the manifest, ledger, reports, and policies each prove?

Guide

Focus

Run the Measure and Apply Flow

Measurement run, review, and application run with the flow driver

Apply a Known Policy

Single-step filtering with an existing approved policy

Audit a Curated Corpus

Integrity, completeness, and attribution checks

Decontaminate and Subset a Corpus

Holdout overlap removal and nested token-budget tiers

Evaluate a Policy

Precision and recall of an approved policy on labelled documents

Enable Curation Filters

Language, word-count, and domain gates

Run Curation on Local JSONL

Local JSONL reader/writer path

Use a Hugging Face Snapshot

dataset block and Hugging Face snapshot download

Page

Content

Curation CLI

Command syntax for every step and the flow driver

curate/ingest

curate/ingest parameters, outputs, and errors

curate/profile

curate/profile parameters, signals, outputs, and errors

curate/nemo_curator Configuration

curate/nemo_curator parameters and gate semantics

curate/audit

curate/audit parameters, modes, and errors

curate/decontamination

curate/decontamination parameters and errors

curate/subset

curate/subset parameters and errors

Curate Flow Configuration

Flow configuration file, derived paths, and preflight checks

Filter Policy File

Candidate and approved policy schema

Curation Input and Output Format

Input records and the artifacts steps exchange

Curation Troubleshooting

Error identifiers grouped by cause

What You Need#

  • A corpus in Parquet or JSONL with one text field, usually named text.

  • The BCP-47 tag of the corpus language and a reviewed language pack for it. Nemotron ships example packs for en, vi, and hi and selects none of them implicitly.

  • Optional model assets when gates are enabled, such as a FastText language identification model for language_codes.

  • A held-out evaluation set when decontamination is enabled, and one GPU for its similarity pass.

  • A writable output root.