/ Модель

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

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

kev

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

Kev оценивает текстовые варианты и выдаёт вероятности выбора, бинарных решений или уровней заданной рубрики.

135скачиваний за 30 дней0лайковвеса обновлены26 сен 2026

Бенчмарки

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

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

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

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

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

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

Kev — модель для оценки текстовых альтернатив, разработанная skundu42 и дообученная на базе Ettin Encoder 400M с помощью Halo. Энкодер ModernBERT с примерно 395 млн параметров формирует оценку для каждого кандидата; по этим оценкам вычисляются вероятности выбора. Модель поддерживает выбор из категориальных вариантов, бинарные решения «да/нет» и оценивание по упорядоченной шкале критериев. Она оценивает предложенные варианты, но не генерирует текст и не может выбрать вариант, отсутствующий в списке.

Kev предназначена для экспериментов с маршрутизацией текста, выбором кандидатов и оценками по рубрикам. Принимает текст с инструкциями, состоянием, критериями и описаниями вариантов; ограничение приложения составляет 1024 токена. Заявленные в карточке результаты на отложенной смеси задач не гарантируют качество на новых предметных областях. Надёжность вероятностей может снижаться при смене домена, формулировок или рубрик; модель не валидирована для самостоятельных решений с высокими последствиями. Отчёт также не содержит комплексной оценки безопасности, справедливости или многоязычности. Лицензия в предоставленных данных не указана.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Kev: a 400M-parameter text decision model

Kev scores user-supplied candidates for a text input. It supports categorical choices, yes/no probabilities, and ordered rubric scores through a shared encoder and a single-output scoring head. It is fine-tuned from Ettin Encoder 400M using Halo.

Source code · Inference guide · Training guide

Model details

PropertyValue
Maintainerskundu42
Parameters395,832,321 (approximately 400M)
ArchitectureModernBertForSequenceClassification, 28 layers, hidden size 1,024
HeadOne scalar per candidate; softmax across the supplied candidates
Base revision7662476d60abb071a5bd319c9f3074f3072c062d
ExportSafetensors, FP32 weights
Supported decision length1,024 tokens per encoded prompt/candidate pair
Candidate count2–16
Calibration temperature1.3734692667114208

The prompt includes the decision type, instructions, state, and full criteria list. Each candidate is encoded with that prompt and receives a scalar score. The runtime computes softmax(scores / temperature). The backbone's positional capacity does not override Kev's 1,024-token application limit. Overlength inputs are rejected without silent truncation.

Supported decisions

TypeCriteriaResult
choiceMapping of candidate names to descriptionsSelected name and probabilities
noulExactly false and true, or omitted for No/YesProbability of true
scoreOrdered list of rubric levelsDistribution and expected zero-based index

A five-level rubric produces a score between 0 and 4. For choice/score, the confidence summary is (K * max_probability - 1) / (K - 1); it is not a validated probability of correctness. Kev scores alternatives; it does not generate text.

Quickstart

Use a Linux CUDA GPU environment configured as described in the training guide. The project runtime expects Python 3.12, PyTorch 2.11.x and Transformers >=5.16.1,<5.17. The supplied loader requires CUDA and uses BF16 autocast when supported. Halo is used for training; inference uses the Kev wrapper and Transformers.

Clone the source and download the export. If repository access requires authentication, run hf auth login with an account that has access.

git clone https://github.com/skundu42/kev.git
cd kev
hf download skundu42/kev \
  --revision e62becd4fda8a69e9494c5e22ab60a4a1371ba69 \
  --local-dir ./models/kev \
  --include model.safetensors config.json kev_config.json tokenizer.json tokenizer_config.json

Run this Python example from the cloned source directory:

import json
from kev.inference import DecisionModel

model = DecisionModel.from_pretrained("./models/kev")
result = model.predict(
    state="I was charged twice for my subscription.",
    questions={
        "route": {
            "type": "choice",
            "instructions": "Choose the team that should handle this request.",
            "criteria": {
                "billing": "Payments, invoices, and refunds",
                "technical": "Bugs and product support",
                "sales": "Plans and purchasing",
            },
        },
        "refund_needed": {
            "type": "noul",
            "instructions": "Does this request describe a billing error that may need a refund?",
            "criteria": {"false": "No", "true": "Yes"},
        },
        "urgency": {
            "type": "score",
            "instructions": "Rate the urgency expressed by the customer.",
            "criteria": ["low", "medium", "high"],
        },
    },
)
print(json.dumps(result, indent=2))

