/ Модель

Характеристики

Лицензия
Apache 2.0
Архитектура
thx01 · dense
Базовая модель
mmBERT-base
Библиотека
thx01
Опубликована
23 сен 2026

THX-01

Классификация текстаТекст → label12 профессий

THX-01 — мультиязычная модель HAL-X AI для быстрой классификации, маршрутизации и принятия решений с калиброванными вероятностями, а также извлечения чисел и цитат из текста.

463скачиваний за 30 дней96лайковвеса обновлены16 окт 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки1

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

  • LocalLLaMA/typed-decisions

    score

    Результат

    0,2035

    kl_from_gold 0,6196accuracy 0,377brier 0,3201
    Hugging Face Eval Results

    Отчёт автораревизия не подтверждена

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

THX-01 — мультиязычная нерекуррентная модель решений от HAL-X AI на основе энкодера mmBERT-base с отдельной головой принятия решений. Модель содержит 322 млн параметров и принимает состояние в виде сообщения, заявки, письма, документа, JSON-записи или трассы агента вместе с вопросами на естественном языке. Она выдаёт ответы за один проход: классифицирует текст, выбирает вариант и возвращает вероятности, а также может находить числа, дословные фрагменты и подтверждающие цитаты. Для каждого вопроса и состояния предусмотрено до 1 024 токенов; более длинное состояние обрезается.

Модель предназначена для маршрутизации запросов, классификации обращений и документов, а также для автоматизации решений с порогом уверенности. Обучение с подкреплением на основе строго правильного правила оценки ориентировано на калиброванные вероятности. По данным README, время обработки одного вопроса составляет около 9–10 мс на одном GPU. Постобучение охватывает азербайджанский, английский, русский, турецкий и другие языки; энкодер поддерживает более 100 языков. Для найденных чисел модель не выполняет арифметические операции или преобразование единиц, а извлечённые фрагменты не являются пересказом. Лицензия — Apache-2.0.

Сценарии применения

  • классификация обращений в службу поддержки
  • маршрутизация запросов к нужному LLM или агенту
  • автоматическое распределение заявок по категориям с порогом уверенности
  • извлечение чисел и дословных цитат из документов
  • определение темы, намерения или оценки по тексту
  • принятие решений по сообщениям, письмам и JSON-записям

Ограничения

Точная классификация затруднена для наборов намерений с большим числом близких меток; на Banking77 указана точность 65,9%, а на задаче распознавания эмоций DAIR Emotion — 44,6%. Извлечение чисел и фрагментов не выполняет арифметику, конвертацию единиц или пересказ; состояние длиннее лимита токенов обрезается.

Для каких профессий подходит12

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

THX-01

THX-01 is a non-autoregressive, multilingual decision model developed by HAL-X AI. Given a state (a message, ticket, e-mail, document, JSON record or agent trace) and one or more typed questions written in natural language, it returns a calibrated answer to every question in a single forward pass of about 10 ms on one GPU.

THX-01 is trained with large-scale Reinforcement Learning for Calibrated Decisions (RLCD): the reward is a strictly proper scoring rule, so reporting honest probabilities is the only way to maximise it. Beyond choosing among options, THX-01 can return numbers stated in a document, verbatim excerpts and supporting citations, through the same interface.

Parameters322M (307M encoder, 15M decision head)
EncodermmBERT-base, 22 layers, 256k vocabulary
Inputup to 1,024 tokens per question (question, options and state); longer states are truncated
Post-trainingeight large-scale RLCD stages, about 2.1 million training decisions
Languagespost-trained in 18 languages with emphasis on Azerbaijani; 100+ supported
Latencyabout 10 ms per request, about 1 ms per decision when batched
LicenseApache 2.0

Contents

  1. Question types
  2. Quickstart
  3. Benchmarks
  4. Method
  5. Training
  6. Languages
  7. REST API
  8. Limitations
  9. Citation

Question types

typereturnscriteria
choiceone of N options with a probability for each{"key": "description", ...} or a list
noulP(yes)optional
scorean ordinal level and its distributionordered list of levels
numbera numeric value stated in the document, or null if it is not statedoptional min, max, precision
excerpta verbatim span of the document with its character offsetsnone
"cite": true (any question)the parts of the document that support the answer, with probabilitiesnone

number, excerpt and citations are native THX-01 capabilities. They are not part of the TypeSafe question types (choice, noul, score), where they have to be emulated in the service layer with repeated choice calls. THX-01 also answers such emulation calls (value-range buckets and document chunks) through its native lookup, so existing service layers work unchanged.

number returns values exactly as written in the document, normalised (1,2 mln becomes 1200000). It performs no unit or currency conversion: a question about kilometres when the document states miles, or about euros when it states US dollars, is answered with null. excerpt cuts its answer out of the document, so it cannot contain invented text.

Quickstart

import thx01

agent = thx01.load("doofz/THX-01")              # GPU if available

doc = ("Northwind Corp. reported Q3 2026 results. Revenue for the quarter was $48.3 million, up 14%. "
       "Net income was $6.2 million, compared with $4.1 million a year ago. "
       '"We will open two offices in Baku," said CEO Laura Chen.')

