Run this model with HF Jobs

Run chen9z/Tally-0.8B on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/chen9z/Tally-0.8B. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/chen9z/Tally-0.8B on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Tally-0.8B

Tally-0.8B is a compact (~0.85B parameters), open-weights typed decision and bilingual reranking model built 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 bucket-calibrated probability distributions over all supplied options in a single prefill-only forward pass (0 generated tokens). The same single-pass binary readout doubles as a strong English & Chinese cross-encoder reranker with native instruction-following support.

Architecture & Highlights

  • Backbone: Qwen3.5-0.8B hybrid architecture (18 GatedDeltaNet linear-attention layers + 6 full-attention layers) + 255-slot linear readout head (0 generated tokens, 32,768 token context).
  • Block-Bidirectional + O(T) Prefix Caching: Full-attention layers use block_bidirectional attention (bidirectional within the shared state prefix, bidirectional from each question suffix over prefix + suffix), enabling true shared-prefix KV + GatedDeltaNet recurrent-state caching with O(T) Memory-Efficient SDPA (e.g., 4.5ร—โ€“6.5ร— faster multi-question evaluation on long documents, ~3.8 GiB VRAM at 32K tokens).
  • Hybrid Read Twice (<= 1,024 tokens): Short and medium prompts are encoded with a second pass (body + "---" + body) consistent between training and inference so all 18 causal GatedDeltaNet layers get query-conditioned bidirectional context.
  • 6-Bucket Temperature Calibration: Independent post-selection temperatures fitted per primitive and cardinality (boolean, score, choice_small, choice_medium, choice_large, global) for well-calibrated probabilities (4.05% OOD ECE10).

Evaluation Results

1. Standard Bilingual Reranking Suite (27 Tasks: MTEB / C-MTEB / NanoBEIR / FollowIR)

Evaluated with standard mteb v2 CrossEncoder protocol (logit(true) - logit(false) scoring, 0 generated tokens):

Benchmark Suite Metric Tally-0.8B (Current) Notes
C-MTEB Chinese Reranking (4 tasks) Mean MAP 63.28 T2 69.23 ยท CMedQAv1 75.74 ยท CMedQAv2 76.06 ยท MMarco 32.09
MTEB English Reranking (3 classic tasks) Mean MAP 64.82 SciDocsRR 84.49 ยท AskUbuntuDup 62.97 ยท StackOverflowDup 46.99
FollowIR Instruction Reranking (3 tasks) Mean p-MRR / nDCG@10 +9.81 / 45.43 Core17 +19.61 (44.42) ยท Robust04 +5.35 (52.33) ยท News21 +4.45 (39.53)
NanoBEIR Top-100 Reranking (13 tasks) Solo / 50-50 Hybrid nDCG@10 63.34 / 68.94 +4.67 over Stage-1 jina-v5-text-small (64.26), positive lift on 11/13 domains
NevIR Negation Reranking Pairwise Acc (nDCG@10) 60.45 (92.01) Sensitive to negation in queries & documents

2. Decision Index 0.3 Public Benchmark (140,178 / 140,178 answered, 0 errors)

Area / Metric Weight Skill Score Raw Score Benchmarks
Decision Index (Public 0.3) 100.0% 41.84 56.91% 37
โ€” Breadth Skill (Geometric Mean) โ€” 38.79 โ€” 37
Retrieval & Classification 20.0% 59.94 69.84% 6
Tools & Automation 18.3% 58.96 62.91% 5
Language Understanding 25.8% 44.78 61.82% 9
Arts & Human Taste 10.0% 27.50 55.05% 6
Knowledge & Reasoning 25.8% 18.32 38.45% 11

Selected public benchmark highlights (chance-corrected skill):

  • BANKING77: 87.20 ยท CLINC150+OOS: 85.37 ยท BFCL: 82.71 ยท FinEntity: 67.29 ยท API-Bank: 65.69
  • HoVer: 63.86 ยท When2Call: 62.97 ยท ContractNLI: 62.21 ยท POP909-CL (zero POP909 training data): 59.83
  • ToolRet: 55.75 ยท RouterBench: 47.50 ยท Amazon ESCI: 37.15 ยท BRIGHT: 30.44

