QWEN_to_JEV_LoRA

A decision model: Qwen3.5-4B fine-tuned with LoRA using Unsloth's FastDecisionModel. It does not generate text. It reads an input, scores the options for each question, and returns a decision with a calibrated probability, all in one forward pass.

Question types

Type Output
choice one option (e.g. which team handles a ticket)
noul True / False
score a level number (e.g. urgency)

Usage

from unsloth import FastDecisionModel
import json
from datasets import load_dataset

model, tokenizer = FastDecisionModel.from_pretrained(
    model_name = "mo22zy/QWEN_to_JEV_LoRA",
    max_seq_length = 2048,
    load_in_4bit = True,
)

state = "I was charged twice and now I get error 403. I need access before my presentation tomorrow."
# questions must follow the dataset schema
questions = json.loads(load_dataset("LocalLLaMA/typed-decisions", "all", split="test")[0]["questions"])

answers = FastDecisionModel.predict(model, tokenizer, state, questions)
for name, r in answers.items():
    print(name, r["answer"], {k: round(v, 3) for k, v in r["probabilities"].items()})

Training

Setting Value
Framework Unsloth + TRL (DecisionTrainer)
Quantization 4-bit
LoRA r=16, alpha=16, dropout=0
Steps 60 (about 1.7 epochs)
Batch size 8 x 4 gradient accumulation = 32
Learning rate 2e-4, cosine schedule, 10 warmup steps
Weight decay 0.01
Seed 3407
Max sequence length 2048

Calibration was fitted on a held-out split of the training data. The test split was not used for training or calibration.

Evaluation

Metric Held-out (calibration) Test split
Accuracy 79.25% 77.95%
ECE 0.0278 0.0335
Loss 1.1480 1.1905

Accuracy before training was about 30% (near random).

Example: for a ticket about a double charge and a 403 login error, urgency confidence went from 0.26 (before) to 0.99 (after), and the case was flagged for human review.

Intended use

Ticket triage, routing, urgency scoring, and lightweight classification before calling a larger LLM or a tool.

Limitations

  • About 78% accuracy: not suitable for fully automated decisions. Use a confidence threshold and send low-confidence cases to a human.
  • Trained on one public dataset; accuracy on your own data may differ. Fine-tune on your own tickets before production use.
  • Questions and options must follow the dataset schema.
Downloads last month
33
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for mo22zy/QWEN_to_JEV_LoRA

Finetuned
Qwen/Qwen3.5-4B
Adapter
(263)
this model

Dataset used to train mo22zy/QWEN_to_JEV_LoRA