Qwen3.5-4B Decision
A Model for Classification and Decision-Making
2 min read
This new development based on the compact language model unsloth/Qwen3.5-4B is designed not for text generation, but for rapid data analysis and answering typed questions. Text (state) and a set of questions with multiple-choice options are fed into the model, and the output delivers precise decisions and calibrated probabilities for each option in a single pass. This solution is useful for automating customer support, parsing logs, or handling incidents.
Key features
- Typed questions: supports selection from choices (choice), binary answers (noul), and numeric levels (score).
- Probability calibration: outputs not just an answer, but a confidence score for each option.
- Efficiency: uses Unsloth's
FastDecisionModelarchitecture with 4-bit loading and weighs only about 195 MB (LoRA adapters and a special decision-making head). - Task optimization: trained on synthetic workflows, including invoice processing and support.
What you can do
- Automate support: classify incoming tickets by department (billing, tech support, sales) and determine urgency.
- Analyze queries: automatically check if a customer is requesting a refund or reporting an error.
- Integrate into pipelines: use for fast structured data filtering before passing it to main LLMs.
Example
from unsloth import FastDecisionModel
model, tokenizer = FastDecisionModel.from_pretrained(
model_name = "uncle-vlad/qwen3.5-4b-decision-lora",
max_seq_length = 2048,
load_in_4bit = True,
)
FastDecisionModel.for_inference(model)
answers = FastDecisionModel.predict(
model,
tokenizer,
"Hi, I was charged twice for invoice #4411.",
{
"team": {
"type": "choice",
"instructions": "Which team should handle this?",
"criteria": {"billing": "invoices", "technical": "bugs"},
}
},
)
print(answers)
Read more
DetailsBenchmarks: accuracy on the test dataset split is 75-78%, ECE (expected calibration error) is 0.02-0.06.
Requirements: requires a GPU and the Unsloth library (FastDecisionModel); the model does not work through standard text generators.
Limitations: maximum input length is 2048 tokens; trained on synthetic English-language data.
Training: LoRA (r=16) based on Qwen3.5-4B + a trained-from-scratch decision head (joint head).










Comments