Downloads · 30 days
64
15% of all-time downloads
Rzkoohi/Qwen-2.5-0.5B-gsm8k
Qwen-2.5-0.5B-gsm8k is a text generation model from Rzkoohi. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
Downloads · 30 days
64
15% of all-time downloads
All-time downloads
427
Public
Repo size
339 MB
Likes
1
Public
Click a slice to open those files.
.gguf339 MB · 100%
From the Hugging Face model README
| Property | Value |
|---|---|
| Base Model | Qwen/Qwen2.5-0.5B-Instruct |
| Training Method | QLoRA |
| Framework | Unsloth |
| Dataset | openai/gsm8k |
| Task | Mathematical reasoning |
| Architecture | Qwen2ForCausalLM |
The model was fine-tuned using:
The objective was to teach the model to generate correct step-by-step solutions for mathematical word problems.
from transformers import AutoTokenizer, AutoModelForCausalLM
model_name = "Rzkoohi/Qwen-2.5-0.5B-gsm8k"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
messages = [
{
"role": "user",
"content": "If John has 5 apples and buys 3 more, then gives away 2, how many apples does he have?"
}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
inputs = tokenizer(text, return_tensors="pt")
outputs = model.generate(
**inputs,
max_new_tokens=256
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Recommended for:
Not recommended for:
This model has only been fine-tuned on GSM8K.
Although mathematical reasoning is improved, performance on unrelated tasks may differ from the original instruction model. Like all 0.5B parameter models, it has limited world knowledge and reasoning capacity compared to larger LLMs.
Planned improvements include:
This model is based on:
If you use this model in your work, please cite this repository.