Text Classification
Transformers
English
Chinese
decision-model
system-one
jev
decision-index
calibrated-probabilities
qwen3.5
Instructions to use chen9z/Tally-0.8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use chen9z/Tally-0.8B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="chen9z/Tally-0.8B")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("chen9z/Tally-0.8B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Tally-0.8B
Tally-0.8B is a compact (~0.85B parameters), open-weights typed decision model built directly from stock Qwen/Qwen3.5-0.8B under Apache-2.0.
Instead of autoregressively generating text tokens, Tally-0.8B reads a state and one or more typed questions (choice up to 255 options, binary noul yes/no, or ordinal score) and returns temperature-calibrated probability distributions over all supplied options in a single prefill-only forward pass (0 generated tokens).
Architecture & Inference Spec
- Backbone:
Qwen3_5TextModel(24layers =18Gated DeltaNet linear-attention layers +6full-attention layers; vision tower and 248K LM head stripped ->1.50 GBinbfloat16). - Attention Mode (
noncausal_full): All 6 full-attention layers attend bidirectionally over every non-pad token (4Dboolean SDPA mask[B, 1, 1, T]), while the 18 linear-attention layers preserve causal recurrence over non-pad tokens. - Readout Head:
nn.Linear(1024, 255, bias=False)(readout.safetensors) reading the final prompt position (lastpooling) across 255 single-token option codes (A..Z,AA..JT). - Calibration: Scalar temperature
T = 1.395145fit post-selection on3,709strictly disjoint calibration decisions (0overlap with training or checkpoint selection), stored indecision_config.jsonand applied automatically. - Declared Capacity: Text-only;
2โ255options perchoicequestion; up to32,768input tokens per encoded question (0truncation โ requests exceeding capacity raiseUnsupported/ HTTP422).
Evaluation Results
Decision Index 0.3 Public Suite (140,178 / 140,178 scoreable requests answered, 0 unsupported)
- Complete public run archive:
chen9z/Tally-0.8B-decision-index-results
| Area / Metric | Weight | Skill Score | Raw Score | Benchmarks |
|---|---|---|---|---|
| Decision Index (Public 0.3) | 100.0% | 42.40 | 57.41% | 37 |
| โ Breadth Skill (Geometric Mean) | โ | 39.10 | โ | 37 |
| Tools & Automation | 18.3% | 65.39 | 68.72% | 5 |
| Retrieval & Classification | 20.0% | 59.77 | 69.07% | 6 |
| Language Understanding | 25.8% | 42.55 | 60.24% | 9 |
| Arts & Human Taste | 10.0% | 25.64 | 53.45% | 6 |
| Knowledge & Reasoning | 25.8% | 19.03 | 39.10% | 11 |
Selected public benchmark highlights (chance-corrected skill / native raw):
- BFCL:
85.82skill (89.49%raw) ยท When2Call MCQ:74.00skill (80.50%raw) ยท API-Bank:73.32skill (73.82%raw) ยท ToolRet:51.79skill - BANKING77:
88.87skill (89.01%raw) ยท CLINC150+OOS:84.94skill (85.03%raw) ยท HoVer:64.30skill (82.15%raw) ยท PhishNChips:63.70skill (81.85%raw) - FinEntity:
62.94skill ยท ContractNLI:62.82skill (74.29%raw) ยท HellaSwag:62.28skill (71.71%raw) ยท VAST:56.10skill
Held-Out Internal & Out-of-Distribution Acceptance (acceptance-v1)
| Split | Rows | Row Accuracy | Group-Family Accuracy | Calibrated NLL | Calibrated ECE10 |
|---|---|---|---|---|---|
open_jev_ood (Unseen Task Families) |
15,101 | 62.27% | 60.01% | 0.8157 | 9.25% |
open_jev_test (In-Distribution Holdout) |
9,750 | 59.79% | 63.76% | 0.9163 | 6.18% |
Training Lineage & Anti-Leakage Governance
- Cold-Start Clean Lineage: Trained directly from stock
Qwen/Qwen3.5-0.8B(4,800 ร 128Stage-1 DDP +16KStage-2 validation/calibration), with hard per-row cumulative exposure capped at<= 6across all pools. - Multi-Modal Leak Screening (
leak-screen-report-v5.2): 100% of candidate training, selection, and calibration files were screened against 45 evaluation targets (0surviving hits) across English 13-grams (distinct-passage DF), Chinese 20-char & short CJK stems,<13-word exact stems/URLs/symbolic expressions, ChessFEN4, structured numeric windows, and order/key-invariant MIDI pitch-set hashes (0POP909rows in training; music harmony trained strictly onJSB Choralestrainsplit + algorithmic music-theory progressions). - 3-Panel Split Isolation: Zero overlap in row ID, source group, conversation turns, or
>100-char candidate responses across Training, Selection, and Temperature Calibration panels. - Disclosed Boundaries: Effective training sequence lengths span up to
16Ktokens (32Ksupported at inference via Qwen3.5 RoPE + linear-attention layers). Candidate-only blind MLP probing is bounded to<= 2.5ppover chance on K-tuple synthetic boosters and<= 28ppon open-vocabulary multiple-choice slices.
Quickstart
1. Installation & GPU Acceleration
pip install "torch>=2.5" "transformers>=4.57" safetensors huggingface_hub
# Strongly recommended on NVIDIA GPUs (18/24 layers are GatedDeltaNet linear-attention;
# fused Triton/CUDA kernels are >10x faster than the pure-PyTorch reference fallback):
pip install flash-linear-attention causal-conv1d
curl -sSLO https://huggingface.co/chen9z/Tally-0.8B/raw/main/tally_engine.py
2. Python SDK (tally_engine.py)
from tally_engine import TallyDecider
decider = TallyDecider("chen9z/Tally-0.8B") # auto-selects cuda / mps / cpu
result = decider.decide(
state="Ticket #402: Customer upgraded to Pro plan yesterday, charged twice on Visa ending 4412.",
questions={
"queue": {
"type": "choice",
"instructions": "Route this ticket to the appropriate team.",
"criteria": {
"billing_refund": "Billing & duplicate charge refunds",
"tech_outage": "Infrastructure & API outage",
"account_delete": "GDPR account deletion",
},
},
"urgent_billing": {
"type": "noul",
"instructions": "Does this ticket report a duplicate payment?",
"criteria": {"false": "No", "true": "Yes"},
},
},
)
print(result)
3. /v1/systemone HTTP Server
python tally_engine.py serve --model chen9z/Tally-0.8B --host 127.0.0.1 --port 8000
4. Reproducing the Decision Index 0.3 Run
pip install -e ".[transformers]" flash-linear-attention causal-conv1d
PYTHONPATH="/path/to/tally_dir" python -m decision_index pipeline \
--edition 0.3 \
--suite-dir suite-0.3 \
--engine tally_engine:TallyEngine \
--option model=chen9z/Tally-0.8B \
--option max_input_tokens=32768 \
--option token_budget=16384 \
--out runs/Tally-0.8B