{
  "id": 1157,
  "kind": "dataset",
  "title": "MegaMath",
  "summary": "Largest open English math pretrain corpus (paper: 371.6B tokens) for math-centric LLM pre-training",
  "body": "",
  "notes": "Dump-adjacent public corpus (not in data-source-dump.jsonl). gated=false; public; CuratorBote listed README plus 5,314 LFS parquet (~1.12 TB usedStorage). LLM360/MegaMath redirects to IFM/MegaMath. Catalog card 215.1M / 371.6B tokens, not YAML size_categories 1B<n<10B. Cite Zhou et al. 2025 arXiv 2504.02807 (COLM 2025). Not in papers_local.csv. Not on the Aug 13 live Datasets sheet export. Substituted ahead of Hub-gated nvidia/Nemotron-CC-Math-v1 / HuggingFaceTB/stack-edu; skipped open-web-math/open-web-math (FineMath already cataloged) and DataMuncher-Labs/UltiMath (card vs YAML mismatch). Code subset is a public processed Stack-V2 recall, not a request for gated the-stack-v2.",
  "url": "https://huggingface.co/datasets/IFM/MegaMath",
  "links": [
    {
      "url": "https://huggingface.co/datasets/IFM/MegaMath",
      "label": "Dataset"
    },
    {
      "url": "https://arxiv.org/abs/2504.02807",
      "label": "Related"
    },
    {
      "url": "https://huggingface.co/papers/2504.02807",
      "label": "Related"
    },
    {
      "url": "https://huggingface.co/datasets/IFM/MegaMath",
      "label": "Related"
    },
    {
      "url": "https://huggingface.co/datasets/LLM360/MegaMath",
      "label": "Related"
    },
    {
      "url": "https://github.com/LLM360/MegaMath",
      "label": "Related"
    },
    {
      "url": "https://huggingface.co/IFM/MegaMath-Llama-3.2-1B",
      "label": "Related"
    },
    {
      "url": "https://huggingface.co/IFM/MegaMath-Llama-3.2-3B",
      "label": "Related"
    }
  ],
  "authors": [
    "IFM"
  ],
  "tags": [],
  "topics": "math pre-training; Common Crawl math web; math-related code; synthetic math QA / text-code blocks",
  "venue": "",
  "publisher": "",
  "source": "huggingface",
  "language": "en",
  "access": "Free",
  "license": "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.",
  "published_year": 2025,
  "added_at": "2026-08-14T22:46:00.000Z",
  "verified_at": "2026-08-14T22:46:00.000Z",
  "attrs": {
    "dataset": {
      "cost": "Free",
      "type": "Pretraining corpus / math web + math code + synthetic QA/text-code",
      "scale": "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.",
      "domain": "math pre-training; Common Crawl math web; math-related code; synthetic math QA / text-code blocks",
      "format": "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).",
      "license": "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.",
      "novelty": "High (public 371.6B-token math pretrain vs already-cataloged FineMath / OpenCoder FineWeb Math)",
      "purpose": "Largest open English math pretrain corpus (paper: 371.6B tokens) for math-centric LLM pre-training",
      "used_for": "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).",
      "bias_dist": "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.",
      "is_static": "Unknown (HF lastModified 2025-04-09; CC window through 2024-46; one-shot).",
      "processed": "Unknown",
      "author_dist": "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.",
      "sample_size": "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.",
      "time_period": "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.",
      "idea_quality": "High",
      "long_context": "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.",
      "text_quality": "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.",
      "language_dist": "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.",
      "modality_dist": "Text-only (English web/QA + source code). teasor.png is not extra n.",
      "relevant_links": "https://arxiv.org/abs/2504.02807; https://huggingface.co/papers/2504.02807; https://huggingface.co/datasets/IFM/MegaMath; https://huggingface.co/datasets/LLM360/MegaMath; https://github.com/LLM360/MegaMath; https://huggingface.co/IFM/MegaMath-Llama-3.2-1B; https://huggingface.co/IFM/MegaMath-Llama-3.2-3B",
      "dataset_location": "https://huggingface.co/datasets/IFM/MegaMath",
      "collection_method": "Download",
      "intermediate_steps": "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.",
      "text_conversion_ease": "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."
    }
  },
  "enrichment": {
    "hf": {
      "id": "IFM/MegaMath",
      "size": "100M<n<1B",
      "type": "dataset",
      "arxiv": [
        "2504.02807"
      ],
      "gated": false,
      "likes": 134,
      "tasks": [
        "text-generation"
      ],
      "author": "IFM",
      "created": "2025-03-30",
      "formats": [
        "parquet"
      ],
      "license": "odc-by",
      "modified": "2025-04-09",
      "downloads": 82620,
      "languages": [
        "en"
      ],
      "fetched_at": "2026-10-03T14:33:52.444Z",
      "modalities": [
        "text"
      ]
    }
  },
  "enriched_at": "2026-10-03T14:33:52.483Z",
  "license_class": "permissive",
  "langs": [
    "en"
  ],
  "modalities": [
    "text"
  ],
  "size_class": "100M<n<1B",
  "provenance": {
    "legacy_dataset_id": 203
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-10-03T12:29:06.561Z",
  "updated_at": "2026-10-03T14:33:52.483Z",
  "page": "https://papers.projxon.ai/entries/1157",
  "markdown": "https://papers.projxon.ai/entries/1157.md",
  "api": "https://papers.projxon.ai/api/entries/1157",
  "relations": [
    {
      "relation": "related",
      "direction": "in",
      "note": "shared link",
      "via": "shared-link",
      "entry": {
        "id": 1164,
        "kind": "dataset",
        "title": "TxT360",
        "summary": "Largest high-quality open pretrain blend (card ~5T globally deduped tokens; 15T+ with the working mix recipe) with per-source weights and duplicate-count buckets",
        "url": "https://huggingface.co/datasets/IFM/TxT360",
        "authors": [
          "IFM"
        ],
        "tags": [],
        "venue": "",
        "source": "huggingface",
        "license": "ODC-By (HF card YAML odc-by). Also subject to Common Crawl Terms of Use. Curated sources keep upstream licenses (arXiv/S2ORC/PubMed/Wikipedia/FreeLaw/USPTO/PG-19/HN/Ubuntu IRC/Europarl/StackExchange/DM Math). v1.1 TxT360_QA teacher Mistral-7B-Instruct-v0.3 terms may still apply if used to train a distributed model.",
        "published_year": 2024,
        "added_at": "2026-08-14T23:05:00.000Z",
        "has_dataset_profile": true,
        "license_class": "permissive",
        "langs": [
          "en"
        ],
        "modalities": [
          "text"
        ],
        "size_class": "n>1T",
        "citation_count": null,
        "downloads": 24086,
        "stars": null,
        "page": "https://papers.projxon.ai/entries/1164",
        "markdown": "https://papers.projxon.ai/entries/1164.md",
        "api": "https://papers.projxon.ai/api/entries/1164"
      }
    }
  ],
  "duplicates": [],
  "similar": [
    {
      "id": 835,
      "kind": "paper",
      "title": "How Much Is an AI Token Worth? Scaling Laws for Wild AI-Generated Web Text",
      "summary": "Measures how 'wild' AI-generated web text affects LM pretraining: after FineWeb quality filtering, 27.5% of June 2026 web tokens are labeled AI-generated by Pangram, rising to 31.1% by August. Pretrains 800 language models varying the ratio of added AI tokens to human tokens and fits scaling laws to held-out losses on both human and AI-generated text. For data-starved models, adding AI tokens initially lowers loss on human text, but the benefit saturates and quickly reverses into harm; for models trained on high budgets of human text, AI tokens raise loss almost immediately while the same number of fresh human tokens keeps lowering it. Standard scaling laws (e.g. Hoffman/Chinchilla 2022) fail to predict this behavior, so the authors propose a new scaling law with separate benefit and harm terms that lets the value of an AI token change sign and reduces to Chinchilla in the absence of AI text; fit on smaller models it predicts the effect on models up to 3.6x larger with 41% lower error than the best existing law over all AI ratios. Recommendations: filter AI text when the target is human text, repeat human text before expanding the training dataset with AI-generated web text, and report validation loss on human and AI text separately; AI text remains valuable when the target is AI text. Releases WildAI, an 83B-token corpus with AI, topic, and format labels, plus all 800 models and code.",
      "url": "https://arxiv.org/abs/2609.40295",
      "authors": [
        "Jenna Russell",
        "Ben Glickenhaus",
        "Katherine Thai",
        "John Wieting",
        "Mohit Iyyer",
        "Max Spero",
        "Bradley Emi"
      ],
      "tags": [
        "ai-generated-text",
        "wild-ai-text",
        "pretraining",
        "scaling-laws",
        "chinchilla",
        "synthetic-data",
        "data-filtering",
        "wildai"
      ],
      "venue": "arXiv 2026-09-30 (cs.CL, cs.LG)",
      "source": "arxiv",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-01T00:00:00.000Z",
      "has_dataset_profile": true,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 0,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/835",
      "markdown": "https://papers.projxon.ai/entries/835.md",
      "api": "https://papers.projxon.ai/api/entries/835"
    },
    {
      "id": 1035,
      "kind": "dataset",
      "title": "UltraData-Code (OpenBMB L0–L3 tiered code pretrain: L2 algorithmic + L3 synthesis)",
      "summary": "OpenBMB UltraData-Code implements the UltraData L0–L4 tiered code-data pipeline. L0 archives ~192M public GitHub default-branch revisions; L1 filters/normalizes/near-dedups; Hub currently releases L2 (~400B tokens, algorithmically selected natural code) and L3 (~150B tokens, task-oriented synthesis: task/analysis/solution/test) across 11 languages (cpp,cs,go,java,js,php,py,r,rb,rust,sh). L0/L1 not published as Hub configs. Viewer: 348,083,481 rows (L2 266,878,376 × 7 cols; L3 81,205,105 × 10 cols); usedStorage ~1.216 TB / 1132.5 GiB across 1131 siblings. L2 schema: uuid, repo_name, relative_path, content, category, algo_rel_score, quality_score. L3 schema: uuid, content, content_format, raw_content, task, analysis, solution, test, full_content, full_content_format. 10B-token CPT of a 1B model: L2 vs L1 +7.80 EvalPlus / +5.13 MultiPL-E; L2+L3 mix vs L2-only +8.42 / +8.07. Companion L2 Classifier uses Qwen3-Embedding-0.6B.",
      "url": "https://huggingface.co/datasets/openbmb/UltraData-Code",
      "authors": [
        "OpenBMB",
        "dataset citation: Chengying Tu",
        "Hengyu Zhao",
        "Shuaikang Xue",
        "Zhongming Qu",
        "Jihao Zhou",
        "Xinle Lin",
        "Junshao Guo",
        "Zixuan Fu",
        "Qiang Ma",
        "Jie Zhou",
        "Chaojun Xiao",
        "Hongfei Yan",
        "Yudong Wang",
        "Xu Han",
        "Zhiyuan Liu",
        "Maosong Sun",
        "framework paper 2602.09003: Yudong Wang",
        "Chen Zhao",
        "Chuyue Zhou",
        "Hongya Lyu",
        "Yi Yi",
        "Yingjiao Wang",
        "Zhi Zheng",
        "Yuzhou Zhang",
        "Maosong Sun (Tsinghua / ModelBest)"
      ],
      "tags": [
        "ultradata-code",
        "ultradata",
        "openbmb",
        "code-pretraining",
        "algorithmic-code",
        "synthetic-data",
        "l2",
        "l3",
        "minicpm5",
        "apache-2.0",
        "github-derived",
        "parquet"
      ],
      "venue": "Hugging Face / OpenBMB",
      "source": "huggingface",
      "license": "Apache-2.0 (plus upstream per-repository licenses; card forbids unauthorized unchanged redistribution)",
      "published_year": 2026,
      "added_at": "2026-09-24T12:52:19.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en",
        "zh"
      ],
      "modalities": [
        "tabular",
        "text"
      ],
      "size_class": "100M<n<1B",
      "citation_count": null,
      "downloads": 44061,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1035",
      "markdown": "https://papers.projxon.ai/entries/1035.md",
      "api": "https://papers.projxon.ai/api/entries/1035"
    },
    {
      "id": 263,
      "kind": "dataset",
      "title": "Open Markdown",
      "summary": "Open Markdown is a large-scale dataset (1M-10M rows) of clean markdown extracted from Common Crawl web pages, organized by crawl snapshot (e.g., CC-MAIN-2026-21) and ready for LLM training and retrieval. Each row includes the source URL, host, crawl date, WARC record ID, HTML length, and the extracted markdown content, making it useful for building text corpora from the open web without re-processing raw HTML.",
      "url": "https://huggingface.co/datasets/open-index/open-markdown",
      "authors": [
        "OpenIndex"
      ],
      "tags": [
        "common-crawl-web-crawl-markdown-text-pretraining-corpus"
      ],
      "venue": "OpenIndex (HuggingFace)",
      "source": "huggingface",
      "license": "odc-by",
      "published_year": null,
      "added_at": "2026-07-17T20:18:03.756Z",
      "has_dataset_profile": true,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [
        "text"
      ],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/263",
      "markdown": "https://papers.projxon.ai/entries/263.md",
      "api": "https://papers.projxon.ai/api/entries/263"
    },
    {
      "id": 1152,
      "kind": "dataset",
      "title": "OpenCoder FineWeb Math Corpus",
      "summary": "Public FineWeb math slice of OpenCoder pretraining: math-related pages recalled with iterative fastText (paper: part of RefineCode’s ~75B code-related web tokens / 55B Processed FineWeb)",
      "url": "https://huggingface.co/datasets/OpenCoder-LLM/opc-fineweb-math-corpus",
      "authors": [
        "OpenCoder-LLM"
      ],
      "tags": [],
      "venue": "",
      "source": "huggingface",
      "license": "ODC-By 1.0 on this card. Built from FineWeb (ODC-By 1.0 + Common Crawl ToU). Sibling opc-fineweb-code-corpus is MIT.",
      "published_year": 2024,
      "added_at": "2026-08-14T20:48:52.000Z",
      "has_dataset_profile": true,
      "license_class": "permissive",
      "langs": [],
      "modalities": [
        "text"
      ],
      "size_class": "1M<n<10M",
      "citation_count": null,
      "downloads": 439,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1152",
      "markdown": "https://papers.projxon.ai/entries/1152.md",
      "api": "https://papers.projxon.ai/api/entries/1152"
    },
    {
      "id": 820,
      "kind": "paper",
      "title": "Generalization Dynamics of LM Pre-training (\"Discovering Mode-Hopping\")",
      "summary": "The usual mental model -- that LMs stably mature from pattern-matching parrots to generalizable intelligence during pre-training -- is wrong: throughout pre-training, LMs frequently and suddenly hop between parrot-like and intelligence-like computations (\"mode-hopping\"). Across a toy eval suite, LMs suddenly latch onto memorized or in-context patterns instead of in-context learning, use System 1 instead of System 2 thinking, pick up what sounds true instead of what is true, fail at multi-hop persona QA, out-of-context reasoning, and emergent misalignment -- then just as suddenly revert and generalize. Mode-hopping is not explained by standard optimization dynamics: it is locally stable and cannot be fixed by checkpoint averaging; the authors frame it as a capacity-allocation problem in which generalizable circuits compete with early-learned shallow circuits, with each pre-training window's data deciding which wins. Two applications: (1) selecting intermediate pre-training checkpoints that strongly generalize reasoning and alignment, better than final or mid-training checkpoints; (2) selecting pre-training data that controls and stabilizes generalization dynamics. Concrete numbers from the announcement: OLMo3-32B went from 81% accuracy to 0%, then back to 81.7% within 40B training tokens; an earlier 4.5T-token checkpoint beat a 4.9T one on GPQA transfer after math fine-tuning (36.3% vs 29.8%) and robustness to alignment attacks (53% vs 21%). Code/eval suite: GDsuite (GitHub).",
      "url": "https://arxiv.org/abs/2609.33150",
      "authors": [
        "Jiaxin Wen",
        "Zhengxuan Wu",
        "Dawn Song",
        "Lijie Chen"
      ],
      "tags": [
        "pretraining",
        "generalization",
        "mode-hopping",
        "evaluation",
        "checkpoints"
      ],
      "venue": "arXiv (2026-09-27; alphaXiv #10 trending)",
      "source": "paper",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-09-30T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 0,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/820",
      "markdown": "https://papers.projxon.ai/entries/820.md",
      "api": "https://papers.projxon.ai/api/entries/820"
    },
    {
      "id": 506,
      "kind": "paper",
      "title": "DiffusionBlocks: Block-wise Neural Network Training via Diffusion Interpretation",
      "summary": "Interprets residual updates as Euler steps of a probability-flow ODE, partitions layers into B blocks each assigned an equi-probability noise range, and trains one block at a time with score matching (Bx memory cut). Matches or beats end-to-end on ViT CIFAR-100 (59.30 vs 60.25), DiT CIFAR-10/ImageNet FID, MD4 text8 BPC 1.45 vs 1.56, Llama-2-style LM1B/OWT, and Huginn recurrent-depth (single-pass vs 32 iterations). Also beats NoProp variants on CIFAR-100. Code https://github.com/SakanaAI/DiffusionBlocks.",
      "url": "https://arxiv.org/abs/2506.14202",
      "authors": [
        "Makoto Shing",
        "Masanori Koyama",
        "Takuya Akiba"
      ],
      "tags": [
        "diffusionblocks",
        "block-wise-training",
        "score-matching",
        "sakana",
        "iclr",
        "backprop-free",
        "huginn"
      ],
      "venue": "arXiv / Sakana AI / The University of Tokyo",
      "source": "",
      "license": "",
      "published_year": 2025,
      "added_at": "2026-10-01T16:45:04.296Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [],
      "modalities": [],
      "size_class": null,
      "citation_count": 9,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/506",
      "markdown": "https://papers.projxon.ai/entries/506.md",
      "api": "https://papers.projxon.ai/api/entries/506"
    }
  ]
}
