﻿# RedPajama Data v2: select web text using released quality signals

Use RedPajama v2 document, signal and duplicate sidecars to define a reproducible web-text filter without confusing annotation with removal.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/data-guide-redpajama-v2-quality-signals/
Language: en

## Treat the release as a filterable pool

RedPajama Data v2 is a web-only pretraining resource with released quality information, rather than a single universally filtered corpus. The [paper](https://arxiv.org/abs/2411.12372) presents signals and metadata as tools for constructing new subsets. It is useful when the research question concerns selection policy: which pages survive a rule, how much training text remains, and which domains or genres change as a consequence.

## Select the annotated partition deliberately

The [owner card](https://huggingface.co/datasets/togethercomputer/RedPajama-Data-V2) lists English, German, French, Spanish and Italian material across Common Crawl snapshots. Text is available in head_middle and tail partitions, but quality signals and duplicate-related artifacts accompany head_middle. These buckets derive from CCNet perplexity processing. They are neither human quality grades nor train/test splits. Write down language, snapshot and partition before stating a retention rate, since changing that denominator changes its meaning.

## Join the sidecars without losing identity

Document JSON contains raw_content with URL, crawl metadata and CCNet fields. Separate paths hold quality_signals, duplicates and minhash artifacts. Signal records identify their source document, and values can be span-oriented tuples with start, end and score. Preserve the association with the unchanged raw string: normalizing text before applying offsets can misplace a line signal. Check missing and duplicate join keys before evaluating any selection rule.

## Distinguish marks from exclusions

The [official pipeline](https://github.com/togethercomputer/RedPajama-Data) separates artifact preparation, quality-signal computation and deduplication. The card explicitly says duplicate documents remain in the dataset with marks in the duplicate component. A consumer must apply the intended exclusion policy. Thresholding a language score without consulting these marks produces a different corpus from filtering and deduplicating. Preserve both decisions, including what happens when an annotation is unavailable, in a versioned configuration.

## Compare retained distributions

A proposed local experiment should change one signal family at a time while holding the training token budget fixed. Review rejected examples as well as accepted examples: a repetition rule can discard navigation noise and also legitimate lists. The [deduplication guide](/journal/training-deduplication-memorization/) clarifies the difference between reducing exposure and proving non-memorization. The [provenance guide](/journal/document-markdown-json-provenance/) supports traceable exports. Released blocklist or classifier signals should remain evidence about a rule, not an assurance of factuality, privacy or suitability for every audience.
