/ Модель

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

Контекст
7 999 токенов
Параметры
16,8 млн
Лицензия
MIT
Архитектура
modernbert · dense
Базовая модель
ettin-encoder-17m
Библиотека
transformers
Опубликована
15 ноя 2026

ettin-povtense-17m-v3

Классификация текстаТекст → label3 профессии
138скачиваний за 30 дней0лайковвеса обновлены15 ноя 2026

Описание модели

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

Компактная англоязычная модель ModernBERT для определения лица, времени и адресата повествования в сообщениях ролевого чата.

ettin-povtense-17m-v3 — компактный энкодер ModernBERT на 16,8 млн параметров от chartreuse-verte, дообученный на базе jhu-clsp/ettin-encoder-17m для классификации повествования в сообщениях ролевого чата. Он определяет лицо повествования, время и адресата: например, различает реплики от первого лица, обращение к пользователю и упоминание другого персонажа. Модель выдаёт 18 оценок, из которых рассчитываются отдельные предсказания по трём осям; контекстное окно — до 7 999 токенов.

Модель предназначена для обнаружения стилистического дрейфа между сообщениями и сценой, чтобы приложение могло решить, нужно ли попросить основную языковую модель переписать ответ. Она поддерживает английский язык и рассчитана на короткие окна из 1–4 предложений без предшествующего контекста. Доступны веса Safetensors, ONNX и GGUF Q8_0; лицензия — MIT.

В заявленных оценках сравнение проводилось с метками, созданными языковыми моделями, а не людьми. Авторы отмечают более слабые результаты на редких примерах первого лица, неоднозначность местоимения «he» для различения пользователя и другого персонажа, а также то, что модель определяет грамматическую форму, а не качество текста. Плейсхолдер {{user}} она может трактовать как имя другого персонажа.

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

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

Ограничения

Ориентирована на английские окна из 1–4 предложений без предшествующего контекста; первый план распознаётся менее надёжно из-за редкости в оценочных данных. Модель классифицирует грамматическую форму, а не качество текста, и может принять местоимение «he» или плейсхолдер {{user}} за упоминание другого персонажа.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

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

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

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

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

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

Открыть на Hugging Face

ettin-povtense-17m-v3

A 17M-parameter encoder that reads three things off a roleplay message's narration:

  • point of view: first / second / third / ambiguous
  • tense: past / present / ambiguous
  • addressee: you / other / none. New in v3, it says who else the narration names.

It catches voice drift, where a reply slides from the register the scene set up and the app asks the main LLM to rewrite it. The addressee axis catches the drift that POV alone can't see: I guide you inside and I guide him inside are both first-person present, but only one is still talking to the user.

Basejhu-clsp/ettin-encoder-17m (ModernBERT)
Parameters16,867,858
Headone 18-way softmax (6 voices × 3 tenses), read back as three marginals
Max length256 tokens
Formatssafetensors fp32 · q8_0 GGUF (19.7 MB) · ONNX fp32 (67.6 MB)
Speed1.6 ms/message on ONNX, 4 CPU threads, batch 1

Not a drop-in for v2. The head is 18 logits in a new order, not 12. A v2 reader will silently misread it.

Using it

from transformers import AutoTokenizer, AutoModelForSequenceClassification

repo = "chartreuse-verte/ettin-povtense-17m-v3"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForSequenceClassification.from_pretrained(repo)

text = "I take your hand and lead you down the stairs."
p = model(**tok(text, return_tensors="pt", truncation=True, max_length=256)).logits.softmax(-1)[0]

g = p.reshape(6, 3)  # rows: first|you, first|other, first|none, second, third, ambiguous
pov = {"first": g[0:3].sum(), "second": g[3].sum(), "third": g[4].sum(), "ambiguous": g[5].sum()}
tense = dict(zip(["past", "present", "ambiguous"], g.sum(0)))
addressee = {"you": g[0].sum() + g[3].sum(), "other": g[1].sum() + g[4].sum(), "none": g[2].sum() + g[5].sum()}

print(*(max(d, key=d.get) for d in (pov, tense, addressee)))  # -> first present you

