Downloads · 30 days
77
6% of all-time downloads
tradexy/ml-hamz-colab1-grpo_unsloth
ml-hamz-colab1-grpo_unsloth is a machine learning model from tradexy. 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 apache-2.0.
- Developed by: tradexy - License: apache-2.0 - Finetuned from model : unsloth/qwen2.5-3b-instruct-unsloth-bnb-4bit
Downloads · 30 days
77
6% of all-time downloads
All-time downloads
1.3K
Public
Repo size
7.4 GB
Likes
0
Public
Click a slice to open those files.
.gguf7.4 GB · 100%
From the Hugging Face model README
This qwen2 model was trained 2x faster with Unsloth and Huggingface's TRL library.
This model is a fine-tuned version of the Qwen2.5-3B-Instruct architecture, optimized for instruction-following tasks. The fine-tuning process was conducted using the GRPO (Gradient Reversal Pretraining Optimization) method to enhance performance on specific queries.
The fine-tuning was performed using the Unsloth Qwen2.5 (3B) GRPO Notebook. Key aspects of the training include:
Step - Training Loss - reward - reward_std - completion_length - kl
1 - 0.000000 - 0.125000 - 0.000000 - 200.000000 - 0.000000
2 - 0.000000 - 0.072375 - 0.248112 - 200.000000 - 0.000000
3 - 0.000000 - -0.079000 - 0.163776 - 182.500000 - 0.000005
To utilize this model for inference:
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("tradexy/ml-hamz-colab1-grpo_unsloth")
model = AutoModelForCausalLM.from_pretrained("tradexy/ml-hamz-colab1-grpo_unsloth")
input_text = "Your instruction here"
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
For local deployment on Windows (can also use wsl ubuntu) see Machine Learning With Hamza
https://github.com/Hmzbo/Fine-tune-LLMS-with-grp