Datasets:

Languages:
English
ArXiv:
SlimPajama-627B / README.md
rskuzma's picture
Add README
e83b57a
|
raw
history blame
7.3 kB
metadata
task_categories:
  - text-generation
language:
  - en
pretty_name: SlimPajama 627B
license: apache-2.0

Getting Started

SlimPajama-627B consists of 59166 jsonl files. It is a cleaned and deduplicated version of Together Computer's RedPajama.

You can download the dataset using Hugging Face datasets:

from datasets import load_dataset
ds = load_dataset("cerebras/SlimPajama-627B")

Background

We release SlimPajama – the largest deduplicated, multi-corpora, open-source, dataset for training large language models. SlimPajama was created by cleaning and deduplicating the RedPajama dataset from Together Computer via MinHashLSH. By filtering out low quality data and duplicates, we were able to remove 49.6% of bytes, slimming down the dataset from 1210B to 627B tokens! We believe SlimPajama offers the highest quality and most compute efficient data to train on for runs less than 627B tokens. When upsampled, we expect SlimPajama to perform equal or better than RedPajama-1T when training at trillion token scale. This release was made possible with the support of our customer OpenTensor. We believe SlimPajama is currently the most attractive open-source dataset because it offers the highest data quality through strict deduplication and the inclusion of curated data sources. The dataset can easily be upsampled to increase the number of tokens and precisely control the amount of duplication present.

Applying MinHashLSH deduplication to Trillion token datasets like RedPajama was not possible with off-the-shelf open-source code. We made several optimizations to existing solutions to produce infrastructure that can perform MinHashLSH deduplication on Trillion token datasets in a distributed, multi-threaded and memory efficient fashion. Today we are open-sourcing this infrastructure to enable the community to develop higher quality, deduplicated datasets in the future.

Our observations of the original data set

  1. RedPajama contains a portion of partially downloaded files.
  2. Some (~2%) of the examples contain empty text. They were downloaded correctly, but do not have useful content that a model can be trained on.
  3. There are many (~50%) duplicates in the data. The RedPajama team deduplicated some sources (Books, GitHub, Commoncrawl), but did not deduplicate all sources.

Our contributions

  1. SlimPajama 627B – the largest deduplicated, multi-corpora, open dataset for LLM training. We release it under the Apache 2.0 license.
  2. Releasing validation and test sets, ~500M tokens each, which the training data has been decontaminated against.
  3. Library of methods to replicate or pre-process from scratch other datasets. To the best of our knowledge these are the first open source tools to enable cleaning and MinHashLSH deduplication of text data at trillion token scale.

The full set of scripts to recreate the dataset from the original RedPajama dataset is available on the Cerebras github. The blog post detailing our cleaning and deduplication process can be found in the SlimPajama blog post.

Dataset Summary

Comparison of dataset features

Dataset Tokens Open Source Curated Data Sources Deduplicated
SlimPajama 627B Yes Yes Yes
RedPajama 1.21T Yes Yes No
RefinedWeb-600B 600B Yes No Yes
RefinedWeb-5T 5T No No Yes
LLaMA 1.4T No Yes Yes
MPT 1T No Yes No
MassiveText 1.4T No Yes Yes

Document low-length filter rates

Data source Document low-length filter rate
Commoncrawl 0.02%
C4 4.70%
GitHub 0.00%
Books 0.00%
ArXiv 0.62%
Wikpedia 0.00%
StackExchange 0.32%
Total 1.86%

Byte deduplication rates

Data source Dedupe byte prune rate
Commoncrawl 63.76%
C4 6.85%
GitHub 46.16%
Books 2.01%
ArXiv 0.06%
Wikipedia 2.24%
StackExchange 0.20%
Total 49.60%

Data source proportions for SlimPajama and RedPajama

Data source SlimPajama RedPajama
Commoncrawl 52.2% 72.6%
C4 26.7% 14.4%
GitHub 5.2% 4.9%
Books 4.2% 2.1%
ArXiv 4.6% 2.3%
Wikpedia 3.8% 2.0%
StackExchange 3.3% 1.7%

Languages

Primarily English, with some non-English files in Wikipedia.

Dataset Structure

The dataset consists of jsonl files, with structure as follows:

{
    "text": ...,
    "meta": {"redpajama_set_name": "RedPajamaCommonCrawl" | "RedPajamaC4" | "RedPajamaGithub" | "RedPajamaBook" | "RedPajamaArXiv" | "RedPajamaWikipedia" | "RedPajamaStackExchange"},
}

Dataset Creation

SlimPajama was created by cleaning and deduplicating the RedPajama dataset from Together Computer via MinHashLSH. RedPajama is an open-source reproduction of the LLaMa data collection methodology.

Source Data

The data sources composing RedPajama are explained in its model card.

To cite SlimPajama, please use:

@software{cerebras2023slimpajama,
  author = {Cerebras Systems},
  title = {SlimPajama: A 627B token cleaned and deduplicated version of RedPajama},
  month = June,
  year = 2023,
  url = {TODO: Blog URL}
}

License

Please refer to the licenses of the data subsets you use.