Sum first, then take the argmax. Don't read the labels off the top cell: the model can be sure of the POV and split on the tense, and summing keeps that.

Outside first, the addressee follows from the POV: second → you, third → other, ambiguous → none. Only first-person narration needs its own answer, which is why the head splits only the first row.

Abstaining. ambiguous (POV, tense) and none (addressee) mean "don't compare". Make no drift call on an axis where either side reads that way. A spurious rewrite costs much more than a missed one.

For drift, also read an other with less than 0.8 of the mass as none. On a replay of real chats this removed 8 of 22 false addressee rewrites and 1 of 25 real ones. A floor on you does the opposite: a dropped you flips a message to other and adds rewrites. The remaining false ones are mostly a third-person "he" that means another character rather than the user, which the model cannot tell apart.

gguf/povtense-17m-q8_0.gguf is for llama.cpp (--embeddings --pooling rank; take the first 18 values of the embedding). onnx/model.onnx is for onnxruntime, with dynamic batch and sequence axes. Against the torch model: ONNX agrees on all three axes (200/200 windows), and the q8_0 GGUF agrees on 492-493 of 495 per axis, with every disagreement on a borderline input.

Results

All numbers are agreement with LLM labels. No human labelled anything, including the eval sets.

Gold: 500 held-out windows from real conversations, never trained on.

v2v3
POV acc / macro-F10.958 / 0.9350.936 / 0.926
tense acc / macro-F10.950 / 0.9480.934 / 0.935
addressee acc / macro-F1-0.930 / 0.928
false drift: POV / tense / addressee0.5% / 0.0% / -1.3% / 0.3% / 1.2%
missed drift: POV / tense / addressee4.2% / 0.0% / -4.5% / 0.0% / 3.8%

POV and tense are about a point below v2, across three seeds. False drift means a rewrite nobody needed, which is the error that matters.

gold_first: gold has only 31 first-person windows, so this second set adds 899 windows from the same held-out conversations, 268 of them first-person. The figures below cover all 899.

addressee acc / macro-F10.921 / 0.926
F1: you / other / none0.955 / 0.894 / 0.929
false / missed drift3.0% / 4.1%

Probes: 195 hand-written cases, one construction each, held out of every corpus.

v2v3
POV, original 146144145
tense, original 145136137
addressee minimal pairs and you-only-in-speech (24)-24
addressee, all 195-187

Most addressee misses are single sentences (86/92). Two- and three-sentence windows score 73/75, and full messages 28/28.

Labels

  • POV and tense come from z-ai/glm-5.3-flash, a reasoning model, with the same rules as v2. The narration is what counts and quoted speech doesn't. In an asterisk-only message the bare text is speech. A bare I <verb> you is narration.
  • Addressee comes from typesafe/jev-1.13, asked only about first-person rows, with "Who else does the narration name?":
    • you: a you or your in the narration.
    • other: no you, but a particular someone else (he, she, they, a name, the guard).
    • none: neither. An indefinite someone or a person merely implied doesn't count.
    • A you inside quotes is speech and changes nothing.
  • First-person rows train on Jev's probabilities rather than its argmax, so a 0.52 call teaches less than a 0.99 one.

Training

  • 46,380 rows across eleven corpora: roleplay turns, mined chat messages, Wikipedia and newswire (to anchor ambiguous), synthetic and construction-specific fill, contrastive dialogue pairs, short rows, and two new in v3:
    • addressee minimal pairs: a you row with its narration rewritten to him/her, kept only if Jev then answers other
    • generated first-person other/none fill
  • 5 epochs, lr 4.5e-5, batch 64, class-weighted soft cross-entropy (inverse cell frequency, clipped at 5×), split by conversation.
  • Three seeds on identical data. This is seed 2, picked on validation before gold or probes were read.

Limits

  • English, chat and roleplay register, 1-4 sentence windows with no prior context.
  • first is the thinnest class on gold (31 windows, F1 0.889). One call moves F1 by about a point.
  • {{user}} placeholders read as a name, so as other.
  • It classifies grammatical form, not quality.

License

MIT, same as the base model.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
ModernBertForSequenceClassification
Ревизия весов
9aa7b60

0 моделей