alt.freeweights.qwen / Qwen2.5-Math-7B-Instruct-bnb-4bit
From: unsloth <huggingface.co/unsloth>Newsgroups: alt.freeweights.qwenSubject:

Qwen2.5-Math-7B-Instruct-bnb-4bit

Date: 2026-11-15Commit: 2ab7fb3Signed: 2DC28CC7B26A283B ✓

Text generation model with 7.8B parameters. Safetensors weights, 5.56 GB in all. Published by unsloth under Apache-2.0.

7.8B params5.56GBQwen2.5-Math-7B-Instruct-bnb-4bitsafetensorspermissive
FactsParams7.8BSize5.56 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get unsloth/Qwen2.5-Math-7B-Instruct-bnb-4bit
# manifest sha256 2915f1d8f984… · 5.56 GB · 11 files
$ fw verify ./Qwen2.5-Math-7B-Instruct-bnb-4bit unsloth/Qwen2.5-Math-7B-Instruct-bnb-4bit
From sourceHosted (signed)unsloth/Qwen2.5-Math-7B-Instruct-bnb-4bitLast check: 2026-11-15 05:08 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Quantized of Qwen2.5-Math-7B-Instruct.

Works with

Overview

Size
5.56 GB
Weights
5.55 GB (safetensors)
Parameters
7.8B
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
11, each with a sha256
Publisher
unsloth
Added
2026-11-15
Section
alt.freeweights.qwen
Lineage

Original release from the publisher.

Base model: Qwen/Qwen2.5-Math-7B-Instruct

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 05:08 UTCpassed

Model card

From the publisher at commit 2ab7fb3. Shown as plain text with links; images open at the publisher.

Finetune Llama 3.1, Gemma 2, Mistral 2-5x faster with 70% less memory via Unsloth!#

We have a Qwen 2.5 (all model sizes) free Google Colab Tesla T4 notebook. Also a Qwen 2.5 conversational style notebook.

https://discord.gg/unsloth https://github.com/unslothai/unsloth

✨ Finetune for Free#

All notebooks are beginner friendly! Add your dataset, click "Run All", and you'll get a 2x faster finetuned model which can be exported to GGUF, vLLM or uploaded to Hugging Face.

Unsloth supportsFree NotebooksPerformanceMemory use
Llama-3.1 8b▶️ Start on Colab2.4x faster58% less
Phi-3.5 (mini)▶️ Start on Colab2x faster50% less
Gemma-2 9b▶️ Start on Colab2.4x faster58% less
Mistral 7b▶️ Start on Colab2.2x faster62% less
TinyLlama▶️ Start on Colab3.9x faster74% less
DPO - Zephyr▶️ Start on Colab1.9x faster19% less

Qwen2.5-Math-7B-Instruct#

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.

Unlike Qwen2-Math series which only supports using Chain-of-Thught (CoT) to solve English math problems, Qwen2.5-Math series is expanded to support using both CoT and Tool-integrated Reasoning (TIR) to solve math problems in both Chinese and English. The Qwen2.5-Math series models have achieved significant performance improvements compared to the Qwen2-Math series models on the Chinese and English mathematics benchmarks with CoT.

Image: image

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-7B-Instruct is an instruction model for chatting;

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

🤗 Hugging Face Transformers#

Qwen2.5-Math can be deployed and infered in the same way as Qwen2.5. Here we show a code snippet to show you how to use the chat model with transformers:

from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "Qwen/Qwen2.5-Math-7B-Instruct"
device = "cuda" # the device to load the model onto

model = AutoModelForCausalLM.from_pretrained(
    model_name,
    torch_dtype="auto",
    device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(model_name)

prompt = "Find the value of $x$ that satisfies the equation $4x+5 = 6x+7$."

# CoT
messages = [
    {"role": "system", "content": "Please reason step by step, and put your final answer within \\boxed{}."},
    {"role": "user", "content": prompt}
]

# TIR
messages = [
    {"role": "system", "content": "Please integrate natural language reasoning with programs to solve the problem above, and put your final answer within \\boxed{}."},
    {"role": "user", "content": prompt}
]

text = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True
)
model_inputs = tokenizer([text], return_tensors="pt").to(device)

generated_ids = model.generate(
    **model_inputs,
    max_new_tokens=512
)
generated_ids = [
    output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
]

response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]

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}
}

Files

