← Datasets

Compare

FineMath
#1151 · remove
smoltalk2
#56 · remove
Kinddatasetdataset
Published20242025
LicenseODC-By 1.0 (card). Also subject to Common Crawl Terms of Use. InfiWebMath configs inherit Infi-MM/InfiMM-WebMath-40B source terms.Mixed. Card: newly generated subsets Apache-2.0; Hub cardData.license unset. Upstream licenses still apply (OpenThoughts3 Apache-2.0; Llama-Nemotron-Post-Training CC-BY-4.0; OpenHermes/Tulu/SmolTalk/LongAlign/Aya/Table-GPT/s1K/Mixture-of-Thoughts per those cards). Treat as Apache-2.0 for HF-new rows only; Unknown for the concat as a whole.
License familyPermissiveOther
AccessFreefree
Modalitiestexttext
Size10M to 100M rows1M to 10M rows
Downloads (last month)41,25733,862
Likes384173
Last updated2025-02-062025-10-31
Formatsparquetparquet
ScaleCard: 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.YAML+card: 8,610,022 rows across 3 configs (Mid 4,779,894 / SFT 3,383,242 / Preference 446,886). size_categories 1M<n<10M. YAML download_size 87,748,124,143 bytes (~87.75 GB) matching usedStorage 87,748,124,143; uncompressed dataset_size ~189.97 GB (Mid 117.95 + SFT 65.99 + Preference 6.04). Card token tables: Mid 35,172.1M tokens; SFT 19,292.4M; Preference chosen 850.62M. 400 parquet shards. Hub 175.3K downloads / 164 likes at check.
Formatparquet. 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.parquet. Configs Mid/SFT/Preference. Mid/SFT columns: messages (list of {content, role}) + source; SFT also chat_template_kwargs (custom_instructions, enable_thinking, python_tools, xml_tools). Preference: prompt, chosen, rejected, chat_template_kwargs, source.
TypePretraining corpus / educational-quality-filtered English math web crawlPost-training mix / mid-train + SFT + preference
CostFreeFree
LanguagesEnglish 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.English-dominant. SFT multilingual splits cover 8 languages (fr, es, it, pt, de, ar, ru, zh) via Qwen translation of SmolTalk prompts (Qwen 2.5 report recipe). Aya think split is multilingual. Mid (Nemotron reasoning + OpenThoughts3) and most SFT/Preference rows are English. No LID table.
ModalityText-only (Markdown + LaTeX). Source HTML; image-based math not preserved.Text-only
Domainmathematical educational web; Common Crawl HTML filtered for middle-/high-school reasoning; LaTeX/Markdown math pretrainingpost-training; math/code/science reasoning; multilingual instruction; tool-calling; long-context SFT; preference alignment
Time periodRe-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).HF createdAt 2025-07-10; lastModified 2025-10-31. Mid/SFT/Preference mix for SmolLM3 (blog 2025). Teacher traces from Qwen3-32B / Qwen3-235B-A22B / DeepSeek-V3-0324 / Llama-Nemotron post-training / OpenThoughts3 (QwQ-32B). Upstream Tulu 3 / OpenHermes-2.5 / SmolTalk / LongAlign / Aya / Table-GPT / s1K-1.1.
PurposePublic 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 SmolLM2Three-stage SmolLM3-3B post-training mix (mid-train reasoning, dual think/no_think SFT, APO preference)
Used forSmolLM2 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.HuggingFaceTB/SmolLM3-3B (and SmolLM3-3B-Base long-context/reasoning stages). papers_local 631. Hub 175.3K downloads / 164 likes at check. Discord posted the HF URL.
AuthorsPublic-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.HuggingFaceTB curated. Mix of upstream public datasets (nvidia/Llama-Nemotron-Post-Training-Dataset, open-thoughts/OpenThoughts3-1.2M, open-r1/Mixture-of-Thoughts science, teknium/OpenHermes-2.5, allenai Tulu 3, HuggingFaceTB/smoltalk, THUDM/LongAlign, CohereLabs/aya_dataset, LipengCS/Table-GPT, open-r1/s1K-1.1, NousResearch/hermes-function-calling-v1, xlam traces) plus new Qwen3-32B / Qwen3-235B-A22B / DeepSeek-V3-0324 generations. Preference think split: chosen Qwen3-32B vs rejected Qwen3-0.6B.
BiasEnglish-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.Reasoning-heavy: Mid is 76.25% Llama-Nemotron-Post-Training reasoning_r1 vs 23.75% OpenThoughts3 by rows (53%/47% by tokens). SFT think is dominated by OpenThoughts3-1.2M_think (33.5% of SFT rows / 86.7% of SFT tokens). Dual think/no_think copies of several sources. Decontaminated vs SmolLM3 evals; emoji rows dropped in SFT. Preference think uses a weak Qwen3-0.6B rejector. Multilingual coverage is 8 languages, not web-scale LID.
Text qualityResiliparse 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.ChatML messages (SFT/Mid) and chosen/rejected preference triples. Card: decontaminated against SmolLM3 benchmarks; SFT also dropped emoji samples. Think traces from Qwen3-32B / OT3 QwQ-32B / Nemotron R1; no_think variants strip traces. Preview not independently verified beyond Hub schema. Quality inherits upstream (OT3, Nemotron, OpenHermes, Tulu).
Sample sizeFour 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.3 configs / 29 named splits. Mid: Llama_Nemotron_Post_Training_Dataset_reasoning_r1 3,644,790 (124 shards, 27.1 GB) + OpenThoughts3_1.2M 1,135,104 (113 shards, 26.6 GB). SFT 25 splits: 10 think (1.5M rows) + 15 no_think (1.9M); largest OpenThoughts3_1.2M_think 1,133,524 / OpenThoughts3_1.2M_no_think 435,193 / smol_magpie_ultra_no_think 406,843 / OpenHermes_2.5_no_think 384,900. Preference: tulu_3 no_think 230,501 + think 216,385. Training uses per-split Weight column (not a uniform concat).
Long contextMixed (full web documents; exam pages short, textbooks/syllabi longer. SmolLM2 trained as a small LM, not a long-context recipe).Mixed. LongAlign-64k splits (7,526 think / 6,249 no_think) are 64k-token documents (avg ~15–18k tokens). OpenThoughts3 think avg ~14.8k tokens/example. Everyday convs are short multi-turn.
Intermediate stepsYes (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.Yes (upstream concat; benchmark decontam; SFT emoji filter; chat_template_kwargs extracted from system/tool text; think vs no_think splits; Multi-IF 2-turn generation; Qwen3 rewrite of SmolTalk/Aya/Table-GPT/LongAlign prompts; APO preference with Qwen3-32B chosen vs Qwen3-0.6B rejected). Recipe: github.com/huggingface/alignment-handbook/tree/main/recipes/smollm3.
Idea qualityHighHigh
NoveltyHighHigh (public 8.6M-row SmolLM3 post-train recipe with dual think/no_think and documented stage weights)
Text conversionReady parquet; load_dataset("HuggingFaceTB/finemath", "finemath-4plus"|"finemath-3plus"|"infiwebmath-3plus"|"infiwebmath-4plus", split="train"). Full dump ~149 GB download.Ready parquet; load_dataset('HuggingFaceTB/smoltalk2', '<Mid|SFT|Preference>', split='<split>'). Streaming recommended (~87.75 GB). SFT-ready ChatML.
Collection methodDownloadDownload
StaticUnknown (HF lastModified 2025-02-06; one-shot CC extraction, not a live crawl refresh)Unknown (HF lastModified 2025-10-31; one-shot SmolLM3 recipe dump)
ProcessedUnknownUnknown
SummaryPublic 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 SmolLM2This dataset contains three subsets (Mid, SFT, Preference) that correspond to the three phases of Post-Training for [SmolLM3-3B](https://huggingface.co/HuggingFaceTB/SmolLM3-3B). You can find more details in our [blog post](https://huggingface.co/blog/smollm3) about how we used the data in each of the stages [SmolLM3](https://huggingface.co/HuggingFaceTB/SmolLM3-3B).