Downloads · 30 days
462
5% of all-time downloads
eagle0504/qwen-2_5-1_5b-instruct-using-openai-gsm8k-data-enhanced-with-deepseek-v4
qwen-2_5-1_5b-instruct-using-openai-gsm8k-data-enhanced-with-deepseek-v4 is a machine learning model from eagle0504. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as mit.
This model is a fine-tuned version of Qwen2.5-1.5B-Instruct, optimized for mathematical problem-solving with step-by-step reasoning. It was trained on the GSM8K dataset, incorporating Chain-of-Thought (CoT) reasoning…
Downloads · 30 days
462
5% of all-time downloads
All-time downloads
9.1K
Public
Parameters
1.5B
11.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.gguf6.9 GB · 68%
From the Hugging Face model README
This model is a fine-tuned version of Qwen2.5-1.5B-Instruct, optimized for mathematical problem-solving with step-by-step reasoning. It was trained on the GSM8K dataset, incorporating Chain-of-Thought (CoT) reasoning using DeepSeek augmentation.
The model is designed to provide logical, structured, and interpretable answers, making it ideal for applications in education, tutoring, and automated reasoning.
Qwen/Qwen2.5-1.5B-Instructeagle0504/openai-gsm8k-enhanced-using-together-ai-deepseek-train8k-test1k-v1llama.cppen)Qwen/Qwen2.5-1.5B-Instructtransformers + unsloth + trlQ4_K_M, Q8_0, Q5_K_M, f16)🔗 Hugging Face Repository:
👉 Fine-tuned Qwen2.5-1.5B-Instruct
transformers in PythonYou can load and use the model with 🤗 transformers as follows:
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
# Load model and tokenizer
model_name = "your-repo-id"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
# Move model to GPU if available
device = "cuda" if torch.cuda.is_available() else "cpu"
model.to(device)
# Example inference
question = "Natalia sold clips to 48 of her friends in April, and then she sold half as many clips in May. How many clips did Natalia sell altogether in April and May?"
inputs = tokenizer(question, return_tensors="pt").to(device)
output = model.generate(**inputs, max_length=200)
# Decode response
print(tokenizer.decode(output[0], skip_special_tokens=True))
llama.cpp (Mac/Linux/Windows)The model is quantized into GGUF format and can run on Mac without a GPU using llama.cpp.
llama.cppbrew install llama.cpp
mkdir -p ~/llama_models && cd ~/llama_models
wget https://huggingface.co/your-repo-id/resolve/main/q8_0.gguf
llama-cli -m ~/llama_models/q8_0.gguf --interactive
Or you can use the following
llama-cli -hf eagle0504/qwen-2_5-1_5b-instruct-using-openai-gsm8k-data-enhanced-with-deepseek-v4:Q8_0
llama-cli -m ~/llama_models/q8_0.gguf -p "Explain quantum computing in simple terms."
The model was fine-tuned on:
🔹 eagle0504/openai-gsm8k-enhanced-using-together-ai-deepseek-train8k-test1k-v1
This dataset contains:
"question", "answer", "cot" (Chain-of-Thought)transformers + unsloth + trl1e-6bf16 or fp16)811024| Step | Training Loss | Reward | KL |
|---|---|---|---|
| 1 | 0.0000 | 0.0000 | 0.0000 |
| 500 | 0.0033 | 0.2617 | 0.0821 |
| 1000 | 0.0028 | 0.1359 | 0.0696 |
| 1500 | 0.0062 | 1.3781 | 0.1559 |
The model was evaluated on the 1K test samples and showed strong accuracy in multi-step problem-solving.
Example expected response:
To solve the problem, we first find the clips sold in May:
Clips in May = 48 / 2 = 24
Next, we find the total:
Total Clips = 48 + 24 = 72
#### Answer: 72
Estimated Carbon Emissions:
If you use this model in your research, please cite it as:
@misc{your_model_2024,
title={Fine-Tuned Qwen2.5-1.5B-Instruct on GSM8K with DeepSeek Augmentation},
author={Your Name},
year={2024},
url={https://huggingface.co/your-repo-id}
}
For questions, suggestions, or issues, reach out via Hugging Face Discussions.
🎉 Thank you for using this model! If you find it useful, please ⭐ it on Hugging Face! 🚀🔥