Downloads · 30 days
42
53% of all-time downloads
DexterSptizu/qwen2.5-3b-reasoning-full-ft
qwen2.5-3b-reasoning-full-ft is a text generation model from DexterSptizu. 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.
This repository contains the fine-tuned weights for Qwen/Qwen2.5-3B-Instruct trained to produce explicit step-by-step <think...</think Chain-of-Thought (CoT) reasoning.
Downloads · 30 days
42
53% of all-time downloads
All-time downloads
80
Public
Parameters
3.1B
18.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.pt12.3 GB · 50%
From the Hugging Face model README
This repository contains the fine-tuned weights for Qwen/Qwen2.5-3B-Instruct trained to produce explicit step-by-step <think>...</think> Chain-of-Thought (CoT) reasoning.
Qwen/Qwen2.5-3B-InstructFreedomIntelligence/medical-o1-reasoning-SFT (10,000 instructions)| Metric / Feature | Benchmark Score |
|---|---|
CoT Reasoning Tag Rate (<think>) | 60.0% |
| Holdout Benchmark Accuracy | 100.0% |
| Training Duration | 12.36 minutes |
| Final Epoch Loss | 1.431 |
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "DexterSptizu/qwen2.5-3b-reasoning-full-ft"
# Load fine-tuned reasoning model & tokenizer
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto"
)
# Inference Example
prompt = "<|im_start|>system\nYou are a helpful reasoning assistant.<|im_end|>\n<|im_start|>user\nSolve step by step: What is 15 * 24?<|im_end|>\n<|im_start|>assistant\n<think>\n"
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=512)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))