Skip to content
llmmodels
Chat LLMOpen weightsHistorical

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.

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

Alternatives to Qwen2-Math-7B
ModelProviderReleasedParamsContextInput $/1MOutput $/1MECI
Llama-3.1-8B-InstructopenMetaJul 20248B128K$0.02$0.04110.9
Llama 3-8BopenMetaApr 20248B———109.1
Gemma 7BopenGoogle DeepMindFeb 20248.5B———103.2
phi-3-small 7.4BopenMicrosoftApr 20247.4B———116.3
Gemma 2 9BopenGoogle DeepMindJun 20249.2B———112.4
Yi-9Bopen01.AIMar 20248.8B———102.2
DeepSeek LLM 7BopenDeepSeekJan 20247B————
deepseek-coder-7b-instruct-v1.5openDeepSeekJan 20246.9B————

More models from Alibaba (Qwen)

All Alibaba (Qwen) models →
ModelReleasedParamsContextInput $/1MOutput $/1M
Qwen3.8 27BopenAug 202628B1M$0.035$1.50
Qwen3.6 35B-A3BopenApr 202636B (3B act.)256K$0.375$2.25
Qwen3.5 397B-A17BopenFeb 2026403B (17B act.)256K$0.6$3.60
Qwen3.6 27BopenApr 202628B256K$0.6$3.60
Qwen3.5 35B-A3BopenFeb 202636B (3B act.)256K$0.25$2
Qwen3.5 9BopenFeb 20269.7B256K$0.17$0.25
Qwen3 32BopenApr 202533B128K$0.7$2.80
Qwen3.8 MaxAug 20262.4T1M$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.