result = agent.decide(doc, {
    "kind":    {"type": "choice", "question": "What is this document?",
                "criteria": {"earnings": "earnings report", "complaint": "customer complaint", "invoice": "invoice"}},
    "revenue": {"type": "number", "question": "What was the revenue, in US dollars?", "cite": True},
    "quote":   {"type": "excerpt", "question": "What did the CEO say?"},
})
# kind -> earnings, revenue -> 48300000 (+ the supporting sentence),
# quote -> verbatim span starting "We will open two offices in Baku"

Install from PyPI (the weights download from this repository on first use):

pip install thx01                 # library
pip install "thx01[server]"       # plus the REST server

Benchmarks

Support-ticket classification

Fifteen categories (billing, refund, login, technical bug, outage, delivery, order change, product question, account change, security and fraud, data privacy, complaint, feature request, integration and API, contract and legal), four test sets with 2,843 tickets in Azerbaijani, Russian, English and Turkish: Clean, Corrupted (transliteration, removed diacritics, typos, noise), Messy (written messy on purpose) and Independent (written by GPT-6-Luna, never used for training).

modelCleanCorruptedMessyIndependentAvgECElatency
THX-0199.297.798.897.998.40.003~10 ms
Claude Sonnet 5.5 †98.598.098.599.098.5–1.5 s
Wahoo 1.599.896.398.097.297.8–145 ms
GPT-6-Luna98.697.496.798.297.7–1.9 s
TypeSafe Jev 1.1399.295.096.299.097.40.007331 ms
Kev-4B96.188.490.895.892.80.202830 ms

† Evaluated on a stratified subset of 200 tickets per set. ECE is measured on the Independent set; LLMs return no probabilities. THX-01 latency on one GPU; other models through their APIs.

Extraction and citation

Held-out multilingual documents (earnings reports, invoices, customs declarations, contracts, news, e-mails): 1,824 number questions and 1,357 excerpt questions. Number tasks report exact-value accuracy, excerpt tasks token F1, citation the accuracy of the top supporting part.

taskprevious checkpointTHX-01
Number lookup69.693.4
Number via range buckets (service-layer emulation)0.095.1
Excerpt extraction (F1)20.184.1
Excerpt via document chunks (F1)8.983.8
Reference citation12.794.0

On number lookup over the same documents, TypeSafe Jev 1.13 reaches 96.6%.

Calibration and selective automation

Because confidence is calibrated, a threshold turns it into an operating policy: THX-01 handles about three quarters of all tickets automatically without a single error on any of the four sets, and 90% of tickets at an accuracy of at least 99.5%.

Multilingual decision suite

Thirty-nine held-out tasks: LLM routing, held-out synthetic schemas in 16 languages, MASSIVE scenarios and intents, SIB-200 topic classification in ten languages, AG News, Banking77, SMS spam, DAIR Emotion and Azerbaijani app reviews. Mean accuracy rises from 58.3% at initialisation to 84.2%, and mean ECE falls from 0.204 to 0.066. Hand-written LLM routing reaches 100%.

Per-task results for the release checkpoint are in results/thx01/suite39.json.

taskinitialisationTHX-01ECE
LLM routing (hand-written)30.9100.00.060
Synthetic routing (held-out schemas)33.295.60.020
Synthetic decisions (held-out schemas)53.487.80.025
Synthetic guard (held-out schemas)66.996.80.024
Synthetic taxonomy (held-out schemas)36.090.60.035
Synthetic emotion (held-out schemas)58.696.40.051
AG News (4)94.192.30.018
DAIR Emotion (6)43.444.60.284
Banking77 (77)51.765.90.087
SMS spam (yes/no)73.587.30.048
AZ app-review sentiment73.587.00.072
MASSIVE-intent@20 (az)36.389.70.038
Intent yes/no (az)65.295.20.017
MASSIVE-intent@20 (en)61.993.50.041
Intent yes/no (en)66.795.30.017
MASSIVE-scenario (en)69.490.80.049
MASSIVE-scenario (az)41.688.80.052
MASSIVE-scenario (ru)57.689.80.039
MASSIVE-scenario (tr)50.287.40.055
MASSIVE-scenario (de)56.488.20.050
MASSIVE-scenario (fr)59.890.40.044
MASSIVE-scenario (es)55.087.80.040
MASSIVE-scenario (ar)43.882.20.050
MASSIVE-scenario (hi)46.285.40.037
MASSIVE-scenario (zh-CN)61.087.20.060
MASSIVE-scenario (fa)46.689.00.052
MASSIVE-scenario (ka)16.878.00.060
MASSIVE-scenario (ja)59.291.80.043
MASSIVE-scenario (ko)48.886.40.039
SIB-200 (az)67.273.50.111
SIB-200 (en)78.478.40.068
SIB-200 (ru)75.576.00.082
SIB-200 (tr)74.073.50.126
SIB-200 (de)75.579.90.080
SIB-200 (ar)73.076.50.076
SIB-200 (hi)67.269.60.132
SIB-200 (zh)77.977.90.082
SIB-200 (kk)68.668.10.158
SIB-200 (uz)58.370.10.145

