/ Модель

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

Контекст
8 192 токена
Лицензия
Apache 2.0
Базовая модель
ModernBERT-large
Библиотека
sharada
Опубликована
5 окт 2026

sharada-large

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

Англоязычный энкодер на базе ModernBERT-large, который оценивает вероятности заданных вариантов для классификации текста без генерации ответов.

108скачиваний за 30 дней1лайквеса обновлены6 окт 2026

Бенчмарки

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

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

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

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

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

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

Sharada Large — англоязычный энкодер для классификации текста по вариантам ответа, заданным в запросе. Модель разработала Lena Barretta на базе answerdotai/ModernBERT-large; она содержит 397 млн параметров и распространяется в формате Safetensors по лицензии Apache 2.0. Для каждого варианта модель выдаёт вероятность за один проход, не генерируя текст. Длина входного текста — до 256 токенов, дополнительно предусмотрено до 48 токенов для вопроса и 12 токенов на каждый вариант.

Модель предназначена для классификации по заданным пользователем меткам, в том числе по меткам, отсутствовавшим в обучении: например, для определения темы, намерения, тональности, эмоции, спама или токсичности. В README приведены оценки на известных и отложенных наборах данных; авторы сообщают об общей точности 0,834 и ошибке калибровки 0,009. Для применения к собственным данным рекомендуется дообучение на размеченных примерах и повторная калибровка вероятностей.

Sharada Large работает только с английским текстом и не генерирует ответы. Она читает не более 256 токенов текста, поэтому длинные документы нужно разбивать на части. Модель не обучалась на медицинских, юридических или программных данных, а проверка утверждений о здоровье в README показала результат на уровне базового большинства; для таких областей потребуется дообучение. Вероятности могут терять калибровку при изменении данных или трафика.

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

  • Классификация обращений клиентов по заданным категориям намерений
  • Определение темы англоязычного текста по пользовательским меткам
  • Оценка тональности отзывов по заданным вариантам
  • Распознавание эмоций в коротких текстах
  • Определение спама или токсичности в сообщениях

Ограничения

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

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

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

Открыть на Hugging Face

lenabarretta/sharada-large

A small encoder that makes typed decisions about text in one forward pass. The options come with the request and what comes back is a probability for each of them: nothing is generated and nothing is parsed. Because the labels are part of the input rather than part of the weights, a label set it has never been trained on still gets an answer.

Code, examples and the training run: https://github.com/LenaBarretta/sharada. The design and the experiments behind it: https://lenatriestounderstand.com/notes/llm/024-rlcr/.

pip install sharada
from sharada import DecisionModel

model = DecisionModel.from_pretrained("lenabarretta/sharada-large")

d = model.decide(
    text="My card still hasn't arrived and I ordered it two weeks ago.",
    question="Which team should handle this?",
    options=["billing", "card delivery", "technical support", "account closure"],
)
d.answer, d.confidence, d.probabilities

Fine-tuning on a few hundred of your own labelled examples is the intended use:

report = model.fit(examples)      # holds 20% out, early-stops, then fits a temperature per task
model.save("my-router")

What it is

encoderanswerdotai/ModernBERT-large
parameters397M
textup to 256 tokens, plus 48 for the question and 12 per option
kinds of questionchoice (unordered labels), scale (ordered steps), binary (yes or no)
outputone probability per option, from a single forward pass
weightsfloat16 on disk, float32 in memory — a storage format, not quantisation
one decision26.6 ms per question

Three properties hold by construction rather than by training: the order of the options cannot change the answer (every option branch starts at the same position id), an option's score does not depend on which other options are offered (an option reads the text, the question and itself), and the text is read once however many questions are asked of it. The tests in the repository check all three on an untrained model.

How it was trained

488,991 examples from 32 public label sets — intents, topics, review scores, emotion, toxicity, spam and entailment — for 15,000 steps of 32, AdamW at 2e-05 with a cosine schedule, cross entropy loss. The published weights are the ones that measured best on held-out data, at step 15,000 of 15,000 — past that the model stops answering better and only grows more certain. 6 further label sets were held out of training entirely and only measured: arxiv-category, claim-veracity, massive-scenario, medical-pair, poem-tone, subjective.

In training the options were shuffled, long label sets were often shown as a sampled handful, and each label set was asked through several wordings of its question — so the model reads the options and the question rather than their positions.

What it scores

Trained on is what that label set actually contributed to this run — not its cap, since a small dataset runs out first and a pooled multilingual one is split between its languages; a dash means the model never saw it. Measured on is how many held-out examples the accuracy beside it rests on, and it is worth reading first: a row measured on ninety-six examples moves by a full point when one answer changes.

