Downloads · 30 days
0
vochris/viet-customer-support-model
viet-customer-support-model is a text generation model from vochris. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
Vietnamese-first bilingual customer support LoRA adapter fine-tuned from Qwen2.5-3B-Instruct with Unsloth.
Downloads · 30 days
0
Access
Public
Updated Feb 20, 2026
Repo size
251 MB
Likes
0
Public
Click a slice to open those files.
.safetensors240 MB · 94%
From the Hugging Face model README
Vietnamese-first bilingual customer support LoRA adapter fine-tuned from Qwen2.5-3B-Instruct with Unsloth.
Qwen/Qwen2.5-3B-InstructInstruction:
{instruction}
User:
{input}
Assistant:
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
import torch
base = "Qwen/Qwen2.5-3B-Instruct"
adapter = "REPLACE_WITH_HF_REPO"
tok = AutoTokenizer.from_pretrained(base)
model = AutoModelForCausalLM.from_pretrained(base, torch_dtype=torch.bfloat16, device_map="auto")
model = PeftModel.from_pretrained(model, adapter)
prompt = """Instruction:
Bạn là nhân viên chăm sóc khách hàng tiếng Việt. Trả lời lịch sự, đồng cảm, và nêu bước tiếp theo rõ ràng.
User:
Xin chào, đơn hàng của tôi bị trễ 5 ngày. Mã đơn #A12345.
Assistant:
"""
inputs = tok(prompt, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=180, temperature=0.3, do_sample=True)
print(tok.decode(out[0], skip_special_tokens=True))