Instead of shipping a single pre-filtered web dump, RedPajama-V2 releases 123.7 trillion raw Common Crawl tokens alongside 46 per-document quality signals, turning dataset curation into a reproducible ablation rather than a black-box preprocessing script.

  • Two complementary releases: RedPajama-V1 is a 1.2 trillion token open replication of LLaMA-1’s seven-source mix, while RedPajama-V2 spans 113.3 billion raw web documents (123.7 trillion tokens) across 84 Common Crawl snapshots (2014 to 2023) in five languages.
  • Deduplicated quality core: Keeping CCNet’s head and middle perplexity buckets yields 32.8 billion documents (50.7 trillion tokens), which shrink to 20.8 billion documents and 30.4 trillion tokens after sequential exact deduplication.
  • Filtering beats raw scale on benchmarks: In 468M-parameter Llama-2 ablations trained for 100B tokens, applying MinHash fuzzy deduplication and full Gopher rules to a single RedPajama-V2 crawl lifts average benchmark accuracy from 36.4% to 37.6% and achieves the highest rank-score (0.700) of all 19 tested recipes, outranking FineWeb (0.644) and RefinedWeb (0.650).
  • Real production adoption and limits: RedPajama subsets fed open models like Snowflake Arctic, Salesforce XGen, and AI2 OLMo, though the paper’s own ablations stop at 1.6B parameters and omit benchmark decontamination and PII audits.

From replicating LLaMA-1 to shipping raw web metadata

RedPajama began with V1, a 1.2T-token best-effort reconstruction of the training mix described in the original LLaMA report: CommonCrawl (878B), C4 (175B), GitHub under Apache, BSD, or MIT licenses (59B), ArXiv LaTeX sources (28B), Books from PG19 after dropping Books3 over copyright (26B), Wikipedia (24B), and StackExchange (20B). When the authors trained RedPajama-INCITE 3B and 7B models on Oak Ridge’s Summit supercomputer, INCITE-3B beat Pythia-2.8B and GPT-Neo by 3 to 5 points on HELM-classic, and INCITE-7B-Instruct reached 0.492 HELM-avg ahead of LLaMA-7B (0.472). Yet INCITE-7B-Base still trailed LLaMA-7B by 4.1 points, likely due to Summit’s lack of bf16 (requiring fp16 with lower learning rates) and undocumented LLaMA curation choices.

RedPajama-V2 flips that workflow. Rather than guessing one hidden recipe and discarding rejected pages, Weber and colleagues processed 84 Common Crawl .wet snapshots in English, German, French, Spanish, and Italian through CCNet while retaining every perplexity bucket (head, middle, and tail), and then attached metadata schemas matching FineWeb and Dolma so teams can test custom subsets on demand.

How RedPajama-V2 partitions 123.7 trillion web tokens and 46 quality signals
1. Raw 84-crawl pool
CCNet language ID and 5-gram Wikipedia perplexity across EN, DE, FR, ES, IT (2014 to 2023).
113.3B docs / 123.7T tokens total
Tail bucket holds 80.5B shorter docs (73.0T tokens, ~850 tokens each) kept without signals.
2. Head + middle slice
Low and medium Wikipedia-perplexity documents (~1,500 tokens per doc) receive full annotations.
32.8B docs / 50.7T tokens (pre-dedupe)
46 signals per document: C4/Gopher natural-language rules, n-gram repetition, LDNOOBW/UT1 safety flags, fastText and DSIR scores, plus MinHash signatures.
3. Sequential deduplication
Bloom filter (1% error) scans from newest crawl (2023-14) back to oldest (2014-15).
20.8B docs / 30.4T unique tokens
English 20.5T, German 3.0T, Spanish 2.8T, French 2.7T, Italian 1.5T.

Source: Weber et al. (2024), Section 4.1 through Table 3.

What quality signal ablations actually change

To test whether those 46 signals separate weak recipes from strong ones, the authors trained 468M-parameter Llama-2 models on 100B tokens each using OLMo and FSDP on H100 nodes, plus three 1.6B-parameter runs on 350B tokens. They tracked 10 core benchmarks from lm-evaluation-harness (including ARC-e, HellaSwag, LAMBADA, MMLU, PIQA, and Winogrande) alongside Pile and Paloma validation perplexity.

The clearest winner on RedPajama-V2 was combining fuzzy MinHash LSH deduplication (word 13-grams, 128 hashes) with full Gopher rules. On the 2023-14 snapshot, that combination raised average accuracy from 36.4% (unfiltered) to 37.6% and posted a 0.700 rank-score across tasks, edging past RefinedWeb (0.650) and FineWeb (0.644) on consistency even though RefinedWeb held the top raw average (37.9%). Meanwhile, exact Bloom deduplication alone slightly lowered 468M accuracy from 36.4% to 36.2%, and applying line-level C4 filters reduced perplexity without moving aggregate benchmark scores. Across nine snapshots, Gopher natural-language rules outperformed Gopher repetition filters (36.7% vs. 35.9%), while fastText classifiers and DSIR importance weights performed similarly.

468M Llama-2 benchmark averages at 100B tokens (higher is better)
RPv1-CC (baseline mix)
35.6% (rank 0.461)
C4
35.8% (rank 0.472)
RPv2 2023-14 (unfiltered)
36.4% (rank 0.594)
FineWeb
36.5% (rank 0.644)
RPv2 + Fuzzy + Full Gopher
37.6% (rank 0.700)
RefinedWeb
37.9% (rank 0.650)

Bar widths scaled across the 33% to 38% operating band to highlight differences; scores aggregate 10 zero-shot tasks. Source: Weber et al. (2024), Table 5.

At the 1.6B scale (350B tokens), filtering full RedPajama-V2 with MinHash deduplication, full Gopher rules, and the Wiki-Ref classifier closed most of the gap with RefinedWeb (50.0% vs. 52.0% average accuracy, and 13.6 vs. 10.7 Pile validation perplexity). Interestingly, unfiltered RPv2 achieved the lowest Paloma validation perplexity (31.1) among 468M RPv2 runs because aggressive filtering narrows domain breadth, whereas Paloma rewards broad coverage.

Caveats and builder takeaway

Three constraints matter before building directly on RedPajama-V2. First, the headline 100T+ figure includes raw and tail partitions; the deduplicated head+middle pool is 30.4T tokens (20.5T in English), and aggressive rule or classifier filters trim that further, which makes deduplication and token counting after normalization essential. Second, the authors did not run systematic benchmark decontamination or PII scrubbing across the 113.3B documents, so production teams must add both checks downstream. Third, their ablations tested at most 1.6B parameters and 350B tokens; for multi-trillion-token recipes that mix model-based quality classifiers, pair these signals with controlled scaling studies like DCLM.

For infrastructure and data teams, RedPajama-V2’s real value is not a fixed token dump but a shared experimental substrate: you can iterate on filtering thresholds, domain weights, and fuzzy similarity cutoffs in hours instead of re-parsing 84 Common Crawl dumps from scratch.