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

Qwen2-Math-1.5B-Instruct

Date: 2026-11-15Commit: 19bd485Signed: 2DC28CC7B26A283B ✓

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

1.5B params3.10GBQwen2-Math-1.5B-Instructsafetensorspermissive
FactsParams1.5BSize3.10 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get Qwen/Qwen2-Math-1.5B-Instruct
# manifest sha256 dd0d571359f0… · 3.10 GB · 9 files
$ fw verify ./Qwen2-Math-1.5B-Instruct Qwen/Qwen2-Math-1.5B-Instruct
From sourceHosted (signed)Qwen/Qwen2-Math-1.5B-InstructLast check: 2026-11-15 03:44 UTC

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

Works with

Overview

Size
3.10 GB
Weights
3.09 GB (safetensors)
Parameters
1.5B
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
9, 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:44 UTCpassed

Model card

From the publisher at commit 19bd485. Shown as plain text with links; images open at the publisher.

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

Qwen2-Math-1.5B 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-1.5B-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

9 files · 3.10 GBWeights 3.09 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 9 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md3.69 KB93f4c3b3e0aeaf0834a551baee8d07dcdb4b44bffc2248eda032c87d5dfeb74e
config.json678 B9cb5f7cad620bee24c2043f3292f71e18704e65eaa701f549f553cb11ad16b1e
generation_config.json199 B593e7e4752d809bbab99640d65125cd7691ff4a538a0a80177ab74b7c271628a
merges.txt1.67 MB599bab54075088774b1733fde865d5bd747cbcc7a547c5bc12610e874e26f5e3
model.safetensors3.09 GBde3b544c2ebbe5143f09498728c1b0786b1b4816255258da5549d482e7e38539
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
19bd485b64 pinned now2026-11-15 03:44 UTC9 files · 3.10 GB

Use it

$ fw get Qwen/Qwen2-Math-1.5B-Instruct
# manifest sha256 dd0d571359f0… · 3.10 GB · 9 files
$ fw verify ./Qwen2-Math-1.5B-Instruct Qwen/Qwen2-Math-1.5B-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-1.5B-Instruct.json --dir ./Qwen2-Math-1.5B-Instruct $ python3 fw.py verify ./Qwen2-Math-1.5B-Instruct ./Qwen__Qwen2-Math-1.5B-Instruct.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download Qwen/Qwen2-Math-1.5B-Instruct --revision 19bd485b6474f7263545b4d5a1c29d78bcbf3a4f --local-dir ./Qwen2-Math-1.5B-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-1.5B-Instruct", revision="19bd485b6474f7263545b4d5a1c29d78bcbf3a4f") model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2-Math-1.5B-Instruct", revision="19bd485b6474f7263545b4d5a1c29d78bcbf3a4f", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve Qwen/Qwen2-Math-1.5B-Instruct --revision 19bd485b6474f7263545b4d5a1c29d78bcbf3a4f

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
93f4c3b3e0aeaf0834a551baee8d07dcdb4b44bffc2248eda032c87d5dfeb74e
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-1.5B-InstructDate: 2026-11-15Commit: 19bd485Signed: 2DC28CC7B26A283B ✓
Upstream
Qwen/Qwen2-Math-1.5B-Instruct
Pinned commit
19bd485b6474f7263545b4d5a1c29d78bcbf3a4f
Manifest
Qwen2-Math-1.5B-Instruct.json · .minisig
Manifest sha256
dd0d571359f04db4a6c79c0f3cc9a0b67af457124d07ac3c9427ffe5894a382f
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:44 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

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

Variants

1 quantized or adapter build of Qwen2-Math-1.5B-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