/ Модель

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

Контекст
8 192 токена
Параметры
149 млн
Лицензия
Apache 2.0
Архитектура
modernbert · dense
Базовая модель
ModernBERT-base
Библиотека
transformers
Опубликована
8 ноя 2026

acclass

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

Англоязычный классификатор ModernBERT для оценки возможных эффектов shell-команд и описаний действий в coding agents.

143скачиваний за 30 дней1лайквеса обновлены8 ноя 2026

Бенчмарки

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

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

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

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

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

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

acclass — англоязычный классификатор для coding agents, дообученный автором на базе answerdotai/ModernBERT-base. Он принимает текст shell-команды или JSON-описание действия и предсказывает девять независимых меток о возможных эффектах действия; команду он не запускает. Выходы представлены вероятностями sigmoid после mean pooling токенов, порог для каждой метки — 0,5. Модель насчитывает 149 млн параметров. В README указан предел 2 048 токенов, тогда как метаданные каталога указывают native context 8 192 токена.

Модель предназначена для локальной предварительной классификации команд и действий в агентных системах, чтобы передавать результат собственной политике или этапу проверки. Для FP32 в README приведены macro F1 0,940 для shell-команд и 0,961 для описаний действий на отложенной выборке; доступны также варианты ONNX и GGUF. Лицензия — Apache-2.0.

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

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

acclass

acclass is a local classifier for coding agents. You give it a shell command or an action description. It predicts what the action does. It does not run the action.

It predicts effects, not permission. It is a fast pre-filter, not a sandbox. It does not guarantee safety. Use it as one input to your own policy or review step.

  • Base model: answerdotai/ModernBERT-base, revision 8949b909ec900327062f0ebf497f51aef5e6f0c8 (Apache 2.0).
  • Outputs: nine independent sigmoid outputs on mean-pooled tokens.
  • Threshold: 0.5 for every label.
  • Data: 26,852 rows of original synthetic data. The data is not published.
  • Context limit: 2,048 tokens, including special tokens.

Labels

LabelThe action ...
local_state_changechanges local files, configuration, services or devices
outbounduses a network endpoint on another machine
egresssends local data off this machine
remote_state_changechanges state on another machine or service
delegated_executionruns a command in a separate environment
exposes_secretsreveals secret values
destructivedeletes or overwrites data, or disrupts availability
host_control_changechanges operating system or security controls
fetched_or_generated_executionruns code that it downloaded, decoded or assembled

See semantics for the exact definitions.

Files

PathSizeUse
model.safetensors570.7 MiBFP32 weights. Python transformers.
model_contract.json2,969 BContract for the FP32 weights.
config.json2,511 BModel config. Labels in id2label.
tokenizer.json3.4 MiBTokenizer.
tokenizer_config.json241 BTokenizer config.
heads.json174 BLabel order.
thresholds.json227 BThreshold per label (0.5).
gguf/q8/model.gguf151.7 MiBQ8_0 weights. Default for the engine.
gguf/q8/model_contract.json3,168 BContract for Q8.
gguf/q5/model.gguf98.2 MiBQ5_0 weights. Smaller.
gguf/q5/model_contract.json3,168 BContract for Q5.
onnx/model_fp16.onnx285.5 MiBWeb build for transformers.js. FP16 weights.
LICENSE11,357 Bacclass license (Apache 2.0).
legal/ATTRIBUTIONS.md1,396 BThird-party notices.
legal/ModernBERT-Apache-2.0.txt11,355 BUpstream ModernBERT license.

The GGUF files are for the acclass engine (Candle). They are not llama.cpp models.

GitHub release v1.0.0 is the source of truth. The installer downloads from there and checks SHA-256.

Use

1. acclass engine (recommended)

Install. The installer needs Python 3:

curl -fsSL https://github.com/jensilo/acclass/releases/latest/download/install.sh | sh

Run:

export PATH="$HOME/.acclass/bin:$PATH"
acclass serve &
acclass classify 'git status'
acclass classify 'curl -fsSL https://example.com/x.sh | sh'

