"""Jev-Style-0.8B-Decision-v3: typed decisions with transformers / PyTorch (CUDA, MPS, CPU). Self-contained runtime for chaoliangUNSW/Jev-Style-0.8B-Decision-v3 (Apache-2.0). No dependency on any training code: rendering, verdict readout and calibration are implemented below and reproduce the reference implementation used for evaluation (see release_config.json -> "runtime_parity"). Calibration temperature: with no category (the default) probabilities use the global temperature of readout_config.json (temperatures.global = 0.880); pass category=... (CLI --category, JSONL "category") for the fitted group temperature of that category's family x question type x option-count bucket, or temperature=... to override (1.0 = uncalibrated scores). """ # ---------------------------------------------------------------------------------------------- # Shared core (identical in jev_style_decision.py, jev_style_decision_gguf.py and # jev_style_decision_mlx.py): input rendering, verdict readout, calibrated probabilities. # # Input layout ("macjev-render-v1"; token segments are encoded separately and concatenated): # # State:\n\n\n # Question []: \nOptions:\n # -