/ Модель

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

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

husky-sight-tool-type-classifier

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

Мультиязычный классификатор Patronus AI определяет тип инструмента или действия агента по тексту для маршрутизации рисков, применения политик и мониторинга.

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

Бенчмарки

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

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

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

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

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

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

Husky Sight Tool Type Classifier — разработанная Patronus AI мультиязычная модель-классификатор на базе ModernBERT (mmBERT) для определения типа инструмента по тексту запроса, вызова инструмента или шага агента. Модель относит вход к одному классу; примеры включают файловые операции, запросы к базам данных и действия с системами контроля версий. Она рассчитана на маршрутизацию по уровню риска, применение политик и проверок согласования для ИИ-агентов, а также мониторинг во время выполнения.

Модель содержит 140,5 млн параметров, использует архитектуру ModernBertForSequenceClassification и поддерживает контекст до 8192 токенов. Доступны веса Safetensors и экспорт ONNX. В тестировании Patronus на отложенной выборке из 2914 примеров указаны accuracy и macro F1 по 0,957. Карточка описывает немецкий и английский как основные проверенные языки; мультиязычная основа допускает работу с другими языками, но они не проходили активную проверку.

Предсказание отражает предполагаемый тип действия по тексту, но не подтверждает, что действие было выполнено. Модель не отслеживает поток информации между несколькими шагами агента; возможны ложные срабатывания и пропуски, поэтому для критически важных решений рекомендуется сочетать её с детерминированными правилами и калиброванными порогами. Лицензия — Apache-2.0.

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

  • Определение, связан ли запрос агента с файловой системой
  • Классификация вызовов инструментов для работы с базами данных
  • Распознавание действий с системами контроля версий
  • Маршрутизация запросов агента по уровню риска
  • Проверка вызовов инструментов перед применением политики или согласованием
  • Мониторинг типов действий ИИ-агента во время выполнения

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Model Card for Husky Sight Tool Type Classifier

Multilingual Tool-Type Classifier for Real-World AI Agent Security

Read more

Husky Sight is a multilingual ModernBERT-based (mmBERT) classifier that identifies which kind of tool a request, tool call, or agent step involves. It is part of the Patronus Protect security stack and is a member of the Husky tool-analysis family, alongside Husky Paw (operation) and Husky Nose (security properties).

Intended Uses

The model maps an input text to exactly one class:

idlabeldescription
0fileTool operating on the local file system.
1databaseTool operating on a database.
2vcsTool operating on version control.
3apiTool operating on an API.
4memoryTool operating on persistent memory.
5messagingTool operating on a messaging service.
6webTool operating on the web.
7browserTool operating on a browser.
8shellTool operating on a shell / OS command.
9codeTool operating on code execution.
10systemTool operating on the operating system.
11secretsTool operating on secrets / credentials.
12infraTool operating on infrastructure (k8s, cloud).
13unknownTool operating on an unidentified tool.

Examples:

InputExpected class
Read the config file at /etc/app.conffile
SELECT email FROM users WHERE id = 1database
Create a branch and open a pull requestvcs
Send a POST request to the payments APIapi
Run kubectl scale deployment web --replicas=3infra
How are you today?unknown

Typical downstream uses:

  • tool-risk routing,
  • AI agent policy enforcement,
  • approval workflows,
  • runtime monitoring.

Limitations

  • A positive prediction describes an apparent property of the input, not proof that an action was executed.
  • The model does not track information flow across multiple agent steps.
  • German and English are the primary evaluated languages; other languages run through the multilingual backbone but were not actively validated.
  • False positives and negatives are possible. High-impact enforcement should combine the model with deterministic policy and calibrated thresholds.

Model Variants

  • Husky Sight Tool Type Classifier: full ModernBERT model in FP32 (model.safetensors).
  • Husky Sight Tool Type Classifier ONNX (FP16): onnx/onnx_fp16/model_fp16.onnx in this repository.
  • Husky Sight Tool Type Classifier Edge: quantized ONNX builds (int8, int8_int4_embeddings, fp16) in a separate edge repository.
  • Husky Sight Tool Type Classifier NTDB L2: lightweight multilingual cascade components under l2/ for efficient local runtime classification.

Training Data

Trained on Patronus' in-house multilingual dataset for this task, built from cleaned real-world sources plus internally generated examples. Real-world sources were judge-cleaned by content (no keyword heuristics) and contaminated rows removed.

Augmentations

To improve robustness the dataset includes modern obfuscation techniques:

  • Unicode variants
  • Homoglyph attacks
  • Encodings (e.g. base64)
  • Tag wrappers (User:, System:)
  • HTML tags
  • Code comments
  • Spacing noise
  • Leetspeak
  • Case noise
  • Combination of N augmentation techniques

Regularization

  • Natural-language wrappers around the payload
  • Counterfactual samples
  • Trigger-word / spurious-correlation corpora
  • ~90% similarity deduplication with a train/(val ∪ test) leakage guard

Reducing bias

All augmentations and regularizers are applied to positive and negative examples alike so the model keys on content rather than surface form.

Benchmark

Held-out test set (n = 2,914), single-label:

MetricScore
Accuracy0.957
F1 (macro)0.957
Precision (macro)0.957
Recall (macro)0.957

Per-class F1:

ClassF1
database0.992
secrets0.990
messaging0.984
infra0.981
code0.981
memory0.980
browser0.977
file0.975
vcs0.974
unknown0.938
web0.936
system0.904
shell0.891
api0.890

Usage

from transformers import pipeline

clf = pipeline("text-classification", model="patronus-studio/husky-sight-tool-type-classifier")
clf("Run kubectl scale deployment web --replicas=3")
# -> [{"label": "infra", "score": 0.98}]

ONNX

The FP16 ONNX export lives under onnx/onnx_fp16; the quantized builds (int8, int8_int4_embeddings) live in the separate Husky Sight Tool Type Classifier Edge repository. Apply a softmax over the logits and take the argmax:

from optimum.onnxruntime import ORTModelForSequenceClassification
from transformers import AutoTokenizer

model_id = "patronus-studio/husky-sight-tool-type-classifier"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = ORTModelForSequenceClassification.from_pretrained(model_id, subfolder="onnx/onnx_fp16", file_name="model_fp16.onnx")

inputs = tokenizer("Run kubectl scale deployment web --replicas=3", return_tensors="pt")
logits = model(**inputs).logits.detach().cpu().numpy()[0]
print(model.config.id2label[int(logits.argmax())])

Citation

@misc{huskysight2026,
  title={Husky Sight Tool Type Classifier: Multilingual Classification for Real-World AI Agent Security},
  author={Patronus Protect},
  year={2026},
  howpublished={\url{https://huggingface.co/patronus-studio/husky-sight-tool-type-classifier}}
}

License

This model is released under the Apache License 2.0. A copy of the license is included as LICENSE in this repository.

The model is derived from jhu-clsp/mmBERT-small, which is distributed under the MIT License. The upstream copyright and permission notice are retained; the MIT terms continue to apply to the portions originating from that work.

Patronus Ark

This model is built to run inside Patronus Ark, Patronus' open-source on-device AI-security scanning library (L1 native rules → L2 NTDB cascade → L3 transformer). Ark is open source: GitHub repository · product page.

More information


🛡️ Patronus Protect

Brought to you by Patronus Protect, a local AI firewall that secures every AI interaction, including prompts, tools and documents, before it reaches your models.

Try it for free at patronus.studio.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей