/ Модель

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

Контекст
512 токенов
Параметры
534 млн
Лицензия
MIT
Архитектура
deberta-v2 · dense
Базовая модель
deberta-v3-large
Библиотека
transformers
Опубликована
17 сен 2026

jev-schema-scorer-deberta-v3-large

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

Англоязычная модель на базе DeBERTa-v3-large для классификации текстов по заданной пользователем схеме, выбора вариантов, ответов «да/нет» и порядкового оценивания.

683скачиваний за 30 дней7лайковвеса обновлены19 сен 2026

Бенчмарки

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

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

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

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

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

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

mobarmg/jev-schema-scorer-deberta-v3-large — дообученная модель на основе энкодера DeBERTa-v3-large, разработанная для классификации с учётом схемы. Она оценивает пары «состояние и вопрос с кандидатом», а затем детерминированный декодер группирует оценки для выбора варианта, оценки по порядковой шкале или ответа «да/нет». Вопросы, критерии и идентификаторы вариантов задаются во время инференса, поэтому новые наборы меток можно передавать без переобучения.

Модель содержит 533,8 млн параметров и принимает текст или сериализованные JSON-объекты. Она обучена на 17 170 синтетических англоязычных вопросах из разных прикладных областей; контекст модели — до 512 токенов, а при обучении использовались последовательности длиной до 384 токенов. В тестах авторы сообщают точность 0,841 для выбора варианта на наборе v2; слабые результаты отмечены для определения следующего действия в записях, классификации ошибок в кратком изложении и оценивания ответов учащихся.

Модель подходит для экспериментов с маршрутизацией, триажем, маркировкой по заданным критериям, порядковым оцениванием и проверкой утверждений по короткому тексту. Синтетические данные ограничивают перенос на другие области, длинные тексты и языки, кроме английского; критерии, требующие фоновых знаний или сложных рассуждений, могут снижать качество. Вероятности могут быть чрезмерно концентрированными и должны рассматриваться как ранжирование, а не как калиброванная уверенность. Это не классификатор безопасности; для решений с существенными последствиями, в том числе в модерации, здравоохранении и безопасности, необходима проверка человеком. Лицензия — MIT.

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

  • маршрутизация обращений в службу поддержки по категориям
  • триаж коротких сообщений по заданным критериям
  • выбор подходящего варианта из пользовательского списка
  • оценка текста по порядковой шкале
  • проверка утверждения по короткому тексту с ответом «да/нет»

Ограничения

Обучение на синтетических данных ограничивает перенос на длинные тексты, другие языки и незнакомые области; вероятности могут быть плохо калиброваны. Результаты для некоторых задач близки к случайным, и модель не предназначена для самостоятельных решений по модерации, здоровью или безопасности.

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

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

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

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

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

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

Открыть на Hugging Face

Schema-conditioned candidate scorer (DeBERTa-v3-large)

One DeBERTa-v3-large encoder with a single scalar head scores (state, question + candidate) pairs. Deterministic code groups the scalar logits per question and decodes them into three answer primitives:

primitiveinput schemaanswer
choicecriteria: {option_id: description}argmax option id + probabilities
nouloptional criteria: {"true": ..., "false": ...}p(proposition is true)
scorecriteria: [level 0 description, level 1, ...]expected level index + per-level probabilities

The question text, criteria and option ids are read at inference time, never baked into the weights, so the same checkpoint answers new questions over new label sets without retraining.

Try it in the Space: mobarmg/jev-schema-scorer.

How it works

For every candidate of a question the model sees a sentence pair:

sequence_a = the state (free text, or a JSON object serialised)
sequence_b = {"candidate": {"id": "<option id>", "description": "<option description>"},
              "type": "choice", "instructions": "...", "criteria": {...}}

The candidate sits right after [SEP], so the only tokens that differ between a question's candidates are where the encoder attends most easily. Each pair yields one logit; a softmax over the question's candidates gives the answer distribution. Training minimises cross-entropy between that grouped softmax and a target distribution (one-hot for choice / score, [1-p, p] for noul).

Usage

The repo ships schema_scorer.py with the request compiler, decoder and a small adapter.

from huggingface_hub import hf_hub_download
import importlib.util

