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 |
|---|---|---|
|
Normalizes Parquet or JSONL, mints content-derived document identifiers, and maps source columns |
No |
|
Measures quality-signal distributions on the unfiltered corpus and writes candidate thresholds |
No |
|
Applies language, word-count, and domain gates and an approved filter policy |
Yes |
|
Verifies the filtered corpus against the manifest and ledger the filter step wrote |
No |
|
Removes training documents that overlap a held-out evaluation set |
Yes |
|
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:
A measurement run ingests and profiles the corpus and writes
candidate_policies.yamlwithapproved: false. Nothing is filtered.A person reads
profile_summary.md, chooses thresholds, and records the approval in the configuration.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 |
|
An approved policy already exists for this corpus and language pack |
|
Only language, word-count, or domain gates are needed, without a policy |
|
A filtered corpus exists and its integrity has to be verified |
|
A filtered corpus has to be protected against evaluation leakage or cut into tiers |
|
An approved policy has to be scored against labelled documents |
|
A first local run to verify the installation |
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#
Install the Nemotron CLI, run a local tiny JSONL verification, and inspect output shards.
Why curation measures before it filters, how signals depend on language packs, and what each artifact proves.
Run the measure and apply flow, apply a known policy, audit, decontaminate, subset, and evaluate.
Per-step parameters and errors, flow configuration, policy schema, CLI syntax, and troubleshooting.
All Documentation#
Guide |
What you do |
|---|---|
Run |
Page |
Question it answers |
|---|---|
Why is measurement separated from application, and what does approval record? |
|
Which signals transfer between languages, and what does a language pack supply? |
|
What do the manifest, ledger, reports, and policies each prove? |
Guide |
Focus |
|---|---|
Measurement run, review, and application run with the flow driver |
|
Single-step filtering with an existing approved policy |
|
Integrity, completeness, and attribution checks |
|
Holdout overlap removal and nested token-budget tiers |
|
Precision and recall of an approved policy on labelled documents |
|
Language, word-count, and domain gates |
|
Local JSONL reader/writer path |
|
|
Page |
Content |
|---|---|
Command syntax for every step and the flow driver |
|
|
|
|
|
|
|
|
|
|
|
|
|
Flow configuration file, derived paths, and preflight checks |
|
Candidate and approved policy schema |
|
Input records and the artifacts steps exchange |
|
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, andhiand 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.