Downloads · 30 days
135
50% of all-time downloads
mghafiri/qwen3.5-0.8B-decision-model
qwen3.5-0.8B-decision-model is a text classification model from mghafiri. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
A decision model fine-tuned from Qwen/Qwen3.5-0.8B-Base. It answers typed questions about a state and returns calibrated probability distributions, not generated text:
Downloads · 30 days
135
50% of all-time downloads
All-time downloads
268
Public
Parameters
752M
1.5 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors1.5 GB · 99%
From the Hugging Face model README
A decision model fine-tuned from
Qwen/Qwen3.5-0.8B-Base. It answers typed questions about a
state and returns calibrated probability distributions, not generated text:
| type | question | answer |
|---|---|---|
| Choice | pick one option from a set you define | choice, probabilities, confidence |
| Score | pick a position on ordered levels you describe | score (= Σ i·pᵢ), legend, probabilities, confidence |
| Noul | yes/no | noul = P(yes) |
The interface follows the publicly documented request/response shape of TypeSafe's System One API (docs). This is an independent open model. It is not affiliated with or endorsed by TypeSafe, and it is not Jev.
We sent the same 150 held-out scenarios (714 questions) to both
models, as identical POST /v1/systemone requests. None of these scenarios was used to train, select or
calibrate this model.
jev-1.13.0 through TypeSafe's hosted API.TypeSafe Jev (jev-1.13.0) | this model (0.8B, MacBook Pro (Apple M2 Max, 64 GB)) | |
|---|---|---|
| Accuracy (top answer = label's top answer) | 93.1% | 81.1% |
| Accuracy: Choice / Noul / Score | 93.9% / 94.1% / 90.3% | 81.2% / 81.6% / 80.0% |
| Brier (lower is better) | 0.042 | 0.158 |
| Log-loss vs the soft labels (lower is better)¹ | 0.957 | 0.615 |
| Calibration error, ECE: Choice / Noul / Score¹ | 0.088 / 0.018 / 0.118 | 0.037 / 0.026 / 0.059 |
| Choice answers with confidence ≥ 0.7: share automated, accuracy | 91% at 97% | 55% at 93% |
| Choice answers with confidence ≥ 0.9: share automated, accuracy | 83% at 100% | 4% at 100% |
| Latency per request, p50 / p95 | 1.3 s / 2.3 s (hosted API, incl. network) | 1.7 s / 5.2 s (local, no network) |
| Cost for the whole test set | $0.005 (128k input tokens) | $0, offline, on your own machine |
What this means:
The comparison script and a guide to reproduce it with your own TypeSafe API key are in the project repository
(scripts/compare_jev.py, docs/compare_jev.md).
Answer:. The probabilities are a
softmax of the next-token logits restricted to single-token labels: A… Z/ a… z for options and
levels, and yes/ no for Noul. Every answer is a valid distribution over exactly the options you
declared, from one forward pass per question, with no JSON parsing.(K·p_max − 1)/(K − 1), the definition published at
docs.typesafe.ai/confidence.CE(target, p) + 0.5·Brier(target, p), two strictly
proper scoring rules, against soft expert-agreement targets. TypeSafe has not published RLCD's actual
objective, so this is an approximation, not a reproduction.calibration.json and applied by the bundled jevlite package.from huggingface_hub import snapshot_download
import sys
path = snapshot_download("mghafiri/qwen3.5-0.8B-decision-model")
sys.path.insert(0, path) # bundled jevlite/ package
from jevlite.model import SystemOne
engine = SystemOne(path) # applies calibration.json automatically
print(engine.system_one(
state="Help! My payouts have been failing for 3 days.",
questions={
"is_urgent": {"type": "noul", "instructions": "Does this convey urgency?"},
"department": {"type": "choice", "instructions": "Which team should handle this?",
"criteria": {"billing": "Payments, invoicing, refunds",
"technical": "Bugs, outages, integrations",
"sales": "Pricing, upgrades, new accounts"}},
"frustration": {"type": "score", "instructions": "How frustrated is the customer?",
"criteria": ["Calm", "Frustrated", "Very angry"]},
},
))
The dataset has 2000 synthetic English scenarios (9716 questions), each a state plus 3–6 independent questions. It covers 32 domains: agent_tool_routing, airline_travel_ops, aml_kyc_compliance, app_marketplace_policy, banking_fintech, citation_verification, clinical_literature_screening, customer_support, cybersecurity_soc, ecommerce, education_admissions, energy_utilities, entity_matching, government_services, healthcare_admin, hr_recruiting, insurance_claims, it_helpdesk, legal_compliance, llm_guardrails, logistics_sales_crm, manufacturing_qa, news_claim_verification, payroll_benefits, procurement_vendor_risk, property_management, rag_passage_relevance, smart_home_iot, software_engineering, span_selection_extraction, telecom_support, trust_safety_moderation.
| epoch | train CE | val CE | val Brier | val acc |
|---|---|---|---|---|
| 0 | – | 0.966 | 0.375 | 0.562 |
| 1 | 0.777 | 0.743 | 0.227 | 0.738 |
| 2 | 0.578 | 0.714 | 0.211 | 0.762 |
| 3 | 0.483 | 0.737 | 0.210 | 0.783 |
| 4 | 0.457 | 0.658 | 0.180 | 0.786 |
| 5 | 0.423 | 0.669 | 0.177 | 0.797 |
| 6 | 0.404 | 0.673 | 0.174 | 0.808 |
| 7 | 0.390 | 0.662 | 0.174 | 0.797 |
| 8 | 0.381 | 0.664 | 0.171 | 0.803 |
| 9 (best, published) | 0.376 | 0.652 | 0.166 | 0.803 |
| 10 | 0.374 | 0.657 | 0.168 | 0.801 |
Accuracy compares the predicted argmax with the target argmax. Log-loss and Brier are measured against the soft targets. ECE uses 10 bins over the top-option probability (P(yes) for Noul).
| model | type | n | acc | log-loss | Brier | ECE | conf≥0.7 coverage / acc |
|---|---|---|---|---|---|---|---|
| base Qwen3.5-0.8B-Base | choice | 261 | 0.559 | 1.113 | 0.406 | 0.077 | 0.09 / 0.92 |
| base Qwen3.5-0.8B-Base | noul | 288 | 0.552 | 0.723 | 0.362 | 0.165 | – |
| base Qwen3.5-0.8B-Base | score | 165 | 0.479 | 1.188 | 0.399 | 0.117 | 0.15 / 0.71 |
| this model | choice | 261 | 0.808 | 0.702 | 0.191 | 0.034 | 0.55 / 0.93 |
| this model | noul | 288 | 0.812 | 0.468 | 0.141 | 0.028 | – |
| this model | score | 165 | 0.800 | 0.734 | 0.134 | 0.064 | 0.30 / 0.96 |
| model | option-permutation TVD (choice) | score MAE | latency p50 / p95 (ms, 1 request) |
|---|---|---|---|
| base Qwen3.5-0.8B-Base | 0.2010 | 0.562 | 53 / 729 |
| this model | 0.0574 | 0.255 | 52 / 87 |
confidence to route uncertain cases to a human or a larger model.