Downloads · 30 days
2
2% of all-time downloads
ZennyKenny/GRPO_LoRA_Qwen_3B
GRPO_LoRA_Qwen_3B is a machine learning model from ZennyKenny. 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 peft.
This model is a fine-tuned version of the unsloth/qwen2.5-3b-instruct-unsloth-bnb-4bit using Parameter-Efficient Fine-Tuning (PEFT) with the LoRA method.
Downloads · 30 days
2
2% of all-time downloads
All-time downloads
109
Public
Repo size
—
Likes
0
Public
Click a slice to open those files.
.safetensors240 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of the unsloth/qwen2.5-3b-instruct-unsloth-bnb-4bit using Parameter-Efficient Fine-Tuning (PEFT) with the LoRA method.
This model applies LoRA (Low-Rank Adaptation) to the Qwen2.5-3B-Instruct base model, targeting key projection modules for efficient fine-tuning. It is quantized to 4-bit precision using the Unsloth library to optimize for inference performance on lower-resource hardware.
This model is designed for natural language understanding and generation tasks, including:
Fine-tuning the model for specific NLP tasks, such as custom domain conversational agents.
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
tokenizer = AutoTokenizer.from_pretrained("unsloth/qwen2.5-3b-instruct-unsloth-bnb-4bit")
base_model = AutoModelForCausalLM.from_pretrained("unsloth/qwen2.5-3b-instruct-unsloth-bnb-4bit")
# Load LoRA adapter
model = PeftModel.from_pretrained(base_model, "path_to_your_adapter")
# Example inference
input_text = "Your input text here."
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs)
print(tokenizer.decode(outputs[0]))
lora_alpha: 64r: 64target_modules: ['v_proj', 'o_proj', 'up_proj', 'gate_proj', 'down_proj', 'q_proj', 'k_proj']bias: noneThis model was trained on the GSM8K dataset from OpenAI.
BibTeX:
@misc{your2025model,
title={Qwen2.5-3B-Instruct with LoRA Adapter},
author={Kenneth Hamilton},
year={2025}
}
APA:
Your Name. (2025). Qwen2.5-3B-Instruct with LoRA Adapter. Retrieved from Your repository link.