Dataset Viewer
Auto-converted to Parquet Duplicate
document_id
stringlengths
73
85
source_id
stringlengths
8
1.14k
text
large_stringlengths
2
1.69M
fineweb-edu:01c39dd2da3db8c24f408c3c291de87a7497970f60c8279f0bb100271f025949
fineweb-edu
This document describes the architecture of the Cisco 12000 Series Internet Router route processor. There are no specific requirements for this document. The information in this document is based on the following hardware: The information in this document was created from the devices in a specific lab environment. All ...
dclm-baseline:a886e3d249d9a932b06460f2c6b44c85823609984cd3b4576b848ff4a65f3253
dclm-baseline
“When given the option,” Garrison Keillor tells us, “Lutherans will always downsize .” So far as I can tell, personal “downsizing” is the only way to make sense of what Mark Noll fairly calls the “remarkably unremarkable” history of American Lutherans. Such a quip shouldn’t be anywhere near surprising, let alone offens...
wikipedia-en:725318d4fcddd6f8480fe50fa7b6cfbbece04157701be4cba91f4a5ac760dfd0
wikipedia-en
Boris Bally is an American artist and metal smith in Providence, Rhode Island. Background Born 1961 to Swiss Parents, Doris and Alex Bally who had just immigrated to Chicago so that Alex could study at Illinois Institute of Technology. Doris took classes from Brent Kington at the Southern Illinois University. The fami...
stackexchange:50c60822eebe489648ca093c4272fed91c7eeee3fe5fcab86b23bbb53caed14b
stackexchange
Q: Adding gems on Sierra OS I've tried to update, as well as run existing Ruby gems after upgrading to OS X Sierra. > sudo gem update --system > Password: *enters password* > Updating rubygems-update... > ERROR: While executing gem ... (Errno::EPERM) > Operation not permitted - /usr/bin/update_rubygems This happe...
finemath-4plus:e4707216146afe84536150f241df3e1c49a97c69c2a19aa7e0b268cbb00ab1c6
finemath-4plus
# Label the bar model write a number sentence How many friends can she invite to her party? It is feasible, although many using the full program advise against it. A "taste" of bar modeling is probably not very effective; part of the power of bar modeling in the Singapore Math program is the structure and sequencing ...
cosmopedia-v2:37cd04c02d3e0419bf75079d4428a455497e32d6f9761c0b4c62d0d39589dbd6
cosmopedia-v2
Once upon a time, in a land far away, there was a magical kingdom called Twittersphere. In Twittersphere, people would share short messages called "tweets" with each other. But sometimes, mean and hurtful words were shared too. This made the wise rulers of Twittersphere very sad. They wanted everyone to feel safe and ...
stack-edu-python:6df370138406fb7111ea8ef52ad3857badbf949827302f4a2824c86d141ed408
stack-edu/Python/Apache-2.0
#!/usr/bin/env python3 import pwd import grp from config.webhdfs import configure from pywebhdfs.webhdfs import PyWebHdfsClient from stat import S_IFDIR, S_IFLNK, S_IFREG from time import time import datetime uid_cache = dict() def owner_to_uid(owner): if owner in uid_cache: return uid_cache[owner] tr...
stack-edu-cpp:c9cce4289b27321314c3ccdd0be569df4fc1e2a6b0efcc12964c0df30ad27697
stack-edu/Cpp/BSD-3-Clause
// Copyright (c) 2020 FRC Team 3512. All Rights Reserved. #include <chrono> #include <iostream> #include <thread> #include "autonselector/AutonSelector.hpp" using namespace std::chrono_literals; class Robot { public: void initFunc1() { std::cout << "Auto Init 1" << std::endl; } void initFunc2() { std::cout...
stack-edu-markdown:dd6e5a747f906ad4264e48a9e69f47a70c12c9a155d102071544cf3dc80bb120
stack-edu/Markdown/MIT
--- title: Sem Halál, Sem Könny Nem Lesz Többé date: 28/12/2022 --- Az örökké égő pokolban vég nélkül szenvedő halhatatlan lélek elképzelése ellentétes azzal a bibliai tanítással, hogy az új égen és új földön „halál nem lesz többé, sem gyász, sem jajkiáltás, sem fájdalom” (Jel 21:4, ÚRK). Ha az örökké égő pokol való...
stack-edu-c:99fe73f5cc8aa1d26319955afff7abef740ad7e8ac7061035b6b71109be20514
stack-edu/C/BSD-3-Clause+LicenseRef-scancode-unknown-license-reference+LicenseRef-scancode-warranty-disclaimer
// RUN: %sea pf -O0 --inline "%s" 2>&1 | OutputCheck %s // CHECK: ^unsat$ #include <seahorn/seahorn.h> #include <stddef.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #define FOO_TAG 100 #define BAR_TAG 200 static int8_t *g_bgn; static int8_t *g_end; static int g_active; extern int nd(void); extern ...
stack-edu-javascript:c69b8852fdf0499217a3dab7c2880e3708b3bf21466fc3795092b6dc4d8a0d98
stack-edu/JavaScript/Unlicense
var Arena = function () { // CONSTRUCTEUR PROPRIETES // Recherche de l'objet JavaScript natif représentant la balise <canvas> et récupération du contexte 2D du canvas. this.canvas = document.querySelector('#js-interface-map canvas').getContext("2d"); this.spriteLink = new Image(); this.spriteLink.s...
stack-edu-java:4c21c489e4faaa1fbe3df79f2d86dbfe31d194ca4dc3856430e89ec5b8751404
stack-edu/Java/Apache-2.0
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package com.intellij.openapi.vfs.newvfs.persistent; import it.unimi.dsi.fastutil.ints.IntArrays; import org.openjdk.jmh.annotations.*; import org.openjdk.jmh.runner.Runner; import org.openjdk.jmh.ru...
stack-edu-sql:670894057806dca1f8836c0cafb503ac40853e4f693af9d0d56d53951ce583fc
stack-edu/SQL/MIT
-- MySQL Script generated by MySQL Workbench -- Tue Oct 22 09:19:34 2019 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TR...
stack-edu-php:3c0917e9261c7f838f81d5fad645a95f7dfe1e37fe337d69f4f620ddffb8cd69
stack-edu/PHP/MIT
<?php /* * This file is part of the WhiteOctoberAdminBundle package. * * (c) Pablo Díez <<EMAIL>> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace WhiteOctober\AdminBundle\Action; /** * ActionCollection. * * @author ...
stack-edu-csharp:269d7ad8908f57b6d030e320a5f390a130d23fd10c2a8fdc1f1de82a1f02d97e
stack-edu/CSharp/MIT
using System; namespace GlyphEdit.Model.Manipulation { /// <summary> /// Scope wihtin document changes (will) form a single reversable operation on the undo stack. /// </summary> public class DocumentManipulationScope { private readonly DocumentManipulator _documentManipulator; pri...
stack-edu-typescript:cedabb1c85335747700c01eba5eb14bcedaa6b94568f88660303389e94095fc7
stack-edu/TypeScript/MIT
import upperCamelCase from "uppercamelcase"; import fs from "fs-extra"; import path from "path"; import Base from "../common/base-generator"; import prettyWrite from "../common/pretty-write"; type Name = Wup.Name; type Path = Wup.Path; interface Props extends Wup.Props { srcDir: Path; testDir: Path; files: Path...
stack-edu-shell:63bba7ea012614ffe64527962b48090902ef535fd3dd49b34dec87aad70f57b8
stack-edu/Shell/MIT
#!/bin/sh . ./config LUA_OUT_DIR="${TEST_OUT_DIR}/lua" rm -rf "${LUA_OUT_DIR}" mkdir -p "${LUA_OUT_DIR}" export LUA_PATH="$LUA_PATH;$LUA_RUNTIME_DIR/?.lua;spec/lua/?.lua;spec/lua/extra/?.lua;compiled/lua/?.lua;;" # Add `lua_install` dir to PATH, as this is where hererocks installs Lua at CI export PATH=$PATH:$PWD/...
stack-edu-swift:85909f4bcfbff014fe361258b982df3e620e3b350c238bc694e25481effb0a86
stack-edu/Swift/MIT
// // CoreDataStack.swift // WaterMyPlants // // Created by Patrick Millet on 2/1/20. // Copyright © 2020 WaterMyPlants3. All rights reserved. // import Foundation import CoreData // MARK: - Protocols protocol PersistentStoreControllerDelegate: NSFetchedResultsControllerDelegate {} extension NSManagedObjectConte...
stack-edu-go:2e18e54329d688c0404c6fb9f36a41705873ae5d2f9861d245103b2a70332140
stack-edu/Go/MIT
package chains import ( "database/sql" "fmt" "strings" "time" "github.com/lib/pq" "github.com/pkg/errors" "github.com/smartcontractkit/chainlink/core/services/pg" ) // ORM manages chains and nodes. type ORM[I ID, C Config, N Node] interface { Chain(I, ...pg.QOpt) (DBChain[I, C], error) Chains(offset, limit...
stack-edu-rust:5cff1c812837d891c821c0bb0a6b901364574b82ee7a4660093cd785ebe26413
stack-edu/Rust/Apache-2.0
use std::cell::RefCell; use std::collections::VecDeque; #[cfg(test)] mod tests; struct MockChannel { /// If read_status is set, this status value will be returned for any read /// operations on the mock channel (and |messages| will be left /// undisturbed). pub read_status: Option<i32>, /// If wri...
stack-edu-ruby:f809acf6836a480fb340b84a9e1f24ad78525f1f0210b96a074efb6c4afe56e4
stack-edu/Ruby/LicenseRef-scancode-unknown-license-reference+MIT
module Backlogjp # Represents a backlog.jp activity type class ActivityType < Container # @!attribute [r] id # @return [Integer] Activity type ID # @!attribute [r] name # @return [String] Activity type name attributes :id, :name # Returns an array of all activity types # @return [Ar...
End of preview. Expand in Data Studio

Minimal EN Corpus 2.5B 2.0

A deterministic English-language pretraining corpus for approximately 125M-parameter GPT-style models. This is the curated 2.0 generation of Minimal EN Corpus: source-pinned, model-free quality filtered, exact- and near-deduplicated, and decontaminated against the public evaluation splits of ARC, HellaSwag, PIQA, WinoGrande, OpenBookQA, BoolQ, MMLU, and GSM8K.

The name refers to the original approximately 2.5B-token source mixture. After cleaning, deduplication, and benchmark decontamination, the packaged release contains 2,431,800,156 canonical 12,288-token BPE tokens and 2,911,078 documents. Four 32,000- and 49,152-token CustomBPE and SuperBPE alternatives are also included for retokenizing the Parquet text.

Contents

Path Description
train/*.parquet Training text: 2,905,199 documents
validation/*.parquet Validation text: 5,879 documents
data/train.bin 2,426,751,493 little-endian uint16 tokens
data/val.bin 5,048,663 little-endian uint16 tokens
data/train.idx 2,905,200 little-endian uint64 document offsets
data/val.idx 5,880 little-endian uint64 document offsets
data/manifest.json Binary layout, sizes, token counts, and SHA-256 checksums
tokenizer/tokenizer.json Canonical 12,288-token Hugging Face tokenizers tokenizer used by the binaries
tokenizer/nanogpt-12k.json Canonical native integer BPE merge table
tokenizer/alternatives/ CustomBPE and SuperBPE tokenizers at 32,000 and 49,152 tokens
manifests/tokenizers.json Tokenizer formats, source hashes, training provenance, and binary compatibility
manifests/ Split, mixture, provenance, quality, deduplication, and decontamination evidence

The Parquet schema is:

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

Tokenizers

Canonical binary tokenizer

  • Byte-level BPE with GPT-2-style pretokenization
  • Vocabulary size: 12,288
  • 12,029 merges
  • <|endoftext|>: ID 12,285
  • <|im_start|>: ID 12,286
  • <|im_end|>: ID 12,287
  • One <|endoftext|> separator follows every document in the binary package

data/train.bin and data/val.bin are encoded only with this canonical tokenizer. The alternative tokenizers below are not binary-compatible; use them to retokenize train/*.parquet and validation/*.parquet.

Alternative tokenizers

Family Vocabulary Hugging Face tokenizer Original model artifact
CustomBPE 32,000 tokenizer/alternatives/custom-bpe-32000/tokenizer.json merges.json
CustomBPE 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

CustomBPE retains its exact source merges.json; the adjacent tokenizer.json is an encoding-equivalent Hugging Face ByteLevel BPE conversion. SuperBPE retains its original two-stage Hugging Face tokenizer with cross-whitespace stage-two merges. All four were trained on SlayerLab/minimal-en-corpus-5b revision 870948fee236859fd9f72f7057f39252dceb697f; exact input and implementation provenance is in each artifact.json and manifests/tokenizers.json.

Mixture

Source Documents Packaged tokens Validation tokens
FineWeb-Edu 632,656 740,991,874 1,524,021
DCLM Baseline 387,876 559,537,704 1,150,920
English Wikipedia 297,392 222,835,179 458,740
StackExchange 296,980 215,231,537 443,666
FineMath 4+ 122,968 188,938,462 388,889
Cosmopedia v2 202,632 174,597,123 359,046
Stack-Edu 114,249 137,442,576 283,116
Project Gutenberg 969 107,234,878 260,303
peS2o v2 7,107 49,790,602 106,348
Gutenberg Dialogue 826,788 24,476,179 50,332
English Wikinews 21,461 10,724,042 23,282

The train/validation split is whole-document, source-stratified, deterministic, and selected by seeded xxHash64 rank over stable document IDs. Validation targets 5M tokens without slicing documents.

Preparation

  1. Deterministic source selection from pinned upstream revisions.
  2. Byte-exact and normalized-exact deduplication.
  3. 128-permutation MinHash/LSH near-deduplication over 5-word shingles at a 0.8 similarity threshold.
  4. Source-aware model-free quality filtering, repeated-line cleanup, and secret/PII redaction.
  5. Benchmark decontamination using normalized exact fragments and contiguous 13-word n-grams, including propagation through prior duplicate families.
  6. Deterministic whole-document train/validation packaging.

Curation removed 225,888 duplicate documents, rejected 6,137 quality failures, and removed 2,603 benchmark-contaminated documents. The final decontamination audit found zero configured direct or duplicate-family overlaps and zero token/checksum mismatches.

Loading the text dataset

from datasets import load_dataset

ds = load_dataset("SlayerLab/minimal-en-corpus-2.5b-v2")
print(ds)
print(ds["train"][0]["source_id"])

Streaming avoids downloading the complete text export:

from datasets import load_dataset

ds = load_dataset(
    "SlayerLab/minimal-en-corpus-2.5b-v2",
    split="train",
    streaming=True,
)
print(next(iter(ds)))

Using the nanoGPT binaries

import numpy as np

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

vocab_size = 12288
block_size = 2048

Binary checksums

File SHA-256
data/train.bin a32ecf2e13521d62fb576d86c029e5e9f06bae8309b2572b8e0368980a42a4aa
data/val.bin daf16636db428ecc637608aeeb93f0480584eac553f902d744d9245adc1e40fb
data/train.idx e25e0cc414b6d98e205a9c49a3c050b2a5ecd22bf866162946b71ed6b1f74fad
data/val.idx 2f24ff1fc1789c962ccfff3e4bc252d831ed2c3719541f36ea90d80df4022b4e

Upstream licensing and provenance

This aggregate corpus does not apply a new unified license to underlying documents. Each document retains a source_id and remains subject to 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
English Wikipedia b04c8d1ceb2f5cd4588862100d08de323dccfbaa CC-BY-SA-3.0 and GFDL
StackExchange RedPajama-Data-1T-v1.0.0 Stack Exchange CC BY-SA terms; preserve post attribution metadata
FineMath 4+ e92b25a616738fe95dc186b64dfb19f9c8525594 ODC-By-1.0
Cosmopedia v2 3ba9d605774198c5868892d7a8deda78031a781f 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
peS2o v2 636a503e44a3ca1b58e01fb61eab0825cd574de0 ODC-By-1.0; upstream open-access paper terms remain applicable
Gutenberg Dialogue f3a0a1df18275cd9f61f7d161ad6eed3ce35f88c MIT dataset packaging over Project Gutenberg-derived dialogue; overlaps the books donor
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

Review the upstream dataset cards before commercial use, redistribution, or public model release. Detailed pinned revisions and transformations are recorded under manifests/.

Version 2.0

  • Rebuilt the mixture from pinned current source revisions under the Pollock Corpus V2 proposal.
  • Added exact, normalized-exact, and MinHash near-deduplication.
  • Added source-aware quality filtering and deterministic redaction manifests.
  • Added pinned core-language-model benchmark decontamination with duplicate-family propagation.
  • Added indexed train and validation binaries plus reusable Parquet text splits.
  • Added exact CustomBPE and SuperBPE tokenizer artifacts at 32,000 and 49,152 vocabulary sizes.
  • Verified two complete release builds as byte-identical before publication.

Author

Dawid Majewski — huggingface.co/dawidmajewski

Downloads last month
349