multilingual-mi-llm/pile
The Pile Replication Code The official website for the the Pile is here. 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. This repository is for replicating or making variants of the Pile. IF YOU ARE HERE TO USE THE PILE… See the full description on the dataset page: https://huggingface.co/datasets/multilingual-mi-llm/pile.
The Pile Replication Code
The official website for the the Pile is here.
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.
This repository is for replicating or making variants of the Pile. IF YOU ARE HERE TO USE THE PILE DATASET, THIS REPO IS PROBABLY NOT WHAT YOU ARE LOOKING FOR. A copy of the Pile can be downloaded [here](https://the-eye.eu/public/AI/pile/).
(Epochs refers to the number of epochs elapsed after 1.2TB)
Usage
Install:
pip install -e .To replicate pile
python the_pile/pile.py --interleave_output 30 --using pile_reprodUse the pass 2 script here to complete shuffling.
Other
To force download all data:
python the_pile/pile.py --force_downloadTo 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.gzneeds 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  and add it to . Datasets that we elect to not include in the current version of the Pile will receive a  or  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  or  as appropriate.
Data ready for final implementation should meet the following criteria:
- The data must be in lm_dataformat format.
- The data must be shuffled.
*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.*
