nemo-curator
Skill này làm gì
Skill này giải thích NeMo Curator, bộ công cụ của NVIDIA để chuẩn bị dữ liệu huấn luyện cho mô hình ngôn ngữ. Skill dành cho các đội xây dựng dataset từ web hoặc các bộ dữ liệu lớn khác.
Khi nào nên dùng
- ✓Khi bạn chuẩn bị dữ liệu huấn luyện từ các đợt thu thập web lớn.
- ✓Khi bạn cần loại bỏ nhanh các tài liệu trùng lặp khỏi một tập văn bản lớn.
- ✓Khi bạn muốn lọc bỏ nội dung chất lượng thấp, độc hại hoặc cá nhân trước khi huấn luyện.
Liên kết skill
https://github.com/Orchestra-Research/AI-Research-SKILLs/blob/main/05-data-processing/nemo-curator/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Làm sạch tập file văn bản web lớn của tôi bằng cách loại bỏ trang trùng lặp và trang chất lượng thấp.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Công cụ chạy một chuỗi bước trên dữ liệu, như chấm điểm tài liệu, lọc chúng và loại bỏ trùng lặp. Các bước chạy trên GPU và có thể chia ra nhiều máy.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
NeMo Curator - GPU-Accelerated Data Curation
NVIDIA's toolkit for preparing high-quality training data for LLMs.
When to use NeMo Curator
Use NeMo Curator when:
- Preparing LLM training data from web scrapes (Common Crawl)
- Need fast deduplication (16× faster than CPU)
- Curating multi-modal datasets (text, images, video, audio)
- Filtering low-quality or toxic content
- Scaling data processing across GPU cluster
Performance:
- 16× faster fuzzy deduplication (8TB RedPajama v2)
- 40% lower TCO vs CPU alternatives
- Near-linear scaling across GPU nodes
Use alternatives instead:
- datatrove: CPU-based, open-source data processing
- dolma: Allen AI's data toolkit
- Ray Data: General ML data processing (no curation focus)
Quick start
Installation
# Text curation (CUDA 12)
uv pip install "nemo-curator[text_cuda12]"
# All modalities
uv pip install "nemo-curator[all_cuda12]"
# CPU-only (slower)
uv pip install "nemo-curator[cpu]"
Basic text curation pipeline
from nemo_curator import ScoreFilter, Modify
from nemo_curator.datasets import DocumentDataset
import pandas as pd
# Load data
df = pd.DataFrame({"text": ["Good document", "Bad doc", "Excellent text"]})
dataset = DocumentDataset(df)
# Quality filtering
def quality_score(doc):
return len(doc["text"].split()) > 5 # Filter short docs
filtered = ScoreFilter(quality_score)(dataset)
# Deduplication
from nemo_curator.modules import ExactDuplicates
deduped = ExactDuplicates()(filtered)
# Save
deduped.to_parquet("curated_data/")
Data curation pipeline
Stage 1: Quality filtering
from nemo_curator.filters import (
WordCountFilter,
RepeatedLinesFilter,
UrlRatioFilter,
NonAlphaNumericFilter
)
# Apply 30+ heuristic filters
from nemo_curator import ScoreFilter
# Word count filter
dataset = dataset.filter(WordCountFilter(min_words=50, max_words=100000))
# Remove repetitive content
dataset = dataset.filter(RepeatedLinesFilter(max_repeated_line_fraction=0.3))
# URL ratio filter
dataset = dataset.filter(UrlRatioFilter(max_url_ratio=0.2))
Stage 2: Deduplication
Exact deduplication:
from nemo_curator.modules import ExactDuplicates
# Remove exact duplicates
deduped = ExactDuplicates(id_field="id", text_field="text")(dataset)
Fuzzy deduplication (16× faster on GPU):
from nemo_curator.modules import FuzzyDuplicates
# MinHash + LSH deduplication
fuzzy_dedup = FuzzyDuplicates(
id_field="id",
text_field="text",
num_hashes=260, # MinHash parameters
num_buckets=20,
hash_method="md5"
)
deduped = fuzzy_dedup(dataset)
Semantic deduplication:
from nemo_curator.modules import SemanticDuplicates
# Embedding-based deduplication
semantic_dedup = SemanticDuplicates(
id_field="id",
text_field="text",
embedding_model="sentence-transformers/all-MiniLM-L6-v2",
threshold=0.8 # Cosine similarity threshold
)
deduped = semantic_dedup(dataset)
Stage 3: PII redaction
from nemo_curator.modules import Modify
from nemo_curator.modifiers import PIIRedactor
# Redact personally identifiable information
pii_redactor = PIIRedactor(
supported_entities=["EMAIL_ADDRESS", "PHONE_NUMBER", "PERSON", "LOCATION"],
anonymize_action="replace" # or "redact"
)
redacted = Modify(pii_redactor)(dataset)
Stage 4: Classifier filtering
from nemo_curator.classifiers import QualityClassifier
# Quality classification
quality_clf = QualityClassifier(
model_path="nvidia/quality-classifier-deberta",
batch_size=256,
device="cuda"
)
# Filter low-quality documents
high_quality = dataset.filter(lambda doc: quality_clf(doc["text"]) > 0.5)
GPU acceleration
GPU vs CPU performance
| Operation | CPU (16 cores) | GPU (A100) | Speedup |
|---|---|---|---|
| Fuzzy dedup (8TB) | 120 hours | 7.5 hours | 16× |
| Exact dedup (1TB) | 8 hours | 0.5 hours | 16× |
| Quality filtering | 2 hours | 0.2 hours | 10× |
Multi-GPU scaling
from nemo_curator import get_client
import dask_cuda
# Initialize GPU cluster
client = get_client(cluster_type="gpu", n_workers=8)
# Process with 8 GPUs
deduped = FuzzyDuplicates(...)(dataset)
Multi-modal curation
Image curation
from nemo_curator.image import (
AestheticFilter,
NSFWFilter,
CLIPEmbedder
)
# Aesthetic scoring
aestheti
Câu hỏi thường gặp
Nó chỉ làm việc với văn bản thôi à?
Không. Skill nói nó cũng hỗ trợ dữ liệu hình ảnh, video và âm thanh.
Khử trùng lặp nhanh hơn bao nhiêu?
Skill báo cáo nhanh hơn tới 16 lần so với cách dùng CPU khi khử trùng lặp mờ (fuzzy).
Nếu tôi không có GPU thì sao?
Skill nhắc đến bản cài chỉ dùng CPU, mà nó mô tả là chậm hơn.
Chi tiết
Mô tả gốc của tác giả
GPU-accelerated data curation for LLM training. Supports text/image/video/audio. Features fuzzy deduplication (16× faster), quality filtering (30+ heuristics), semantic deduplication, PII redaction, NSFW detection. Scales across GPUs with RAPIDS. Use for preparing high-quality training datasets, cleaning web data, or deduplicating large corpora.
Độ phổ biến
- Sao GitHub
- 14k
- Vị trí xếp hạng
- #11188
- Giấy phép
- MIT
- Cập nhật
- 10/10/2026
Bình luận
- …
Thêm skill từ kho mã này
autoresearch
14kHướng dẫn agent của bạn qua một dự án nghiên cứu AI đầy đủ, từ tổng quan tài liệu đến thí nghiệm và viết báo, với một vòng lặp kiểm thử và rà soát lặp lại.
prompt-guard
14kCho phép agent của bạn quét văn bản để phát hiện prompt injection và các nỗ lực jailbreak trước khi nó đến ứng dụng AI, dùng bộ phân loại nhỏ của Meta.
pytorch-fsdp2
14kChỉ cho agent của bạn cách thêm PyTorch FSDP2 vào script huấn luyện để các mô hình lớn được chia ra nhiều GPU và lưu đúng cách.
ml-training-recipes
14kCung cấp cho agent của bạn các công thức huấn luyện mạng nơ-ron đã được kiểm chứng, gồm chọn mô hình, bộ tối ưu, learning rate và xử lý loss tăng vọt.
Skill tương tự
pytorch-patterns
280kGiúp agent của bạn dùng PyTorch cho các mô hình học máy. Áp dụng thực hành tốt nhất để huấn luyện mô hình hiệu quả và đảm bảo kết quả có thể lặp lại.
evm-token-decimals
280kGiúp agent tránh lỗi về số thập phân khi làm việc với các mạng blockchain khác nhau. Đảm bảo giá trị token chính xác trong giao dịch và phép tính.
ito-inference
280kGiúp agent kiểm tra xem các mô hình AI đã sẵn sàng để dùng chưa. Kết nối yêu cầu tài nguyên tính toán với dịch vụ mô hình đã sẵn sàng.