/ Модель

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

Лицензия
CC BY-NC 4.0
Базовая модель
ModernBERT-base
Библиотека
pytorch
Опубликована
21 сен 2026

local-decision-model

Классификация без дообученияТекст → label

Англоязычная дообученная на ModernBERT-base модель за один проход классифицирует текст по заданным схемам и извлекает структурированные решения.

0скачиваний за 30 дней0лайковвеса обновлены21 сен 2026

Бенчмарки

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

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

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

В подключённых источниках результатов для этой модели пока нет.

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

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

Pdbz199/local-decision-model — небольшая англоязычная модель для классификации и извлечения структурированных решений из текста. Она дообучена на базе encoder-only модели ModernBERT-base и содержит две небольшие выходные головы. Схема вопросов и вариантов включается во вход, после чего модель за один проход выдаёт типизированные вероятностные оценки и извлечённые фрагменты, не генерируя текст. Веса доступны в формате safetensors; для работы требуется пакет decisionmodel из связанного GitHub-проекта, а модель не использует стандартную голову Transformers.

Модель предназначена для быстрого заполнения полей по тексту, классификации по заданным вариантам и простых решений по правилам или защитным схемам. В README приведены результаты на задачах, не встречавшихся при обучении: классификация тональности IMDB, извлечение ответов SQuAD v2 и тематическая классификация AG News. Заявленная задержка на RTX 5070 Ti составляет 10–25 мс для приведённых сценариев, а для входа длиной 8 000 токенов — 351 мс.

Ограничения включают чувствительность к формулировкам вопросов, слабую работу с подразумеваемым и условным смыслом, склонность недопредсказывать метки в многометочной классификации и возможную избыточную уверенность на незнакомых задачах. Модель работает только с английским текстом, а решения для guardrails могут быть ошибочными и не должны служить единственной границей безопасности. Лицензия весов — CC BY-NC 4.0; коммерческое использование ограничено условиями лицензии и смешанными лицензиями обучающих данных.

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

  • определение тональности англоязычного отзыва
  • классификация текста по заданному набору категорий
  • извлечение ответа или фрагмента из текста
  • заполнение типизированных полей по тексту
  • проверка текста по guardrails и простым правилам

Ограничения

Модель чувствительна к формулировке вопросов, слаба на подразумеваемом и условном смысле и может недопредсказывать метки при многометочной классификации. На незнакомых задачах она может быть чрезмерно уверенной; её guardrail-решения не следует использовать как единственную границу безопасности.

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

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

Открыть на Hugging Face

local-decision-model

A small, fast decision model: unstructured state in, typed probabilistic decisions out. One forward pass of a 150M parameter encoder answers a whole schema of typed questions about a piece of text, typically in 10 to 25 ms on a consumer GPU. It never generates text, so every output is guaranteed to match its declared type.

Code, training recipe, experiments and full results: https://github.com/Pdbz199/local-decision-model

demo

Usage

These weights need the small decisionmodel package from the GitHub repo (they are not a standard transformers head).

pip install git+https://github.com/Pdbz199/local-decision-model
from decisionmodel import DecisionModel, Bool, Enum, MultiLabel, Int, Extract

dm = DecisionModel.load("Pdbz199/local-decision-model")

d = dm.decide("My order #48213 arrived with a cracked screen. Refund me today or I dispute the charge.", {
    "urgent":   Bool("Does this need a response within the hour?"),
    "team":     Enum("Which team should handle this ticket?", ["billing and refunds", "technical support", "sales"]),
    "anger":    Int("How angry is the customer, from 1 (calm) to 5 (furious)?", 1, 5),
    "order_id": Extract("What is the order number?"),
})
print(d.team.value, d.team.confidence, d.urgent.p(), d.order_id.value)

Types: Bool, Enum (2 to 255 options), MultiLabel, Int, Float, Extract (a verbatim substring of the input, or None).

How it works

ModernBERT-base with two small heads. The schema is written into the input as [CLS] [MODE] question [OPT] option 1 [OPT] option 2 ... [SEP] state [SEP]. The hidden state at each [OPT] token is scored, so all options are judged in the same pass; a span head handles extraction. Trained with log loss on about one million examples recast from roughly 50 public datasets, then temperature-calibrated on tasks that were never trained on.

Results on tasks never seen in training

Held-out taskTypeResult
IMDB sentimentBool94.4% accuracy, calibration error 0.016
SQuAD v2 devExtract82.8% exact match, F1 85.8
AG News topicsEnum (4)74.0%
Twitter financial news sentimentEnum (3)74.1%
Banking77 intentsEnum (77)63.0% top 1, 80.2% top 3; 83.6% on the 48% of calls with confidence of at least 0.9
deepset prompt injectionsBool69.6% accuracy, AUROC 0.87
SMS spamBool64.9% with a vague question, 89.4% with a precise one (AUROC 0.94 to 0.96)

Latency (RTX 5070 Ti, bfloat16, median): single yes/no 10 ms, 8 typed fields 16 ms, 77 options 11 ms, 255 options 21 ms, 8,000 token input 351 ms.

Limitations

  • A small model: good at judgments a person could make at a glance, weak at implied or conditional meaning.
  • Sensitive to question wording. Test a schema on a few real examples before trusting it.
  • MultiLabel under-predicts when several options are true at once. Ask important tags as their own Bool.
  • Confidence is well calibrated on familiar kinds of task and can be overconfident on unfamiliar ones.
  • English only. Guardrail decisions can be wrong: do not use it as a sole security boundary.

Licensing

The code is MIT licensed. The base model is Apache 2.0. These weights were trained on public datasets with mixed licenses, some of which restrict commercial use (for example lmsys/toxic-chat, CC BY-NC 4.0, and the Yelp reviews dataset). The weights are therefore released under cc-by-nc-4.0. If you need different terms, retrain with scripts/build_data.py after removing the sources that do not fit your use; every source is listed in that file.

Relation to Jev

This project was inspired by TypeSafe AI's blog post introducing "System One Models" and their model Jev. It is an independent, generic implementation built only from that public post, and is not affiliated with TypeSafe AI.

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

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

GPU в ailist

Универсальный рантайм · pytorch · zero-shot-classification

Нельзя запустить

В репозитории нет config.json: не понять архитектуру модели.

Ревизия весов
4b3077c

0 моделей