← All entries
Dataset2024#1151

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

Access
Free
License
ODC-By 1.0 (card). Also subject to Common Crawl Terms of Use. InfiWebMath configs inherit Infi-MM/InfiMM-WebMath-40B source terms.
License family
Permissive
Added
Aug 14, 2026
Verified
Aug 14, 2026

From the source

Repository
HuggingFaceTB/finemath
Created
Nov 25, 2024
Last updated
Feb 6, 2025
Downloads (last month)
41,257
Likes
384
Size
10M to 100M rows
Modalities
text
Formats
parquet

Fetched Oct 3, 2026 from Hugging Face. These numbers change; the curated fields above do not come from here.

Topics

mathematical educational web; Common Crawl HTML filtered for middle-/high-school reasoning; LaTeX/Markdown math pretraining

Dataset profile

Scale
Card: FineMath-3+ 34B Llama tokens / 21,405,610 docs (YAML dataset_size 137.8 GB / download 65.0 GB / 128 parquet). FineMath-4+ subset 9.6B tokens (paper ~10B) / 6,699,493 docs (39.1 GB / 18.4 GB / 64 files). InfiMM-WebMath-3+ 20.5B / 13,882,669 (96.5 GB / 46.8 GB / 64). InfiMM-WebMath-4+ 8.5B / 6,296,212 (40.0 GB / 19.2 GB / 32). Combined FineMath-3+ with InfiMM-WebMath-3+ advertised 54B tokens. All four configs 48,283,984 rows; YAML download_size sum 149,447,371,427 bytes (~149.4 GB); dataset_size sum ~313.4 GB; 288 parquet shards. size_categories 10M<n<100M. Paper: 7.1B pages / 6.5T tokens before the 5-point keep. Hub 343.8k downloads / 377 likes at check.
Format
parquet. FineMath configs: url, fetch_time, content_mime_type, warc_filename, warc_record_offset, warc_record_length, text, token_count (Llama), char_count, metadata (OWM math-markup JSON), score, int_score, crawl, snapshot_type, language, language_score. InfiWebMath configs: url, metadata, score, int_score, token_count, char_count, text.
Type
Pretraining corpus / educational-quality-filtered English math web crawl
License
ODC-By 1.0 (card). Also subject to Common Crawl Terms of Use. InfiWebMath configs inherit Infi-MM/InfiMM-WebMath-40B source terms.
Cost
Free
Languages
English 100% (FineWeb language-ID pipeline applied after scoring; non-English dropped). Card: language + language_score on FineMath configs; InfiWebMath configs keep text/url/score/token_count only.
Modality
Text-only (Markdown + LaTeX). Source HTML; image-based math not preserved.
Domain
mathematical educational web; Common Crawl HTML filtered for middle-/high-school reasoning; LaTeX/Markdown math pretraining
Time period
Re-extracted from Common Crawl WARCs on FineWeb unique URLs (paper: 5.8B unique FineWeb URLs out of CC’s 75B) plus OpenWebMath and InfiMM-WebMath domains. Paper retrieved 7.7B domain-matched URLs then OWM-pipeline re-extract to 7.1B pages / 6.5T tokens before scoring. Viewer samples CC-MAIN-2024-18 and CC-MAIN-2024-22 (`crawl`, `snapshot_type` latest/largest). HF createdAt 2024-11-25; lastModified 2025-02-06. Paper arXiv 2502.02737 (2025-02-04).
Purpose
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
Used for
SmolLM2 1.7B (~11T-token multi-stage mix; FineMath introduced when existing math dumps underperformed). Card annealing: FineMath-4+ beats FineMath-3+ and InfiWebMath-4+ on GSM8k/MATH; 50/50 FineMath-3+ + InfiWebMath-3+ ≈ 50–54B tokens matching FineMath-3+. HuggingFaceTB/finemath-classifier released. Hub 343.8k downloads / 377 likes at check. DOI 10.57967/hf/3847.
Authors
Public-web authors from Common Crawl math/education sites, plus OpenWebMath and InfiMM-WebMath URL lists. Hugging Face Smol Models Research (HuggingFaceTB) curated. Llama-3.1-70B-Instruct silver labels; multilingual-e5-small then a second classifier. Residual AI-generated web text possible; not quantified.
Bias
English-only educational math web. 5-point prompt targets reasoning and middle-/high-school content rather than arXiv-style research (card: advanced academic papers underweighted). Popular educational sites and FineWeb/OWM/InfiMM domains overweighted. FineMath-4+ is a high-score subset of FineMath-3+. Combining FineMath with InfiWebMath without extra cross-dedup is recommended (card: extra dedup of the overlap reduced ablation performance). 13-gram decontam vs GSM8k/MATH/MMLU/ARC.
Text quality
Resiliparse then OpenWebMath extraction to preserve LaTeX. Llama-3.1-70B 5-point scores distilled into HuggingFaceTB/finemath-classifier; keep int_score >= 3 (FineMath-3+) or >= 4 (4+). Paper annealing: FineMath-4+ ~2× GSM8k and ~6× MATH vs raw InfiMM-WebMath. Viewer still includes exam-dump pages and course syllabi at score ~3. Image-only notation dropped. Residual CC boilerplate/toxicity possible.
Sample size
Four train configs, no default: finemath-3plus 21,405,610; finemath-4plus 6,699,493 (subset of 3+); infiwebmath-3plus 13,882,669; infiwebmath-4plus 6,296,212 (subset of 3+). FineMath-4+ is not a random sample. No official 10BT-style subsample.
Long context
Mixed (full web documents; exam pages short, textbooks/syllabi longer. SmolLM2 trained as a small LM, not a long-context recipe).
Intermediate steps
Yes (FineWeb URL set + Resiliparse probe; Llama-3.1-70B 3-point then domain recall including OWM/InfiMM and FineWeb ‘{’ C4-reject logs; OWM-pipeline re-extract; 5-point Llama-3.1-70B classifier; MinHash-LSH; English LID; 13-gram decontam). Classifier: HuggingFaceTB/finemath-classifier. Decontam logs: HuggingFaceTB/finemath_contamination_report.
Idea quality
High
Novelty
High
Text conversion
Ready parquet; load_dataset("HuggingFaceTB/finemath", "finemath-4plus"|"finemath-3plus"|"infiwebmath-3plus"|"infiwebmath-4plus", split="train"). Full dump ~149 GB download.
Collection method
Download
Static
Unknown (HF lastModified 2025-02-06; one-shot CC extraction, not a live crawl refresh)
Processed
Unknown

Research notes

  • Not posted as a dump HF link; public repo HuggingFaceTB/finemath located and used. OpenWebMath is a real public repo at open-web-math/open-web-math (6.3M docs / 14.7B tokens) but is the weaker baseline this corpus replaces, so not cataloged here. Substituted for dump OpenDataArena/FineReason, which has been renamed to MMFineReason (image+text; skip). XenArcAI/MathX-5M dump URL now redirects/renames to Modotte/MathX-5M (viewer 404 on the old id; synthetic NVIDIA/OpenR1 mix) and was not used. Stack-Edu from the same SmolLM2 paper is gated via Stack v2 — skipped. token_count is Llama tokens. Cite Allal et al. 2025 arXiv 2502.02737. Not in papers_local.csv.

Related entries

  • Datasetresearch profile2024added Jul 17, 2026301,935 downloads/moshares a link

    FineWeb

    Guilherme Penedo, Hynek Kydlícek, Loubna Ben Allal, Anton Lozhkov, Margaret Mitchell, Colin Raffel, +2 more

    FineWeb is a 15-trillion-token (now 18.5T+) dataset of cleaned and deduplicated English web text derived from 96 CommonCrawl snapshots spanning summer 2013 to April 2024. Created by Hugging Face using the datatrove library, its processing pipeline includes URL filtering, Trafilatura text extraction, language filtering, MassiveText quality filters, C4 filters, custom FineWeb filters, MinHash deduplication, and PII reformatting, producing better-performing LLMs than other open pretraining datasets. Published at NeurIPS 2024, it also includes FineWeb-Edu (1.3T tokens of educational content) as a companion dataset.

  • Datasetresearch profile2025added Jul 17, 20262,980 downloads/moshares a link

    Natural Reasoning

    facebook

    [NaturalReasoning](https://arxiv.org/abs/2502.13124) is a large-scale dataset for general reasoning tasks. It consists of high-quality challenging reasoning questions backtranslated from pretraining corpora [DCLM](https://github.com/mlfoundations/dclm) and [FineMath](https://huggingface.co/datasets/HuggingFaceTB/finemath). The questions have been deduplicated and decontaminated from popular reasoning benchmarks including MATH, GPQA, MMLU-Pro, MMLU-STEM.

  • Datasetresearch profile2025added Jul 17, 20268,875 downloads/moshares a link

    swallowmath2

    tokyotech-llm

    [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).

    hf-dataset-language-modelingmath-json-text-datasets-dask-mlcroissant-math-has-paper

Similar entries