Downloads · 30 days
18
7% of all-time downloads
Harsha901/Qwen3-4B-Inst-Math-Reasoning-SFT
Qwen3-4B-Inst-Math-Reasoning-SFT is a text generation model from Harsha901. 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.
- Developed by: Harsha901 - License: apache-2.0 - Finetuned from model: unsloth/Qwen3-4B-Instruct-2507
Downloads · 30 days
18
7% of all-time downloads
All-time downloads
261
Public
Parameters
4B
16.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors8 GB · 100%
From the Hugging Face model README
This Qwen3 model was trained ~2× faster using Unsloth and Hugging Face’s TRL library.
Qwen3-4B-Inst-Math-Reasoning-SFT is a supervised fine-tuned (SFT) variant of Qwen3-4B-Instruct, optimized for mathematical reasoning and step-by-step problem solving.
The model is trained to follow instructions precisely while producing clear, logically structured reasoning chains, making it suitable for:
The model was fine-tuned on a curated dataset consisting of:
Data was filtered to emphasize:
While care was taken to ensure quality, the dataset may still contain noise or biases present in public mathematical corpora.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "Harsha901/Qwen3-4B-Inst-Math-Reasoning-SFT"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
device_map="auto",
torch_dtype="auto"
)
prompt = "Solve step by step: If 5x − 10 = 15, find x."
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=256,
temperature=0.2,
do_sample=False
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
The model was evaluated qualitatively on:
Observed improvements vs base model:
Formal benchmark results (e.g., GSM8K, MATH) are planned for future updates.
Released under the Apache 2.0 License, consistent with the base Qwen3 model.
Harsha Vardhan Mannem AI / ML Engineer Hugging Face & GitHub: Harsha901