alt.freeweights.qwen / Qwen2-Math-7B-Instruct
From: Qwen <huggingface.co/Qwen>Newsgroups: alt.freeweights.qwenSubject:

Qwen2-Math-7B-Instruct

Date: 2026-11-15Commit: 26843d3Signed: 2DC28CC7B26A283B ✓

Text generation model with 7.6B parameters. Safetensors weights, 15.2 GB in all. Published by Qwen under Apache-2.0.

7.6B params15.2GBQwen2-Math-7B-Instructsafetensorspermissive
FactsParams7.6BSize15.2 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get Qwen/Qwen2-Math-7B-Instruct
# manifest sha256 40bd025dc705… · 15.2 GB · 13 files
$ fw verify ./Qwen2-Math-7B-Instruct Qwen/Qwen2-Math-7B-Instruct
From sourceHosted (signed)Qwen/Qwen2-Math-7B-InstructLast check: 2026-11-15 03:43 UTC

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

Works with

Overview

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

Original release from the publisher.

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 03:43 UTCpassed

Model card

From the publisher at commit 26843d3. Shown as plain text with links; images open at the publisher.

Qwen2-Math-7B-Instruct#

Warning.

🚨 Temporarily this model mainly supports English. We will release bilingual (English & Chinese) models soon!

Introduction#

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 serise 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., GPT4o). We hope that Qwen2-Math can contribute to the scientific community for solving advanced mathematical problems that require complex, multi-step logical reasoning.

Model Details#

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

Requirements#

  • transformers>=4.40.0 for Qwen2-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-Math-7B-Instruct is an instruction model for chatting;

Qwen2-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-Math can be deployed and inferred in the same way as Qwen2. 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-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$."
messages = [
    {"role": "system", "content": "You are a helpful assistant."},
    {"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]
🤖 ModelScope#

We strongly advise users, especially those in mainland China, to use ModelScope. snapshot_download can help you solve issues concerning downloading checkpoints.

Citation#

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

@article{yang2024qwen2,
  title={Qwen2 technical report},
  author={Yang, An and Yang, Baosong and Hui, Binyuan and Zheng, Bo and Yu, Bowen and Zhou, Chang and Li, Chengpeng and Li, Chengyuan and Liu, Dayiheng and Huang, Fei and others},
  journal={arXiv preprint arXiv:2407.10671},
  year={2024}
}

Files

13 files · 15.2 GBWeights 15.2 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 13 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md3.68 KB8c8f870260ab45184fb5ddde6e28f43bb463f5b9a26e734a47b4168ee831e806
config.json680 Be7a96ef8c59231fb7e8a710adeb689348589c06d6fc11a8382be451e520b4278
generation_config.json197 B67f1acb220b12bae68e25c168c6d8ac32240dea98e1147720b231fe6746abe42
merges.txt1.67 MB599bab54075088774b1733fde865d5bd747cbcc7a547c5bc12610e874e26f5e3
model-00001-of-00004.safetensors3.95 GB1189691395bbca87752f8aff3b38b30563b4202af00b2bab6160e3480ae45da6
model-00002-of-00004.safetensors3.86 GB92296ca0a0fd920b55a7569b1dc707f2c7bb13529b62fdb551b0d70ad93233db
model-00003-of-00004.safetensors3.86 GB858fc0ce8e897230e88e06e4662ef5808af17093d9767aa1a6abf03d464082c6
model-00004-of-00004.safetensors3.56 GBda388e8fe7d5d3a21c3bb09fa2da04646e6aa9a167cb62bc3765fd2de67a269e
model.safetensors.index.json27.8 KB624bf7c47cd12468fdc16e38a47cf4f19e0415b859a223ba3c027eed2f0e1028
tokenizer.json7.03 MBf7c9b2dba4a296b1aa76c16a34b8225c0c118978400d4bb66bff0902d702f5b8
tokenizer_config.json1.29 KB482bd979881423375ca5414e4e0d94cd7c5349dbb17fffd46b4d36d71e62a1bc
vocab.json2.78 MBca10d7e9fb3ed18575dd1e277a2579c16d108e32f27439684afa0e10b1440910
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
26843d37d3 pinned now2026-11-15 03:43 UTC13 files · 15.2 GB

Use it

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

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
8c8f870260ab45184fb5ddde6e28f43bb463f5b9a26e734a47b4168ee831e806
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: Qwen <huggingface.co/Qwen>Newsgroups: alt.freeweights.qwenSubject: Qwen2-Math-7B-InstructDate: 2026-11-15Commit: 26843d3Signed: 2DC28CC7B26A283B ✓
Upstream
Qwen/Qwen2-Math-7B-Instruct
Pinned commit
26843d37d3b00ee4a14263b161f312c2738660f9
Manifest
Qwen2-Math-7B-Instruct.json · .minisig
Manifest sha256
40bd025dc705806da892141e83c3e90cd3fa5978872414a64a9d8a758bfb7d55
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:43 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/Qwen/Qwen2-Math-7B-Instruct.json $ curl -O https://freeweights.allternit.com/manifests/Qwen/Qwen2-Math-7B-Instruct.json.minisig $ minisign -Vm Qwen2-Math-7B-Instruct.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

1 model in the catalog name this one as their parent.

Quantizations
1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download Qwen/Qwen2-Math-7B-Instruct
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. Qwen2-Math-7B-Instruct.json. Provenance. Takedown history: none.

Variants

1 quantized or adapter build of Qwen2-Math-7B-Instruct. Each has its own license check and page.

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