Downloads · 30 days
25
34% of all-time downloads
Eldenary/qwen-Customer-Service-lora
qwen-Customer-Service-lora is a text generation model from Eldenary. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as mit.
A LoRA adapter fine-tuned on top of Qwen/Qwen3-1.7B for Egyptian Arabic customer service conversations. The model handles real-world customer inquiries in colloquial Egyptian Arabic — order tracking, delivery issues,…
Downloads · 30 days
25
34% of all-time downloads
All-time downloads
73
Public
Repo size
50.2 MB
Likes
0
Public
Click a slice to open those files.
.json34.3 MB · 43%
From the Hugging Face model README
A LoRA adapter fine-tuned on top of Qwen/Qwen3-1.7B for Egyptian Arabic customer service conversations. The model handles real-world customer inquiries in colloquial Egyptian Arabic — order tracking, delivery issues, product questions, and complaint resolution.
This adapter was trained on a custom dataset of 257 multi-turn Egyptian Arabic customer service conversations using Low-Rank Adaptation (LoRA). Only the lightweight adapter weights are stored here; the base Qwen3-1.7B weights remain unchanged and are loaded separately at inference time.
This model is intended for Egyptian Arabic customer service chatbots. Load the adapter on top of the Qwen3-1.7B base model and query it directly with customer messages in Egyptian Arabic dialect. Example scenarios:
The adapter can be merged into the base model and integrated into a larger customer support pipeline, chatbot backend (e.g., FastAPI + React), or voice assistant targeting Egyptian Arabic-speaking users. It is well-suited as the language generation component in a retrieval-augmented or tool-calling customer service system.
Use the code below to get started with the model.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
import torch
base_model = "Qwen/Qwen3-1.7B"
adapter = "Eldenary/qwen-Customer-Service-lora"
# Load base model + adapter
model = AutoModelForCausalLM.from_pretrained(base_model, device_map="auto", torch_dtype=torch.float16)
model = PeftModel.from_pretrained(model, adapter)
model.eval()
tokenizer = AutoTokenizer.from_pretrained(adapter)
# Run a customer query in Egyptian Arabic
prompt = "الأوردر لسه موصلش."
messages = [{"role": "user", "content": prompt}]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
A custom dataset of 257 multi-turn customer service conversations in colloquial Egyptian Arabic, formatted as Qwen3 chat templates:
{
"conversations": [
{ "role": "user", "content": "السلام عليكم، عندي مشكلة في الأوردر." },
{ "role": "assistant", "content": "وعليكم السلام، تحت أمرك. ممكن تقولي رقم الأوردر؟" }
]
}
The dataset covers order tracking, delivery delays, product returns, refund requests, and general customer complaints — all in Egyptian Arabic dialect. No external dataset was used; the data was collected and curated manually.
Each conversation was passed through tokenizer.apply_chat_template() to produce the Qwen3 chat format string, then tokenized with truncation and padding to a maximum sequence length of 512 tokens. Labels were set equal to input_ids for standard causal language modeling (next-token prediction over the full sequence).
| Parameter | Value |
|---|---|
| Epochs | 5 |
| Per-device batch size | 2 |
| Gradient accumulation steps | 2 (effective batch size = 4) |
| Learning rate | 2e-4 |
| Max sequence length | 512 tokens |
| Optimizer | AdamW (Trainer default) |
| Checkpointing | Every 50 steps, last 2 kept |
LoRA configuration:
| Parameter | Value |
|---|---|
Rank (r) | 8 |
| Alpha | 16 |
| Dropout | 0.05 |
| Bias | none |
| Task type | CAUSAL_LM |
Evaluation focused on:
Formal automated metrics (BLEU, ROUGE, perplexity) were not computed. Evaluation was qualitative, assessing:
The model produces fluent, natural Egyptian Arabic responses to customer service queries within the training domain. It handles multi-turn context and resolves references to previously mentioned orders or issues. Performance drops noticeably on queries outside the customer service domain or in non-Egyptian Arabic dialects.
A lightweight LoRA adapter that adds Egyptian Arabic customer service capability to Qwen3-1.7B with minimal compute. Suitable for deployment in chatbot pipelines targeting Egyptian Arabic-speaking customers, with the caveat that it should always be paired with live data sources for order information.
BibTeX:
@misc{eldenary2025qwencustomerservice,
author = {Eldenary},
title = {Qwen3-1.7B Egyptian Arabic Customer Service LoRA},
year = {2026},
publisher = {HuggingFace},
howpublished = {\url{https://huggingface.co/Eldenary/qwen-Customer-Service-lora}}
}
APA:
Eldenary. (2025). Qwen3-1.7B Egyptian Arabic Customer Service LoRA [Model]. HuggingFace. https://huggingface.co/Eldenary/qwen-Customer-Service-lora
Open an issue on the GitHub repository for questions, feedback, or collaboration.