about
The Pile: An 800GB Dataset of Diverse Text for Language Modeling (arxiv.org)
13 points by tosh on Jun 10, 2023 | hide | past | pdf | 5 comments on HN

In plain words: A new 825 GiB English text collection mixes 22 sources, including academic and professional writing, to give language models broad knowledge across many domains. Models trained on it beat models trained on plain web text on every part of the collection and on downstream tests.

Abstract

Recent work has demonstrated that increased training dataset diversity improves general cross-domain knowledge and downstream generalization capability for large-scale language models. With this in mind, we present \textit{the Pile}: an 825 GiB English text corpus targeted at training large-scale language models. The Pile is constructed from 22 diverse high-quality subsets -- both existing and newly constructed -- many of which derive from academic or professional sources. Our evaluation of the untuned performance of GPT-2 and GPT-3 on the Pile shows that these models struggle on many of its components, such as academic writing. Conversely, models trained on the Pile improve significantly over both Raw CC and CC-100 on all components of the Pile, while improving performance on downstream evaluations. Through an in-depth exploratory analysis, we document potentially concerning aspects of the data for prospective users. We make publicly available the code used in its construction.

Leo Gao, Stella Biderman, Sid Black, Laurence Golding, Travis Hoppe, Charles Foster, Jason Phang, Horace He, Anish Thite, Noa Nabeshima, Shawn Presser, Connor Leahy
arXiv:2101.00027 · cs.CL · submitted Dec 31, 2020
abstract · pdf · html

add comment on HN
Also discussed: Jul 2023 (184 points, 70 comments) · May 2021 (2 points, 1 comment)

Might be useful to those who have not been in the space but this is old news. 2020.
I tried to find out how many "tokens" (I know: depends on the tokenizer) "The Pile" has but couldn't find it.

As far as I understand RedPajama has 1.2T (https://github.com/togethercomputer/RedPajama-Data) and has a table in the readme listing the main parts and how many tokens each part has.

I wrote an article about recent data pipelines as well if anyone is interested: https://blog.christianperone.com/2023/06/appreciating-llms-d...
Arguably “The Pile” approach is the bane of open source and small player LLMs. Because the models are shaped by data. And there is little beauty in “The Pile”.

— anonymous shaper