11 files · 5.56 GBWeights 5.55 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 11 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md7.66 KB7070ee0242eb2e3767f4815704de8fdc6f3d71e1d93e119cebac19fde28eac98
added_tokens.json632 Ba32bc0d990603eb93fd389dc164fe6fbfc442db2ab3a65e4a99a249433ab11f6
config.json1.24 KB7cd479f72acad69585fb3ab7ec9a2c8b3138222ad6c51d9ea38ffd77788b0c65
generation_config.json161 B6282ab2a919f287cd4e420501980a4d36df99b5c8e6996d6a97bdb8e3e3c7d6d
merges.txt1.67 MB8831e4f1a044471340f7c0a83d7bd71306a5b867e95fd870f74d0c5308a904d5
model.safetensors5.55 GB9d8d80f688a0419479030f79341a4e1b0068445a1258a214181fb6a7ebe8daba
special_tokens_map.json613 Bbd1a530e68d3e09aa7a45be45eff6f3f6930f6111d227ac57fb75073adf954ec
tokenizer.json7.03 MB29503e9663ee5b7f65e04bb44f7225f2607fcd7995d7803632f42156db47ecfe
tokenizer_config.json7.52 KB370100f17e6db82fcf849b7b85713007e50f0f4889db4e84f6970a219c543988
vocab.json2.78 MBca10d7e9fb3ed18575dd1e277a2579c16d108e32f27439684afa0e10b1440910
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
2ab7fb373c pinned now2026-11-15 05:08 UTC11 files · 5.56 GB

Use it

$ fw get unsloth/Qwen2.5-Math-7B-Instruct-bnb-4bit
# manifest sha256 2915f1d8f984… · 5.56 GB · 11 files
$ fw verify ./Qwen2.5-Math-7B-Instruct-bnb-4bit unsloth/Qwen2.5-Math-7B-Instruct-bnb-4bit
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/unsloth/Qwen2.5-Math-7B-Instruct-bnb-4bit.json --dir ./Qwen2.5-Math-7B-Instruct-bnb-4bit $ python3 fw.py verify ./Qwen2.5-Math-7B-Instruct-bnb-4bit ./unsloth__Qwen2.5-Math-7B-Instruct-bnb-4bit.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download unsloth/Qwen2.5-Math-7B-Instruct-bnb-4bit --revision 2ab7fb373c247ef5933d034f016efefc66608458 --local-dir ./Qwen2.5-Math-7B-Instruct-bnb-4bit
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("unsloth/Qwen2.5-Math-7B-Instruct-bnb-4bit", revision="2ab7fb373c247ef5933d034f016efefc66608458") model = AutoModelForCausalLM.from_pretrained("unsloth/Qwen2.5-Math-7B-Instruct-bnb-4bit", revision="2ab7fb373c247ef5933d034f016efefc66608458", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve unsloth/Qwen2.5-Math-7B-Instruct-bnb-4bit --revision 2ab7fb373c247ef5933d034f016efefc66608458

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
7070ee0242eb2e3767f4815704de8fdc6f3d71e1d93e119cebac19fde28eac98
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: unsloth <huggingface.co/unsloth>Newsgroups: alt.freeweights.qwenSubject: Qwen2.5-Math-7B-Instruct-bnb-4bitDate: 2026-11-15Commit: 2ab7fb3Signed: 2DC28CC7B26A283B ✓
Upstream
unsloth/Qwen2.5-Math-7B-Instruct-bnb-4bit
Pinned commit
2ab7fb373c247ef5933d034f016efefc66608458
Manifest
Qwen2.5-Math-7B-Instruct-bnb-4bit.json · .minisig
Manifest sha256
2915f1d8f98498e89f81b14438e4d0474b97874a4cf8070e5dde0a0c5d5c94d7
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 05:08 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/unsloth/Qwen2.5-Math-7B-Instruct-bnb-4bit.json $ curl -O https://freeweights.allternit.com/manifests/unsloth/Qwen2.5-Math-7B-Instruct-bnb-4bit.json.minisig $ minisign -Vm Qwen2.5-Math-7B-Instruct-bnb-4bit.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

Qwen/Qwen2.5-Math-7B-Instruct · this model is a quantization of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download unsloth/Qwen2.5-Math-7B-Instruct-bnb-4bit
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. Qwen2.5-Math-7B-Instruct-bnb-4bit.json. Provenance. Takedown history: none.
From: BAAI <huggingface.co/BAAI>Subject: Aquila-VL-2B-llava-qwen
From: Perciqa <huggingface.co/Perciqa>Subject: Aurora-Code-1
From: BAAI <huggingface.co/BAAI>Subject: bge-reasoner-embed-qwen3-8b-0923
From: amazon <huggingface.co/amazon>Subject: BMOJOF-primed-HQwen3-8B-Instruct
From: nbeerbower <huggingface.co/nbeerbower>Subject: Bubba-Qwen3.6-27B-LoRA
From: bartowski <huggingface.co/bartowski>Subject: bytkim_Qwen3.8-27B-pi-GGUF