Downloads · 30 days
3
2% of all-time downloads
mjusdda/lab21-2A202601343-qwen35-triage-vi
lab21-2A202601343-qwen35-triage-vi is a text generation model from mjusdda. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
LoRA adapter fine-tuned by Đỗ Ngọc Anh (2A202601343) for Lab 21 of the VinUniversity AICB program. It converts a Vietnamese customer-support ticket into one JSON object containing intent, urgency, product, and sentiment.
Downloads · 30 days
3
2% of all-time downloads
All-time downloads
123
Public
Repo size
150 MB
Likes
0
Public
Click a slice to open those files.
.safetensors130 MB · 87%
From the Hugging Face model README
LoRA adapter fine-tuned by Đỗ Ngọc Anh (2A202601343) for Lab 21 of the
VinUniversity AICB program. It converts a Vietnamese customer-support ticket into one
JSON object containing intent, urgency, product, and sentiment.
This repository contains an adapter, not a standalone model. Load it on top of
unsloth/Qwen3.5-4B.
Full evaluation used 50 target samples and 15 general-regression samples. Generation was greedy on a Colab NVIDIA T4.
| Run | Target | Regression | JSON format | Latency (ms/sample) |
|---|---|---|---|---|
| Base + naive prompt | 0.000 | 0.7578 | 0.000 | 3370.5 |
| Base + optimized prompt | 0.765 | 0.7578 | 1.000 | 1066.3 |
| This LoRA adapter | 0.970 | 0.6778 | 1.000 | 1511.4 |
The adapter improves target score by +0.205 over the optimized-prompt baseline, but
regression drops by -0.080, beyond the allowed tolerance of -0.020. The formal
verdict is therefore FAILED. This is an honest experimental result, not a claim that
the adapter is production-ready. See submission/REPORT.md and
the machine-readable files under results/.
unsloth/Qwen3.5-4Br=16, alpha=321e-4import torch
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base_id = "unsloth/Qwen3.5-4B"
adapter_id = "mjusdda/lab21-2A202601343-qwen35-triage-vi"
tokenizer = AutoTokenizer.from_pretrained(base_id, trust_remote_code=True)
base = AutoModelForCausalLM.from_pretrained(
base_id,
trust_remote_code=True,
dtype=torch.float16,
device_map="auto",
)
model = PeftModel.from_pretrained(base, adapter_id)
ticket = "Shop ơi, đơn bàn phím cơ của tôi giao chậm quá. Nhờ kiểm tra gấp."
messages = [
{"role": "system", "content": "Phân loại ticket sau."},
{"role": "user", "content": ticket},
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True,
enable_thinking=False,
)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
with torch.no_grad():
output = model.generate(**inputs, max_new_tokens=160, do_sample=False)
print(tokenizer.decode(output[0, inputs.input_ids.shape[1]:], skip_special_tokens=True))
This adapter is intended for education, reproducibility, and experiments with Vietnamese ticket triage. Expected closed-vocabulary values are:
intent: doi_tra, van_chuyen, hoan_tien, san_pham_loi, hoi_thong_tinurgency: cao, trung_binh, thapsentiment: tieu_cuc, trung_tinh, tich_cucproduct: product name copied from the ticketurgency=trung_binh when the correct value was thap.submission/REPORT.mdresults/verdict.json,
results/runs.csv, and results/autopsy.jsonThe adapter follows the Apache-2.0 license declared by the base model. The accompanying lab code repository is separately licensed under MIT.