· via Hacker News – Front Page (native)
DeepSeek releases DeepSeekMath 7B, hitting 51.7% on the MATH benchmark without external tools
DeepSeek's open 7B model, built from DeepSeek-Coder-v1.5 with 500B tokens of math-focused pre-training, scores 51.7% on MATH and nears 60% with tool use; base, instruct and RL checkpoints are public.
DeepSeek has released DeepSeekMath, an open 7-billion-parameter language model that pushes mathematical reasoning in open models into territory previously occupied by frontier systems. According to the project's GitHub repository, which reached the front page of Hacker News, the model is initialized from DeepSeek-Coder-v1.5 7B and continues pre-training on 500 billion tokens, drawing math-focused text from Common Crawl alongside natural language and code data. The team reports 51.7% on the competition-level MATH benchmark without external toolkits or voting techniques — a score it says brings the model close to Gemini Ultra and GPT-4.
A code model, retrained on math
The starting point is the most consequential design choice. Rather than a general-purpose base model, DeepSeek built on DeepSeek-Coder-v1.5 7B, and the repository credits that lineage for the model's tool-use ability: DeepSeekMath-Base can write programs to work out and prove mathematical results, a skill that math-only pre-training tends not to produce on its own.
The team also states that general reasoning and coding performance remains comparable to DeepSeek-Coder-v1.5, indicating that the math-heavy training did not erode the original model's broader skills. All three released checkpoints use a 4096-token context window.
Mining 120B tokens of math from the web
The training corpus was assembled through a semi-automatic pipeline that the repository describes in five repeating steps:
- OpenWebMath, an existing collection of high-quality mathematical web text, seeds the training of a FastText classifier.
- The classifier retrieves mathematical pages from a deduplicated Common Crawl database.
- Statistical analysis identifies domains likely to host mathematical content.
- Annotators manually mark math-related URLs within those domains.
- Pages linked from the annotated URLs are folded into the seed corpus, and the loop restarts.
After four iterations, the process had gathered 35.5 million mathematical web pages — 120 billion tokens in total.
Base, instruct, and RL checkpoints
DeepSeekMath ships in three variants, each representing a further training stage:
- DeepSeekMath-Base 7B is the continued pre-training result. With few-shot chain-of-thought prompting on MATH, it beats existing open-source base models by more than 10 percentage points in absolute terms and surpasses Minerva 540B despite being a small fraction of its size.
- DeepSeekMath-Instruct 7B applies instruction tuning on top of the base model, and shows strong step-by-step reasoning across four quantitative reasoning benchmarks in English and Chinese, evaluated both with and without tool use.
- DeepSeekMath-RL 7B builds on the instruct model using Group Relative Policy Optimization (GRPO), a reinforcement-learning algorithm the team proposes in its paper. With tool use it approaches 60% accuracy on MATH, which the repository says puts it ahead of all existing open-source models.
Availability and usage notes
The base, instruct, and RL checkpoints are available on Hugging Face and run through the standard Transformers API for both text and chat completion. Commercial use is permitted under the model license, and the code repository is MIT-licensed.
Two practical notes from the documentation: the instruct and RL models should be prompted to reason step by step and to place the final answer inside \boxed{}, and this version of the model is not compatible with system prompts, which the team recommends omitting entirely.
The work is documented in a paper, "DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models," listed in the repository as arXiv preprint 2402.03300 and authored by Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu and colleagues.
Why it matters
Three things make this release more than a benchmark entry.
First, it is further evidence that targeted continued pre-training — a 7B model over 500B tokens — can lift an open model close to frontier-level performance on a hard reasoning task. For teams that cannot or will not depend on proprietary APIs, that trajectory matters more than any single score.
Second, the data pipeline may be as valuable as the model itself. A repeatable, largely automatic method for extracting 120B tokens of mathematical text from Common Crawl could be redirected at other domains where high-quality data, not compute, is the bottleneck.
Third, the release includes the RL checkpoint alongside the GRPO algorithm, giving researchers the material to study how reinforcement learning sharpens mathematical reasoning — an effect that has so far been visible mainly through closed models.
The usual caveats apply: MATH is one benchmark, and leaderboard gains do not automatically translate into reliable general-purpose reasoning. But as an open artifact — weights, a data recipe, and a full training pipeline — DeepSeekMath is a strong data point in the argument that frontier-level reasoning is not the exclusive property of closed models.
- #deepseek
- #open-source
- #language-models
- #math-reasoning
- #benchmarks