Measured on held-out examples, with every label offered at once — all 151 intents of clinc, all 77 of banking — because that is what a request actually looks like. One temperature per label set was fitted on the same held-out examples. ECE is the expected calibration error over 15 equal bands: how far the stated probability is from how often it turns out right. Rows marked unseen are label sets kept out of training entirely, never trained on, only measured.

label setanswer optionskindtrained onmeasured onaccuracylog lossECET
clinc-intent151choice24,0004800.9500.2260.0220.891
banking-intent77choice19,9864800.8980.3800.0191.122
massive-intent59choice23,0284800.8790.4180.0331.26
question-type-fine50choice10,9042400.9040.3810.0421.587
fine-emotion28choice18,0003600.5751.2350.0621.122
newsgroup20choice14,5922920.7260.7980.0521.26
entity-type14choice18,0003600.9970.0160.0050.891
forum-topic10choice18,0003600.7890.6770.0581.0
question-type6choice10,9042400.9630.1100.0151.414
emotion6choice15,0003000.9100.1890.0341.335
app-stars5scale15,0003000.7170.7910.0491.0
review-stars5scale24,0004800.6580.7010.0551.0
sentence-tone5scale15,0003000.6370.8850.1001.26
news-section4choice18,0003600.9310.1600.0270.891
tweet-emotion4choice6,5142400.8790.3450.0581.059
entailment-short3scale18,0003600.9060.2620.0240.944
entailment3scale24,0004800.8730.3460.0271.059
tweet-sentiment3scale15,0003000.7130.6690.0491.335
spam2binary10,0342400.9920.0360.0051.414
product-tone2scale15,0003000.9600.0920.0191.059
movie-verdict2scale15,0003000.9570.1230.0311.122
paraphrase2binary15,0003000.9500.1500.0291.059
short-verdict2scale12,0002400.9500.1500.0161.122
answers-question2binary18,0003600.9420.1430.0100.749
toxic-comment2binary15,0003000.9330.1680.0241.059
follows2binary4,9802400.8750.3310.0431.414
same-question2binary18,0003600.8670.2980.0311.0
offensive2binary15,0003000.8600.3270.0071.122
hateful2binary14,9893000.8370.3630.0511.498
same-meaning2binary7,3362400.8080.3950.0511.414
grammatical2binary15,0003000.8030.4080.0731.587
irony2binary5,7242400.7870.4210.0580.841
massive-scenario (unseen)18choice—2400.7420.7160.0441.189
arxiv-category (unseen)11choice—1800.4561.4950.0701.587
poem-tone (unseen)4scale—960.5731.0810.1281.189
claim-veracity (unseen)4choice—1800.4671.2220.0971.26
medical-pair (unseen)2binary—1800.7720.4830.0741.587
subjective (unseen)2choice—1800.6830.6080.0350.445

Overall: accuracy 0.834, log loss 0.432, Brier 0.228, calibration error 0.009 (95% interval [0.007, 0.016]).

The family

checkpointencoderdownload
lenabarretta/sharada-baseModernBERT-base, 150M300 MBthe default, and the one to fine-tune
lenabarretta/sharada-large — you are hereModernBERT-large, 397M794 MBa few points better, about a third slower
lenabarretta/sharada-multilingual-basemmBERT-base, 308M616 MBthe same model over many more languages
lenabarretta/sharada-multilingual-smallmmBERT-small, 141M282 MBnarrower body, for throughput rather than for one fast answer

Everything that makes a model what it is lives in the checkpoint: which encoder it wants, how long a text it reads, the temperature fitted for each task. The library reads all of that out of config.json, so a bigger model or a multilingual one is another repository rather than another version of sharada — and from_pretrained loads any of them with the same line.

That is also why a multilingual model cannot be a flag on this one. This encoder is English down to its tokenizer; reading another language means other weights, not another setting.

The probabilities expire

A temperature is fitted on a distribution, not on a model, so it goes stale when the traffic moves. The run's passport.json records what it was fitted on and what should make you fit it again:

from sharada import check_passport
import json

check_passport(json.load(open("passport.json")), recent_examples, model)
# [] when it finds nothing wrong

Fit it again on your own labelled examples before trusting the numbers on your own traffic — model.calibrate(examples) does it in one call, and model.fit(examples) does it for you.

What it will not do

It does not generate: options or nothing. It reads 256 tokens of text, so longer documents need chunking. It is English: the encoder is English-only and so were the label sets it was trained on — the multilingual checkpoints in the table above cover more. And there is no medicine, law or code in its training mix: the two medical label sets are measured only, and verifying public-health claims lands at the majority-class baseline, which is to say it does not work. Those domains need fine-tuning on your own labelled examples. Finally it is small — where an answer needs a fact that is not in the text in front of it, a frontier model wins.

Apache 2.0.

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

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

GPU в ailist

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

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

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

Ревизия весов
490f526

0 моделей