Speed

workloadtime on one GPU
one questionabout 9 ms
three questions about the same stateabout 10 ms
150 requests batchedabout 156 ms
peak throughputabout 3,000 decisions per second

Method

Every question is serialised as [CLS] question [MASK] option 1 [MASK] option 2 ... [SEP] state. The encoder reads the whole sequence at once; a two-layer decision head scores each option at its own [MASK] position, and a softmax with a temperature fitted per question type and option count gives calibrated probabilities. All questions of a request are scored in one batched pass. Questions with more than 24 options are decided by a two-round tournament.

Reinforcement Learning for Calibrated Decisions

Each question is a one-step game: the policy reports a distribution q over the options, the outcome y is revealed, and the reward is

R(q, t) = sum_k t_k log q_k + 0.5 * (sum_k t_k q_k) / ||q||_2 - 1[ordinal] * RPS(q, t)

a combination of the logarithmic, spherical and ranked-probability scores. Because the reward is strictly proper, its expectation is maximised only when the reported distribution equals the true one. THX-01 optimises the expected reward with an exact, zero-variance gradient. Soft targets teach two further behaviours: a uniform target when no option applies (so the model reports uncertainty instead of a confident wrong answer) and near-miss credit on ordinal scales.

Training

stagefocusdecisions per epoch
S1broad multilingual RLCD: synthetic decisions in 16 languages, MASSIVE in 14 languages, Azerbaijani sentiment157,912 (x2)
S2spatial and control decisions53,040
S3LLM and agent routing48,000
S4generic skills: bare-key options, identifier lookup, no-good-option honesty77,000
S5robustness and domain: 600 new business taxonomies, confusable pairs, transliteration and noise, support tickets213,961 (x2)
S6boundary cases between confusable categories, three teacher models284,207
S7weight interpolation and temperature refit–
S8extraction and citation: numbers, excerpts, supporting parts, currency equivalence, new hard decisions, full replay493,442

Training data combines curated data from the HAL-X data team, public benchmarks' training splits and verified synthetic data. Synthetic items are generated label-first by teacher models (Wahoo 1.5, GPT-6-Luna, Claude Sonnet 5.5) and kept only when a blind second pass agrees; test items and their near-duplicates are excluded from training. Optimisation uses 8-bit AdamW, bf16, length-bucketed batches, random option order and option subsets, and a frozen token-embedding matrix that preserves the encoder's coverage of more than 1,800 pretraining languages.

Languages

Post-training covers Azerbaijani, English, Russian, Turkish, German, French, Spanish, Arabic, Hindi, Chinese, Persian, Georgian, Japanese, Korean, Ukrainian, Kazakh, Uzbek and Italian, with Azerbaijani the largest language in every synthetic component. A dedicated curriculum covers the way text is actually typed in the region: Azerbaijani without its letters (e for the schwa, s for s-cedilla, c for c-cedilla), Russian in Latin transliteration, and code-mixing of Azerbaijani, Russian and English. Through its encoder THX-01 supports more than 100 languages.

modelIndependent azruenCorrupted azruen
THX-0197.198.398.397.996.697.9
Claude Sonnet 5.5 †98.5100.098.597.6100.097.5
Wahoo 1.596.295.899.694.595.098.9
GPT-6-Luna97.997.599.297.295.098.6
TypeSafe Jev 1.1398.898.3100.092.993.398.2
Kev-4B94.295.497.983.189.194.3

REST API

pip install "thx01[server]"
THX01_MODEL=doofz/THX-01 THX01_API_KEY=your-key python -m thx01.server --port 8095

POST /v1/decide (alias POST /v1/systemone, TypeSafe-compatible) takes {"state": ..., "questions": {...}} and returns {"answers": {...}, "latency_ms": ...}; POST /v1/decide/batch (alias /v1/systemone/batch) takes {"items": [...]}. The state may be a string or an object with a document field; the question text may be given as instructions or question. Requests are micro-batched on the GPU.

Limitations

  • Fine-grained intent sets with many near-synonymous labels remain hard: Banking77 (77 intents) reaches 65.9%.
  • Emotion with six overlapping classes (DAIR Emotion) reaches 44.6%; the model reports correspondingly low confidence.
  • number and excerpt locate text that is present in the document; they do not perform arithmetic, unit conversion or paraphrase.

Citation

@techreport{thx01_2026,
  title       = {THX-01: Large-Scale Reinforcement Learning for Calibrated Decisions in 100+ Languages},
  author      = {Aghayev, Farid and Ahmadbayli, Elturan},
  institution = {HAL-X AI},
  year        = {2026}
}

License

Apache License 2.0. See LICENSE and NOTICE.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · thx01 · decision

Можно запустить

Подбираем GPU…

Класс архитектуры
THXDecisionModel
Ревизия весов
b323afc

0 моделей