Downloads · 30 days
0
yashwanthjanke/qwen2.5-grpo-lora
qwen2.5-grpo-lora is a machine learning model from yashwanthjanke. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This is a GRPO (Generative Reward-Penalty Optimization) fine-tuned version of Qwen 2.5 using LoRA.
Downloads · 30 days
0
Access
Public
Updated Mar 31, 2025
Repo size
490 MB
Likes
0
Public
Click a slice to open those files.
.safetensors479 MB · 97%
From the Hugging Face model README
This is a GRPO (Generative Reward-Penalty Optimization) fine-tuned version of Qwen 2.5 using LoRA.
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
# Load the base model
model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5")
# Load the LoRA adapter
model = PeftModel.from_pretrained(model, "yashwanthjanke/qwen2.5-grpo-lora")
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5")
# Use the model
input_text = "Your prompt here"
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=100)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)