Datasets:

Modalities:
Text
Formats:
parquet
Languages:
English
ArXiv:
DOI:
Libraries:
Datasets
Dask
License:
falcon-refinedweb / README.md
slippylolo's picture
Fix metadata
e26b5c1
|
raw
history blame
4.38 kB
metadata
dataset_info:
  features:
    - name: content
      dtype: string
    - name: url
      dtype: string
    - name: timestamp
      dtype: timestamp[s]
    - name: dump
      dtype: string
    - name: segment
      dtype: string
    - name: image_urls
      sequence:
        sequence: string
  splits:
    - name: train
      num_bytes: 2766953721769
      num_examples: 968000015
  download_size: 466888198663
  dataset_size: 2766953721769
license: apache-2.0
task_categories:
  - text-generation
language:
  - en
pretty_name: Falcon RefinedWeb
size_categories:
  - 100B<n<1T

Falcon RefinedWeb

Falcon RefinedWeb is a massive English web dataset built by TII and released under an Apache 2.0 license.

RefinedWeb is built through stringent filtering and large-scale deduplication of CommonCrawl; we found models trained on RefinedWeb to achieve performance in-line or better than models trained on curated datasets, while relying only on web data.

This public extract should contain 500-650GT depending on your tokenizer of choice.

from datasets import load_dataset
rw = load_dataset("tiiuae/falcon-refinedweb")

Dataset card

Dataset Description

Dataset Summary

Falcon RefinedWeb was created to serve as an English large-scale dataset for the pretraining of large language models. It may be used on its own, or augmented with curated sources (e.g., Wikipedia, StackOverflow).

It was built on top of CommonCrawl, leveraging stringent filtering and extensive deduplication.

Dataset Creation

Curation Rationale

RefinedWeb is built on-top of CommonCrawl, using the Macrodata Refinement Pipeline, which combines content extraction, filtering heuristics, and deduplication.

In designing RefinedWeb, we abided to the following philosophy:

  • (1) Scale first. We intend MDR to produce datasets to be used to train 40-200B parameters models, thus requiring trillions of tokens For English-only RefinedWeb, we target a size of 3-6 trillion tokens. Specifically, we eschew any labour intensive human curation process, and focus on CommonCrawl instead of disparate single-domain sources.
  • (2) Strict deduplication. Inspired by the work of Katherine Lee, which demonstrated the value of deduplication for large language models, we implement a rigorous deduplication pipeline. We combine both exact and fuzzy deduplication, and use strict settings leading to removal rates far higher than others have reported.
  • (3) Neutral filtering. To avoid introducing further undesirable biases into the model, we avoid using ML-based filtering outside of language identification. We stick to simple rules and heuristics, and use only URL filtering for adult content.

During its development, we iterated on RefinedWeb by measuring the zero-shot performance of models trained with earlier versions of the dataset. We also manually audited samples to identify potential filtering improvements.

Source Data

RefinedWeb is built from CommonCrawl dumps.

Data Collection and Preprocessing

See the upcoming paper for further details.

We applied extensive preprocessing and cleaning of the data.

We first filter URLs to remove adult content using a blocklist and a score system, we then use trafilatura to extract content from pages, and perform language identification with the fastText classifier from CCNet.

After this first preprocessing stage, we filter data using heuristics from MassiveWeb, and our own line-wise corrections.

Finally, we run extensive deduplication, removing URLs revisited across dumps and performing subsequently fuzzy and exact substring deduplication.

Considerations for Using the Data

Despite our best efforts to filter content that does not qualify as natural language, and to deduplicate documents, our pipeline may let through documents that may be considered as errors or redundant.

As toxic or biased data is prevalent on the internet, it is likely our dataset contains such content. Notably, using the Perspective API, we estimated the prevalence of toxic content in the dataset to be similar to The Pile.

Additional Information

Licensing Information

Apache 2.0.

Citation Information

Paper coming soon.