Qwen 3.5 4B Typed Decisions
A Model for Fast Analysis and Structured Text Classification
2 min readupdated
This model is built on unsloth/Qwen3.5-4B and fine-tuned using LoRA (a lightweight add-on for the base model) to simultaneously evaluate multiple structured questions on incoming text data. Instead of slowly generating tokens one by one, the model uses a special classification head that outputs decision probabilities in a single pass. Classification accuracy on the test set reaches 78.05%, and computation is faster thanks to the architecture. This model will be useful for developers and engineers who need to automate support ticket processing, email classification, or review analysis.
Key features
- Single pass: Simultaneous evaluation of multiple questions, including categories, yes/no, and scales.
- Confidence calibration: Output probabilities closely match real accuracy.
- High efficiency: Reduced latency and resource consumption compared to traditional generative methods.
- Unsloth optimization: The model is trained using efficient weight merging methods in 16-bit format.
What you can do
- Support automation: Distribute incoming tickets to departments and evaluate urgency.
- Review analysis: Simultaneously check text for sentiment, complaints, and problem category.
- Data classification: Quickly process arrays of text documents according to specified criteria and schemas.
Example
Example code for running inference using the FastDecisionModel interface:
from unsloth import FastDecisionModel
import torch
model, tokenizer = FastDecisionModel.from_pretrained(
model_name = "benndevx/qwen-3.5-4b-td-16bit",
max_seq_length = 2048,
load_in_4bit = True,
)
FastDecisionModel.for_inference(model)
context = "Hi, I was charged twice for invoice #4411. Please refund the duplicate today."
questions = {
"team": {
"type": "choice",
"instructions": "Which team should handle this?",
"criteria": {
"billing": "invoices, payments, refunds",
"technical": "bugs, outages, errors",
},
},
}
answers = FastDecisionModel.predict(model, tokenizer, context, questions)
print(answers)
Read more
Details• Accuracy: up to 80.25% on the holdout set and 78.05% on the test set.
• Calibration error (ECE): reduced to 0.0288.
• Training parameters: LoRA Rank (r) = 32, LoRA Alpha = 16, learning rate 2e-4.
• Available formats: 16-bit, 4-bit quantization, and GGUF for local execution.










Comments