Instructions to use YellowPlus/AirDecision-4B-v1.3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use YellowPlus/AirDecision-4B-v1.3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="YellowPlus/AirDecision-4B-v1.3")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("YellowPlus/AirDecision-4B-v1.3") model = AutoModelForMultimodalLM.from_pretrained("YellowPlus/AirDecision-4B-v1.3", device_map="auto") - Notebooks
- Google Colab
- Kaggle
AirDecision-4B-v1.3
AirDecision-4B-v1.3 is the standalone, self-contained release of YellowPlus's base-v6-hardsynth-half-soft-clean-aa-v5 structured decision model (selected at step 992 of 992), packaged with offline inference (inference.py) and a TypeSafe-compatible loopback HTTP server (serve.py, serve.sh) for reproducible evaluation on JevBench and single-pass decision workloads. It follows AirDecision-4B-v1.2: same recipe and base weights, more training data (tool-reply items with verified sharp targets, hard knowledge questions with deliberately uncertain targets, option-order variants), and one change in the server: yes/no answers on /v1/systemone commit to a side (see below).
Built on unsloth/Qwen3.5-4B (3764fa359b9082ea5a1e4a5e3ac3aaf6e9671636, vision tower frozen) and the Intern-Decision (565350244af860e1c276768cd80bdd9b8be93913) masked <decision> formulation, the model scores choice, noul (binary probability), and score (ordinal expectation) questions in one causal forward pass with zero generated output tokens (output_tokens = 0) and post-hoc temperature scaling (T = 0.97893069720783, stored in calibration/calibration.json).
What changed from v1.2
| v1.2 | v1.3 | |
|---|---|---|
| Training rows / decisions | 72,283 / 111,252 | 87,065 / 131,135 (soft-labelled 108,874) |
| Seven-suite mean accuracy (public splits) | 91.38 | 91.70 |
| JevBench Hard (public, 111) | 86 | 85 |
| Held-out selection accuracy | 0.8057 | 0.8120 |
| Typed Decision (test, soft-gold): accuracy / KL / Brier / ECE | 0.7915 / 0.0791 / 0.0432 / 0.149 | 0.8055 / 0.0798 / 0.0425 / 0.149 |
| AA DI v2 public-component self-test proxy (not an AA score) | 66.18 | 68.00 |
| Phrasing / order symmetry proxy (120 items, all forms within 5 pp) | 77 | 79 |
Yes/no answers on /v1/systemone |
calibrated probability | commit policy (never inside (0.19, 0.81)) |
Not everything improved: JevBench Hard is one item lower, Typed Decision KL is slightly worse, and When2Call has more wrong answers at confidence ≥ 0.95 than v1.2 (the price of the sharper tool-reply targets).
Added data (14,782 rows; nothing is seeded from or copied out of a benchmark item; every row passed the same blacklist gate as v1.2):
toolreply-synth-v1(4,270 rows): fully synthetic tool-use items. An invented toolset and a user request with four candidate replies (a tool call, a request for a missing detail, a "cannot help", an unfounded direct answer), kept only when two blind passes of the labelling model (thinking off / on) pick the intended reply; target 0.97 on the right reply, two option orders per item. The 340 older verified four-reply rows were re-targeted from 0.91 to 0.97.hard-knowledge-v1/-v2(1,515 + 3,489 rows): original graduate-level multiple-choice questions (5–26 options) whose soft targets keep the uncertainty instead of filtering it out; where the previous model version answered a question wrong, its target is flattened further. They teach the model to answer low when it does not know.- Option-order / key-name variants (4,986 rows) of existing choice rows, and 522 O*NET-SOC-seeded workplace-document rows on which two labelling rounds disagreed (targets carry the disagreement). 1,370 existing knowledge rows were re-targeted by difficulty.
Key Technical Contributions
- Soft-Distribution Cross-Entropy Supervision: Trained from the base weights on 87,065 examples / 131,135 typed decisions, with 108,874 decisions supervised on full target probability distributions (
-sum_i p_i log q_iat<decision>positions) rather than one-hot labels, giving near-unit native calibration (T = 0.979). - Targets that say how sure to be: verified, unambiguous item types get sharp targets (0.97); questions the labellers or the previous model could not answer get flat ones. Confidence on When2Call-style items at ≥ 0.95 went from 1% of items (v1.2) to 70%, while confidence ≥ 0.7 on HLE-style questions fell from 35% to 22% of items.
- Specification-First Blind-Verified Synthesis and Multi-Form Symmetry Invariance, as in v1.2.
- Decontamination: blacklist gate of 1,544,101 references on every added row, plus a post-training audit of all added rows against 18 evaluation sets (details and one disclosed finding below).
- Read-Only Sandbox Runtime: standalone native-Transformers engine (
inference.py) and stdlib-only loopback server (serve.py,serve.sh) with in-memory SHA-256 calibration verification, running in--network none --read-onlyevaluation containers.
Architecture & Inference Contract
| Property | Value |
|---|---|
| Base architecture | Qwen3_5ForConditionalGeneration (unsloth/Qwen3.5-4B@3764fa359b9082ea5a1e4a5e3ac3aaf6e9671636) |
| Decision protocol | Intern-Decision single causal prefill over masked <decision> assistant skeleton |
| Precision / attention | bfloat16, PyTorch sdpa (native transformers, no XTuner runtime required) |
| Max context length | 8,192 input tokens (truncation forbidden; oversized inputs cleanly return HTTP 422 before touching CUDA) |
| Max options / questions | 62 single-token symbols (A–Z, a–z, 0–9) per question; up to 16 questions per request |
| Output tokens / sampling | 0 output tokens; deterministic single pass (no CoT, no sampling, no retries, no ensembles) |
| Calibration | Post-hoc temperature scaling T = 0.97893069720783 (calibration/calibration.json, SHA-256 verified in-memory); yes/no commit policy on /v1/systemone only |
| Container compatibility | Safe under --network none --read-only (HF_HUB_OFFLINE=1, PYTHONDONTWRITEBYTECODE=1, zero disk writes) |
Quickstart
1. Download & Install Runtime Dependencies
hf download YellowPlus/AirDecision-4B-v1.3 --local-dir ./AirDecision-4B-v1.3
pip install -r ./AirDecision-4B-v1.3/requirements.txt
2. Run the JevBench / TypeSafe /v1/systemone Server
bash ./AirDecision-4B-v1.3/serve.sh --host 127.0.0.1 --port 8000
Verify health and run the JevBench harness (typesafe adapter):
curl -s http://127.0.0.1:8000/health | python3 -m json.tool
python3 -m jevbench.cli run \
--adapter typesafe \
--model AirDecision-4B-v1.3 \
--endpoint http://127.0.0.1:8000 \
--key-env "" \
--dataset datasets/public/hard.jsonl
Server routes & error semantics (serve.py):
GET /health(aliases:/v1/health,/v1/model) — returns200JSON with model name, calibrated temperature,max_length(8192),max_options(62) and the yes/no policy of each route.GET /v1/models— returns OpenAI-style model list.POST /v1/systemone— the decision route used by the JevBenchtypesafeadapter. Serializes GPU forward passes with a lock (1request per forward pass, no batching). Yes/no answers follow thecommitpolicy described below.POST /v1/decisions(aliases:/v1/jev,/api/alpha/decisions) — same request and response; yes/no answers are the temperature-scaled probabilities, unchanged.- Per-item schema or limit violations (
>8,192tokens ->max_tokens_exceeded,>62options, reserved<decision>token in evidence) return HTTP422with JSON{"detail": "..."}.
Yes/no answers on /v1/systemone: the commit policy
JevBench reads a yes/no answer as "yes" only at P(yes) >= 0.80, as "no" only at P(yes) <= 0.20, and scores anything in between as an abstention (wrong). A calibrated model is often 60–80% sure, and such an answer then counts as wrong even when it leans to the right side. On /v1/systemone this release therefore never reports a P(yes) strictly inside (0.19, 0.81): a value in that band is moved to the edge on the side it already leans to (0.81 or 0.19). Nothing else changes:
- The yes/no decision (which side of 0.5) is never changed; answers outside the band, and all
choice/scoreanswers, are returned exactly as calibrated. - It is a fixed output rule (
inference.commit_noul), not something fitted on benchmark items. Every response states the policy incalibration.noul_policy, and an answer that was moved carries the original value ascalibrated_noul. - The cost is calibration: an answer the model holds at 0.6 is reported at 0.81. On our harder internal yes/no validation items the yes/no ECE rises by about 0.04. Use
/v1/decisions(or--systemone-noul-policy calibrated, orDecisionEngine(..., noul_policy="calibrated"), the Python default) whenever the probability itself is what you consume.
Measured with this repository's serve.sh on both routes, real weights (release check run_dfd289f7021c4f4580e87fd5; all choice and score answers are identical on the two routes):
| Yes/no items | Moved by the policy | Correct under the 0.80 / 0.20 rule: /v1/decisions → /v1/systemone |
Correct by argmax | Yes/no ECE |
|---|---|---|---|---|
| JevBench public (74 of the 231 items) | 10 | 62 → 68 | 68 | 0.075 → 0.070 |
| Internal harder validation set (102 items, never trained on) | 39 | 45 → 65 | 65 | 0.196 → 0.232 |
3. Direct Python Usage
import sys
sys.path.insert(0, "./AirDecision-4B-v1.3")
from inference import DecisionEngine
engine = DecisionEngine("./AirDecision-4B-v1.3", device="cuda", dtype="bfloat16", max_length=8192)
response = engine.predict({
"state": {"ticket": "Invoice charged twice for subscription renewal", "tier": "pro"},
"questions": {
"route": {
"type": "choice",
"instructions": "Select the handling queue.",
"criteria": {
"billing": "Payment, invoice, or refund issues",
"technical": "Product bugs or outages",
},
},
"refund_eligible": {
"type": "noul",
"instructions": "Is the customer eligible for an immediate duplicate-charge refund?",
},
},
})
print(response["answers"])
Training Recipe & Data / Contamination Disclosure
Training Summary
- Training package (
v6-hs-half-soft-clean-aa-v5): 87,065 rows / 131,135 decisions, of which 108,874 carry full probability distributions trained with soft cross-entropy and the remainder use hard cross-entropy.train.jsonlSHA-256481b9d8aa25724e5cf4fa1fc8cc4746dd87a62dbb70703b4d1e6043e5976e332; held-out splits identical to v1.1 / v1.2 (1381ab647c4c6d3f50ce45aaa4056e3935fb03f2727e1ba60ef03686e4b20fc5). - Optimization: 2 epochs (992 steps), cosine learning rate
2e-6 -> 2e-7, warmup0.03, sequence packing16,384, global batch size8, vision tower frozen (training, selection, calibration and evaluation inrun_3e607b6a1b5a4df1bf27a82d). - Checkpoint selection & calibration: Checkpoints were compared on a held-out
selectionsplit (1,659rows /2,867decisions), and temperature scaling (T = 0.97893069720783) was fitted on a disjoint held-outcalibrationsplit (1,677rows /2,883decisions).
| Step | Held-out Selection Accuracy | Calibrated Selection NLL | Fitted Temperature T |
|---|---|---|---|
| 900 | 0.806418 | 0.542103 | 0.961198 |
| 992 (selected) | 0.811999 | 0.535822 | 0.978931 |
JevBench & Benchmark Decontamination Disclosure
- Zero JevBench data in training, selection, or calibration: No JevBench items (neither the 231 public items across
easy/original/hard, nor any sealed/canary items) were included intrain.jsonl,selection, orcalibration. Thecommityes/no policy is a fixed rule motivated by the published JevBench yes/no scoring thresholds; its bounds were not tuned on JevBench items. - Training mixture composition:
- v1.2 package (
72,283rows): public train splits (LocalLLaMA/typed-decisionstrain,nvidia/When2Calltrain, curated tasksource classification/decision train splits; 39 rows flagged in the November 9 leakage audit removed),hard-synth-v1(synthetic multi-constraint policy/risk/scoring scenarios in the style of the public JevBench split, decontaminated against it),aa-synth-v1and the v1.2 O*NET-SOC-seeded additions. - v1.3 additions (
14,782rows):toolreply-synth-v1(4,270),hard-knowledge-v1(1,515),hard-knowledge-v2(3,489), option-order / key-name variants (4,986), ONET two-round disagreement rows (522), written and labelled bydeepseek/deepseek-v4.1-flashwith blind verification. No benchmark item (EvalSafe-ONET-AA, When2Call test, HLE, JevBench, Typed Decision test) was used as a seed or shown to the generating model. The targets of the hard-knowledge rows use the predictions of earlier AirDecision checkpoints on those same synthetic rows, never on evaluation items.
- v1.2 package (
- Automated decontamination gates:
- Every added row passed the training-plan blacklist gate (
1,544,101references: JevBench public, Decision Index test material, Typed Decision test, AA public components, lockbox, fast-decisions, Intern-Decision test suites, training sources' held-out) under the cross-upstream rule (exact match, any shared non-boilerplate 8-gram, 5-gram Jaccard>= 0.7), with batch-level cascade on a hit. For the tool-reply and hard-knowledge-v2 lines, 274 of 8,378 candidate rows were direct hits (shared 8-grams, mostly tool-description and question-form boilerplate) and 345 more were removed with their batches. - Audit of the 7,759 rows of those two lines against 18 evaluation sets (37,938 items; JevBench, Typed Decision test, When2Call, HLE, EvalSafe-O*NET-AA, WildGuardTest and others), run after training: 0 exact matches, 0 shared 13-grams, 0 pairs with 5-gram Jaccard
>= 0.5; highestbge-m3cosine 0.883 (tool items, driven by the JSON tool-definition format; the top pairs were read and differ in request and answer). - Disclosed finding: 6 training rows (3 synthetic tool items × 2 option orders) describe the same common situation as 2 When2Call test items (rescheduling an appointment without giving its ID; marking a task done with no tool for it). Toolsets, wording, values and candidate replies differ (request similarity 0.54–0.64); we judge them independent coincidences and did not retrain. Both test items were already answered correctly by v1.2. The bound on the When2Call effect is 2 of 3,652 items.
- Scope note: screening against public splits cannot guarantee zero structural similarity to unseen sealed benchmark items.
- Every added row passed the training-plan blacklist gate (
Internal Public-Split Diagnostics
Note: All figures below are YellowPlus internal reproducible measurements on public splits (1× NVIDIA RTX PRO 6000,
bfloat16,T = 0.97893069720783, calibrated probabilities without thecommitpolicy unless stated), not official sealed JevBench or Artificial Analysis leaderboard scores.
Official Intern-Decision accuracy-v1 Seven-Suite Evaluation
| Suite (Public Test Split) | Correct / Total | Accuracy (%) | Multiclass Brier | Top-Label ECE |
|---|---|---|---|---|
| JevBench Easy (public) | 48 / 48 | 100.00 | 0.0000 | 0.0019 |
| JevBench Original (public) | 71 / 72 | 98.61 | 0.0155 | 0.0268 |
| JevBench Hard (public) | 85 / 111 | 76.58 | 0.3138 | 0.0844 |
| AG News | 6913 / 7600 | 90.96 | 0.1525 | 0.0542 |
| ToolACE | 305 / 310 | 98.39 | 0.0348 | 0.0168 |
| Typed Decision (test) | 1614 / 2000 | 80.70 | 0.3126 | 0.1505 |
| WildJailBreak | 2136 / 2210 | 96.65 | 0.0568 | 0.0251 |
| Unweighted 7-suite mean | — | 91.70 | — | — |
Typed Decision soft-gold protocol (
2,000test decisions; note thatLocalLLaMA/typed-decisionstrain split is in the training mix): accuracy0.8055, KL from gold0.0798, Brier0.0425, ECE0.149.Known-distribution calibration pilot (
96/96cases): seeevaluation/pilot-calibrated-summary.md.AA Decision Index v2 public-component self-test proxy (public components + self-built phrasing/order symmetry proxy only; excludes private AA-Paperclip and AA-Omniscience-Decision): EvalSafe-O*NET-AA
83.99, When2Call test87.42, HLE-MC text-only41.24, symmetry consistency79 / 120(65.8%), re-weighted public proxy68.00(v1.2: 83.06 / 87.76 / 36.92 / 77 / 120 / 66.18).Backend note: the tables above come from the training job's XTuner backend. The standalone engine in this repository (
inference.py, native Transformers; checked with torch 2.15.0 / transformers 5.24.1) gives slightly different probabilities inbfloat16: on the 231 public JevBench items the mean absolute difference is 0.006, the top answer differs on 2 items, and 205 are correct instead of 204 (Easy 48/48, Original 72/72, Hard 85/111).
Full aggregate evaluation summaries are included under evaluation/.
Provenance & File Integrity
- Training run:
run_3e607b6a1b5a4df1bf27a82d(992 steps; selected checkpoint hf-992, assetasset_c15f08b718c34a6aa687ea4a) - Training dataset SHA-256s:
train.jsonl481b9d8aa25724e5cf4fa1fc8cc4746dd87a62dbb70703b4d1e6043e5976e332, archivea02cffbc20585b519c9f27a94426a4e4a6e3722adae1f46dd9bb2a1091fac55c,heldout1381ab647c4c6d3f50ce45aaa4056e3935fb03f2727e1ba60ef03686e4b20fc5 - Previous release:
YellowPlus/AirDecision-4B-v1.2(commit18efb92c4d0a282a5ce26136ad29b0531c0de3f7)
| Standalone File | SHA-256 |
|---|---|
inference.py |
84c7f55f4fa1f741d647a6798c5fc42687ecdbebe76282ff39b9b10fa01e0109 |
serve.py |
99ab034c2354d1de3882ad85ae4d8f2c0da396f6062e7d9684d3f1926d2b442b |
serve.sh |
0a457a64db9fb92d14e0c658fb5efc4be2679a5ea5246397b2d92d0d4fe7ea04 |
requirements.txt |
8f0f2882262782578481c56e3cafd7f6941cf95ef4bab13ec88439cc07c070d4 |
NOTICE |
e8da5b6b6a620718423df58e71959a9adbffdf76948a312efc9e784826686242 |
calibration/calibration.json |
bd13bc84273002eb3e583222e07f8593f362f073b69cb322b55d96dae9f944fa |
SHA-256 digests for all weight shards and tokenizer/config files are recorded in provenance/model-files.json and verified at startup via calibration/calibration.json.
License
Released under the Apache License, Version 2.0 (LICENSE and NOTICE), retaining upstream Apache-2.0 attributions for Qwen/Qwen3.5-4B (Copyright 2026 Alibaba Cloud) and InternLM/Intern-Decision.
Contact: YellowPlus (https://yellowplus.app)
- Downloads last month
- -