DecisionModel.from_pretrained accepts a local export directory, not a Hub ID. A generic text-classification pipeline does not implement Kev's prompt formatting, candidate grouping, or temperature calibration; use the wrapper for the supported decision API.

For JSON CLI inference:

python -m kev.inference --model ./models/kev --input examples/request.json

See the HTTP API guide for authenticated serving and request limits.

Training and data

The published training configuration records one epoch, learning rate 2e-5, weight decay 0.01, warmup ratio 0.03, seed 42, per-device batch size 1, gradient accumulation 32, BF16 training, and gradient checkpointing. Training minimizes cross-entropy across candidate scores against the target distribution, including soft targets. Validation loss selects the checkpoint.

The prepared dataset is skundu42/kev-prepared at revision 5cea4539b6676edfb4fd1fb60878e9aee602b0cd. The published provenance records source revisions, filtering, sampling, exclusions, and retained counts.

SplitDecisions
Training393,549
Validation16,947
Calibration16,267
Test17,476

Sources include:

Native labeled test partitions are retained. Native validation is split 50/50 into validation/calibration when a labeled test partition exists, otherwise 50/25/25 into validation/calibration/test. Normalized content and related groups are deduplicated across partitions, with holdouts taking priority. Exact/group deduplication does not detect paraphrases or establish absence of pretraining overlap. Source and task caps mean this is a sampled mixture, not the full upstream corpora.

Evaluation

The following values come from the published evaluation report, covering 17,476 held-out decisions. These are recorded results, not a new evaluation performed for this model card.

MetricUncalibratedCalibrated
Accuracy0.7985810.798581
Log loss0.4923020.474615
Brier score0.2802100.276855
ECE (15 bins)0.0384090.014262
Ordinal MAE (997 score decisions)0.3727610.392342

Accuracy accepts any candidate with positive target mass. Log loss uses the complete target distribution; Brier score sums squared probability errors across candidates. ECE compares maximum predicted probability to target mass at the winning candidate. Ordinal MAE measures error in expected zero-based rubric indices. Lower is better for the error metrics.

A single positive temperature was fitted on 16,267 separate calibration decisions, searching [0.05, 20] with temperature 1 included as a baseline. Calibration log loss improved from 0.469281 to 0.452630; see calibration.json. Temperature scaling preserves the winning candidate but can change rubric expectations; the test ordinal MAE increased after calibration.

A separate paired Laya benchmark is also included. It measures native deployed behavior on Kev's own test mixture, with in-domain calibration for Kev and unknown Laya training overlap. Laya's input limits altered 1,597 inputs; the report separately includes a shared untruncated subset. Runtime, precision, and probability rounding differ. This comparison is not evidence of general superiority on unseen task families.

Intended uses and limitations

Kev is intended for experimentation with text routing, candidate selection, binary decisions, and rubric-based scoring. Evaluate on representative application data before deploying it, and choose thresholds using a separate validation set.

  • Probabilities are calibrated on this mixture, not guaranteed reliable under domain shift, new rubrics, or arbitrary yes/no questions.
  • Results depend on instructions, candidate wording, and the alternatives provided. The model cannot select an answer absent from the candidate set.
  • Training data can carry social biases and annotation errors. No comprehensive fairness, safety, or multilingual evaluation is reported here.
  • Aggregate mixture results do not establish performance on new task families. Consult source/task breakdowns before drawing conclusions.
  • The model has not been validated as an autonomous decision maker for medical, legal, financial, employment, or other high-impact decisions.
  • Training duration, actual training hardware, and energy/emissions measurements are not established by the published training configuration. No estimates are claimed here.

Repository files

FilePurpose
model.safetensorsEncoder and single-score head weights
config.jsonTransformers architecture configuration
tokenizer.json, tokenizer_config.jsonTokenizer export
kev_config.jsonDecision limits, base revision, and inference temperature
training_config.json, training_args.binTraining settings; training_args.bin is not needed for inference
provenance.jsonPrepared dataset identity and preparation records
calibration.jsonTemperature fitting results
evaluation.jsonUncalibrated and calibrated held-out metrics
benchmarks/laya-full/comparison.jsonPaired comparison report and methodology notes

License and attribution

No standalone license for the Kev fine-tuned weights is declared in this repository at the time of writing. This card does not grant a new license. Consult the base model's license and each upstream dataset's terms before use or redistribution; their terms continue to apply. See the linked source repository for code and its applicable licensing information.

Kev uses supervised decision training with temperature calibration. It does not claim to reproduce Jev's proprietary training recipe. Credit goes to the Ettin, Halo, and upstream dataset authors for their respective work.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей