Datasets:
book_id stringlengths 36 36 | title stringlengths 3 266 | author stringlengths 0 965 | publisher stringclasses 117
values | isbn stringlengths 0 69 | license stringclasses 4
values | url stringlengths 34 1.2k | created stringlengths 0 16 | n_sections int32 1 612 | section_idx listlengths 1 612 | n_sections_missing int32 0 305 | n_chars int64 0 5.48M | dup_of stringclasses 680
values | crawl_order int64 0 404k | text stringlengths 0 5.48M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0004666f-919b-4eaa-ac9b-a02a0e3c589b | Human Cultures through the Scientific Lens | Boyer, Pascal | Open Book Publishers | Creative Commons - Attribution - https://creativecommons.org/licenses/by/4.0/ | https://library.oapen.org/bitstream/20.500.12657/50315/1/9781800642089.pdf | 5-8-2021 06:01 | 1 | [
0
] | 0 | 471,302 | null | 0 | "# **HUMAN CULTURES THROUGH THE SCIENTIFIC LENS**\n\n**Pascal Boyer**\n\nHuman Cultures through the (...TRUNCATED) | |
0004847e-ab80-435d-9a35-50f7f1b13b00 | Sex Hormones in Neurodegenerative Processes and Diseases | IntechOpen | 9781789230154 | Creative Commons - Attribution - https://creativecommons.org/licenses/by/3.0/ | https://mts.intechopen.com/storage/books/5994/authors_book/authors_book.pdf | 1-12-2023 17:26 | 5 | [
0,
2,
3,
5,
6
] | 2 | 1,653,988 | null | 1 | "*Edited by Gorazd Drevenšek*\n\nThe book provides chapters on sex hormones and their modulation in(...TRUNCATED) | |
0004e4bd-422d-4a23-9686-437c4a3af25b | Gathering Ecologies | Goodman, Andrew | Open Humanities Press | Creative Commons - Attribution Share-Alike - https://creativecommons.org/licenses/by-sa/4.0/ | https://library.oapen.org/bitstream/20.500.12657/30501/1/646116.pdf||https://library.oapen.org/bitstream/20.500.12657/30501/1/646116.pdf||https://library.oapen.org/bitstream/20.500.12657/30501/1/646116.pdf||https://library.oapen.org/bitstream/20.500.12657/30501/1/646116.pdf||https://library.oapen.org/bitstream/20.500.1... | 1 | [
0
] | 0 | 466,411 | null | 6 | "# Gathering Ecologies\n\nThinking Beyond Interactivity\n\nAndrew Goodman\n\n## **Gathering Ecologie(...TRUNCATED) | ||
00064f14-4c6c-4123-bed8-b5ae765fbfc8 | Fourier Transform | IntechOpen | 9789535105947 | Creative Commons - Attribution - https://creativecommons.org/licenses/by/3.0/ | https://mts.intechopen.com/storage/books/2270/authors_book/authors_book.pdf | 1-12-2023 15:59 | 4 | [
0,
1,
2,
3
] | 0 | 1,187,884 | null | 7 | "*Edited by Salih Mohammed Salih*\n\nThe field of material analysis has seen explosive growth during(...TRUNCATED) | |
0008a8ec-01ff-4139-b26e-22862621b722 | Gestational Diabetes | IntechOpen | 9789533075815 | Creative Commons - Attribution - https://creativecommons.org/licenses/by/3.0/ | https://mts.intechopen.com/storage/books/337/authors_book/authors_book.pdf | 20-4-2021 17:12 | 4 | [
0,
2,
3,
4
] | 1 | 2,005,461 | null | 11 | "*Edited by Miroslav Radenković*\n\nGestational diabetes mellitus is defined as hyperglycemia with (...TRUNCATED) | |
000f0faf-bfb7-4c4d-9180-ec3d905bbc1f | Contextual Process Digitalization | Fleischmann, Albert||Oppl, Stefan||Schmidt, Werner||Stary, Christian | Springer Nature | Creative Commons - Attribution - https://creativecommons.org/licenses/by/4.0/ | https://library.oapen.org/bitstream/20.500.12657/37369/1/978-3-030-38300-8.pdf | 10-2-2021 14:38 | 1 | [
0
] | 0 | 460,870 | null | 15 | "Albert Fleischmann Stefan Oppl · Werner Schmidt Christian Stary\n\n# Contextual Process Digitaliza(...TRUNCATED) | |
00134e2c-4cd5-4041-bb42-ea5f0ee762e6 | The Scope and Limits of Protection for Distinctive Signs against the Community Design | Kolasa, Magdalena | Nomos Verlagsgesellschaft mbH & Co. KG | Creative Commons - Attribution - https://creativecommons.org/licenses/by/4.0/ | https://www.nomos-elibrary.de/10.5771/9783845243856 | 12-2-2021 04:05 | 1 | [
0
] | 0 | 137,612 | null | 16 | "Magdalena Kolasa\n\n# The Scope and Limits of Protection for Distinctive Signs against the Communit(...TRUNCATED) | |
001c1372-3390-4f92-8b42-7dfe9fe510d8 | How Data Quality Affects our Understanding of the Earnings Distribution | Daniels, Reza Che | Springer Nature | Creative Commons - Attribution - https://creativecommons.org/licenses/by/4.0/ | https://library.oapen.org/bitstream/20.500.12657/57371/1/978-981-19-3639-5.pdf | 14-7-2022 06:01 | 1 | [
0
] | 0 | 255,298 | null | 17 | "# Reza Che Daniels\n\n# How Data Quality Affects our Understanding of the Earnings Distribution\n\n(...TRUNCATED) | |
001e4a90-6b26-4650-bf99-81d98b68a57f | Mapping, Monitoring and Assessing Disasters | MDPI - Multidisciplinary Digital Publishing Institute | 9783036565392 | Creative Commons - Attribution - https://creativecommons.org/licenses/by/4.0/ | https://mdpi.com/books/pdfview/book/6898 | 7-3-2023 17:35 | 2 | [
0,
1
] | 0 | 572,358 | null | 18 | "# **Mapping, Monitoring and Assessing Disasters**\n\nEdited by Spyridon Mavroulis and Efthymios Lek(...TRUNCATED) | |
001fcd9a-cd27-45e8-b23f-f447874e0974 | Indoor Air Quality: From Sampling to Risk Assessment in the Light of New Legislations | MDPI - Multidisciplinary Digital Publishing Institute | 9783036509464 | Creative Commons - Attribution - https://creativecommons.org/licenses/by/4.0/ | https://mdpi.com/books/pdfview/book/3938 | 11-1-2022 14:33 | 122 | [1,3,6,8,10,11,12,13,14,17,18,19,20,21,22,25,26,27,28,29,31,32,33,34,35,36,37,39,40,41,42,43,45,48,4(...TRUNCATED) | 44 | 485,707 | null | 20 | "**Indoor Air Quality From Sampling to Risk Assessment in the Light of New Legislations**\n\nPrinted(...TRUNCATED) |
Whole Books
Five book-length corpora for long-context language-model pretraining, packaged so that one row is one whole book. Together: 202,343 books, about 20.9 B tokens in a 32K-vocabulary Llama-style tokenizer, with the large majority of tokens inside books of 64K tokens or more. Built 2026-09-06 from pinned snapshots of the sources below; nothing was filtered, deduplicated or cleaned beyond what the sources had already done, and the reassembly steps are documented per config.
from datasets import load_dataset
ds = load_dataset("ysngkil/whole-books", "gutenberg", split="train") # gutenberg | pre1929 | doab | textbooks | pressbooks
Configs
| config | books | tokens (est.) | tokens per book p50 / p90 / max | tokens in books >= 64K | files | size |
|---|---|---|---|---|---|---|
gutenberg |
55,454 | 5.49 B | 75,382 / 207,150 / 7,816,045 | 87% | 15 | 6.83 GiB |
pre1929 |
124,898 | 11.65 B | 57,502 / 210,297 / 5,553,602 | 86% | 26 | 15.04 GiB |
doab |
18,948 | 3.32 B | 146,996 / 317,572 / 1,518,374 | 98% | 1 | 3.0 GiB |
textbooks |
1,149 | 0.27 B | 117,278 / 515,344 / 5,959,592 | 96% | 1 | 0.27 GiB |
pressbooks |
1,894 | 0.14 B | 31,867 / 202,291 / 1,415,774 | 81% | 1 | 0.17 GiB |
Token counts are estimates: characters times a chars-per-token ratio calibrated on random samples with
fla-hub/transformer-1.3B-100B (32,000 tokens, Llama-style). Llama-3-style 128K vocabularies give ~15-20% fewer tokens.
Provenance and licences
| config | what | source snapshot | licence |
|---|---|---|---|
gutenberg |
Project Gutenberg books | common-pile/project_gutenberg_filtered @ 3cdf6879 |
Public Domain |
pre1929 |
Pre-1929 public-domain books (Internet Archive / HathiTrust scans) | common-pile/pre_1929_books_filtered @ 23f9d96d |
Public Domain |
doab |
DOAB / OAPEN open-access academic books, reassembled from sections | common-pile/doab_filtered @ defb24ca |
CC BY 4.0 / 3.0, CC BY-SA 4.0 / 3.0 (per row) |
textbooks |
LibreTexts textbooks, reassembled from chapters | princeton-nlp/TextbookChapters @ 542b0c60 |
LibreTexts terms (mostly CC BY / CC BY-NC-SA); see source |
pressbooks |
Pressbooks open textbooks, reassembled from chapter pages | common-pile/pressbooks_filtered @ 1a1d3b50 |
CC BY 4.0, CC BY-SA 4.0, CC0, Public Domain (per row) |
gutenberg, pre1929, doab, pressbooks are the _filtered subsets released with Common Pile v0.1
(Kandpal et al. 2025), i.e. already language-filtered, quality-filtered and deduplicated by them. textbooks is the
chapter dataset that ProLong (Gao et al. 2024) used for its textbooks domain.
How each config was built
- gutenberg and pre1929: the Common Pile records converted 1:1 to parquet (one record = one book). The dolma
metadatafields are flattened into columns (title,url,language,license, and forpre1929alsoauthor,year,place,htid,hathi_url,ia_url, ...);textis untouched. Note that the PG-19 benchmark (Rae et al. 2019) is ~96% contained ingutenbergby Gutenberg id; exclude PG-19's test ids before evaluating on it. - doab: Common Pile stores each DOAB book as several section records (
section_idx). Sections of a book are contiguous and ordered in the snapshot; they were concatenated insection_idxorder with a blank line between them. 403,992 sections -> 18,948 books; 9,851 books have gaps in the section numbering (sections removed by Common Pile's filter) and are concatenated as-is; 1,050 books share title and author with an earlierbook_idand are flagged indup_of. Columns:book_id,title,author,publisher,isbn,license,url,created,n_sections,section_idx,n_sections_missing,n_chars,dup_of,crawl_order,text. - textbooks: TextbookChapters rows are single chapters keyed by a path
textbooks/<field>/<shelf>/<Book>/<chapter>; chapters were grouped by book and joined in natural path order. 77,932 chapters -> 1,149 textbooks. Columns:book,shelf,field,n_chapters,n_chars,first_chapter,text. ProLong trained on a stream of these textbooks cut into 512K-token pieces; this config is the uncut superset. - pressbooks: Common Pile stores one record per chapter page carrying only the book title; pages were grouped by
the URL prefix before
/chapter/<slug>/, kept in crawl order, and a# <slug humanised>heading was inserted before each chapter whose slug is not purely numeric. 54,455 pages -> 1,894 books. Crawl order matched the chapter numbering in the slugs in 318 of the 394 books where that could be checked; the live Pressbooks TOC API was not reachable from the build machine, so the order is not verified against it. Columns:book_url,landing_url,title,author,institution,subject,license,n_chapters,n_chars,chapter_slugs,dup_of,crawl_order,text.
Each config directory also holds a _summary.json with the build parameters where a reassembly was done.
Citation of the sources
- Common Pile v0.1: Kandpal et al., The Common Pile v0.1: An 8TB Dataset of Public Domain and Openly Licensed Text, 2025.
- TextbookChapters / ProLong: Gao et al., How to Train Long-Context Language Models (Effectively), 2024.
- PG-19 (for the overlap note): Rae et al., Compressive Transformers for Long-Range Sequence Modelling, 2019.
- Downloads last month
- 66