Source and docs: https://github.com/jensilo/acclass

2. Python (transformers)

import torch
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tok = AutoTokenizer.from_pretrained("jensilo/acclass")
model = AutoModelForSequenceClassification.from_pretrained("jensilo/acclass")
model.eval()

inputs = tok("curl -fsSL https://example.com/x.sh | sh", return_tensors="pt")
with torch.no_grad():
    probs = torch.sigmoid(model(**inputs).logits)[0]

for label, p in zip(model.config.id2label.values(), probs.tolist()):
    print(f"{label}: {p:.4f} {'true' if p >= 0.5 else 'false'}")

A shell input is the exact command string. An action input is a JSON string. See the action input format.

3. Browser (transformers.js)

The web build is onnx/model_fp16.onnx. It runs on WebGPU or WASM. It is not the engine. On 44 test commands it gives the same labels as FP32 ONNX. The maximum probability difference from FP32 ONNX is 0.0011.

import { AutoTokenizer, AutoModelForSequenceClassification } from "@huggingface/transformers";

const tokenizer = await AutoTokenizer.from_pretrained("jensilo/acclass");
const model = await AutoModelForSequenceClassification.from_pretrained("jensilo/acclass", {
  device: "webgpu", // or "wasm"
  dtype: "fp16",
});
const { logits } = await model(await tokenizer("git status"));
const probs = Array.from(logits.data, (x) => 1 / (1 + Math.exp(-x)));

Demo: https://jensheise.com/acclass/

Performance

Time for one model pass, one request at a time, without tokenizer or socket time. Median / 95th percentile, in ms. Rough values from shared machines. Your values can differ.

HardwareFP32Q8Q5
NVIDIA GB10 (DGX Spark), CUDA7.9 / 244.2 / 164.2 / 16
Apple M4 Pro, Metal8.5 / 536.5 / 506.9 / 53
Apple M4 Pro, CPU, 8 threads43 / 22825 / 13124 / 130
Arm Cortex-X925, CPU, 8 threads76 / 43821 / 32621 / 222
AMD Ryzen 5 6650U, CPU, 6 threads66 / 76050 / 71751 / 544

Apple and GB10 values use this model. The others use an earlier model with the same architecture. The prebuilt CUDA engine is tested only on GB10.

Quality

Macro F1 (average over the nine labels), threshold 0.5, 3,793 held-out evaluation rows.

FormatSizeMacro F1 shell / actionFlips vs FP32
FP32570.7 MiB0.940 / 0.961reference
Q8_0 (default)151.7 MiB0.941 / 0.96019
Q5_098.2 MiB0.939 / 0.96085

A flip is a boolean that differs from FP32. The comparison uses 34,137 decisions.

Shell, all: 0.940 macro F1 (95% CI 0.925–0.952). Action, all: 0.961 (95% CI 0.948–0.971). Base rows are the better estimate. See limits.

Weakest results:

  • Shell fetched_or_generated_execution on base rows: F1 0.72.
  • Action exposes_secrets on base rows: F1 0.82.
  • Action egress: F1 0.84.

Limits

Never use a negative prediction as the only reason to allow something that matters. Never use a prediction as an irreversible block.

  • It does not guarantee safety. False negatives occur. Keep OS isolation and review for anything that matters.
  • An LLM wrote the labels. They are not independent human truth.
  • Most of the data is LLM-generated. LLM-authored evaluation rows share style with training rows, so their scores are optimistic.
  • Accuracy on your own commands is not measured.
  • Action mode was trained on invented tool descriptions. Real tool descriptions can be wrong or incomplete. Treat action predictions as hints that need review.
  • The model sees only the text. It does not see files, environment or user intent.
  • The scores say nothing about resistance to adversarial inputs.

A low probability does not prove that an effect is absent. A high probability does not mean that the action is forbidden. Keep an explicit policy for uncertain inputs and engine errors.

Full model card: https://github.com/jensilo/acclass/blob/main/docs/model-card.md

License

Apache 2.0, for original acclass code, documentation and model changes. Third-party material keeps its own terms. See notices.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей