Data engineering

Wiki chapters and blog posts about Data engineering.

Wiki

Benchmark Contamination: How It Happens, How to Detect It, How to Avoid It

Benchmark contamination means evaluation questions, answers or paraphrases of them ended up in a model's training data, so scores measure memory instead of ability. A small experiment with known ground truth measures the dose-response and what n-gram and model-based detectors catch or miss.

Intermediate 44 min read

Building Evaluation Sets: Question Sources, Label Quality and Item Information

An evaluation set is only as good as its coverage, labels, discrimination and freshness. This page designs one from the decision it supports, then simulates how label errors lower scores and inflate sample sizes, why Cohen's kappa tracks class balance, and which items separate models.

Intermediate 42 min read

SFT Data: Construction and Quality Control

How to weigh the quantity and quality of SFT data and check it: measured effects of data size, label noise, the loss mask and mixed-in general data (Qwen2.5-0.5B on banking77), plus rule filters, near-duplicate removal and contamination checks on Alpaca, Alpaca-cleaned and Dolly.

Intermediate 66 min read

Pretraining Data Engineering: Filtering, Deduplication and Mixing

A pretraining corpus is filtered, deduplicated and mixed step by step, and every step throws data away. This page shows what FineWeb, Gopher, DCLM and Llama 3 drop and why, then runs MinHash near-duplicate removal on a demo corpus: how many words may change before a copy stops counting.

Intermediate 52 min read

The LLM Training Pipeline: From Data to Deployment

A map of the pipeline from data preparation, pretraining, SFT and preference alignment to evaluation and release, with the public data scale of each stage, plus a 0.86M-parameter byte-level GPT that trains on a laptop CPU to test data mixture, resuming and leakage.

Intermediate 34 min read

Blog posts

GR00T N1: A Data Pyramid and a Dual-System Model for Generalist Humanoid Robots

GR00T N1 (NVIDIA, 2025) pairs an Eagle-2 vision-language model with a flow-matching DiT action head and pretrains on a data pyramid of real robots, simulation, neural videos and human video. This post recomputes its parameters, the Eq. (1) sign, the data tallies and the results.

Paper notes arXiv 2025

Phi-3: Small models and the textbook-quality data strategy

Phi-3-mini trains 3.8B parameters on 3.3T tokens using heavily filtered and synthetic textbook-quality data. It demonstrates local deployment potential while acknowledging capacity limits in factual knowledge.

Paper notes arXiv 2024

DeepSeekMath: Math Corpus, GRPO and a Unified View of Reinforcement Learning

DeepSeekMath 7B continues pretraining on 120B tokens of web math, then uses GRPO, reinforcement learning without a value model, to reach 51.7% on MATH with no tools or voting. This post covers the corpus pipeline, ablations, GRPO's math and a unified view of SFT, RFT, DPO, PPO and GRPO.

Paper notes arXiv 2024

RoBERTa: A robustly optimized BERT recipe

RoBERTa keeps BERT’s architecture but uses more data, larger batches, longer training, dynamic masking, byte-level BPE and no NSP, showing the original model was undertrained.

Paper notes arXiv 2019

Topics