Downloads · 30 days
55
12% of all-time downloads
HenryShan/Qwen2.5-Math-7B-DPO-10K
Qwen2.5-Math-7B-DPO-10K is a text generation model from HenryShan. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
<p align="left" <a href="https://huggingface.co/Qwen/Qwen2.5-Math-7B" <img src="https://img.shields.io/badge/Qwen2.5--Math--7B-TextGeneration-blue?logo=huggingface" alt="Base Model" / </a <a href="https://huggingface.…
Downloads · 30 days
55
12% of all-time downloads
All-time downloads
454
Public
Parameters
7.6B
15.2 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors15.2 GB · 100%
From the Hugging Face model README
Qwen2.5-Math-7B is a fine-tuned version of Qwen2.5-Math-7B, specifically optimized for mathematical reasoning through Direct Preference Optimization (DPO) on the Math-Step-DPO-10K dataset. This model specializes in generating step-by-step solutions to mathematical problems across various domains including algebra, calculus, and geometry.
# Make sure mlx-lm is installed
# pip install --upgrade mlx-lm
# Generate text with mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("HenryShan/Qwen2.5-Math-7B-DPO-10K")
prompt = "Write a story about Einstein"
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, add_generation_prompt=True
)
text = generate(model, tokenizer, prompt=prompt, verbose=True)
Qwen2.5-Math-7B-DPO-10K is licensed under the Apache license 2.0. It is finetuned from Qwen2.5-Math-7B, under Apache 2.0.
@misc{haotian_shan_2025,
author = { Haotian Shan },
title = { Qwen2.5-Math-7B-DPO-10K (Revision e4f4bb3) },
year = 2025,
url = { https://huggingface.co/HenryShan/Qwen2.5-Math-7B-DPO-10K },
doi = { 10.57967/hf/5631 },
publisher = { Hugging Face }
}