| Kind | dataset | dataset |
|---|
| Published | 2025 | 2025 |
|---|
| License | apache-2.0 | mit |
|---|
| License family | Permissive | Permissive |
|---|
| Access | free | free |
|---|
| Language codes | en | en |
|---|
| Modalities | text | text |
|---|
| Size | 10M to 100M rows | 100K to 1M rows |
|---|
| Downloads (last month) | 8,875 | 14,473 |
|---|
| Likes | 35 | 381 |
|---|
| Last updated | 2025-11-06 | 2025-05-29 |
|---|
| Tasks | text-generation | text-generation |
|---|
| Formats | json | parquet |
|---|
| 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). | YAML: 103,022 train rows; download_size 2,136,106,260 bytes (~2.14 GB); dataset_size 4,959,744,761 (~4.96 GB). usedStorage 6,420,559,721 bytes (~6.42 GB). 10 parquet shards (train-00000…00009; ~182–273 MB). size_categories 100K<n<1M. Paper: 95K levels 5–9 + 8K SimpleRL levels 3–5. Raw pool 2,869K questions before decontam/difficulty/answer filters. Hub 147.3K downloads / 374 likes at check. GitHub zwhe99/DeepMath 299 stars at paper-page check. gated=false. Curation cost in paper: $138k GPT-4o API + 127k H20 GPU-hours. |
|---|
| 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. | parquet (question, final_answer, difficulty float64, topic, r1_solution_1/2/3) |
|---|
| Type | Pretraining corpus / rewritten math web (Q&A + textbook) | Annotated math RLVR/SFT corpus / question + verifiable answer + difficulty/topic + 3 R1 solutions |
|---|
| Cost | Free | Free |
|---|
| Languages | 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. | English 100% (card language:en). Math StackExchange / Numina prompts; some source pages were informal forum English. No LID table. Solutions are English R1 CoT plus LaTeX. |
|---|
| Modality | Text + LaTeX (Markdown; optional Python snippets in Q&A examples) | Text + LaTeX |
|---|
| Domain | mathematical pretraining; LLM-rewritten FineMath; textbook and Q&A math | challenging contest/forum math; RLVR; R1-distilled CoT SFT |
|---|
| 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). | HF createdAt 2025-04-14; lastModified 2025-05-29 (48 hint-leak questions revised 2025-05-08). Paper 2025-04-15 (arXiv 2504.11456). Sources: Math StackExchange slices of MMIQC / WebInstructSub plus NuminaMath-CoT (older forums/PDF exams). R1 solutions 2025. Discord posted 2025-11-17. |
|---|
| 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 | Large decontaminated verifiable math set for RL with rule-based rewards and optional SFT/distillation (three R1 traces per item). Difficulty-skewed vs Open-R1 / ORZ / DAPO-17k. |
|---|
| 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. | DeepMath-Zero-7B and DeepMath-Zero-Math-7B (zero-RL from Qwen2.5-7B / Qwen2.5-Math-7B); DeepMath-1.5B (from R1-Distill-Qwen-1.5B); DeepMath-Omn-1.5B (from OpenMath-Nemotron-1.5B). Paper: DeepMath-Omn-1.5B 64.0 AIME24 / 57.3 AIME25 pass@1. Hub collection zwhe99/deepmath. |
|---|
| Authors | 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.). | Human forum/contest authors (Math StackExchange via MMIQC and WebInstructSub; NuminaMath-CoT). Difficulty labels: GPT-4o (six AoPS-style ratings averaged). Traces: DeepSeek-R1. Curated by Tencent + SJTU (He / Liang / Xu et al.; correspondence zptu@tencent.com, wangrui12@sjtu.edu.cn). |
|---|
| Bias | 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. | Hard-problem skew (levels ≥5 are 95K/103K ≈ 92%). Math StackExchange discourse rather than GSM8K/MATH clones; paper embedding analysis: 82.81K problems unique vs ORZ-129K / Open-R1 / DAPO-17k / DSR-Preview / STILL-3-RL. Topic mix spans Prealgebra through Abstract Algebra and advanced Calculus (paper Fig. 4; no public per-topic counts). GPT-4o difficulty judge can mis-rank. Residual MCQ/judgment items whose answers could be guessed (paper limitations). |
|---|
| 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. | Rule-verified final answers (three R1 traces plus source answer must agree). Semantic decontam vs MATH/AIME/AMC/Minerva/OlympiadBench/Omni-MATH/MathOdyssey/GAOKAO/JEEBench/MMLU-STEM/CMATH/OlympicArena/GSM8K/GPQA (Llama-3.3-70B judge on top-5 MiniLM neighbors). 48 questions with answer-leaking hints rewritten 2025-05-08. Residual: LLM difficulty labels; forum OCR/informal wording; R1 traces can still be wrong even when the boxed answer matches. |
|---|
| 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. | Single default train split 103,022. No official val/test (authors decontaminated against common math/STEM tests). Paper split of construction: 95k hard + 8k SimpleRL easy/mid. Three r1_solution columns per row (309k traces). SFT ablation used 1 vs 3 traces. |
|---|
| Long context | Mixed (length-filtered; Q&A ~1.1k Llama-3 tok/sample, textbook ~1.4k). Not book-length documents. | Yes (three long R1 CoTs; paper eval max_tokens 32k; Zero-RL max_response 10k/3k). Questions themselves are short-to-medium contest/forum items. |
|---|
| 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. | Yes (2.869M source pool from MMIQC/WebInstructSub Math.SE + NuminaMath-CoT; embedding+LLM-judge decontam; GPT-4o AoPS difficulty, keep ≥5; GPT-4o rewrite to single verifiable answer; three R1 traces; keep only consistent extracted answers; add 8K SimpleRL 3–5). Training scripts in github.com/zwhe99/DeepMath (verl). |
|---|
| Idea quality | High | High |
|---|
| Novelty | High (32B Apache rewrite of FineMath-3+ with released style ablations; public alternative to Nemotron-CC-Math) | High (103k hard decontaminated verifiable forum math with three R1 traces; distinct embedding mass vs the Open-R1/ORZ/DAPO cluster) |
|---|
| Text conversion | 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). | Ready parquet; load_dataset("zwhe99/DeepMath-103K"). ~2.14 GB download. |
|---|
| Collection method | Download | Download |
|---|
| Static | Unknown (HF lastModified 2025-11-06; one-shot Apache v2; authors mention a possible v3 on the code sister card) | Unknown (HF lastModified 2025-05-29 after the 48-hint fix; no later refresh) |
|---|
| Processed | Unknown | Unknown |
|---|
| 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). | The problems in DeepMath-103K are novel and unique, whereas many existing datasets are similar and overlap. |
|---|