Downloads · 30 days
8
50% of all-time downloads
mixp123/lab21
lab21 is a text generation model from mixp123. 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.
Fine-tuned LoRA adapter on unsloth/Qwen3.5-4B for Customer Support (CSKH) ticket classification and 4-field JSON triage extraction.
Downloads · 30 days
8
50% of all-time downloads
All-time downloads
16
Public
Repo size
18.2 MB
Likes
0
Public
Click a slice to open those files.
.json18.2 MB · 100%
From the Hugging Face model README
Fine-tuned LoRA adapter on unsloth/Qwen3.5-4B for Customer Support (CSKH) ticket classification and 4-field JSON triage extraction.
unsloth/Qwen3.5-4Bq_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj)intent, urgency, product, sentiment)import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
base_model_id = "unsloth/Qwen3.5-4B"
adapter_id = "mixp123/lab21"
tokenizer = AutoTokenizer.from_pretrained(base_model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
base_model_id,
torch_dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True
)
model = PeftModel.from_pretrained(model, adapter_id)
prompt = "<|im_start|>system\nPhân loại ticket sau.<|im_end|>\n<|im_start|>user\nShop ơi, mình đặt chuột không dây VN232232. Cho tôi trả lại. Gấp.<|im_end|>\n<|im_start|>assistant\n"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=128)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))