/ Модель

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

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

ettin-subjects-68m

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

Англоязычный классификатор ModernBERT, который определяет повторяющиеся описания персонажей и объектов в повествовании ролевых переписок для приложения Orb.

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

Бенчмарки

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

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

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

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

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

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

ettin-subjects-68m — англоязычный классификатор для Orb, разработанный для анализа повествовательных фрагментов в ролевых переписках. Он определяет, упоминается ли каждая из 20 категорий объектов и персонажей, и различает действие и описание: например, классифицирует расширение глаз как действие, а блеск глаз — как описание. Результаты помогают приложению находить повторяющиеся описания в последовательности ответов.

Модель дообучена на энкодере ModernBERT jhu-clsp/ettin-encoder-68m и содержит около 68,1 млн параметров. Для каждой категории выдаются три оценки классов, всего 60 логитов; заявленная длина контекста — 7 999 токенов. Доступны веса Safetensors и квантизованный GGUF Q8_0. Лицензия — MIT.

Модель рассчитана на английское повествование без прямой речи и предназначена для работы в конкретном сценарии Orb, а не для классификации текста общего назначения. В README приведены результаты на отложенной выборке из 1 494 ответов, сверенной с метками автоматического разметчика. Категории фиксированы; данные обучения синтетические и не размечены людьми. Качество на других жанрах, языках и тексте с диалогами не проверялось.

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

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

Ограничения

Модель предназначена для английского повествования без диалогов и проверялась только на ролевой прозе; для отдельного ответа её предсказания могут быть шумными. Категории фиксированы, а обучающие метки получены автоматически, без разметки людьми.

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

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

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

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

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

Открыть на Hugging Face

ettin-subjects-68m

Built for Orb, and not very useful outside it. The categories, the input shaping and the decision thresholds were all chosen for one job inside one app: catching a roleplay writer model that re-describes the same thing every reply. It is not a general-purpose text classifier, attribute extractor or content tagger. Its labels come from an LLM, not from people, and it has only been measured on roleplay narration.

Reads which subjects the narration of one roleplay reply dwells on, and how. Orb tags each reply, counts descriptions across the last few replies, and has its editor cut a subject the writer keeps re-describing (her violet eyes, her halo, the crackling fire) when the draft does it again.

Each of 20 categories gets one of three levels:

  • absent: not mentioned
  • action: mentioned for what it does (her eyes widen, he grips the hilt)
  • description: described for how it looks, sounds or feels (her violet eyes glint, calloused hands)

The split between action and description is the point: Orb counts description only, so her eyes widen every reply is not a streak.

Categories, in head order: eyes, hair, face, mouth, voice, breath, scent, hands, skin, chest, lower_body, neck, build, clothing, accessory, object, nonhuman (halo, horns, wings, tail), light, sound, weather.

Basejhu-clsp/ettin-encoder-68m (ModernBERT)
Parameters68,438,076
Head60 logits: 20 categories × 3 levels, row-major, one 3-way softmax per category
Inputnarration only (dialogue removed), up to 1,024 tokens
Filessafetensors (fp32, 274 MB) · gguf/subjects-68m-q8_0.gguf (74.6 MB)
Speed5 ms for a 28-token reply, 44 ms for 210 tokens (q8_0, llama.cpp, 4 CPU threads)

Use

Remove dialogue first. The model never saw quoted speech in training, so feed it narration only. Orb uses its own markup parser for this (narration_only in backend/analysis/text/markup.py); dropping the quoted spans gets close.

import torch
from transformers import AutoTokenizer, AutoModelForSequenceClassification

REPO = "chartreuse-verte/ettin-subjects-68m"
tok = AutoTokenizer.from_pretrained(REPO)
model = AutoModelForSequenceClassification.from_pretrained(REPO).eval()

CATEGORIES = [model.config.id2label[i].split("|")[0] for i in range(0, 60, 3)]
LEVELS = ["absent", "action", "description"]

def read(narration):
    ids = torch.tensor([tok(narration)["input_ids"][:1024]])   # the first 1,024 ids, as in training
    with torch.no_grad():
        logits = model(input_ids=ids, attention_mask=torch.ones_like(ids)).logits[0]
    probs = logits.view(20, 3).softmax(-1)                       # softmax per category, not over all 60
    return {c: (LEVELS[int(p.argmax())], round(float(p[2]), 2)) for c, p in zip(CATEGORIES, probs)}

for text in ["*Her violet eyes glint in the lamplight, silver hair spilling over one shoulder.*",
             "*Her eyes widen. She grabs the lantern and runs for the door.*"]:
    print({c: v for c, v in read(text).items() if v[0] != "absent"})
# {'eyes': ('description', 0.99), 'hair': ('description', 0.97), 'neck': ('description', 0.52),
#  'nonhuman': ('description', 0.77), 'light': ('description', 0.86)}
# {'eyes': ('action', 0.03), 'face': ('action', 0.08), 'hands': ('action', 0.0), 'object': ('action', 0.0)}

The second number is P(description). Note the first example: "silver hair spilling over one shoulder" also reads as neck and nonhuman. Single replies are noisy. Orb only acts when the draft and at least three of the four replies before it describe the same category.

The GGUF is the same model for llama.cpp:

from llama_cpp import Llama, LLAMA_POOLING_TYPE_RANK

llm = Llama("gguf/subjects-68m-q8_0.gguf", embedding=True, pooling_type=LLAMA_POOLING_TYPE_RANK,
            n_ctx=1024, n_batch=1024, n_ubatch=1024, verbose=False)
logits = llm.embed(narration)[:60]   # the same 60 cells; softmax each group of 3

embed returns a hidden-size vector; only its first 60 values are the cells. Set n_batch and n_ubatch to n_ctx: the encoder needs the whole sequence in one batch.

How well it works

Held out by conversation: 1,494 replies, scored against the labeler's argmax. dAUC is description-vs-rest AUC, the read Orb uses.

categoryaccdAUCcategoryaccdAUC
eyes92.2%0.986lower_body93.1%0.981
hair97.5%0.996neck94.5%0.975
face78.3%0.924build91.8%0.986
mouth86.3%0.960clothing92.5%0.988
voice81.1%0.963accessory93.2%0.973
breath92.2%0.966object86.8%0.960
scent97.7%0.995nonhuman94.4%0.956
hands90.4%0.981light94.2%0.985
skin87.2%0.980sound91.2%0.966
chest96.1%0.992weather92.6%0.971
mean91.2%0.974

The q8_0 GGUF scores the same on this split (91.2% / 0.974). Per-source and per-category numbers are in test_report.json.

Limits

  • Made for one app's streak rule, not for reading a single reply. See the warning at the top.
  • English roleplay narration only. Not tested on other fiction, other languages, or text with dialogue left in.
  • All synth data, no human labels.
  • Fixed categories.

Training

11,795 replies (1,172 for validation, 1,494 for test, split by conversation) from three sources: various imported RP excerpts, LLM-to-LLM synthetic roleplay, and Gryphe/Sonnet3.5-Charcard-Roleplay (its license is listed as unknown). Soft cross-entropy per 3-way group, 6 epochs, lr 5e-5, batch 32, cosine schedule with 6% warmup, best checkpoint by validation macro-F1. The data includes real conversation text, so it isn't published.

License

MIT, same as the base model.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей