Dataset Viewer
Auto-converted to Parquet Duplicate
document_id
stringlengths
73
85
source_id
stringlengths
8
912
text
large_stringlengths
93
1.8M
metadata_json
large_stringlengths
14
3.89k
fineweb-edu:c7e41955a540a33674dd8f04ce4b9468504021b1e3420a269d146e307c181c38
fineweb-edu
The Nieuport 80 was a two-seat trainer with one set of controls, developed from the Nieuport 12 and Nieuport 13. The Nieuport 80 was probably derived from the earlier Nieuport 13, which matched the fuselage of the Nieuport 12 with an 80hp Le Rhône engine. The Nieuport 12 itself was a larger version of the Nieuport 10, ...
{"int_score":3,"language":"en","language_score":0.9767976999282837,"score":2.65625,"url":"http://3.www.historyofwar.org/articles/weapons_nieuport_80.html"}
dclm-baseline:6b3bef5da41496ef1b8dd1d7639c0e603e6fdd6253964373fa924674e31f36d6
dclm-baseline
Header image   The #1 Cannabis Website in the WORLD.   line decor line decor    Main Menu How should I clean my grow rocks? Fill a bucket with mild, non-chlorinated water and put in the rootball/growrock cluster.. Gently knead the mass underwater until the rootmass separates. pull it out.. Some bits of root may rem...
{"fasttext_score":0.1388932466506958,"language":"en","language_score":0.8583996295928955,"url":"http://cannabis.com/faqs/growing/hydroponics-how-should-i-clean-my-grow-rocks.html"}
cosmopedia-v2:80da4af4612a5e5decb9f8900ce017b04b0afefd208ef1581a2657205b09789e
cosmopedia-v2
Title: How to Learn All the Notes on the Guitar Introduction: The guitar is a versatile instrument with six strings that can produce various notes. To master this instrument, you need to familiarize yourself with all its notes thoroughly. This tutorial will guide you through learning all the notes on the guitar in an ...
{"audience":"general","format":"wikihow"}
stack-edu-c:8ce9c7ece2e1829c082878469bf0c3d875b95d371361e78c114dd3a09281877c
stack-edu/C/MIT
#include "common.h" #include <stdarg.h> FILE *log_fp = NULL; void init_log(const char *log_file) { if (log_file == NULL) return; log_fp = fopen(log_file, "w"); Assert(log_fp, "Can not open '%s'", log_file); } char log_bytebuf[80] = {}; char log_asmbuf[80] = {}; static char tempbuf[256] = {}; void strcatf(char...
{"blob_id":"66ee9edbe2ad47e9eaab9f140fc8d819a5485d2b","detected_licenses":["MIT"],"int_score":3,"language":"C","path":"/系统综合能力—虚拟机/ics2019/nemu/src/monitor/debug/log.c","repo_name":"AlexFanw/HUSTER-CS","score":2.625}
stack-edu-javascript:42a05eeb87e42740d4a40b6715b23f6cbe62448eddb715c8c72fe63ae26e7584
stack-edu/JavaScript/MIT
//Function to convert NZTM coordinates to universal Latitude Longitude function convertToLatLong(E, N) { //Common variables for NZTM2000 //Source: https://www.linz.govt.nz/data/geodetic-system/datums-projections-and-heights/projections/new-zealand-transverse-mercator-2000 let a = 6378137; let f = 1 / 298.25...
{"blob_id":"140ece7ade750677f649a6754c7674cd1ffd52e7","detected_licenses":["MIT"],"int_score":3,"language":"JavaScript","path":"/geo.js","repo_name":"Kimberly190/nztm-geo-conversion-js","score":2.84375}
stack-edu-php:8dc8157c3209fbe8482611f33cbb704f55ddf60f97e52812c1b63a01ea709f6b
stack-edu/PHP/Apache-2.0
<?php /** * @author Manuel Thalmann <<EMAIL>> * @license Apache-2.0 */ namespace System\Web\Forms; use System\Collections\{ ArrayList }; { /** * Represents a menu-item that contains a set of menu-items. * * @property-read ArrayList $Items ...
{"blob_id":"ca99ab501f11890a2f2aa6cfcd42913938f6f82e","detected_licenses":["Apache-2.0"],"int_score":3,"language":"PHP","path":"/System/Web/Forms/MenuItemGroup.php","repo_name":"manuth/TemPHPlate","score":2.796875}
stack-edu-csharp:c13432c8029a0020bab0418b4231b01bd19f06fddcc8b6eb53ad27ec3f87af20
stack-edu/CSharp/MIT
using System.Collections.Generic; namespace Manatee.Trello { /// <summary> /// A read-only collection of organization collaborator. /// </summary> public interface IReadOnlyCollaboratorCollection : IReadOnlyCollection<ICollaborator> { /// <summary> /// Retrieves a collaborator which matches the supplied key....
{"blob_id":"e95a2480f852f83f4da3b9326a2a56fc9b8e348a","detected_licenses":["MIT"],"int_score":3,"language":"C#","path":"/Manatee.Trello/Contracts/IReadOnlyCollaboratorCollection.cs","repo_name":"Chinchilla-Software-Com/Manatee.Trello","score":2.96875}
stack-edu-typescript:00420ecb350184ea45e4a0c3ea906d28f52fa4657f5d7842df26225de16c9fd7
stack-edu/TypeScript/MIT
import debugModule from "debug"; const debug = debugModule("compile:test:test_oldversions"); import { describe, it, before } from "mocha"; import { Compile, CompilerSupplier } from "@truffle/compile-solidity"; import { assert } from "chai"; import Config from "@truffle/config"; let compileOptions, supplierOptions, sour...
{"blob_id":"28db6d1847804cd31f2b1cca038ffdbabe39e745","detected_licenses":["MIT"],"int_score":3,"language":"TypeScript","path":"/packages/compile-solidity-tests/test/oldversions.ts","repo_name":"trufflesuite/truffle","score":2.5625}
stack-edu-shell:68a4368829514430cf9b74947d079e1d2031c519f29596eae26a0ebe46b9e155
stack-edu/Shell/MIT
#! /usr/bin/env bash # @author Pedro Seoane Zonjic, Fernando Moreno Jabato # Initialize DEPENDENCIES # > Autoflow source ~soft_bio_267/initializes/init_autoflow # Add necessary scripts current_dir=`pwd` export PATH=$current_dir'/scripts':$PATH export PATH=$current_dir'/sys_bio_lab_scripts':$PATH #establish the var...
{"blob_id":"e760603e63a7f06907cfbf6d7aa7a062ee5ad6e5","detected_licenses":["MIT"],"int_score":3,"language":"Shell","path":"/launch_build_networks.sh","repo_name":"fmjabato/PhenFun","score":2.984375}
stack-edu-go:5da9d764c67f810bd473d4119aa145de4c34278cb0c156f3ce7339a128bac3ae
stack-edu/Go/BSD-2-Clause+LicenseRef-scancode-unknown-license-reference
package push type IO struct { Input chan *Session Output chan *Feedback } func NewIO() *IO { return &IO{ Input: make(chan *Session), Output: make(chan *Feedback), } } func (io *IO) Close() { close(io.Input) close(io.Output) }
{"blob_id":"8a3cdc9c197416f7c2251355249b07e75d01787d","detected_licenses":["BSD-2-Clause","LicenseRef-scancode-unknown-license-reference"],"int_score":3,"language":"Go","path":"/io.go","repo_name":"chakrit/push","score":2.625}
stack-edu-ruby:64f7a4d611816e73ccb00a78cce38dddb3f5a9aef5300bd92066cef872bf8571
stack-edu/Ruby/MIT
# frozen_string_literal: true RSpec.describe SimpleModelView::ResourceTableBuilder, type: :helper do describe '#format' do let(:test_model) { TestModel.new('Name') } subject { described_class.new(helper, test_model) } let(:formatter) { double :formatter_instance, call: nil } before { allow(SimpleM...
{"blob_id":"7aee9846c34c1707ce2cab7521d0b900208953e5","detected_licenses":["MIT"],"int_score":3,"language":"Ruby","path":"/spec/simple_model_view/resource_table_builder_spec.rb","repo_name":"corlinus/simple_model_view","score":2.609375}
End of preview. Expand in Data Studio

Minimal EN Corpus 2B 2.0

This is the corrected V2 release of Minimal EN Corpus. The repository uses the approximate 2B identity so its name reflects the audited physical corpus size; it is not a V3 release.

This release contains 1,986,440,772 physical unique corpus tokens in 1,525,213 documents. No document is replayed in the public corpus. The whole-document train, validation, and anneal splits are pairwise disjoint.

Contents

Split Documents Canonical tokens Binary
train 1,361,154 1,781,413,624 data/train.bin + data/train.idx
validation 3,894 5,036,878 data/val.bin + data/val.idx
anneal 160,165 199,990,270 data/anneal.bin + data/anneal.idx

The public Parquet schema is exactly:

  • document_id: string
  • source_id: string
  • text: large_string
  • metadata_json: large_string

metadata_json is canonical compact UTF-8 JSON with sorted keys and is preserved byte-for-byte from the finalized corpus.

Split policy

Validation is selected first by source-stratified seeded xxHash64 rank over stable document IDs. Anneal is then selected from the validation complement. It contains 199,990,270 tokens (10.0677% of the physical corpus) and only the four source families with quotas recorded in manifests/split-manifest.json. FineWeb-Edu eligibility uses the nearest-rank upper-quartile metadata_json.score threshold 3.25 (rank 477,885 of 637,180).

Source mixture and split totals

Source Documents Physical tokens Validation Anneal Train
FineWeb-Edu 637,180 736,405,592 1,854,367 49,995,085 684,556,140
DCLM Baseline 384,165 558,749,029 1,408,201 0 557,340,828
Cosmopedia v2 203,117 175,987,332 443,862 0 175,543,470
FineMath 4+ 123,554 167,544,101 429,900 50,000,799 117,113,402
Stack-Edu 108,998 118,451,148 299,346 50,000,954 68,150,848
Project Gutenberg 1,002 106,196,037 278,619 0 105,917,418
English Wikipedia 38,295 56,181,245 142,535 49,993,432 6,045,278
peS2o v2 7,172 49,149,744 134,502 0 49,015,242
StackExchange 19,684 16,710,150 42,495 0 16,667,655
English Wikinews 2,046 1,066,394 3,051 0 1,063,343

Curation evidence

The following values are rendered directly from the copied curation manifests.

Manifest Field Value
decontamination.json analysis.direct_removed_documents 5,888
decontamination.json analysis.family_removed_documents 754
decontamination.json analysis.family_scanned_documents 2,048,477
decontamination.json analysis.lexical_direct_removed_documents 5,882
decontamination.json analysis.lexical_family_removed_documents 754
decontamination.json analysis.removed_documents 6,642
decontamination.json analysis.semantic_direct_removed_documents 6
decontamination.json analysis.semantic_family_removed_documents 0
decontamination.json input.documents 1,531,855
decontamination.json output.documents 1,525,213
decontamination.json output.tokens 1,986,440,772
decontamination.json parent_source_removals.cosmopedia-v2.documents 319
decontamination.json parent_source_removals.cosmopedia-v2.tokens 314,309
decontamination.json parent_source_removals.dclm-baseline.documents 1,010
decontamination.json parent_source_removals.dclm-baseline.tokens 6,106,359
decontamination.json parent_source_removals.finemath-4plus.documents 2,345
decontamination.json parent_source_removals.finemath-4plus.tokens 8,918,536
decontamination.json parent_source_removals.fineweb-edu.documents 2,295
decontamination.json parent_source_removals.fineweb-edu.tokens 9,300,365
decontamination.json parent_source_removals.pes2o-v2.documents 31
decontamination.json parent_source_removals.pes2o-v2.tokens 274,154
decontamination.json parent_source_removals.project-gutenberg.documents 51
decontamination.json parent_source_removals.project-gutenberg.tokens 10,000,074
decontamination.json parent_source_removals.stack-edu.documents 332
decontamination.json parent_source_removals.stack-edu.tokens 1,149,676
decontamination.json parent_source_removals.stackexchange.documents 125
decontamination.json parent_source_removals.stackexchange.tokens 207,811
decontamination.json parent_source_removals.wikinews-en.documents 7
decontamination.json parent_source_removals.wikinews-en.tokens 8,591
decontamination.json parent_source_removals.wikipedia-en.documents 127
decontamination.json parent_source_removals.wikipedia-en.tokens 495,137
decontamination.json source_removals.cosmopedia-v2.documents 319
decontamination.json source_removals.cosmopedia-v2.tokens 314,309
decontamination.json source_removals.dclm-baseline.documents 1,010
decontamination.json source_removals.dclm-baseline.tokens 6,106,359
decontamination.json source_removals.finemath-4plus.documents 2,345
decontamination.json source_removals.finemath-4plus.tokens 8,918,536
decontamination.json source_removals.fineweb-edu.documents 2,295
decontamination.json source_removals.fineweb-edu.tokens 9,300,365
decontamination.json source_removals.pes2o-v2.documents 31
decontamination.json source_removals.pes2o-v2.tokens 274,154
decontamination.json source_removals.project-gutenberg.documents 51
decontamination.json source_removals.project-gutenberg.tokens 10,000,074
decontamination.json source_removals.stack-edu/C/Apache-2.0.documents 5
decontamination.json source_removals.stack-edu/C/Apache-2.0.tokens 20,669
decontamination.json source_removals.stack-edu/C/Apache-2.0+ISC+LicenseRef-scancode-unknown-license-reference.documents 1
decontamination.json source_removals.stack-edu/C/Apache-2.0+ISC+LicenseRef-scancode-unknown-license-reference.tokens 1,543
decontamination.json source_removals.stack-edu/C/Apache-2.0+LicenseRef-scancode-unknown-license-reference.documents 1
decontamination.json source_removals.stack-edu/C/Apache-2.0+LicenseRef-scancode-unknown-license-reference.tokens 1,152
decontamination.json source_removals.stack-edu/C/Apache-2.0+MIT.documents 1
decontamination.json source_removals.stack-edu/C/Apache-2.0+MIT.tokens 2,543
decontamination.json source_removals.stack-edu/C/BSD-2-Clause.documents 3
decontamination.json source_removals.stack-edu/C/BSD-2-Clause.tokens 9,850
decontamination.json source_removals.stack-edu/C/BSD-2-Clause+BSD-3-Clause.documents 1
decontamination.json source_removals.stack-edu/C/BSD-2-Clause+BSD-3-Clause.tokens 280
decontamination.json source_removals.stack-edu/C/BSD-3-Clause.documents 3
decontamination.json source_removals.stack-edu/C/BSD-3-Clause.tokens 3,829
decontamination.json source_removals.stack-edu/C/BSD-3-Clause+FTL+LicenseRef-scancode-public-domain+LicenseRef-scancode-warranty-disclaimer+MIT.documents 1
decontamination.json source_removals.stack-edu/C/BSD-3-Clause+FTL+LicenseRef-scancode-public-domain+LicenseRef-scancode-warranty-disclaimer+MIT.tokens 5,394
decontamination.json source_removals.stack-edu/C/BSD-3-Clause+GPL-1.0-or-later+GPL-2.0-only+GPL-2.0-or-later+GPL-3.0-only+GPL-3.0-or-later+LGPL-2.0-or-later+LGPL-2.1-or-later+LicenseRef-scancode-other-copyleft+LicenseRef-scancode-warranty-disclaimer.documents 1
decontamination.json source_removals.stack-edu/C/BSD-3-Clause+GPL-1.0-or-later+GPL-2.0-only+GPL-2.0-or-later+GPL-3.0-only+GPL-3.0-or-later+LGPL-2.0-or-later+LGPL-2.1-or-later+LicenseRef-scancode-other-copyleft+LicenseRef-scancode-warranty-disclaimer.tokens 1,458
decontamination.json source_removals.stack-edu/C/BSD-3-Clause+MIT.documents 1
decontamination.json source_removals.stack-edu/C/BSD-3-Clause+MIT.tokens 1,675
decontamination.json source_removals.stack-edu/C/FSFAP+GCC-exception-3.1+GPL-2.0-only+GPL-3.0-only+LGPL-2.0-or-later+LGPL-2.1-only+LGPL-3.0-only+LicenseRef-scancode-public-domain+Zlib.documents 1
decontamination.json source_removals.stack-edu/C/FSFAP+GCC-exception-3.1+GPL-2.0-only+GPL-3.0-only+LGPL-2.0-or-later+LGPL-2.1-only+LGPL-3.0-only+LicenseRef-scancode-public-domain+Zlib.tokens 692
decontamination.json source_removals.stack-edu/C/LicenseRef-scancode-public-domain+Zlib.documents 1
decontamination.json source_removals.stack-edu/C/LicenseRef-scancode-public-domain+Zlib.tokens 3,980
decontamination.json source_removals.stack-edu/C/LicenseRef-scancode-warranty-disclaimer+MIT.documents 2
decontamination.json source_removals.stack-edu/C/LicenseRef-scancode-warranty-disclaimer+MIT.tokens 68,266
decontamination.json source_removals.stack-edu/C/MIT.documents 15
decontamination.json source_removals.stack-edu/C/MIT.tokens 63,901
decontamination.json source_removals.stack-edu/C/Unlicense.documents 1
decontamination.json source_removals.stack-edu/C/Unlicense.tokens 926
decontamination.json source_removals.stack-edu/CSharp/Apache-2.0.documents 3
decontamination.json source_removals.stack-edu/CSharp/Apache-2.0.tokens 13,345
decontamination.json source_removals.stack-edu/CSharp/Apache-2.0+BSD-3-Clause+MIT.documents 1
decontamination.json source_removals.stack-edu/CSharp/Apache-2.0+BSD-3-Clause+MIT.tokens 1,535
decontamination.json source_removals.stack-edu/CSharp/LicenseRef-scancode-generic-cla+MIT.documents 1
decontamination.json source_removals.stack-edu/CSharp/LicenseRef-scancode-generic-cla+MIT.tokens 1,217
decontamination.json source_removals.stack-edu/CSharp/MIT.documents 15
decontamination.json source_removals.stack-edu/CSharp/MIT.tokens 47,468
decontamination.json source_removals.stack-edu/CSharp/Unlicense.documents 2
decontamination.json source_removals.stack-edu/CSharp/Unlicense.tokens 3,792
decontamination.json source_removals.stack-edu/Cpp/Apache-2.0.documents 7
decontamination.json source_removals.stack-edu/Cpp/Apache-2.0.tokens 22,850
decontamination.json source_removals.stack-edu/Cpp/Apache-2.0+BSD-3-Clause+GPL-2.0-only.documents 1
decontamination.json source_removals.stack-edu/Cpp/Apache-2.0+BSD-3-Clause+GPL-2.0-only.tokens 551
decontamination.json source_removals.stack-edu/Cpp/Apache-2.0+BSD-3-Clause+GPL-3.0-only+LGPL-2.0-or-later+LGPL-2.1-only+LGPL-2.1-or-later+MPL-2.0+Minpack.documents 1
decontamination.json source_removals.stack-edu/Cpp/Apache-2.0+BSD-3-Clause+GPL-3.0-only+LGPL-2.0-or-later+LGPL-2.1-only+LGPL-2.1-or-later+MPL-2.0+Minpack.tokens 192
decontamination.json source_removals.stack-edu/Cpp/BSD-2-Clause.documents 1
decontamination.json source_removals.stack-edu/Cpp/BSD-2-Clause.tokens 4,528
decontamination.json source_removals.stack-edu/Cpp/BSD-2-Clause+BSD-3-Clause.documents 1
decontamination.json source_removals.stack-edu/Cpp/BSD-2-Clause+BSD-3-Clause.tokens 4,312
decontamination.json source_removals.stack-edu/Cpp/BSD-3-Clause.documents 1
decontamination.json source_removals.stack-edu/Cpp/BSD-3-Clause.tokens 1,831
decontamination.json source_removals.stack-edu/Cpp/BSD-3-Clause+LicenseRef-scancode-openssl+LicenseRef-scancode-public-domain+LicenseRef-scancode-ssleay-windows+LicenseRef-scancode-warranty-disclaimer+MIT+RSA-MD+Zlib.documents 1
decontamination.json source_removals.stack-edu/Cpp/BSD-3-Clause+LicenseRef-scancode-openssl+LicenseRef-scancode-public-domain+LicenseRef-scancode-ssleay-windows+LicenseRef-scancode-warranty-disclaimer+MIT+RSA-MD+Zlib.tokens 2,310
decontamination.json source_removals.stack-edu/Cpp/BSD-3-Clause+LicenseRef-scancode-unknown-license-reference.documents 1
decontamination.json source_removals.stack-edu/Cpp/BSD-3-Clause+LicenseRef-scancode-unknown-license-reference.tokens 983
decontamination.json source_removals.stack-edu/Cpp/BSD-3-Clause+MIT.documents 1
decontamination.json source_removals.stack-edu/Cpp/BSD-3-Clause+MIT.tokens 2,780
decontamination.json source_removals.stack-edu/Cpp/BSL-1.0+LicenseRef-scancode-free-unknown.documents 1
decontamination.json source_removals.stack-edu/Cpp/BSL-1.0+LicenseRef-scancode-free-unknown.tokens 3,155
decontamination.json source_removals.stack-edu/Cpp/CC0-1.0.documents 1
decontamination.json source_removals.stack-edu/Cpp/CC0-1.0.tokens 1,235
decontamination.json source_removals.stack-edu/Cpp/LicenseRef-scancode-other-permissive+MIT.documents 1
decontamination.json source_removals.stack-edu/Cpp/LicenseRef-scancode-other-permissive+MIT.tokens 1,775
decontamination.json source_removals.stack-edu/Cpp/LicenseRef-scancode-public-domain.documents 1
decontamination.json source_removals.stack-edu/Cpp/LicenseRef-scancode-public-domain.tokens 1,911
decontamination.json source_removals.stack-edu/Cpp/LicenseRef-scancode-unknown-license-reference+MIT.documents 4
decontamination.json source_removals.stack-edu/Cpp/LicenseRef-scancode-unknown-license-reference+MIT.tokens 41,052
decontamination.json source_removals.stack-edu/Cpp/MIT.documents 36
decontamination.json source_removals.stack-edu/Cpp/MIT.tokens 136,617
decontamination.json source_removals.stack-edu/Cpp/Unlicense.documents 1
decontamination.json source_removals.stack-edu/Cpp/Unlicense.tokens 22,397
decontamination.json source_removals.stack-edu/Go/Apache-2.0.documents 2
decontamination.json source_removals.stack-edu/Go/Apache-2.0.tokens 646
decontamination.json source_removals.stack-edu/Go/MIT.documents 1
decontamination.json source_removals.stack-edu/Go/MIT.tokens 831
decontamination.json source_removals.stack-edu/Java/Apache-2.0.documents 19
decontamination.json source_removals.stack-edu/Java/Apache-2.0.tokens 39,266
decontamination.json source_removals.stack-edu/Java/Apache-2.0+BSD-3-Clause+CDDL-1.0+CPL-1.0+ICU+LicenseRef-scancode-unicode-mappings+MIT+Python-2.0.documents 1
decontamination.json source_removals.stack-edu/Java/Apache-2.0+BSD-3-Clause+CDDL-1.0+CPL-1.0+ICU+LicenseRef-scancode-unicode-mappings+MIT+Python-2.0.tokens 1,568
decontamination.json source_removals.stack-edu/Java/Apache-2.0+BSD-3-Clause+ISC+MIT+OFL-1.1.documents 1
decontamination.json source_removals.stack-edu/Java/Apache-2.0+BSD-3-Clause+ISC+MIT+OFL-1.1.tokens 1,045
decontamination.json source_removals.stack-edu/Java/Apache-2.0+BSD-3-Clause+LGPL-2.1-or-later.documents 1
decontamination.json source_removals.stack-edu/Java/Apache-2.0+BSD-3-Clause+LGPL-2.1-or-later.tokens 1,059
decontamination.json source_removals.stack-edu/Java/Apache-2.0+LicenseRef-scancode-996-icu-1.0.documents 1
decontamination.json source_removals.stack-edu/Java/Apache-2.0+LicenseRef-scancode-996-icu-1.0.tokens 1,656
decontamination.json source_removals.stack-edu/Java/Apache-2.0+LicenseRef-scancode-generic-cla.documents 2
decontamination.json source_removals.stack-edu/Java/Apache-2.0+LicenseRef-scancode-generic-cla.tokens 8,271
decontamination.json source_removals.stack-edu/Java/Apache-2.0+LicenseRef-scancode-unknown-license-reference.documents 1
decontamination.json source_removals.stack-edu/Java/Apache-2.0+LicenseRef-scancode-unknown-license-reference.tokens 1,454
decontamination.json source_removals.stack-edu/Java/Apache-2.0+MIT.documents 2
decontamination.json source_removals.stack-edu/Java/Apache-2.0+MIT.tokens 7,965
decontamination.json source_removals.stack-edu/Java/BSD-2-Clause+BSD-2-Clause-Views.documents 1
decontamination.json source_removals.stack-edu/Java/BSD-2-Clause+BSD-2-Clause-Views.tokens 2,744
decontamination.json source_removals.stack-edu/Java/BSD-3-Clause.documents 2
decontamination.json source_removals.stack-edu/Java/BSD-3-Clause.tokens 4,114
decontamination.json source_removals.stack-edu/Java/BSD-3-Clause+ISC+MIT.documents 1
decontamination.json source_removals.stack-edu/Java/BSD-3-Clause+ISC+MIT.tokens 2,480
decontamination.json source_removals.stack-edu/Java/BSD-3-Clause+LicenseRef-scancode-public-domain.documents 1
decontamination.json source_removals.stack-edu/Java/BSD-3-Clause+LicenseRef-scancode-public-domain.tokens 1,188
decontamination.json source_removals.stack-edu/Java/CC-BY-4.0.documents 1
decontamination.json source_removals.stack-edu/Java/CC-BY-4.0.tokens 2,857
decontamination.json source_removals.stack-edu/Java/LicenseRef-scancode-public-domain+LicenseRef-scancode-unknown-license-reference.documents 1
decontamination.json source_removals.stack-edu/Java/LicenseRef-scancode-public-domain+LicenseRef-scancode-unknown-license-reference.tokens 4,394
decontamination.json source_removals.stack-edu/Java/MIT.documents 16
decontamination.json source_removals.stack-edu/Java/MIT.tokens 52,841
decontamination.json source_removals.stack-edu/Java/MIT+Python-2.0.documents 1
decontamination.json source_removals.stack-edu/Java/MIT+Python-2.0.tokens 362
decontamination.json source_removals.stack-edu/Java/Unlicense.documents 1
decontamination.json source_removals.stack-edu/Java/Unlicense.tokens 2,063
decontamination.json source_removals.stack-edu/JavaScript/Apache-2.0.documents 1
decontamination.json source_removals.stack-edu/JavaScript/Apache-2.0.tokens 480
decontamination.json source_removals.stack-edu/JavaScript/Apache-2.0+BSD-2-Clause+BSD-3-Clause+Bison-exception-2.2+GPL-1.0-or-later+GPL-3.0-only+GPL-3.0-or-later+JSON+LicenseRef-scancode-nvidia-2002+MIT+Zlib.documents 1
decontamination.json source_removals.stack-edu/JavaScript/Apache-2.0+BSD-2-Clause+BSD-3-Clause+Bison-exception-2.2+GPL-1.0-or-later+GPL-3.0-only+GPL-3.0-or-later+JSON+LicenseRef-scancode-nvidia-2002+MIT+Zlib.tokens 811
decontamination.json source_removals.stack-edu/JavaScript/CC0-1.0.documents 2
decontamination.json source_removals.stack-edu/JavaScript/CC0-1.0.tokens 2,189
decontamination.json source_removals.stack-edu/JavaScript/LicenseRef-scancode-unknown-license-reference+MIT.documents 1
decontamination.json source_removals.stack-edu/JavaScript/LicenseRef-scancode-unknown-license-reference+MIT.tokens 653
decontamination.json source_removals.stack-edu/JavaScript/MIT.documents 20
decontamination.json source_removals.stack-edu/JavaScript/MIT.tokens 40,778
decontamination.json source_removals.stack-edu/JavaScript/Unlicense.documents 1
decontamination.json source_removals.stack-edu/JavaScript/Unlicense.tokens 1,118
decontamination.json source_removals.stack-edu/Markdown/Apache-2.0.documents 1
decontamination.json source_removals.stack-edu/Markdown/Apache-2.0.tokens 16,304
decontamination.json source_removals.stack-edu/Markdown/Apache-2.0+LicenseRef-scancode-unknown-license-reference.documents 1
decontamination.json source_removals.stack-edu/Markdown/Apache-2.0+LicenseRef-scancode-unknown-license-reference.tokens 3,490
decontamination.json source_removals.stack-edu/Markdown/Apache-2.0+MIT.documents 1
decontamination.json source_removals.stack-edu/Markdown/Apache-2.0+MIT.tokens 4,743
decontamination.json source_removals.stack-edu/Markdown/LicenseRef-scancode-free-unknown+MIT.documents 1
decontamination.json source_removals.stack-edu/Markdown/LicenseRef-scancode-free-unknown+MIT.tokens 11,386
decontamination.json source_removals.stack-edu/Markdown/MIT.documents 8
decontamination.json source_removals.stack-edu/Markdown/MIT.tokens 27,203
decontamination.json source_removals.stack-edu/Markdown/Unlicense.documents 1
decontamination.json source_removals.stack-edu/Markdown/Unlicense.tokens 8,718
decontamination.json source_removals.stack-edu/PHP/Apache-2.0.documents 1
decontamination.json source_removals.stack-edu/PHP/Apache-2.0.tokens 10,065
decontamination.json source_removals.stack-edu/PHP/BSD-3-Clause.documents 1
decontamination.json source_removals.stack-edu/PHP/BSD-3-Clause.tokens 1,369
decontamination.json source_removals.stack-edu/PHP/MIT.documents 3
decontamination.json source_removals.stack-edu/PHP/MIT.tokens 2,986
decontamination.json source_removals.stack-edu/Python/Apache-2.0.documents 7
decontamination.json source_removals.stack-edu/Python/Apache-2.0.tokens 23,914
decontamination.json source_removals.stack-edu/Python/Apache-2.0+CC-BY-4.0+LicenseRef-scancode-unknown-license-reference.documents 1
decontamination.json source_removals.stack-edu/Python/Apache-2.0+CC-BY-4.0+LicenseRef-scancode-unknown-license-reference.tokens 3,321
decontamination.json source_removals.stack-edu/Python/Apache-2.0+LicenseRef-scancode-unknown-license-reference+LicenseRef-scancode-warranty-disclaimer+MIT.documents 1
decontamination.json source_removals.stack-edu/Python/Apache-2.0+LicenseRef-scancode-unknown-license-reference+LicenseRef-scancode-warranty-disclaimer+MIT.tokens 5,955
decontamination.json source_removals.stack-edu/Python/BSD-2-Clause+BSD-3-Clause.documents 1
decontamination.json source_removals.stack-edu/Python/BSD-2-Clause+BSD-3-Clause.tokens 3,646
decontamination.json source_removals.stack-edu/Python/BSD-3-Clause.documents 3
decontamination.json source_removals.stack-edu/Python/BSD-3-Clause.tokens 8,789
decontamination.json source_removals.stack-edu/Python/CC0-1.0.documents 1
decontamination.json source_removals.stack-edu/Python/CC0-1.0.tokens 689
decontamination.json source_removals.stack-edu/Python/LicenseRef-scancode-free-unknown+MIT.documents 1
decontamination.json source_removals.stack-edu/Python/LicenseRef-scancode-free-unknown+MIT.tokens 12,680
decontamination.json source_removals.stack-edu/Python/LicenseRef-scancode-warranty-disclaimer+MIT.documents 1
decontamination.json source_removals.stack-edu/Python/LicenseRef-scancode-warranty-disclaimer+MIT.tokens 2,288
decontamination.json source_removals.stack-edu/Python/MIT.documents 65
decontamination.json source_removals.stack-edu/Python/MIT.tokens 169,078
decontamination.json source_removals.stack-edu/Python/Unlicense.documents 2
decontamination.json source_removals.stack-edu/Python/Unlicense.tokens 912
decontamination.json source_removals.stack-edu/Ruby/Apache-2.0.documents 1
decontamination.json source_removals.stack-edu/Ruby/Apache-2.0.tokens 2,071
decontamination.json source_removals.stack-edu/Ruby/BSD-2-Clause+BSD-3-Clause+LicenseRef-scancode-unknown-license-reference.documents 1
decontamination.json source_removals.stack-edu/Ruby/BSD-2-Clause+BSD-3-Clause+LicenseRef-scancode-unknown-license-reference.tokens 12,693
decontamination.json source_removals.stack-edu/Ruby/MIT.documents 3
decontamination.json source_removals.stack-edu/Ruby/MIT.tokens 7,131
decontamination.json source_removals.stack-edu/Rust/Apache-2.0+LicenseRef-scancode-unknown-license-reference+MIT.documents 1
decontamination.json source_removals.stack-edu/Rust/Apache-2.0+LicenseRef-scancode-unknown-license-reference+MIT.tokens 10,920
decontamination.json source_removals.stack-edu/Rust/Apache-2.0+MIT.documents 1
decontamination.json source_removals.stack-edu/Rust/Apache-2.0+MIT.tokens 5,428
decontamination.json source_removals.stack-edu/Rust/MIT.documents 1
decontamination.json source_removals.stack-edu/Rust/MIT.tokens 1,878
decontamination.json source_removals.stack-edu/Rust/Unlicense.documents 1
decontamination.json source_removals.stack-edu/Rust/Unlicense.tokens 22,986
decontamination.json source_removals.stack-edu/SQL/Apache-2.0.documents 4
decontamination.json source_removals.stack-edu/SQL/Apache-2.0.tokens 20,931
decontamination.json source_removals.stack-edu/SQL/BSD-2-Clause+PostgreSQL.documents 1
decontamination.json source_removals.stack-edu/SQL/BSD-2-Clause+PostgreSQL.tokens 3,291
decontamination.json source_removals.stack-edu/SQL/BSD-3-Clause.documents 1
decontamination.json source_removals.stack-edu/SQL/BSD-3-Clause.tokens 20,027
decontamination.json source_removals.stack-edu/SQL/LicenseRef-scancode-unknown-license-reference+MIT.documents 2
decontamination.json source_removals.stack-edu/SQL/LicenseRef-scancode-unknown-license-reference+MIT.tokens 9,768
decontamination.json source_removals.stack-edu/Shell/GPL-3.0-only+MIT.documents 1
decontamination.json source_removals.stack-edu/Shell/GPL-3.0-only+MIT.tokens 1,285
decontamination.json source_removals.stack-edu/Shell/MIT.documents 1
decontamination.json source_removals.stack-edu/Shell/MIT.tokens 1,560
decontamination.json source_removals.stack-edu/Swift/Apache-2.0+LicenseRef-scancode-warranty-disclaimer+MIT.documents 1
decontamination.json source_removals.stack-edu/Swift/Apache-2.0+LicenseRef-scancode-warranty-disclaimer+MIT.tokens 1,178
decontamination.json source_removals.stack-edu/Swift/MIT.documents 2
decontamination.json source_removals.stack-edu/Swift/MIT.tokens 1,623
decontamination.json source_removals.stack-edu/TypeScript/Apache-2.0.documents 3
decontamination.json source_removals.stack-edu/TypeScript/Apache-2.0.tokens 16,996
decontamination.json source_removals.stack-edu/TypeScript/MIT.documents 4
decontamination.json source_removals.stack-edu/TypeScript/MIT.tokens 7,547
decontamination.json source_removals.stackexchange.documents 125
decontamination.json source_removals.stackexchange.tokens 207,811
decontamination.json source_removals.wikinews-en.documents 7
decontamination.json source_removals.wikinews-en.tokens 8,591
decontamination.json source_removals.wikipedia-en.documents 127
decontamination.json source_removals.wikipedia-en.tokens 495,137

Evaluation benchmarks recorded by decontamination

  • arc-challenge
  • arc-easy
  • boolq
  • commonsenseqa
  • gsm8k
  • hellaswag
  • humaneval
  • lambada
  • math
  • mbpp
  • mmlu
  • openbookqa
  • piqa
  • sciq
  • siqa
  • triviaqa
  • winogrande

Pinned models recorded by curation

  • HuggingFaceTB/fineweb-edu-classifier at 284663cbb2dabf9bda30d8f8cc49601251ee1631
  • sentence-transformers/all-MiniLM-L6-v2 at 1110a243fdf4706b3f48f1d95db1a4f5529b4d41

Tokenizer and binaries

The canonical tokenizer has vocabulary size 12,288, 12,029 merges, and terminal EOS token ID 12285. Exactly one EOS follows every document in every binary split.

Binary Documents Tokens SHA-256
data/train.bin 1,361,154 1,781,413,624 a1707e223eb3f4feb06949f2ef8e9dc17947d9f16623b05ada80cb81ebbb5b8d
data/val.bin 3,894 5,036,878 005009dcac993761610c842f7ba42648175032f1abc3a4db067b7f66b1dc1c99
data/anneal.bin 160,165 199,990,270 8da7133efd63b617c3883ad67f033a43300e29a9be9848922bdb7e340d07a682

Optional alternate tokenizers

Family Vocabulary Hugging Face tokenizer Source model files
custom-bpe 32,000 tokenizer/alternatives/custom-bpe-32000/tokenizer.json merges.json
custom-bpe 49,152 tokenizer/alternatives/custom-bpe-49152/tokenizer.json merges.json
superbpe 32,000 tokenizer/alternatives/superbpe-32000/tokenizer.json tokenizer.json
superbpe 49,152 tokenizer/alternatives/superbpe-49152/tokenizer.json tokenizer.json

Alternative tokenizers are not binary-compatible. Retokenize the four-column Parquet text to use one of them.

Loading the text dataset

from datasets import load_dataset

ds = load_dataset("SlayerLab/minimal-en-corpus-2b-v2")
print(ds["train"][0]["source_id"])
print(ds["validation"][0]["document_id"])
print(ds["anneal"][0]["metadata_json"])

Using the binary splits

import numpy as np

train = np.memmap("data/train.bin", dtype="<u2", mode="r")
validation = np.memmap("data/val.bin", dtype="<u2", mode="r")
anneal = np.memmap("data/anneal.bin", dtype="<u2", mode="r")
train_idx = np.memmap("data/train.idx", dtype="<u8", mode="r")
validation_idx = np.memmap("data/val.idx", dtype="<u8", mode="r")
anneal_idx = np.memmap("data/anneal.idx", dtype="<u8", mode="r")

Upstream licensing and provenance

This aggregate corpus does not apply a new unified license to underlying documents. Each record retains source_id; consult its upstream license, terms, and attribution requirements.

Source Revision License / terms
FineWeb-Edu 87f09149ef4734204d70ed1d046ddc9ca3f2b8f9 ODC-By-1.0
DCLM Baseline 817d6752765f6a41261085171dd546b104f60626 CC-BY-4.0 dataset card; upstream page rights remain applicable
Cosmopedia v2 3ba9d605774198c5868892d7a8deda78031a781f ODC-By-1.0
FineMath 4+ e92b25a616738fe95dc186b64dfb19f9c8525594 ODC-By-1.0
Stack-Edu eeec5caac5cc3758a18f1d3ba4416837a9ba814c Per-file permissive licenses only; Software Heritage provenance retained
Project Gutenberg 164853d214065df26a630ee1ab91a0c39e461caf Project Gutenberg License and per-work public-domain status; jurisdiction-dependent
English Wikipedia b04c8d1ceb2f5cd4588862100d08de323dccfbaa CC-BY-SA-3.0 and GFDL
peS2o v2 636a503e44a3ca1b58e01fb61eab0825cd574de0 ODC-By-1.0; upstream open-access paper terms remain applicable
StackExchange RedPajama-Data-1T-v1.0.0 Stack Exchange CC BY-SA terms; preserve post attribution metadata
English Wikinews b4c2ec3857fcac203c40b8d61586e934ed07c128 Public domain before 2005-09-25; CC-BY-2.5 through 2024-12-15; CC-BY-4.0 from 2024-12-16

Exact configuration, source, quality, deduplication, decontamination, split, tokenizer, and file checksums are under manifests/.

Author

Dawid Majewski — huggingface.co/dawidmajewski

Downloads last month
590