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.
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 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.8Bhybrid architecture (18GatedDeltaNet linear-attention layers +6full-attention layers) + 255-slot linear readout head (0generated tokens,32,768token context). - Block-Bidirectional + O(T) Prefix Caching: Full-attention layers use
block_bidirectionalattention (bidirectional within the sharedstateprefix, 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 GiBVRAM at 32K tokens). - Hybrid Read Twice (
<= 1,024tokens): 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)
- Complete public run archive:
chen9z/Tally-0.8B-decision-index-results(runs/Tally-0.8B-v2.1/)
| 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.40Index,noncausal_fullattention without prefix caching) is preserved unchanged at revision2cf55fdf01a95ed1b529e9aef917df039502d795(with its results inruns/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,745verified rows), pairwise margin ranking loss on paired bilingual retrieval/duplicate/paraphrase pools (spot-audited0/160false 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 (0surviving 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