Downloads · 30 days
505
6% of all-time downloads
eagle0504/qwen-2-5-3b-instruct-using-openai-gsm8k-data-enhanced-with-deepseek-v3
qwen-2-5-3b-instruct-using-openai-gsm8k-data-enhanced-with-deepseek-v3 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 Qwen/Qwen2.5-3B-Instruct, optimized for mathematical reasoning tasks using the OpenAI GSM8K dataset. The fine-tuning process enhances the model's ability to generate step-by-step…
Downloads · 30 days
505
6% of all-time downloads
All-time downloads
8.7K
Public
Parameters
3.1B
23.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.gguf13.6 GB · 69%
From the Hugging Face model README
This model is a fine-tuned version of Qwen/Qwen2.5-3B-Instruct, optimized for mathematical reasoning tasks using the OpenAI GSM8K dataset. The fine-tuning process enhances the model's ability to generate step-by-step explanations for grade school math problems, incorporating reasoning augmentation through DeepSeek. The model improves upon GSM8K’s standard answers by integrating additional contextual reasoning derived from DeepSeek’s small model.
I have adopted some code from Unsloth and here's an updated notebook on Colab. Please feel free to copy it and run it yourself.
You will need:
Goal Run Qwen-2.5-3B Instruct on Your Mac Using llama.cpp
Yes! You can run Qwen-2.5-3B Instruct on your Mac using llama.cpp. Here’s a step-by-step guide assuming you are starting from a clean macOS installation with only pyenv installed.
Homebrew is required to install llama.cpp.
Cmd + Space, type Terminal, and press Enter)./bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
llama.cpp via HomebrewRun:
brew install llama.cpp
Once installed, you should be able to use llama-cli.
llama-cliTo run the model, execute:
llama-cli -hf eagle0504/qwen-2-5-3b-instruct-using-openai-gsm8k-data-enhanced-with-deepseek-v3:Q8_0
If you encounter issues or need finer control, you may want to:
Check if llama-cli is installed:
llama-cli --version
If you see a version output, it’s installed correctly.
If the default Hugging Face loader doesn't work, you can manually download the model:
mkdir -p ~/llama_models && cd ~/llama_models
wget https://huggingface.co/eagle0504/qwen-2-5-3b-instruct-using-openai-gsm8k-data-enhanced-with-deepseek-v3/blob/main/unsloth.Q8_0.gguf
llama-cli -m ~/llama_models/Q8_0.gguf
Try prompting it:
llama-cli -m ~/llama_models/Q8_0.gguf -p "Explain quantum computing in simple terms."
or interactively:
llama-cli -m ~/llama_models/Q8_0.gguf --interactive
You can load this model with transformers:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "eagle0504/qwen-2-5-3b-instruct-using-openai-gsm8k-data-enhanced-with-deepseek-v3"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
# Example prompt
prompt = "A farmer has 24 apples. He gives 6 to each of his 3 children. How many does he have left?"
inputs = tokenizer(prompt, return_tensors="pt")
output = model.generate(**inputs, max_length=200)
print(tokenizer.decode(output[0], skip_special_tokens=True))
Compared to the base Qwen2.5-3B-Instruct, this fine-tuned model:
The model is hosted on Hugging Face Hub: 👉 eagle0504/qwen-2-5-3b-instruct-using-openai-gsm8k-data-enhanced-with-deepseek-v3
This model is released under the MIT License, allowing open usage and modifications.
If you have any questions or suggestions for improvements, feel free to reach out!