Downloads · 30 days
3
9% of all-time downloads
backache/lab21-qwen35-9b-triage-lora
lab21-qwen35-9b-triage-lora is a text generation model from backache. Use it when you need the model to write or continue text. It is set up for peft.
LoRA adapter fine-tuned from Qwen/Qwen3.5-9B for the VinUni AICB Day 21 Track 3 fine-tuning lab.
Downloads · 30 days
3
9% of all-time downloads
All-time downloads
34
Public
Repo size
193 MB
Likes
0
Public
Click a slice to open those files.
.safetensors173 MB · 90%
From the Hugging Face model README
LoRA adapter fine-tuned from Qwen/Qwen3.5-9B for the VinUni AICB Day 21 Track 3 fine-tuning lab.
The model classifies Vietnamese customer-support tickets into JSON with four fields:
intenturgencyproductsentimentQwen/Qwen3.5-9B
163243,278,3361e-430assistant-only| Model | Target | Regression | Format | Latency |
|---|---|---|---|---|
| Base + naive prompt | 0.000 | 0.7422 | 0.000 | 1434.7 ms |
| Base + optimized prompt | 0.815 | 0.7422 | 1.000 | 400.0 ms |
| LoRA fine-tune | 0.985 | 0.1333 | 1.000 | 499.4 ms |
The LoRA adapter substantially improves the target task from 0.815 to 0.985.
However, the regression score decreases from 0.7422 to 0.1333.
Therefore, the regression gate verdict is:
FAILED
This adapter is strongly specialized for the customer-support triage task and should not be treated as a general-purpose replacement for the base model.
The fine-tuned model shows domain over-specialization and catastrophic forgetting on general questions.
For example, general-knowledge questions may be incorrectly converted into customer-support JSON structures instead of being answered normally.
A possible next experiment is to mix approximately 1–5% general replay data into the training dataset and rerun the same regression gate.
This repository contains the PEFT LoRA adapter and supporting tokenizer/template files:
adapter_model.safetensorsadapter_config.jsontokenizer.jsontokenizer_config.jsonchat_template.jinjaThe original Qwen/Qwen3.5-9B base weights are not included.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model_id = "Qwen/Qwen3.5-9B"
adapter_id = "backache/lab21-qwen35-9b-triage-lora"
tokenizer = AutoTokenizer.from_pretrained(adapter_id)
base_model = AutoModelForCausalLM.from_pretrained(
base_model_id,
torch_dtype="auto",
device_map="auto",
)
model = PeftModel.from_pretrained(
base_model,
adapter_id,
)
model.eval()
The main LoRA run used:
max_length=2048assistant-only loss masking23.26 GB0.2797Training was performed on an NVIDIA L40 GPU.
GitHub:
https://github.com/vinhphamv2303-arch/Day21-Track3-Finetuning-Lab
The adapter achieved strong task-specific performance but failed the general-capability regression gate. The evaluation results are intentionally reported as-is rather than modifying the regression threshold or evaluation set.