Downloads · 30 days
0
rudrakshrakeshzodage/CustomerGPT-0.5B-LoRA
CustomerGPT-0.5B-LoRA is a machine learning model from rudrakshrakeshzodage. 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.
This model card corresponds to CustomerGPT-0.5B-LoRA, a specialized customer support adapter fine-tuned on customer support conversations, intent classifications, and query enrichments. It is based on the lightweight…
Downloads · 30 days
0
Access
Public
Updated Aug 5, 2026
Repo size
46.7 MB
Likes
0
Public
Click a slice to open those files.
.safetensors35.2 MB · 69%
From the Hugging Face model README
This model card corresponds to CustomerGPT-0.5B-LoRA, a specialized customer support adapter fine-tuned on customer support conversations, intent classifications, and query enrichments. It is based on the lightweight Qwen/Qwen2.5-0.5B-Instruct base model, utilizing QLoRA (4-bit quantization + PEFT) for resource-friendly and fast execution.
The pipeline processes a raw dataset containing 26,872 support requests and expands it via data augmentation to enhance robustness.
| Split | Percentage | Records Count | Purpose |
|---|---|---|---|
| Train | 80% | 85,990 | Model gradient updates |
| Validation | 10% | 10,748 | Early stopping & hyperparameter tuning |
| Test | 10% | 10,750 | Final evaluation |
| Parameter | Configuration / Specification |
|---|---|
| Base Model | Qwen/Qwen2.5-0.5B-Instruct |
| Training Method | QLoRA (4-bit Quantization + LoRA) |
| Quantization Scheme | NormalFloat4 (nf4), Double Quantization, float16 compute type |
| LoRA Rank ($r$) | 16 |
| LoRA Alpha ($\alpha$) | 32 |
| LoRA Dropout | 0.05 |
| Target Modules | All linear layers (q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj) |
| Trainable Parameters | 8,798,208 (1.75% of total 502,830,976) |
| Optimizer | adamw_torch |
| Learning Rate (LR) | 2e-4 with Cosine Decay (ending at 0.0) |
| Effective Batch Size | 8 |
| Hardware | NVIDIA GeForce RTX 4060 Laptop GPU |
You can load this LoRA adapter directly using the transformers and peft libraries:
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model_name = "Qwen/Qwen2.5-0.5B-Instruct"
adapter_id = "rudrakshrakeshzodage/CustomerGPT-0.5B-LoRA"
# Load Tokenizer
tokenizer = AutoTokenizer.from_pretrained(base_model_name)
# Load Base Model
base_model = AutoModelForCausalLM.from_pretrained(
base_model_name,
torch_dtype=torch.float16,
device_map="auto"
)
# Attach LoRA Adapter
model = PeftModel.from_pretrained(base_model, adapter_id)
model.eval()
# Chat Format Example
system_prompt = "You are CustomerGPT, a helpful and professional customer support assistant."
messages = [
{"role": "system", "content": system_prompt},
{"role": "user", "content": "How to newsletter subscription"}
]
formatted_prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(formatted_prompt, return_tensors="pt").to("cuda")
with torch.no_grad():
outputs = model.generate(
**inputs,
max_new_tokens=256,
temperature=0.7,
top_p=0.9,
repetition_penalty=1.1,
pad_token_id=tokenizer.pad_token_id,
eos_token_id=tokenizer.eos_token_id
)
response = tokenizer.decode(outputs[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True)
print(response)