Instructions to use YellowPlus/AirDecision-4B-v1.2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use YellowPlus/AirDecision-4B-v1.2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="YellowPlus/AirDecision-4B-v1.2")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("YellowPlus/AirDecision-4B-v1.2") model = AutoModelForMultimodalLM.from_pretrained("YellowPlus/AirDecision-4B-v1.2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
AirDecision-4B-v1.2
AirDecision-4B-v1.2 is the standalone, self-contained release of YellowPlus's base-v6-hardsynth-half-soft-clean-aa-v3 structured decision model (selected at step 800 of 814), packaged with zero-dependency 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 supersedes AirDecision-4B-v1.1: same recipe and base weights, training data extended with spec-first O*NET-style workplace documents, rating-boundary pairs and multi-form symmetry variants.
Built on unsloth/Qwen3.5-4B (3764fa359b9082ea5a1e4a5e3ac3aaf6e9671636, vision tower frozen) and the Intern-Decision (565350244af860e1c276768cd80bdd9b8be93913) masked <decision> formulation, the model scores choice, noul (calibrated 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 = 1.0277606955606344, stored in calibration/calibration.json).
What changed from v1.1
| v1.1 | v1.2 | |
|---|---|---|
| Training rows / decisions | 68,440 / 101,316 | 72,283 / 111,252 (soft-labelled 90,847) |
| Seven-suite mean accuracy (public splits) | 91.11 | 91.38 |
| JevBench Hard (public, 111) | 83 | 86 |
| Held-out selection accuracy | 0.7939 | 0.8057 |
| Typed Decision (test, soft-gold): accuracy / KL / Brier / ECE | 0.799 / 0.075 / 0.041 / 0.176 | 0.7915 / 0.0791 / 0.0432 / 0.149 |
| AA DI v2 public-component self-test proxy (not an AA score) | 63.15 | 66.18 |
| Phrasing / order symmetry proxy (120 items, all forms within 5 pp) | 63 | 77 |
Added data (all seeded from public O*NET-SOC occupation and task statements, never from benchmark items; every row passed the same blacklist gate and leakage audit as v1.1):
onet-synth-v2(1,936 rows / 5,688 decisions): 596 synthetic workplace documents whose questions were written to a per-document specification (required answer, rating level, option count 4–25, perspective) and kept only when two blind labelling passes agreed with the specification. Yes/no items are half statements to verify (60% of the "no" items differ from the document in one precise detail); rating scales are evidence rubrics with balanced levels; multiple-choice items include large option sets (taxonomies, counts, stages).onet-boundary-pairs(143 rows): the same document in two versions differing by one evidence element, so one rating question moves by exactly one level.symmetry-forms(1,764 rows): every yes/no question ofonet-synth-v2in two of five forms (natural opposite, template negation, swapped definitions, double negation, statement/question restyle) with exactly permuted soft targets; choice questions with new option order or letter keys.
Key Technical Contributions
- Soft-Distribution Cross-Entropy Supervision: Trained from scratch on
unsloth/Qwen3.5-4Bacross 72,283 examples / 111,252 typed decisions, with 90,847 decisions supervised on full target probability distributions (-sum_i p_i log q_iat<decision>positions) rather than one-hot argmax labels—producing near-unit native calibration (T = 1.0278) and ~3× lower soft-gold KL / Brier than hard-label baselines. - Specification-First Blind-Verified Synthesis: Questions are generated to a sampled specification and accepted only when two independent blind labelling passes (thinking off / on) both return the specified answer, which lets the training distribution be shaped (balanced rating levels, large option sets, statement-style verification items) without letting the labelling model's own biases through.
- Multi-Form Symmetry Invariance: Each yes/no item appears in several negation / restyle forms with exactly permuted targets, and choice items in permuted or re-keyed option orders, so the model is trained to give the same probabilities whatever the wording or order.
- Upstream & Synthetic Corpus Decontamination Audit: Exact, n-gram Jaccard, and dense-embedding (
bge-m3) decontamination gates across all synthetic additions and upstream public training corpora (blacklist of 1,544,101 references incl. JevBench public, Typed Decision test, Decision Index test material, EvalSafe-O*NET-AA, WildGuardTest); zero leaks in the pre-training audit of every added batch. - Zero-XTuner Read-Only Sandbox Runtime: Standalone native-Transformers engine (
inference.py) and stdlib-only/v1/systemoneloopback server (serve.py,serve.sh) with in-memory SHA-256 calibration verification and pre-CUDA HTTP422boundary refusal, running cleanly 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 = 1.0277606955606344 (calibration/calibration.json, SHA-256 verified in-memory) |
| 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.2 --local-dir ./AirDecision-4B-v1.2
pip install -r ./AirDecision-4B-v1.2/requirements.txt
2. Run the JevBench / TypeSafe /v1/systemone Server
bash ./AirDecision-4B-v1.2/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.2 \
--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), andmax_options(62).GET /v1/models— returns OpenAI-style model list.POST /v1/systemone(aliases:/v1/decisions,/v1/jev,/api/alpha/decisions) — serializes GPU forward passes with a lock (1request per forward pass, no batching). Per-item schema or limit violations (>8,192tokens ->max_tokens_exceeded,>62options, reserved<decision>token in evidence) return HTTP422with JSON{"detail": "..."}.
3. Direct Python Usage
import sys
sys.path.insert(0, "./AirDecision-4B-v1.2")
from inference import DecisionEngine
engine = DecisionEngine("./AirDecision-4B-v1.2", 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-v3): 72,283 rows / 111,252 decisions, of which 90,847 carry full probability distributions trained with soft cross-entropy (-sum_i p_i log q_iat<decision>positions) and the remainder use hard cross-entropy.train.jsonlSHA-256d175326f81bcf2088be715ecf8fb4461ae8d117fe2ca05156ea1f5e921613432; held-out splits identical to v1.1 (1381ab647c4c6d3f50ce45aaa4056e3935fb03f2727e1ba60ef03686e4b20fc5). - Optimization: 2 epochs (814 steps), cosine learning rate
2e-6 -> 2e-7, warmup0.03, sequence packing16,384, global batch size8, vision tower frozen (training runrun_09fb889193dc47c4ac4a751c; selection, calibration and evaluation of the archived checkpoints inrun_7f7089c9a39544419e3079fb). - Checkpoint selection & calibration: Checkpoints were compared strictly on a held-out
selectionsplit (1,659rows /2,867decisions), and temperature scaling (T = 1.0277606955606344) was fitted strictly on a disjoint held-outcalibrationsplit (1,677rows /2,883decisions).
| Step | Held-out Selection Accuracy | Calibrated Selection NLL | Fitted Temperature T |
|---|---|---|---|
| 800 (selected) | 0.805720 | 0.552313 | 1.027761 |
| 814 | 0.801535 | 0.552660 | 1.010541 |
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. - Training mixture composition:
- v1.1 package (
68,440rows): 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 authored withdeepseek/deepseek-v4.1-flash) andaa-synth-v1(symmetry rows, When2Call-style deferral rows, O*NET-SOC-seeded workplace documents). - v1.2 additions (
3,843rows):onet-synth-v2(1,936),onet-boundary-pairs(143),symmetry-forms(1,764), all seeded from public ONET-SOC 31.0 occupation and task statements (onetcenter.org, CC BY 4.0) and written / labelled bydeepseek/deepseek-v4.1-flashwith blind two-pass 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.
- v1.1 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 whole-document cascade on a hit (17 documents removed fromonet-synth-v2). - Generation-stage checks against EvalSafe-O*NET-AA (150 documents / 7,500 questions): document
bge-m3cosine>= 0.85,>= 3shared non-boilerplate 8-grams or 13-gram containment>= 0.5, and question wording difflib>= 0.8all removed zero items (max cosine 0.76). - Pre-training leakage audit (exact, 8/13-gram, 5-gram Jaccard,
bge-m3cosine) of every added batch against JevBench, Typed Decision test, ToolACE, AG News, WildJailBreak, the held-out splits, EvalSafe-O*NET-AA and WildGuardTest: zero hits. - Scope note: screening against public splits cannot guarantee zero structural similarity to unseen sealed benchmark items; the synthetic documents are of the same genre (workplace documents with rubric questions) as EvalSafe-O*NET-AA.
- 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 = 1.0277606955606344), 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.0002 | 0.0053 |
| JevBench Original (public) | 71 / 72 | 98.61 | 0.0338 | 0.0305 |
| JevBench Hard (public) | 86 / 111 | 77.48 | 0.2971 | 0.0799 |
| AG News | 6903 / 7600 | 90.83 | 0.1482 | 0.0431 |
| ToolACE | 303 / 310 | 97.74 | 0.0363 | 0.0160 |
| Typed Decision (test) | 1586 / 2000 | 79.30 | 0.3222 | 0.1501 |
| WildJailBreak | 2115 / 2210 | 95.70 | 0.0721 | 0.0317 |
| Unweighted 7-suite mean | — | 91.38 | — | — |
- Typed Decision soft-gold protocol (
2,000test decisions; note thatLocalLLaMA/typed-decisionstrain split is in the training mix): accuracy0.7915, KL from gold0.0791, Brier0.0432, ECE0.1486. - 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.06, When2Call test87.76, HLE-MC text-only36.92, symmetry consistency77 / 120(64.2%), re-weighted public proxy66.18(v1.1: 82.43 / 87.67 / 38.18 / 63 / 120 / 63.15).
Full aggregate evaluation summaries are included under evaluation/.
Provenance & File Integrity
- Training run:
run_09fb889193dc47c4ac4a751c(814 steps; archived checkpoints hf-800asset_bfe8180752ab4bf7980d31c0, hf-814asset_28ca1cf2b7bb47a0808caf18); selection / calibration / evaluation:run_7f7089c9a39544419e3079fb(eval-only) - Training dataset SHA-256s:
train.jsonld175326f81bcf2088be715ecf8fb4461ae8d117fe2ca05156ea1f5e921613432, archivec7926c1519ace537eb5e291b56f7d24ba827ca1b883a6abf1194a415be8befb8,heldout1381ab647c4c6d3f50ce45aaa4056e3935fb03f2727e1ba60ef03686e4b20fc5 - Previous release:
YellowPlus/AirDecision-4B-v1.1(commitf444f770eac3aed8c14fe048bf8c21392fea7cf6)
| Standalone File | SHA-256 |
|---|---|
inference.py |
9b70b81cdd0b39cfa3dad277886059817dc4cc72d29ff76c8101c6b5477c2c4a |
serve.py |
02e099539cfc57fc769fe3fa4628251b3274dfeb238867177ae4c479b48b3553 |
serve.sh |
815b0942df89d59d39e40421a58a954d99f0010fcd7c87c73b9481eea3040854 |
requirements.txt |
8f0f2882262782578481c56e3cafd7f6941cf95ef4bab13ec88439cc07c070d4 |
NOTICE |
7541d52ce34ad0be7c05bc453106debdfbc571476a16628fed3469a96e293bae |
calibration/calibration.json |
21778e3b97fa6e5d723d0dc518db43ac0f6bad24cd5946a0792da1050f521b60 |
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
- 42