Archive of AI

Source Snapshot / 2024-05-fineweb-dataset-3

FineWeb 技术报告源码

Linked event: 2024-05 · Hugging Face Open-Sources 15-Trillion-Token Pretraining Corpus FineWeb

Publisher
Hugging Face
Archived
2026-11-23
Capture Method
Direct page capture
HTTP / SHA-256
200 / 86f7eb1e45fab286
Original URL
Open source ↗
Wayback Backup
Not archived
This page preserves a plain-text static snapshot against link rot. When citing figures, tables, or full legal terms, verify against the original URL and Wayback Machine archive.

[来源关键摘录] 报告说明约 15 万亿 tokens 的 FineWeb 和约 1.3 万亿 tokens 的 FineWeb-Edu,以及筛选实验和处理决策。

[正文前段节选] Hugging Face

Search models, datasets, users... ⌘K

HuggingFaceFW

blogpost-fineweb-v1

App Files Files Community

blogpost-fineweb-v1 / src /index.html

added citation information

0bf0346 unverified over 2 years ago

Raw History Blame Contribute Delete

<!DOCTYPE html>

<script src="distill.bundle.js" type="module" fetchpriority="high" blocking></script>

<script src="main.bundle.js" type="module" fetchpriority="low" defer></script>

<meta name="viewport" content="width=device-width, initial-scale=1">

<meta charset="utf8">

<base target="_blank">

<title>FineWeb: decanting the web for the finest text data at scale</title>

<link rel="stylesheet" href="style.css">

<d-front-matter>