Note: The initial Decision Index 0.3 leaderboard submission snapshot (42.40 Index, noncausal_full attention without prefix caching) is preserved unchanged at revision 2cf55fdf01a95ed1b529e9aef917df039502d795 (with its results in runs/Tally-0.8B/).

3. Held-Out Internal & Out-of-Distribution Acceptance (acceptance-v1)

Split Rows Row Accuracy Group-Family Accuracy Calibrated NLL Calibrated ECE10
open_jev_test (In-Distribution Holdout) 9,750 62.68% 63.11% 0.7913 7.58%
open_jev_ood (Unseen Task Families) 15,101 60.17% 55.95% 0.8851 4.05%

Training Lineage & Anti-Leakage Governance

  • Clean From-Base Lineage: Cold-started from stock Qwen/Qwen3.5-0.8B, trained with stratified teacher soft-label distillation (25,745 verified rows), pairwise margin ranking loss on paired bilingual retrieval/duplicate/paraphrase pools (spot-audited 0/160 false negatives across newly mined medical, duplicate-question, and scientific-title negatives), and balanced multi-domain polish with exact row-quota compensation and hard per-row exposure caps.
  • 46-Target Multi-Modal Leak Screening: 100% of candidate training, selection, and calibration pools were screened against all 45 Decision Index evaluation targets plus a 582,163-document MTEB/C-MTEB/NanoBEIR/FollowIR eval guard (0 surviving direct or group-level hits).
  • Strict 3-Panel Isolation: Zero overlap in row ID, source group, conversation turns, or content anchors across Training, Selection, and Bucketed Calibration panels.

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):
pip install flash-linear-attention kernels  # auto-loads prebuilt kernels-community/causal-conv1d
curl -sSLO https://huggingface.co/chen9z/Tally-0.8B/raw/main/tally_engine.py

2. Python SDK โ€” Typed Decisions & Reranking (tally_engine.py)

from tally_engine import TallyDecider

decider = TallyDecider("chen9z/Tally-0.8B")  # auto-selects cuda / mps / cpu

# A. Single-pass typed decisions
decision = 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",
            },
        },
        "duplicate_charge": {
            "type": "noul",
            "instructions": "Does this ticket report a duplicate payment?",
            "criteria": {"false": "No", "true": "Yes"},
        },
    },
)

# B. Bilingual instruction-aware reranking
ranked = decider.rerank(
    query="็—›้ฃŽๅ‘ไฝœๅทฆ่„šๅ…ณ่Š‚่ƒ€็—›ๆ€Žไนˆๆฒป็–—๏ผŸ",
    documents=[
        "ๅปบ่ฎฎๅนณๆ—ถๆณจๆ„้ข้ƒจ้˜ฒๆ™’๏ผŒ็ฅ›ๆ–‘ๅŽ้ฟๅ…ๆšดๆ™’ใ€‚",
        "็—›้ฃŽๆ€ฅๆ€งๅ‘ไฝœๆœŸไปฅๆŠ—็‚Ž้•‡็—›ไธบไธป๏ผŒๅฏ้ตๅŒปๅ˜ฑไฝฟ็”จ็ง‹ๆฐดไป™็ขฑๆˆ–้ž็”พไฝ“ๆŠ—็‚Ž่ฏ๏ผŒ็ผ“่งฃๆœŸๅ†่ง„ๅพ‹้™ๅฐฟ้…ธๆฒป็–—ใ€‚",
    ],
    instruction="Given a Chinese medical question, retrieve replies that directly answer the question.",
)
print(decision, ranked)

3. HTTP Server (/v1/systemone & /v1/rerank)

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 kernels
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-v2.1
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for chen9z/Tally-0.8B

Finetuned
(1,267)
this model