{
  "id": 153,
  "kind": "dataset",
  "title": "swallowmath2",
  "summary": "[SwallowMath-v2](https://huggingface.co/datasets/tokyotech-llm/swallow-math-v2) is a large-scale mathematical dataset containing **32 billion tokens**, developed as the successor to [SwallowMath-v1](https://huggingface.co/datasets/tokyotech-llm/swallow-math).",
  "body": "",
  "notes": "downloads=11772; likes=32 | Discord posted the HF pointer. Cite Fujii et al. 2025 arXiv 2505.02881. gated=false; public. Companion to already-cataloged SwallowCode-v2 (same paper). Card rewriter is Instruct-2507 but stage3 filenames are Qwen3-235B-A22B-Thinking-2507-FP8. Distinct from UltraData-Math / AutoMathText-V2 / FineMath itself. Not in papers_local.csv. Not on the Aug 13 live Datasets sheet export.",
  "url": "https://huggingface.co/datasets/tokyotech-llm/swallow-math-v2",
  "links": [
    {
      "url": "https://huggingface.co/datasets/tokyotech-llm/swallow-math-v2",
      "label": "Dataset"
    },
    {
      "url": "https://arxiv.org/abs/2505.02881",
      "label": "Related"
    },
    {
      "url": "https://huggingface.co/datasets/tokyotech-llm/swallow-math-v2",
      "label": "Related"
    },
    {
      "url": "https://huggingface.co/datasets/tokyotech-llm/swallow-code-v2",
      "label": "Related"
    },
    {
      "url": "https://huggingface.co/datasets/HuggingFaceTB/finemath",
      "label": "Related"
    },
    {
      "url": "https://github.com/rioyokotalab/swallow-code-math",
      "label": "Related"
    },
    {
      "url": "https://huggingface.co/papers/2505.02881",
      "label": "Related"
    }
  ],
  "authors": [
    "tokyotech-llm"
  ],
  "tags": [
    "hf-dataset-language-modeling",
    "math-json-text-datasets-dask-mlcroissant-math-has-paper"
  ],
  "topics": "Language Modeling, Math",
  "venue": "tokyotech-llm",
  "publisher": "",
  "source": "huggingface",
  "language": "en",
  "access": "free",
  "license": "apache-2.0",
  "published_year": 2025,
  "added_at": "2026-07-17T19:59:21.418Z",
  "verified_at": "2026-07-17T19:59:21.418Z",
  "attrs": {
    "hf": {
      "kind": "dataset",
      "name": "swallow-math-v2",
      "namespace": "tokyotech-llm"
    },
    "scale": "10M<n<100M",
    "dataset": {
      "cost": "Free",
      "type": "Pretraining corpus / rewritten math web (Q&A + textbook)",
      "scale": "Card: 32.0B Llama-3 tokens (v1 was 3.6B). Final stage3: Q&A 12,635,739 samples / 13.6B tokens + textbook 13,302,336 / 18.3B = 25,938,075 samples / 32.0B. ≈1,076 tok/Q&A sample and ≈1,376 tok/textbook sample. usedStorage 1,039,319,176,792 bytes (~1.039 TB / 0.945 TiB) for all pipeline stages on Hub. YAML size_categories 10M<n<100M. 115 Q&A jsonl (~65–395 MB; most ~380–390 MB) + 93 textbook jsonl (~133–790 MB; most ~780 MB). Stage1 128 jsonl (~1.0 GB each); stage2 126 jsonl (~2.4–2.5 GB). Hub 7,247 downloads / 33 likes at check. gated=false. Source FineMath-3+: 21,405,610 docs / 34B tokens (HuggingFaceTB/finemath).",
      "domain": "mathematical pretraining; LLM-rewritten FineMath; textbook and Q&A math",
      "format": "jsonl per pipeline stage (stage1-length-filter, stage2-extract-math-text, stage3-qa, stage3-textbook, stage3-ablations/{qa,textbook,planning,socratic-method,multiple-solution}). Official configs swallow-math-v2-qa and swallow-math-v2-textbook.",
      "license": "Apache-2.0 (card). Upstream FineMath-3+ is ODC-By. Qwen3 rewrite outputs inherit Qwen terms where applicable. v1 was Llama 3.3 Community License — this v2 dump is the Apache release.",
      "novelty": "High (32B Apache rewrite of FineMath-3+ with released style ablations; public alternative to Nemotron-CC-Math)",
      "purpose": "Public 32B-token Apache-2.0 rewritten math corpus for math pre-training / mid-training, vs NVIDIA Open Data Nemotron-CC-Math-v1-4+ and Llama-licensed SwallowMath-v1",
      "used_for": "Tokyo Tech Swallow CPT (card: stronger GSM-Plus and BBH vs other open math dumps; Q&A slightly below Nemotron-CC-Math-v1-4+ on MATH). Sister SwallowCode-v2 already in this catalog. Hub 7,247 downloads / 33 likes at check.",
      "bias_dist": "English FineMath-3+ math-edu web (classifier-selected explanations/worked problems, not research papers). Card: possible algebra-vs-geometry over-representation. Dual-style release (Q&A vs textbook) is the main format lever; ablations (planning/Socratic/multiple-solution) are not the 32B mix. Qwen3 rewrite style can uniformize explanations. Length filter drops over-long FineMath pages. Instruct vs Thinking rewriter is a card/filename mismatch.",
      "is_static": "Unknown (HF lastModified 2025-11-06; one-shot Apache v2; authors mention a possible v3 on the code sister card)",
      "processed": "Unknown",
      "author_dist": "Original pages: FineMath-3+ / Common Crawl math-edu authors. Stage-2 extract: Qwen3-32B-FP8. Stage-3 rewrite: Qwen3-235B-A22B-2507 (card Instruct; filenames Thinking-FP8). Tokyo Tech (Kazuki Fujii, Yukito Tajima, Masaki Kawamura, Naoaki Okazaki, Rio Yokota et al.).",
      "sample_size": "Two official train-only configs: swallow-math-v2-qa 12,635,739; swallow-math-v2-textbook 13,302,336. No val/test. Q&A shards 115/128 (gaps 34, 36–37, 43–46, 61–66); textbook shards 93/128 (gaps 33–34, 36–37, 43–46, 51–76, 94). stage3-ablations holds Qwen3-30B-A3B style trials, not the 32B mix. Sister tokyotech-llm/swallow-code-v2 is a separate repo.",
      "time_period": "HF createdAt 2025-10-19; lastModified 2025-11-06. Paper 2025-05-05 (arXiv 2505.02881) describes v1 (FineMath-4+ / Llama-3.3 license); this Hub dump is the Apache v2 rewrite. Discord posted 2025-11-17. Source FineMath-3+ (Common Crawl math-edu; HuggingFaceTB/finemath). Rewriter Qwen3-235B-A22B (card: Instruct-2507; shard filenames: Thinking-2507-FP8).",
      "idea_quality": "High",
      "long_context": "Mixed (length-filtered; Q&A ~1.1k Llama-3 tok/sample, textbook ~1.4k). Not book-length documents.",
      "text_quality": "LLM rewrite to restore context, strip boilerplate, and reformat as step-by-step Q&A or textbook Markdown+LaTeX. Card: Q&A wins GSM8K/GSM-Plus; textbook wins BBH; both help MATH. Ablation: rewriter scale (Qwen3-30B-A3B vs 235B) did not move downstream much — prompt/style dominate. Residual teacher errors and FineMath web noise. Do not train on stage1/stage2 or stage3-ablations as if they were the 32B release.",
      "language_dist": "English 100% (card language:en). Source FineMath-3+ is English math-edu web. Rewrites are English Markdown/LaTeX. Card bias note: English-only. No LID table.",
      "modality_dist": "Text + LaTeX (Markdown; optional Python snippets in Q&A examples)",
      "relevant_links": "https://arxiv.org/abs/2505.02881; https://huggingface.co/datasets/tokyotech-llm/swallow-math-v2; https://huggingface.co/datasets/tokyotech-llm/swallow-code-v2; https://huggingface.co/datasets/HuggingFaceTB/finemath; https://github.com/rioyokotalab/swallow-code-math; https://huggingface.co/papers/2505.02881",
      "dataset_location": "https://huggingface.co/datasets/tokyotech-llm/swallow-math-v2",
      "collection_method": "Download",
      "intermediate_steps": "Yes (FineMath-3+ → length filter → Qwen3-32B math extract → Qwen3-235B rewrite into Q&A and textbook; five-style ablation then keep the two best). Intermediates 1–2 and ablations are on Hub. Code/prompts: github.com/rioyokotalab/swallow-code-math. Paper arXiv 2505.02881.",
      "text_conversion_ease": "Ready jsonl. load_dataset(\"tokyotech-llm/swallow-math-v2\", \"swallow-math-v2-qa\") or \"swallow-math-v2-textbook\". Streaming recommended (~1.04 TB repo; stage3 alone is ~100 GB of jsonl)."
    },
    "purpose": "Language Modeling",
    "used_for": "arXiv: 2505.02881",
    "author_type": "unknown",
    "time_period": "created 2025-10-19; updated 2025-11-06"
  },
  "enrichment": {
    "hf": {
      "id": "tokyotech-llm/swallow-math-v2",
      "size": "10M<n<100M",
      "type": "dataset",
      "arxiv": [
        "2505.02881"
      ],
      "gated": false,
      "likes": 35,
      "tasks": [
        "text-generation"
      ],
      "author": "tokyotech-llm",
      "created": "2025-10-19",
      "formats": [
        "json"
      ],
      "license": "apache-2.0",
      "modified": "2025-11-06",
      "downloads": 8875,
      "languages": [
        "en"
      ],
      "fetched_at": "2026-10-03T14:33:19.467Z",
      "modalities": [
        "text"
      ]
    }
  },
  "enriched_at": "2026-10-03T14:33:19.515Z",
  "license_class": "permissive",
  "langs": [
    "en"
  ],
  "modalities": [
    "text"
  ],
  "size_class": "10M<n<100M",
  "provenance": {
    "legacy_paper_id": "159",
    "pipeline_status": "done",
    "research_status": "done",
    "legacy_dataset_id": 127
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-10-03T12:29:06.561Z",
  "updated_at": "2026-10-03T14:33:19.515Z",
  "page": "https://papers.projxon.ai/entries/153",
  "markdown": "https://papers.projxon.ai/entries/153.md",
  "api": "https://papers.projxon.ai/api/entries/153",
  "relations": [
    {
      "relation": "related",
      "direction": "in",
      "note": "shared link",
      "via": "shared-link",
      "entry": {
        "id": 154,
        "kind": "dataset",
        "title": "swallowcode2",
        "summary": "[SwallowCode-v1](https://huggingface.co/datasets/tokyotech-llm/swallow-code) was a high-quality Python code dataset generated through an LLM-based rewriting pipeline.",
        "url": "https://huggingface.co/datasets/tokyotech-llm/swallow-code-v2",
        "authors": [
          "tokyotech-llm"
        ],
        "tags": [
          "hf-dataset-language-modeling"
        ],
        "venue": "tokyotech-llm",
        "source": "huggingface",
        "license": "apache-2.0",
        "published_year": 2025,
        "added_at": "2026-07-17T19:59:21.716Z",
        "has_dataset_profile": true,
        "license_class": "permissive",
        "langs": [
          "en"
        ],
        "modalities": [
          "text"
        ],
        "size_class": "100M<n<1B",
        "citation_count": null,
        "downloads": 5638,
        "stars": null,
        "page": "https://papers.projxon.ai/entries/154",
        "markdown": "https://papers.projxon.ai/entries/154.md",
        "api": "https://papers.projxon.ai/api/entries/154"
      }
    },
    {
      "relation": "related",
      "direction": "in",
      "note": "shared link",
      "via": "shared-link",
      "entry": {
        "id": 1151,
        "kind": "dataset",
        "title": "FineMath",
        "summary": "Public math pretraining corpus of educational web pages with step-by-step solutions, built because OpenWebMath (12B) and InfiMM-WebMath (40B text) were too small and too paper-heavy for SmolLM2",
        "url": "https://huggingface.co/datasets/HuggingFaceTB/finemath",
        "authors": [
          "HuggingFaceTB"
        ],
        "tags": [],
        "venue": "",
        "source": "huggingface",
        "license": "ODC-By 1.0 (card). Also subject to Common Crawl Terms of Use. InfiWebMath configs inherit Infi-MM/InfiMM-WebMath-40B source terms.",
        "published_year": 2024,
        "added_at": "2026-08-14T20:48:52.000Z",
        "has_dataset_profile": true,
        "license_class": "permissive",
        "langs": [],
        "modalities": [
          "text"
        ],
        "size_class": "10M<n<100M",
        "citation_count": null,
        "downloads": 41257,
        "stars": null,
        "page": "https://papers.projxon.ai/entries/1151",
        "markdown": "https://papers.projxon.ai/entries/1151.md",
        "api": "https://papers.projxon.ai/api/entries/1151"
      }
    }
  ],
  "duplicates": [],
  "similar": [
    {
      "id": 321,
      "kind": "dataset",
      "title": "DAPO-Math-17k",
      "summary": "license: apache-2.0 task_categories: text-generation language: en tags: math pretty_name: DAPO-Math-17k size_categories: 1M<n<10M",
      "url": "https://huggingface.co/datasets/BytedTsinghua-SIA/DAPO-Math-17k",
      "authors": [
        "BytedTsinghua-SIA"
      ],
      "tags": [
        "hf-dataset-language-modeling",
        "math-parquet-text-datasets-pandas-mlcroissant-polars-math"
      ],
      "venue": "BytedTsinghua-SIA",
      "source": "huggingface",
      "license": "apache-2.0",
      "published_year": 2025,
      "added_at": "2026-07-17T20:08:36.133Z",
      "has_dataset_profile": true,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [
        "text"
      ],
      "size_class": "1M<n<10M",
      "citation_count": null,
      "downloads": 13809,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/321",
      "markdown": "https://papers.projxon.ai/entries/321.md",
      "api": "https://papers.projxon.ai/api/entries/321"
    },
    {
      "id": 209,
      "kind": "dataset",
      "title": "UltraData-Math",
      "summary": "It was introduced in the paper [Data Science and Technology Towards AGI Part I: Tiered Data Management](https://huggingface.co/papers/2602.09003).",
      "url": "https://huggingface.co/datasets/openbmb/UltraData-Math",
      "authors": [
        "openbmb"
      ],
      "tags": [
        "hf-dataset-language-modeling"
      ],
      "venue": "openbmb",
      "source": "huggingface",
      "license": "apache-2.0",
      "published_year": 2026,
      "added_at": "2026-07-17T20:00:22.722Z",
      "has_dataset_profile": true,
      "license_class": "permissive",
      "langs": [
        "en",
        "zh"
      ],
      "modalities": [
        "image",
        "text"
      ],
      "size_class": "100M<n<1B",
      "citation_count": null,
      "downloads": 34538,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/209",
      "markdown": "https://papers.projxon.ai/entries/209.md",
      "api": "https://papers.projxon.ai/api/entries/209"
    },
    {
      "id": 281,
      "kind": "dataset",
      "title": "NuminaMath CoT",
      "summary": "Approximately 860k math problems, where each solution is formatted in a Chain of Thought (CoT) manner. The sources of the dataset range from Chinese high school math exercises to US and international mathematics olympiad competition problems. The data were primarily collected from online exam paper PDFs and mathematics discussion forums.",
      "url": "https://huggingface.co/datasets/AI-MO/NuminaMath-CoT",
      "authors": [
        "AI-MO"
      ],
      "tags": [
        "hf-dataset-language-modeling",
        "math-parquet-text-datasets-dask-polars-mlcroissant-aimo-math"
      ],
      "venue": "AI-MO",
      "source": "huggingface",
      "license": "apache-2.0",
      "published_year": 2024,
      "added_at": "2026-07-17T20:01:15.139Z",
      "has_dataset_profile": true,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [
        "text"
      ],
      "size_class": "100K<n<1M",
      "citation_count": null,
      "downloads": 273448,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/281",
      "markdown": "https://papers.projxon.ai/entries/281.md",
      "api": "https://papers.projxon.ai/api/entries/281"
    },
    {
      "id": 251,
      "kind": "dataset",
      "title": "Gradient-Reasoning",
      "summary": "license: apache-2.0 task_categories: text-generation language: en tags: math reasoning size_categories: 10K<n<100K",
      "url": "https://huggingface.co/datasets/Tesslate/Gradient-Reasoning/viewer/default/train?row=0",
      "authors": [
        "Tesslate"
      ],
      "tags": [
        "hf-dataset-language-modeling",
        "math"
      ],
      "venue": "Tesslate",
      "source": "huggingface",
      "license": "apache-2.0",
      "published_year": 2025,
      "added_at": "2026-07-17T20:08:19.383Z",
      "has_dataset_profile": true,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [
        "text"
      ],
      "size_class": "10K<n<100K",
      "citation_count": null,
      "downloads": 39,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/251",
      "markdown": "https://papers.projxon.ai/entries/251.md",
      "api": "https://papers.projxon.ai/api/entries/251"
    },
    {
      "id": 339,
      "kind": "dataset",
      "title": "harmonic-reasoning-v1",
      "summary": "I'm a PhD student in visual neuroscience at the University of Toronto who also happens to spend way too much time fine-tuning, merging, and quantizing open-weight models on rented H100s and a local DGX Spark. All training compute is self-funded — balancing GPU costs against a student budget. If my open-weight models or datasets have been useful to you, consider supporting future releases.",
      "url": "https://huggingface.co/datasets/DJLougen/harmonic-reasoning-v1",
      "authors": [
        "DJLougen"
      ],
      "tags": [
        "hf-dataset-language-modeling",
        "qa",
        "reasoning",
        "math"
      ],
      "venue": "DJLougen",
      "source": "huggingface",
      "license": "apache-2.0",
      "published_year": 2026,
      "added_at": "2026-07-17T20:01:56.816Z",
      "has_dataset_profile": true,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [
        "tabular",
        "text"
      ],
      "size_class": "n<1K",
      "citation_count": null,
      "downloads": 96,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/339",
      "markdown": "https://papers.projxon.ai/entries/339.md",
      "api": "https://papers.projxon.ai/api/entries/339"
    },
    {
      "id": 216,
      "kind": "dataset",
      "title": "UMath",
      "summary": "UltiMath is a large-scale synthetic dataset containing ~33 billion math reasoning examples, designed to enhance arithmetic and symbolic reasoning in large language models (LLMs).",
      "url": "https://huggingface.co/datasets/DataMuncher-Labs/UltiMath",
      "authors": [
        "DataMuncher-Labs"
      ],
      "tags": [
        "hf-dataset-language-modeling",
        "math"
      ],
      "venue": "DataMuncher-Labs",
      "source": "huggingface",
      "license": "cc-by-sa-4.0",
      "published_year": 2025,
      "added_at": "2026-07-17T20:00:25.866Z",
      "has_dataset_profile": true,
      "license_class": "copyleft",
      "langs": [
        "en"
      ],
      "modalities": [
        "text"
      ],
      "size_class": "10B<n<100B",
      "citation_count": null,
      "downloads": 17791,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/216",
      "markdown": "https://papers.projxon.ai/entries/216.md",
      "api": "https://papers.projxon.ai/api/entries/216"
    }
  ]
}