repo = "mobarmg/jev-schema-scorer-deberta-v3-large"
spec = importlib.util.spec_from_file_location("schema_scorer", hf_hub_download(repo, "schema_scorer.py"))
schema_scorer = importlib.util.module_from_spec(spec); spec.loader.exec_module(schema_scorer)

scorer = schema_scorer.LocalSystemOne(repo)
scorer.system_one(
    "Nine days of silence on a signed quote is a joke. Our launch event is on the 28th and we still "
    "do not have the licence keys your sales team promised. Somebody pick up a phone.",
    {
        "department": {"type": "choice", "instructions": "Which team should handle this?",
                       "criteria": {"billing": "Payment or subscription issues",
                                    "technical": "Bugs or integration problems",
                                    "sales": "Pricing or plan questions"}},
        "frustration": {"type": "score", "instructions": "How frustrated the customer appears",
                        "criteria": ["Calm, just stating facts", "Frustrated but civil", "Very angry, strong language"]},
        "is_urgent": {"type": "noul", "instructions": "The message conveys urgency"},
    },
)
# {'answers': {'department': {'type': 'choice', 'choice': 'sales', 'probabilities': {...}},
#              'frustration': {'type': 'score', 'score': 2.0, 'probabilities': [...], 'legend': {...}},
#              'is_urgent': {'type': 'noul', 'noul': 0.99}}}

Without the helper, it is a plain DebertaV2ForSequenceClassification with num_labels=1: tokenize (state, serialised question + candidate) pairs, take logits[:, 0], and softmax over each question's candidates.

Limits: state + schema + candidate must fit in 512 tokens (trained at 384); every question needs at least two candidates.

Training data

Fine-tuned from microsoft/deberta-v3-large (supervised, grouped-softmax cross-entropy, max 384 tokens) on the union of two synthetic English datasets, 17,170 training questions in total:

  • v1 (7,650 train / 1,350 eval questions, 3,000 texts, 30 domains): support triage, moderation, product reviews, email routing, resume screening, banking, insurance claims, telehealth messages, IT helpdesk, dating safety, and more. One choice, one score and one noul question per domain.
  • v2 (9,520 train / 1,680 eval questions, 2,400 states, 24 domains): harder task shapes. JSON-object states (orders, transactions, API request logs, candidate profiles), multi-turn dialogue transcripts (support chats, sales calls, tutoring), code snippets and log excerpts, choice questions with 5-7 options including an "other" bucket, 4-5 level score questions, noul labels defined by explicit rules over the state, sarcasm and negation, summary faithfulness, and rubric grading of student answers. Each domain has 4-6 questions.

To make the model read the schema instead of memorising label ids, each training example draws a random instruction wording and criteria wording, shuffles the choice options, and replaces the option ids with opaque ids (opt_a, k2, bravo, ...) half of the time. Eval splits hold out 15% of records per domain.

Evaluation

Measured with bench_dataset.py on the held-out eval splits.

eval splitmetricthis checkpointprevious checkpoint (v1 only)
v2 (1,680 questions)choice accuracy0.8410.687
v1 (1,350 questions)choice / noul / scoreunchanged from the previous checkpoint0.889 acc / 0.940 acc, 0.052 Brier / 0.183 MAE

Chance on v2 choice is 0.214; on v1 it is 0.255. The earlier revision of this repo (v1-only training) remains available in the commit history.

Known weak spots (near chance): order_record.next_action, summary_faithfulness.error_type, and student_answer grading.

Intended use and caveats

  • Intended for experiments with schema-conditioned classification: routing, triage, moderation-style labelling, ordinal scoring, and yes/no propositions over short English texts.
  • Trained on synthetic data. Expect degraded accuracy far from the training domains, on long inputs, on non-English text, and on criteria that require world knowledge or reasoning across the text.
  • Probabilities are often very peaked (the grouped softmax is trained on one-hot targets); treat them as rankings rather than calibrated confidences.
  • Not a safety classifier. Do not use its moderation, health, or security outputs to make consequential decisions without human review.

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

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

GPU в ailist

Универсальный рантайм · transformers · text-classification

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

Подбираем GPU…

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

0 моделей