Qwen2-Math-7B
by Alibaba (Qwen) · Aug 9, 2024
Qwen2-Math-7B is an open-weight chat llm from Alibaba (Qwen), released Aug 9, 2024. It has 7B parameters.
- Provider
- Alibaba (Qwen)
- Released
- Aug 9, 2024
- Type
- Chat LLM
- Parameters
- 7B
- Context window
- —
- Max output
- —
- Input
- text
- Output
- text
- Weights
- Open weights
- License
- Open (permissive)
- Knowledge cutoff
- —
- Status
- Historical
About Qwen2-Math-7B
Over the past year, we have dedicated significant effort to researching and enhancing the reasoning capabilities of large language models, with a particular focus on their ability to solve arithmetic and mathematical problems. Today, we are delighted to introduce a series of math-specific large language models of our Qwen2 series, Qwen2-Math and Qwen2-Math-Instruct-1.5B/7B/72B. Qwen2-Math is a series of specialized math language models built upon the Qwen2 LLMs, which significantly outperforms the mathematical capabilities of open-source models and even closed-source models (e.g., GPT-4o).
How to run Qwen2-Math-7B
Qwen2-Math-7B is an open-weight model. Run it locally with Ollama, LM Studio or llama.cpp (quantized GGUF builds), or serve it on GPUs with vLLM, SGLang or Hugging Face TGI. At 7B parameters it needs roughly 4 GB of memory at 4-bit quantization.
Qwen2-Math-7B vs alternatives
- Qwen2-Math-7B vs Llama-3.1-8B-Instruct
- Qwen2-Math-7B vs Llama 3-8B
- Qwen2-Math-7B vs Gemma 7B
- Qwen2-Math-7B vs phi-3-small 7.4B
- Qwen2-Math-7B vs Gemma 2 9B
- Qwen2-Math-7B vs Yi-9B
| Model | Provider | Released | Params | Context | Input $/1M | Output $/1M | ECI |
|---|---|---|---|---|---|---|---|
| Llama-3.1-8B-Instructopen | Meta | Jul 2024 | 8B | 128K | $0.02 | $0.04 | 110.9 |
| Llama 3-8Bopen | Meta | Apr 2024 | 8B | — | — | — | 109.1 |
| Gemma 7Bopen | Google DeepMind | Feb 2024 | 8.5B | — | — | — | 103.2 |
| phi-3-small 7.4Bopen | Microsoft | Apr 2024 | 7.4B | — | — | — | 116.3 |
| Gemma 2 9Bopen | Google DeepMind | Jun 2024 | 9.2B | — | — | — | 112.4 |
| Yi-9Bopen | 01.AI | Mar 2024 | 8.8B | — | — | — | 102.2 |
| DeepSeek LLM 7Bopen | DeepSeek | Jan 2024 | 7B | — | — | — | — |
| deepseek-coder-7b-instruct-v1.5open | DeepSeek | Jan 2024 | 6.9B | — | — | — | — |
More models from Alibaba (Qwen)
All Alibaba (Qwen) models →| Model | Released | Params | Context | Input $/1M | Output $/1M |
|---|---|---|---|---|---|
| Qwen3.8 27Bopen | Aug 2026 | 28B | 1M | $0.035 | $1.50 |
| Qwen3.6 35B-A3Bopen | Apr 2026 | 36B (3B act.) | 256K | $0.375 | $2.25 |
| Qwen3.5 397B-A17Bopen | Feb 2026 | 403B (17B act.) | 256K | $0.6 | $3.60 |
| Qwen3.6 27Bopen | Apr 2026 | 28B | 256K | $0.6 | $3.60 |
| Qwen3.5 35B-A3Bopen | Feb 2026 | 36B (3B act.) | 256K | $0.25 | $2 |
| Qwen3.5 9Bopen | Feb 2026 | 9.7B | 256K | $0.17 | $0.25 |
| Qwen3 32Bopen | Apr 2025 | 33B | 128K | $0.7 | $2.80 |
| Qwen3.8 Max | Aug 2026 | 2.4T | 1M | $2 | $6 |
Frequently asked questions
Who made Qwen2-Math-7B?
Qwen2-Math-7B was developed by Alibaba (Qwen) (China). It was released on Aug 9, 2024.
Is Qwen2-Math-7B open source?
Yes. Qwen2-Math-7B's weights are publicly available, so you can download and run it yourself.
How many parameters does Qwen2-Math-7B have?
Qwen2-Math-7B has 7B parameters.
Sources: epoch · paper. Last updated 2026-11-22.