<script id='distill-front-matter' type="text/json">{

"title": "🍷 FineWeb: decanting the web for the finest text data at scale",

"description": "This blog covers a discussion on processing and evaluating data quality at scale, the 🍷 FineWeb recipe (listing and explaining all of our design choices), and the process followed to create its 📚 FineWeb-Edu subset.",

"published": "May 28, 2024",

"affiliation": {"name": "HuggingFace"},

"authors": [

"author":"Guilherme Penedo",

"authorURL":"https://huggingface.co/guipenedo"

"author":"Hynek Kydlíček",

"authorURL":"https://huggingface.co/hynky"

"author":"Loubna Ben Allal",

"authorURL":"https://huggingface.co/loubnabnl"

"author":"Anton Lozhkov",

"authorURL":"https://huggingface.co/anton-l"

"author":"Colin Raffel",

"authorURL":"https://huggingface.co/craffel"

"author":"Leandro Werra",

"authorURL":"https://huggingface.co/lvwerra"

"author":"Thomas Wolf",

"authorURL":"https://huggingface.co/thomwolf"

"delimiters": [

{"left": "$$", "right": "$$", "display": false}

</d-front-matter>

<h1 class="l-page" style="text-align: center;">🍷 FineWeb: decanting the web for the finest text data at scale</h1>

<div id="title-plot" class="main-plot-container l-screen">

<img src="assets/images/banner.png" alt="FineWeb">

<div id="clusters-plot">

<img src="assets/images/clusters.png" alt="Clusters">

<d-byline></d-byline>

<d-contents>

</d-contents>

<p>The performance of a large language model (LLM) depends heavily on the quality and size of its pretraining dataset.

However, the pretraining datasets for state-of-the-art open LLMs like Llama 3<d-cite bibtex-key="llama3modelcard"></d-cite> and Mixtral<d-cite bibtex-key="jiang2024mixtral"></d-cite> are not publicly available and very little is known about how they were created.</p>

<aside>Reading time: 45 min. For the best reading experience, we recommend not using a mobile phone.</aside>

<p>Recently, we released <a href="https://huggingface.co/datasets/HuggingFaceFW/fineweb"><strong>🍷 FineWeb</strong></a>, a new, large-scale

(<strong>15-trillion tokens, 44TB disk space</strong>) dataset for LLM pretraining. FineWeb is derived from 96 <a href="https://commoncrawl.org/">CommonCrawl</a> snapshots and produces <strong>better-performing LLMs than other open pretraining datasets</strong>. To bring more clarity in machine learning and advance the open understanding of how to train good quality large language models, we carefully documented and ablated all of the design choices used in FineWeb, including in-depth investigations of deduplication and filtering strategies. The present long form report is a deep dive in how to create a large and high-quality web-scale dataset for LLM pretraining. The dataset itself, 🍷 FineWeb, is available <a href="https://huggingface.co/datasets/HuggingFaceFW/fineweb">here</a>.

<aside>We are extremely thankful to the whole <a href="https://distill.pub/">distill.pub</a> team (Christopher Olah, Shan Carter, Ludwig Schubert in particular) for creating the template on which we based this blog post. Thanks also for inspiring us with exquisitely crafted articles and blog posts.</aside>

<p>In this report we also introduce <a href="https://huggingface.co/datasets/HuggingFaceFW/fineweb-edu"><strong>📚 FineWeb-Edu</strong></a>, a subset of FineWeb constructed using scalable automated high-quality annotations for educational value, and which outperforms all openly accessible web-datasets on a number of educational benchmarks such as MMLU, ARC, and OpenBookQA.

<a href="https://huggingface.co/datasets/HuggingFaceFW/fineweb-edu">📚 FineWeb-Edu</a> is available in two sizes/filtering-level: <strong>1.3 trillion (very high educational content) and 5.4 trillion (high educational content) tokens</strong> (all tokens are measured with GPT2 tokenizer <d-cite bibtex-key="radford2019language"></d-cite>). You can

download it <a href="https://huggingface.co/datasets/HuggingFaceFW/fineweb-edu">here</a>.</p>

<p>Both datasets are released under the permissive <a href="https://opendatacommons.org/licenses/by/1-0/">ODC-By 1.0 license</a></p>

<p><strong>TLDR:</strong> This blog covers a discussion on processing and evaluating data quality at scale, the 🍷 FineWeb

recipe (listing and explaining all of our design choices), and the process followed to create its 📚 FineWeb-Edu subset.</p>

<h2>Web data</h2>

<h3>Finding the raw data</h3>

<p>A common question often asked regarding web datasets used

to train LLMs is “where do they even get all that data?”. There are generally two options:</p>

<li>you either crawl it yourself, like companies such as OpenAI or Anthropic (among others) do (see <a

href="https://platform.openai.com/docs/gptbot">here</a> and <a

href="https://darkvisitors.com/agents/claudebot">here</a>)

<li>you use a public repository of crawled webpages, like the one maintained by

the non-profit <a href="https://commoncrawl.org/">CommonCrawl</a></li>

<p>To build 🍷 FineWeb, following what has been done in the past by a number of LLM training teams,

we used <a href="https://commoncrawl.org/">CommonCrawl</a> (CC) as a starting point.

The Common Crawl non–profit organization has been crawling the web since 2007 and

releases a new crawl containing 200 to 400 TiB of textual content obtained via automatic web crawling usually

every 1 or 2 months. </p>

<p>As an example, the latest CC crawl (April 2024) contains 2.7

billion web pages, totaling 386 TiB of uncompressed HTML text content<d-footnote>Note that the size changes from crawl to crawl. Note also that we use "dump" or "crawl" interchangeability in this report.</d-footnote>.

Ninety-six crawls have been released since 2013 and 3 crawls from 2008 to 2012, which are in a different (older) format.

<d-footnote>We have not processed these 3 older crawls.</d-footnote> </p>

<h3>Processing at scale</h3>

<p>Given the sheer size of the data involved, one of the main

challenges we had to overcome was having a modular, scalable codebase that would allow us to quickly iterate

on our processing decisions and easily try out new ideas, while appropriately parallelizing our workloads

and providing clear insights into the data. </p>

<p>For this purpose, we developed <a

href="https://github.com/huggingface/datatrove"><code>datatrove</code></a><d-cite bibtex-key="penedo2024datatrove"></d-cite>, an open-source data

processing library that allowed us to seamlessly scale our filtering and deduplication setup to thousands of

CPU cores. All the data processing steps involved in the creation of 🍷 FineWeb used this <a

href="https://github.com/huggingface/datatrove">library</a>. You will find the exact scripts we used in the

<a href="https://github.com/huggingface/datatrove/blob/main/examples/fineweb.py"><code>datatrove</code> repository</a>.</p>

<h3>What is good data?</h3>

<p>This is probably the main question to keep in mind when

[...内容已截断,完整版请查看原文或 Wayback 快照]