The Common Pile v0.1: An 8TB Dataset of Public Domain and Openly Licensed Text

Nikhil Kandpal, Brian Lester, Colin Raffel, Sebastian Majstorovic, Stella Biderman, Baber Abbasi, Luca Soldaini, Enrico Shippole, A. Feder Cooper, Aviya Skowron, John Kirchenbauer, Shayne Longpre, Lintang Sutawika, Alon Albalak, Zhenlin Xu, Guilherme Penedo, Loubna Ben Allal, Elie Bakouch, John David Pressman, Honglu Fan, Dashiell Stander, Guangyu Song, Aaron Gokaslan, Tom Goldstein, Brian R. Bartoldson, Bhavya Kailkhura, Tyler Murray · DOI

Introduction

Modern Large Language Models (LLMs) are incredibly data-hungry, typically relying on trillions of tokens scraped from the public internet. However, much of this text is protected by copyright, and its use without compensation or consent has sparked massive legal battles, ethical debates, and a sharp increase in websites blocking AI web crawlers.

The obvious solution is to train models exclusively on public domain and openly licensed text. Unfortunately, previous attempts to build "copyright-clean" datasets have yielded collections that are either too small or too low-quality to produce state-of-the-art models. This paper addresses that gap by introducing a massive, high-quality, openly licensed dataset and proving that it can be used to train highly competitive LLMs.

Methods

The authors built the dataset and trained the models using a rigorous, data-centric pipeline:

  • Strict License Due Diligence: The team only included text meeting the Open Knowledge Foundation’s Open Definition 2.1 (e.g., CC BY, CC BY-SA, MIT, Public Domain). They explicitly excluded Non-Commercial (NC) and No-Derivatives (ND) licenses, as well as synthetic data generated by LLMs.
  • Extensive Filtering: The raw 8TB text underwent heavy preprocessing, including language identification, text quality classifiers, likelihood-based filtering (to catch OCR errors in scanned books), toxicity classifiers, PII redaction, and global fuzzy deduplication.
  • Heuristic Data Mixing: Because dataset size doesn't always correlate with quality, the authors trained small 1.7B parameter models on individual data sources to gauge their quality. They then up-weighted high-performing sources and down-weighted lower-performing ones to create the final training mixture (the "Comma dataset").
  • Model Training: They trained two 7B parameter models using the Llama architecture. Training utilized a two-stage curriculum: a standard cosine learning rate schedule followed by a "cool-down" phase that trained exclusively on a subset of the highest-quality data while decaying the learning rate to zero.

The Common Pile Dataset

The Common Pile v0.1 is a raw 8TB dataset comprising 30 diverse sources. The dataset spans scientific papers (ArXiv, PubMed, peS2o), code (The Stack V2, GitHub), government/legal texts (US Patents, UK Hansard, Caselaw), books (Project Gutenberg, Pre-1929 books), wikis (Wikimedia), educational resources, and transcribed CC-licensed YouTube videos.

Key Results

The most important takeaway is an existence proof: you can train highly performant LLMs without relying on legally ambiguous, unlicensed web scraping. When training identical 1.7B parameter models on 28B tokens of various datasets, the Comma dataset outperformed all previous open-license datasets (OLC, Common Corpus, KL3M) and even beat the widely used, unlicensed dataset The Pile on almost all benchmarks.

  • Comma v0.1-1T (1 Trillion Tokens): This 7B parameter model outperformed budget-matched models trained on unlicensed data—including Llama 1 7B, MPT-7B, and OpenLLaMA—on over half of the evaluated benchmarks, with massive leads in coding tasks (HumanEval, MBPP).
  • Comma v0.1-2T (2 Trillion Tokens): By repeating the dataset, the authors trained a 2T token variant that proved highly competitive with modern 2T-token models like Llama 2 7B, OLMo, and DeepSeekLLM.

Discussion and Future Work

Because openly licensed data leans heavily toward scientific papers, government documents, and source code, the resulting models are exceptionally strong at knowledge-intensive tasks (MMLU) and coding. Conversely, they struggle slightly with everyday commonsense reasoning (HellaSwag) because the dataset lacks casual, everyday web text like personal blogs or hobby sites.

The authors acknowledge that the internet is full of "license laundering" (where users upload copyrighted work and falsely slap an open license on it). While they used strict sourcing to mitigate this, it is nearly impossible to eradicate entirely. Furthermore, to reach 2 trillion tokens, the Comma v0.1-2T model had to repeat certain data sources up to 16 times, which likely yields diminishing returns.

Future work will focus on collecting larger quantities of openly licensed text—especially casual, conversational text—to allow for scaling up training budgets without excessive data repetition. The authors note that the volume of openly licensed data is accelerating, with approximately half of the Common Pile (around 3.8TB) created since 2020.

Summary updated

BibTeX
@inproceedings{kandpal2025common,
  author = {Nikhil Kandpal and Brian Lester and Colin Raffel and Sebastian Majstorovic and Stella Biderman and Baber Abbasi and Luca Soldaini and Enrico Shippole and A. Feder Cooper and Aviya Skowron and John Kirchenbauer and Shayne Longpre and Lintang Sutawika and Alon Albalak and Zhenlin Xu and Guilherme Penedo and Loubna Ben Allal and Elie Bakouch and John David Pressman and Honglu Fan and Dashiell Stander and Guangyu Song and Aaron Gokaslan and Tom Goldstein and Brian R. Bartoldson and Bhavya Kailkhura and Tyler Murray},
  title = {{The Common Pile v0.1: An 8TB Dataset of Public Domain and Openly Licensed Text}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=DIELgiqdvJ},
}
Figure