← Datasets

Compare

DCLM-baseline
#1158 · remove
MegaMath
#1157 · remove
Kinddatasetdataset
Published20242025
LicenseCC-BY-4.0 (HF card YAML). Also subject to Common Crawl Terms of Use. Card: intended for research use only / not production-ready or code/math-specific.ODC-By (HF card YAML odc-by). Also subject to Common Crawl Terms of Use. Code subset inherits Stack-V2 / per-file detected_licenses (preview MIT and no_license). Synthetic QA teacher terms (Llama-3.3 / Qwen-2.5) may still apply if used to train a distributed model.
License familyPermissivePermissive
AccessFreeFree
Language codes—en
Modalitiestexttext
Size1B to 10B rows100M to 1B rows
Downloads (last month)630,59082,620
Likes318134
Last updated2024-07-222025-04-09
Tasks—text-generation
Formatsjsonparquet
ScaleCard 4T tokens / 3B documents. Paper also states 3.8T tokens for DCLM-baseline (DCLM-Pool parent: 240T tokens / 200B docs / 370TB gzip). Hub/datasets-server estimated 3,017.8M rows vs partial parquet convert 780.0K / 10 files / 3.0 GB — do not catalog 780K as n. size_categories 1B<n<10B (docs). Layout: 10 global-shard_*_of_10 × 10 local-shard_*_of_10 jsonl.zst. CuratorBote listed ≥279 LFS jsonl.zst in global-shard_01_of_10/local-shard_0_of_10 (listing still going at shard_00000278; sizes ~141–422 MB). usedStorage Unknown (did not sum ~100 local shards). Parquet sibling mlfoundations/dclm-baseline-1.0-parquet is an identical remap (datasets-server estimated 2,732.1M) — not extra n. Hub overview 7.3M downloads / 304 likes at check. gated=false.Card table 215.1M samples / 371.6B tokens (mean 1,727.6 tok/sample). Breakdown (card, not extra overlapping n): Web Domain 121.5M / 279.0B (Web 106.5M / 263.9B; Web-Pro 15.0M / 15.1B); Code Domain 13.4M / 28.1B; Synthetic 80.2M / 64.5B (Translated Code 7.4M / 7.2B; Q&A 22.6M / 7.0B; Text&Code Block 50.2M / 50.3B). Hub/datasets-server default train 217,499,877 / usedStorage 1,118,247,802,657 bytes (~1.12 TB) / 5,314 parquet. YAML size_categories 1B<n<10B vs Hub tag 100M<n<1B — catalog card 215.1M / 371.6B tokens, not the 1B-row tag. LFS layout: megamath-web 4,950 parquet (99 CC dumps × 50); megamath-web-pro 100; megamath-code 16; megamath-qa 32 (16 llama-3.3 + 16 qwen-2.5); megamath-text-code-block 200; megamath-translated-code 16. Hub overview 72.8K downloads / 131 likes at check. gated=false.
Formatjsonl.zst under global-shard_XX_of_10/local-shard_Y_of_10/shard_*_processed.jsonl.zst. Canonical columns: bff_contained_ngram_count_before_dedupe, language_id_whole_page_fasttext, metadata (WARC), previous_word_count, text, url, warcinfo, fasttext_openhermes_reddit_eli5_vs_rw_v2_bigram_200k_train_prob. Parquet sibling simplifies to text/url/id/language/language_score/fasttext_score.parquet in six directories (megamath-web, megamath-web-pro, megamath-code, megamath-qa, megamath-text-code-block, megamath-translated-code). No YAML configs; Hub auto default concatenates 5,314 parquet. Code preview columns: file_info, repo_info. Web/QA schemas Unknown from the default first-rows (code schema).
TypePretraining corpus / filtered Common Crawl web textPretraining corpus / math web + math code + synthetic QA/text-code
CostFreeFree
LanguagesEnglish 100% (card language:en). Parquet-sibling preview language=en / language_score 0.933. Canonical jsonl carries language_id_whole_page_fasttext.en. No LID percent table. Per-language percents N/A.English 100% (card language:en). Paper: fastText LID keep score ≥0.65 on CC WARCs. Code subset is source-code (preview Python) with English comments. No per-language percent table beyond the English filter. Per-language percents N/A.
ModalityText-only (English web). No images.Text-only (English web/QA + source code). teasor.png is not extra n.
Domainweb pre-training; Common Crawl English; DataComp-LM benchmarkmath pre-training; Common Crawl math web; math-related code; synthetic math QA / text-code blocks
Time periodPaper arXiv 2406.11794 (Hub publishedAt 2024-06-17T17:42:57Z; HTML v4 2025-04-21). HF createdAt 2024-06-17; lastModified 2024-07-22T15:27:52Z. DCLM-Pool is all Common Crawl prior to 2023, resiliparse-extracted. One-shot curation, not a live crawl.Paper arXiv 2504.02807 (Hub publishedAt 2025-04-03T17:52:07Z; COLM 2025). HF createdAt 2025-03-30; lastModified 2025-04-09T13:17:50Z. Web from 99 Common Crawl snapshots CC-MAIN-2014-15 through CC-MAIN-2024-46. One-shot curation, not a live crawl.
PurposeResearch baseline for DCLM; high-quality open English pretrain via heuristic+Bloom+fastText filtering of DCLM-PoolLargest open English math pretrain corpus (paper: 371.6B tokens) for math-centric LLM pre-training
Used forPaper DCLM 7B (2.6T tokens → 64% MMLU 5-shot / CORE 57.1). Subsequent open-data work (paper: OLMo-2 / Nemotron-CC / WebOrganizer built on DCLM). Hub overview 7.3M downloads / 304 likes at check; paper-page listing 308,015 downloads. GitHub mlfoundations/dclm 1,463 stars / paper 56 upvotes at paper-metadata check.Paper continued-pretrain of Llama-3.2-1B/3B (IFM/MegaMath-Llama-3.2-*). marin-community/marin-32b-base lists MegaMath among sources. Hub overview 72.8K downloads / 131 likes at check. Paper 35 upvotes / 6 linked models at paper-metadata check. GitHub LLM360/MegaMath 110 stars / 8 forks at check. Part of TxT360 (LLM360).
AuthorsDCLM team (Li, Fang, Smyrnis, Ivgi, et al.; UW/Apple/TRI/UT Austin/TAU and others; arXiv 2406.11794). Web authors from Common Crawl. Classifier positives: OpenHermes 2.5 and r/ExplainLikeImFive vs RefinedWeb negatives.LLM360 / IFM (Zhou, Wang, Ranjan, Cheng, Tang, He, Liu, Xing; arXiv 2504.02807). Web authors from Common Crawl math pages. Code recalled from Stack-V2 (public processed files here). Synthetic QA from Llama-3.3 and Qwen-2.5 (megamath-qa/llama-3.3 and qwen-2.5 shards). Not a human-annotated contest set.
BiasEnglish CC web. fastText OpenHermes+ELI5 vs RefinedWeb classifier overweights instruction/forum register. Card: not intended for code/math production training. Distinct from already-cataloged FineWeb / FineWeb-Edu (trafilatura + edu classifier) / Falcon RefinedWeb (heuristics only) / Dolma / Ultra-FineWeb. Live-sheet OLMo Mix uses DCLM as a mix component — this is the standalone corpus.English CC math-web (fastText math classifier trained from Open-Web-Math positives + Llama-3.1-70B-Instruct silver labels) plus Stack-V2 math-code recall plus LLM-synthetic QA/code. Web-Pro is an LM-filtered/refined subset of Web — not extra n. Distinct from already-cataloged FineMath (HuggingFaceTB educational CC math, ~34B FineMath-3+ tokens) and OpenCoder FineWeb Math Corpus (5.2M FineWeb math recall). Code comes from Stack-V2 but this repo is a public processed dump — not Hub-gated bigcode/the-stack-v2 / HuggingFaceTB/stack-edu.
Text qualityParquet-sibling preview row 0 is a 2012 Apple Stack Exchange NTFS/Time Machine thread (url apple.stackexchange.com/questions/66593; language_score 0.933; fasttext_score 0.113). Readable Q&A with residual SE boilerplate (Take the 2-minute tour; vote widgets). Canonical jsonl viewer 501. Paper: model-based filtering was the key lift vs RefinedWeb heuristics (7B-1x). Residual: CC PII/bias; card PII section More Information Needed; not independently re-extracted here.Paper: two-stage Resiliparse then trafilatura HTML math extraction (LaTeX preserved); MinHash-LSH dedup; second-stage fastText. Ablations claimed stronger downstream than OpenWebMath / InfiMM-WebMath-class baselines. Hub default first-rows are Stack-v2-style file_info/repo_info Python files (Navier-Stokes; Deep_Learning_With_Python) — code-subset schema, not web text. datasets-server rows endpoint 501 on default. Residual: CC boilerplate; synthetic QA teachers; code license mix including no_license; not independently re-extracted here. Skip open-web-math/open-web-math as a separate row (FineMath already cataloged as the stronger web successor); MegaMath is a larger web+code+synth mix.
Sample sizeSingle train split. No val/test. 10×10 shard grid is storage layout not Hub configs. Do not concat jsonl repo + parquet sibling as extra n. Do not add DCLM-Pool as extra n (raw 240T parent).Card 215.1M across six subsets (see Scale). Hub default train 217,499,877 is the auto-concat — catalog card 215.1M. Web-Pro is a quality subset of Web, not extra n. megamath-qa llama-3.3 vs qwen-2.5 are teacher shards inside Q&A 22.6M. No val/test. Do not add OctoThinker/MegaMath-Web-Pro-Max as extra n.
Long contextMixed (full web pages). Exact token histogram Unknown without aggregating. Card ~4T / ~3B docs ≈ ~1.3k tok/doc if both figures hold.Mixed (card avg 1,727.6 tok/sample; Web mean 2,478.7 / Code 2,102.7 / Q&A 308.3). Full web documents can be long. Exact token histogram Unknown without aggregating parquet.
Intermediate stepsYes (CC HTML → resiliparse; RefinedWeb-style heuristic filters; Bloom near-dedup; fastText OpenHermes-2.5 + r/ELI5 vs RefinedWeb bigram classifier). Code at github.com/mlfoundations/dclm.Yes (99 CC WARC re-extract with math HTML fixes; two-stage extractor + fastText math filter + MinHash; Web-Pro LM filter/refine; Stack-V2 math-code recall; synthetic QA / translated-code / interleaved text-code blocks). Code Apache-2.0 at github.com/LLM360/MegaMath.
Idea qualityHighHigh
NoveltyHigh (public 3.8–4T model-filtered CC pretrain vs already-cataloged FineWeb / RefinedWeb / Dolma)High (public 371.6B-token math pretrain vs already-cataloged FineMath / OpenCoder FineWeb Math)
Text conversionReady jsonl.zst; streaming required (TB-scale). Prefer shard globs or the parquet sibling. datasets-server 501 on canonical jsonl; partial 780K parquet convert is not full n.Ready parquet but Hub default concatenates mismatched schemas (~1.12 TB). Prefer load_dataset('IFM/MegaMath', data_dir='megamath-web-pro') or data_files per subset; streaming required. LLM360/MegaMath redirects to IFM/MegaMath — do not concat as extra n. datasets-server rows 501 on default.
Collection methodDownloadDownload
StaticUnknown (HF lastModified 2024-07-22; CC window prior to 2023; one-shot).Unknown (HF lastModified 2025-04-09; CC window through 2024-46; one-shot).
ProcessedUnknownUnknown
SummaryResearch baseline for DCLM; high-quality open English pretrain via heuristic+Bloom+fastText filtering of DCLM-PoolLargest open English math pretrain corpus (paper: 371.6B tokens) for math-centric LLM pre-training