This guide provides step-by-step instructions for setting up NeMo Curator’s text curation capabilities. Follow these instructions to prepare your environment and execute your first text curation pipeline.
To use NeMo Curator’s text curation modules, ensure your system meets the following requirements:
If uv is not installed, refer to the Installation Guide for setup instructions, or install it quickly using:
You can install NeMo Curator using one of the following methods:
The simplest way to install NeMo Curator:
For other modalities (image, video) or all modules, see the Installation Guide.
NeMo Curator uses a pipeline-based architecture for processing text data. Before running your first pipeline, ensure you have a proper directory structure:
Create the following directories for your text datasets:
For this example, you need sample JSONL files in ~/nemo_curator/data/sample/. Each line should be a JSON object with at least text and id fields. You can create test data or refer to Read Existing Data and Data Loading for information on downloading data.
Set your HuggingFace token to avoid rate limiting when downloading models or datasets:
export HF_TOKEN=“your_token_here”
Without a token, repeated downloads from Hugging Face may result in 429 Client Error (rate limiting). Get a free token at huggingface.co/settings/tokens.
Here’s a simple example to get started with NeMo Curator’s pipeline-based architecture:
Explore the Text Curation documentation for more advanced filtering techniques, GPU acceleration options, and large-scale processing workflows.