pul95 / The-Pile

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Pile™

The Pile is a large, diverse, open source language modelling data set that consists of many smaller datasets combined together. The objective is to obtain text from as many modalities as possible to ensure that models trained using The Pile will have much broader generalization abilities. We are currently developing Version 1, with an ultimate goal of 1 TiB of English text. After the completion of Version 1, our next goal is a fully-multilingual, 10TiB text dataset.

The Pile is currently still under development.

Component Raw Size Weight Epochs Effective Size Mean Document Size
CommonCrawl 297.37 GiB 23.84% 0.9620 297.37 GiB 4.16 KiB
PubMed Central 90.27 GiB 11.00% 1.4629 137.27 GiB 30.55 KiB
Bibliotik 100.96 GiB 9.63% 1.1442 120.08 GiB 538.36 KiB
ArXiv 56.21 GiB 9.14% 1.9505 113.96 GiB 46.61 KiB
Github 630.64 GiB 7.62% 0.1449 95.00 GiB 11.68 KiB
OpenWebText2 62.77 GiB 7.33% 1.4013 91.43 GiB 3.85 KiB
FreeLaw 51.15 GiB 6.24% 1.4629 77.78 GiB 15.06 KiB
Wikipedia (en) 23.65 GiB 4.14% 2.1020 51.67 GiB 4.11 KiB
StackExchange 32.20 GiB 3.76% 1.4013 46.90 GiB 2.16 KiB
USPTO 22.90 GiB 3.72% 1.9505 46.44 GiB 4.08 KiB
PubMed Abstracts 19.26 GiB 3.13% 1.9505 39.06 GiB 1.30 KiB
Gutenberg (PG-19) 10.88 GiB 2.07% 2.2885 25.87 GiB 398.73 KiB
OpenSubtitles 12.98 GiB 1.37% 1.2651 17.07 GiB 30.48 KiB
DM Mathematics 7.75 GiB 1.30% 2.0163 16.23 GiB 47.21 MiB
Literotica 11.60 GiB 1.11% 1.1442 13.80 GiB 25.69 KiB
BookCorpus 6.30 GiB 0.90% 1.7164 11.24 GiB 369.87 KiB
Ubuntu IRC 5.52 GiB 0.87% 1.8977 10.88 GiB 2.01 MiB
EuroParl 4.59 GiB 0.73% 1.8977 9.04 GiB 68.87 KiB
YoutubeSubtitles 3.73 GiB 0.59% 1.8977 7.37 GiB 22.55 KiB
PhilPapers 2.38 GiB 0.58% 2.9257 7.23 GiB 73.37 KiB
NIH ExPorter 1.89 GiB 0.46% 2.9257 5.76 GiB 2.11 KiB
HackerNews 1.59 GiB 0.25% 1.8977 3.13 GiB 4.46 KiB
Enron Emails 901.43 MiB 0.22% 3.0244 2.77 GiB 1.78 KiB
Total 1.42 TiB 1.22 TiB 7.53 KiB

(Epochs refers to the number of epochs elapsed after 1.2TB)

Usage

Install:

pip install -e .

To download all data:

python the_pile/pile.py --download

To generate fasttext training data for CC filtering (OWT2 only):

sudo apt install build-essential
python the_pile/pile.py --using owt2 --make_fasttext 

Manual Download Components

The following components need manual downloading. Either download them or comment out from pile.py.

  • Bibliotik: books3.tar.gz needs to be in the current directory. Download temporarily unavailable.

Workflow

To propose a new dataset be added to the Pile, open an issue. Your issue should include a description of the dataset, its size, what language(s) it is in, a link to the data, and any other relevant information. If a project manger approves your proposal, they will change its label to Datasets and add it to Project: Datasets. Datasets that we elect to not include in the current version of the Pile will receive a Deferred or Declined label. While we welcome multilingual datasets and plan on including non-English datasets in the future, the initial release of the Pile will be English-only and all submissions of non-English datasets will be deferred.

To claim responsibility for implementing an unclaimed dataset, leave a comment on one of our unassigned issues. Once an dataset has been assigned to you, make the necessary changes to datsets.py and pile.py in a fork and submit a pull request. If you require, you can also submit a script for processing the data as shown here.

To raise an issue that is not proposing a new dataset, open an issue with the tag Feature Request or Bug as appropriate.

In preparation for the initial release, we are no longer accepting additions to the master branch. If you would like to contribute a dataset, please submit the pull request to the Version2 branch.

About


Languages

Language:Python 99.8%Language:Batchfile 0.2%