Model reference · open weights

Qwen2.5-Math

LLMs Qwen Text gen 2 builds Open weights 370k dl/mo

Qwen2.5-Math is an open-weight language model from Qwen. Qwen2.5-Math-7B-Instruct (BF16) weighs 15.2 GB; the smallest configuration that runs it is 2× RTX 3060 12 GB.

For self-hosting, compare this build's requirements below with the GPU you plan to rent.

  • Qwen2.5-Math-1.5B is a 1.5 billion parameter text-generation model developed by Qwen for solving English and Chinese math problems.
  • It supports a context length of 4096 tokens and is released under the apache-2.0 license.
  • The model uses CoT and TIR to improve proficiency in precise computation, symbolic manipulation, and algorithmic manipulation.

Summary of the Qwen/Qwen2.5-Math-1.5B model card, 2026-10-01. The estimate below is for another build of the family.

What it is

Released byQwen
Released2024-09-16
Parameters1.5B
VRAM15.2 GB for the weights

What it runs on

Memory and cards for Qwen2.5-Math-7B-Instruct (BF16)

15.2 GBweights, file size
57 MBcache per 1K tokens
799 MBruntime overhead, at least
4,096 tokenscontext max
CardRequests at onceContext maxMemory
4K each
RTX 3060 12 GB … RTX 4060 Ti 16 GB
2 smaller cards
RTX 3090 24 GB31all 4K23.4 GB
RTX 4090 24 GB31all 4K23.4 GB
RTX 5090 32 GB63all 4K31.0 GB
L40S 48 GB118all 4K44.0 GB
A100 80 GB264all 4K78.2 GB
H100 80 GB245all 4K78.1 GB
RTX PRO 6000 Blackwell 96 GB312all 4K93.8 GB
DGX Spark (GB10) 128 GB unified369all 4K107 GB
H200 141 GB500all 4K138 GB
B200 180 GB659all 4K176 GB
2× RTX 3060 12 GB
tensor parallel
27all 4K11.6 GB a card
2× RTX 4060 Ti 16 GB
tensor parallel
59all 4K15.4 GB a card
Memory needed at each load
Requests at once4K tokens each
116.3 GB
517.2 GB
817.9 GB
1619.8 GB
3223.5 GB
6431.1 GB

One card, with vLLM's small-card settings.

Builds

Sizes, precisions & builds

BuildParamsPrecisionWeightsSmallest setup
Qwen2.5-Math-1.5B ↗ 1.5BBF16 3.1 GBRTX 3060 12 GB
Qwen2.5-Math-7B-Instruct (above) ↗ 7.6BBF16 15.2 GB2× RTX 3060 12 GB

From the model card

What Qwen says about Qwen2.5-Math

Read the model card

[!Warning]

🚨 Qwen2.5-Math mainly supports solving English and Chinese math problems through CoT and TIR. We do not recommend using this series of models for other tasks.

Introduction

In August 2024, we released the first series of mathematical LLMs - Qwen2-Math - of our Qwen family. A month later, we have upgraded it and open-sourced Qwen2.5-Math series, including base models Qwen2.5-Math-1.5B/7B/72B, instruction-tuned models Qwen2.5-Math-1.5B/7B/72B-Instruct, and mathematical reward model Qwen2.5-Math-RM-72B.

While CoT plays a vital role in enhancing the reasoning capabilities of LLMs, it faces challenges in achieving computational accuracy and handling complex mathematical or algorithmic reasoning tasks, such as finding the roots of a quadratic equation or computing the eigenvalues of a matrix. TIR can further improve the model's proficiency in precise computation, symbolic manipulation, and algorithmic manipulation. Qwen2.5-Math-1.5B/7B/72B-Instruct achieve 79.7, 85.3, and 87.8 respectively on the MATH benchmark using TIR.

Model Details

For more details, please refer to our blog post and GitHub repo.

Requirements

  • transformers>=4.37.0 for Qwen2.5-Math models. The latest version is recommended.

[!Warning]

🚨 This is a must because transformers integrated Qwen2 codes since 4.37.0.

For requirements on GPU memory and the respective throughput, see similar results of Qwen2 here.

Quick Start

[!Important]

Qwen2.5-Math-1.5B-Instruct is an instruction model for chatting;

Qwen2.5-Math-1.5B is a base model typically used for completion and few-shot inference, serving as a better starting point for fine-tuning.

Citation

If you find our work helpful, feel free to give us a citation.

@article{yang2024qwen25mathtechnicalreportmathematical,
  title={Qwen2.5-Math Technical Report: Toward Mathematical Expert Model via Self-Improvement},
  author={An Yang and Beichen Zhang and Binyuan Hui and Bofei Gao and Bowen Yu and Chengpeng Li and Dayiheng Liu and Jianhong Tu and Jingren Zhou and Junyang Lin and Keming Lu and Mingfeng Xue and Runji Lin and Tianyu Liu and Xingzhang Ren and Zhenru Zhang},
  journal={arXiv preprint arXiv:2409.12122},
  year={2024}
}

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms