/ Модель

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

Лицензия
Apache 2.0
Базовая модель
vela3-fast
Библиотека
onnx
Опубликована
17 ноя 2026

espresso-380m

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

Англоязычный CPU-энкодер для классификации текста по типизированным вопросам, маршрутизации, проверок политик и выявления prompt injection.

104скачиваний за 30 дней5лайковвеса обновлены21 ноя 2026

Бенчмарки

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

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

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

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

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

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

Espresso-380m — англоязычный энкодер на 380 млн параметров от Diakrisis для принятия типизированных решений по тексту. Модель принимает текст и один или несколько вопросов с вариантами ответов и возвращает вероятность для каждого варианта. Поддерживает вопросы «да или нет», выбор из списка и оценку по упорядоченной шкале. Для CPU доступны сборки ONNX; запуск возможен через ONNX Runtime без PyTorch.

Модель основана на vllm-sr/vela3-fast, который, согласно метаданным, является англоязычным энкодером для классификации решений и сигналов маршрутизации. Espresso дообучена с LoRA-адаптером и небольшими головами принятия решений; в README также указана дистилляция из Cloudflare Clef-flash. Для задач выбора из большого числа вариантов встроенное правило направляет неуверенные случаи на проверку человеком.

Модель предназначена для маршрутизации, проверок политик, выбора вариантов и выявления prompt injection. На 19 аудитных наборах она показала общую точность 0,795, но на отдельном тесте в пяти областях не превзошла базовую модель. Английский — единственный заявленный язык. Входы длиннее примерно 23 тысяч токенов не тестировались; модель слаба на многошаговых зависимых вопросах и вопросах о политиках. Не следует применять её для медицинских, юридических или критически важных решений без проверки человеком; ответы REVIEW требуют участия человека. Лицензия — Apache-2.0.

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

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

Ограничения

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

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

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

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

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

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

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

Открыть на Hugging Face

Diakrisis espresso 380m

diakrisis/espresso-380m

A 380M-parameter encoder that answers typed questions about a text and returns a probability for each answer. It runs on a CPU with ONNX Runtime and needs no PyTorch. It is distilled from Cloudflare Clef-flash (9.4B) and scores about the same as that teacher overall on 19 audit suites (0.795 vs 0.793). Two hosted models score higher; see "Evaluation status".

Diakrisis is Greek for "discernment, telling things apart". Espresso is the first model in the family.

espresso-380m benchmarks: accuracy against Clef-flash and hosted decision APIs on 19 suites

What it does

You give it a text (the "state") and one or more typed questions. It returns a probability for each possible answer, and a decision.

Question typeWhat it answers
noulyes or no
choiceone option from a list, which can include none_of_these
scoreone level on an ordered scale

The request format is the same one used by Clef and Jev.

What is inside:

  • Base encoder: vllm-sr/vela3-fast (itself based on dmis-lab/UltraBERT-380M), fine-tuned with a LoRA adapter (rank 16) plus small decision heads.
  • Two ONNX builds for CPU (below).
  • A frozen decision rule, decision_rule.json.
  • A small wrapper, espresso.py.

Quick start

pip install onnxruntime tokenizers safetensors numpy
from espresso import Espresso

m = Espresso("espresso-380m")  # path to the downloaded model folder

m.decide("I was charged twice this month.", {
    "billing": {"type": "noul", "instructions": "Is this about billing?"},
    "team": {"type": "choice", "instructions": "Which team handles it?",
             "criteria": {"billing": "Payments and refunds", "tech": "Bugs and outages"}},
    "urgency": {"type": "score", "instructions": "How urgent is it?",
                "criteria": ["low", "medium", "high"]},
})

Each answer has the model's probabilities and a decision. The wrapper applies the decision rule for you, including REVIEW.

There are two builds:

BuildHow to loadSizeAgreement with the evaluated model
fp32 (default, exact)Espresso(path)1.5 GB414 of 414 decisions
w8 (8-bit block-wise weights)Espresso(path, precision="w8")573 MB412 of 414 decisions

Decision rule

The rule is frozen and ships with the model. It has two parts.

Many-option choices. On choice questions with at least 50 options that include none_of_these:

  1. none_of_these gets a small boost (0.25).
  2. If the top answer's probability is below 0.88, the decision is REVIEW instead of an answer.

Pass/fail choices. On a choice over exactly PASS and FAIL, PASS gets a small penalty (−0.15).

The aim is to send uncertain many-option cases to a human instead of answering wrong without warning. The targets were: at most 25% sent to review, under 5% silent misses, under 5% silent wrong answers.

Evaluation results

Confirmation (run once, on fresh items never used for tuning): passed.

CheckResult
Gates on the main confirmation set17 of 17 passed
Many-option set, sent to review23.2% (209/900)
Many-option set, silent misses2.3% (7/300)
Many-option set, silent wrong answers2.2% (13/600)
Long documents, change against the base model0.0008 absolute, agreement 0.963

Gains over the base model (vela3-fast) on the 19 audit suites:

MeasureBaseEspresso
Overall accuracy0.7190.795
Prompt-injection AUROC0.8430.942

Release builds against the evaluated model. All scores on this card were measured on a GPU. The shipped CPU builds were checked against those GPU predictions on 190 items (414 decisions):

CheckResult
fp32 build, decisions that match414 of 414
w8 build, decisions that match412 of 414
Tokenizer mismatches0 in 8,245 texts

CPU speed (indicative only). Measured on one desktop CPU with 20 threads; this is not a benchmark.

  • Bare encoder: about 76 ms for 64 tokens, about 240 ms for 256 tokens.
  • Windowed attention on the 16 local layers gives identical results and is up to 39% faster than dense attention at 8k tokens.

External generalisation test

The 19 audit suites were used during development, so we ran a separate one-shot test: 1,628 human-labelled items from five domains (medical, finance, safety, business documents, legal), from public datasets outside our training and audit task families, with gates fixed before scoring.

DomainMost common answervela3-fast (base)espresso-380m
Medical0.3070.4570.477
Finance (20-way)0.1730.5200.517
Safety0.5130.7730.740
Business documents0.3730.9230.903
Legal (5 tasks)0.4850.6140.649
Mean of domains0.3700.6570.657

Result: espresso did not beat its base model here (difference 95% interval: -1.7 to +1.6 points) and was 3.3 points lower on safety. Its lead over vela3-fast on the audit suites (0.794 vs 0.720) should not be assumed to carry over to new domains. Clef-flash was not part of this test, five domains are only a sample, and upstream model exposure to these datasets cannot be ruled out.

Evaluation status

  • The audit did not fully pass. It has 9 retention checks against the base model. Espresso passed 7. The two misses are narrow:
    • Long-input retention: the lower 95% bound was −0.0200; the limit was above −0.02.
    • Policy originals: −1.1 points; the limit was −1.0 point.
  • v1.0 is released anyway, with this result stated here.
  • The 19 audit suites are not fresh data. They are held-out test splits, but they were used for evaluation in earlier development rounds. Only the confirmation set above was untouched.
  • Two hosted models score higher overall. Gemini Decision 1 (Google) scores 0.828 and Jev 1.14 (TypeSafe) scores 0.821, against Espresso's 0.795.
  • In the comparison below, a REVIEW from Espresso counts as a wrong answer.

Comparison with other models

Overall accuracy on the 19 audit suites: same items, same scorer. Hosted runs were made on 2026-11-17.

ModelSizeOverallOverall without synth_options_xl
Gemini Decision 1 (Google, hosted API)not disclosed0.8280.832
Jev 1.14 (TypeSafe, hosted API)not disclosed0.8210.824
espresso-380m380M0.7950.794
Clef-flash (teacher)9.4B0.7930.794
gliclass-v4-edge0.7450.749
vela3-fast (base)380M0.7190.720
open-jev-deberta0.6000.603
laya0.5190.522

