math_model

A fine-tuned version of Qwen/Qwen3-1.7B for mathematical reasoning. The model produces a chain of reasoning and returns the final answer wrapped in \boxed{...}.

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer

tok = AutoTokenizer.from_pretrained("cs-552-2026-the-transformers/math_model")
model = AutoModelForCausalLM.from_pretrained(
    "cs-552-2026-the-transformers/math_model", device_map="cuda")

msgs = [{"role": "user", "content": "What is 12 * 12? Put the final answer in \\boxed{}."}]
ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt").to("cuda")
out = model.generate(ids, max_new_tokens=2048)
print(tok.decode(out[0][ids.shape[1]:], skip_special_tokens=True))
Downloads last month
560
Safetensors
Model size
2B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for cs-552-2026-the-transformers/math_model

Finetuned
Qwen/Qwen3-1.7B
Finetuned
(793)
this model