/ Модель

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

Лицензия
MIT
Базовая модель
deberta-v3-base
Опубликована
24 сен 2026

jev-berta-base-zeroshot-classifier

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

JevBerta классифицирует заданный контекст и запрос по переменному набору вариантов ответа, выдавая вероятности для каждого варианта.

156скачиваний за 30 дней4лайкавеса обновлены25 сен 2026

Бенчмарки

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

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

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

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

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

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

JevBerta — модель leobitz для классификации с нулевым обучением на структурированных задачах с переменным числом вариантов ответа. Она принимает контекст, запрос и список вариантов, а для интерфейса JEV сопоставляет состояние с контекстом, инструкции — с запросом, а критерии — с вариантами. Для каждого варианта формируется пара текстов, которую обрабатывает Transformer-энкодер на базе microsoft/deberta-v3-base; затем блоки внимания по набору вариантов учитывают их взаимосвязь, а MLP выдаёт нормированные вероятности.

Размер модели в README указан как 198 млн параметров. В приведённом снимке точность составляет 0,854 на validation и 0,627 на ood_eval; результаты зависят от набора данных и не гарантируют качество на конкретной задаче. Модель предназначена для выбора среди заданных кандидатов, а не для свободной генерации ответов. Лицензия — MIT.

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

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

Ограничения

Модель выбирает только из переданного списка вариантов и не предназначена для свободной генерации. Качество может снижаться на данных, отличающихся от оценки в README: указанный результат на ood_eval ниже результата на validation.

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

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

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

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

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

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

Открыть на Hugging Face

JevBerta

JevBerta is a small Python package for running a variable-choice zero-shot classifier over structured decision tasks.

What It Does

JevBerta scores a set of candidate answers conditioned on:

  • a context string
  • a query string
  • a variable-length list of candidate choices

It also exposes a JEV-style interface where:

  • state is treated as the context
  • each question's instructions is treated as the query
  • each question's criteria defines the candidate labels

All supported question types are reduced to classification over the provided criteria.

Install

pip install git+https://github.com/leobitz/jev-berta.git

Quick Start

from jev_berta import JevBerta

model = JevBerta.from_pretrained("leobitz/jev-berta-base-zeroshot-classifier")

result = model.predict(
    context="Customer says they were billed twice for the same order.",
    query="What is the best category?",
    choices=["billing", "shipping", "technical"],
)

print(result["choice"])
print(result["probabilities"])
print(result["scores"])

probabilities and scores are both softmax-normalized probabilities over the provided choices.

JEV-Style API

from jev_berta import JevBerta

model = JevBerta.from_pretrained("leobitz/jev-berta-base-zeroshot-classifier")

payload = {
    "state": "A customer says they were charged twice for the same order, already emailed support twice without getting a reply, and now wants the duplicate charge refunded immediately.",
    "questions": {
        "refund_requested": {
            "type": "noul",
            "instructions": "Is the customer explicitly asking for a refund?",
            "criteria": {
                "true": "The customer clearly wants money returned or a charge reversed.",
                "false": "The customer is not asking for a refund."
            }
        },
        "owner_team": {
            "type": "choice",
            "instructions": "Which team should take ownership of this case?",
            "criteria": {
                "billing": "Handles duplicate charges, refunds, invoices, and payment disputes.",
                "support": "Handles follow-up communication and general customer assistance.",
                "technical": "Handles bugs, outages, and product malfunctions.",
                "other": "Use when none of the main teams fit the case."
            }
        },
        "priority": {
            "type": "score",
            "instructions": "How urgent is this case?",
            "criteria": ["Low", "Medium", "High"]
        }
    }
}

result = model.predict_jev(payload)
print(result["predictions"])

Architecture

The runtime package is centered on JevBerta in src/jev_berta/jevberta.py.

Input formulation

For each candidate label, the model builds a pair of texts:

  • sequence A: Context: ...\nQuery: ...
  • sequence B: Candidate: ...

Each candidate is encoded independently by the Transformer encoder, then grouped back into a candidate set for joint reasoning.

Encoder backbone

JevBerta uses a pretrained Hugging Face encoder loaded through transformers.AutoModel. The exported checkpoint configuration determines:

  • base encoder model name
  • maximum sequence length
  • number of set-attention layers
  • number of set-attention heads
  • feed-forward expansion factor
  • dropout

Candidate-set reasoning

After encoding, the model:

  1. takes the CLS representation for each candidate pair
  2. reassembles candidates into a batch_size x num_choices x hidden_size tensor
  3. applies layer normalization
  4. runs several candidate-set self-attention blocks

Each candidate-set block contains:

  • multi-head self-attention across the candidate dimension
  • residual connections
  • layer normalization
  • a feed-forward network

This lets the model score each option while conditioning on the full set of alternatives, rather than treating each option fully independently.

Scoring head

A small MLP converts each candidate state into a scalar logit. A masked softmax over the candidate dimension produces the final probability distribution.

Public APIs

The package exposes two main inference calls:

  • predict(context, query, choices)
  • predict_jev(payload)

predict_jev is a thin adapter over predict that:

  • maps state -> context
  • maps instructions -> query
  • converts criteria into the candidate list
  • returns one prediction block per question key

Accuracy Snapshot

DatasetJevBertaOpenJevkev-0.8blaya
model size198M435M435M435M
validation0.8540.5560.7130.503
ood_eval0.6270.3910.6400.431
truthfulqa0.4800.2520.4810.132
mmlu0.2760.3270.4580.274
type_decision0.3740.3900.5010.332

Demo Notebook

See demo/demo_usage.ipynb for a runnable walkthrough that loads leobitz/jev-berta-base-zeroshot-classifier and demonstrates both APIs.

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

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

GPU в ailist

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

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

Архитектура ? неизвестна transformers в образе рантайма.

Ревизия весов
e1aa6fc

0 моделей