Views
No views yet
unsloth/Qwen3.5-4B để phân loại ticket chăm sóc khách hàng
tiếng Việt thành JSON triage (intent, urgency, product, sentiment). Bài lab 21 —
Fine-tuning LLMs (LoRA/QLoRA).| Hạng mục | Giá trị |
|---|---|
| Base model | unsloth/Qwen3.5-4B |
| Vị trí LoRA | text-linear (12 module) |
| Rank (r) | 16 |
| Trainable params | 32,464,896 |
| Learning rate | 1e-4 |
| Epochs / steps | 2 / 30 |
| Train / val | 225 / 25 mẫu (seed 42) |
| Precision | 16-bit |
| Metric | Giá trị |
|---|---|
| target accuracy | 0.965 |
| format validity | 1.000 |
| latency | 1454.5 ms |
| regression (năng lực chung) | 0.4556 (base: 0.7578) |
1from peft import PeftModel
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4BASE = "unsloth/Qwen3.5-4B"
5tok = AutoTokenizer.from_pretrained(BASE)
6model = AutoModelForCausalLM.from_pretrained(BASE, device_map="auto")
7model = PeftModel.from_pretrained(model, "Marvis12957/ai_in_action_lab21")