Notes:

  • Both hosted APIs reject choice questions with more than 255 options. Those items count as wrong in the "Overall" column. The last column leaves that suite (synth_options_xl) out for every model. Espresso scores 0.957 on it.
  • Gemini Decision 1 refused 20 items with a safety block. They count as wrong.
  • Jev, jevbench and tasksource_jev all use TypeSafe's request format, so Jev may have a home advantage on those two suites.

Where Espresso leads both hosted models:

SuiteEspressoGemini Decision 1Jev 1.14
Prompt-injection detection (pi_detect)0.8480.7300.702
Customer-service decisions (abcd_test)0.9240.8980.902
Customer service with injections (abcd_injection)0.8910.8840.855
Many options (many_options)0.9340.9090.901
Long inputs (long_inputs)0.7440.7240.740

Where Espresso trails most:

SuiteEspressoGemini Decision 1Jev 1.14Clef-flash (teacher)
Business policy (synth_policy_biz)0.5600.9330.9000.690
Multi-step dependent questions (synth_multi_dependent)0.4240.7710.7280.591
Policy (policy)0.6130.8580.8720.638
typed_synth0.7380.8860.9030.865

The full per-suite table is in COMPARISON.md.

Training data and licences

Training targets are the output distributions of the Clef-flash teacher (Apache-2.0).

SourceLicence
Generated by this project (options, steer, synth, typed-synth parts)Caffeinated Software LLC
ABCD (asappresearch/abcd)MIT
LLMail-Inject (microsoft/llmail-inject-challenge)MIT
PromptShield (hendzh/PromptShield)Apache-2.0
DynaBenchMIT
typed-decisions-synthMIT
tasksource typed decisionscommercial-licensed rows only
LEDGAR and SCOTUS (LexGLUE)CC-BY-4.0
CLINC150CC-BY-3.0

Not in the training data:

  • No outputs from proprietary models. Jev-labelled data was quarantined.
  • No SQuAD (share-alike, dropped).
  • No tasksource rows without a commercial licence.

Hardware: trained on AWS g6e instances (one NVIDIA L40S). Total project compute was about $200.

Intended use and limits

Intended use: typed decisions over text on a CPU, such as routing, policy checks, option selection and prompt-injection screening.

Limits:

  • English only.
  • Not for medical, legal or safety-critical decisions without human review.
  • A REVIEW output needs a human. Do not treat it as an answer.
  • Inputs above about 23k tokens are untested.
  • Weak on multi-step dependent questions (0.424) and on policy questions (0.613).
  • The wrapper runs on CPU only.

Attribution / NOTICE

diakrisis/espresso-380m - Copyright 2026 Caffeinated Software LLC. Licensed under the Apache License, Version 2.0.

Fine-tuned from vllm-sr/vela3-fast (Apache-2.0), itself based on dmis-lab/UltraBERT-380M (Apache-2.0).
Distilled from Cloudflare Clef-flash (Apache-2.0).
Training data includes: LEDGAR and SCOTUS from LexGLUE (CC-BY-4.0); CLINC150 (CC-BY-3.0);
DynaBench (MIT); typed-decisions-synth (MIT);
tasksource typed decisions (commercial-licensed rows only);
ABCD (MIT); LLMail-Inject (MIT); PromptShield (Apache-2.0).

Citation

@misc{diakrisis_espresso_380m_2026,
  title  = {diakrisis/espresso-380m: a 380M typed-decision model},
  author = {{Caffeinated Software LLC}},
  year   = {2026},
  url    = {https://huggingface.co/diakrisis/espresso-380m}
}

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

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

GPU в ailist

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

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

Подбираем GPU…

Ревизия весов
786e048

0 моделей