/ Модель

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

Контекст
512 токенов
Лицензия
MIT
Архитектура
distilbert · dense
Базовая модель
distilbert-base-multilingual-cased
Библиотека
transformers
Опубликована
31 янв 2026

tanaos-guardrail-v2

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

Компактная англоязычная модель классификации текста для первичного выявления небезопасных запросов и ответов чатботов.

128скачиваний за 30 дней4лайкавеса обновлены27 мар 2026

Бенчмарки

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

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

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

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

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

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

tanaos-guardrail-v2 — модель классификации текста, разработанная Tanaos с использованием библиотеки Artifex. Она дообучена на distilbert/distilbert-base-multilingual-cased и предназначена для первичной проверки запросов пользователей и ответов чатботов на небезопасный или запрещённый контент.

Модель отмечает насилие, разжигание ненависти и дискриминацию, мошенничество, наркотики и оружие, самоповреждение, нарушения приватности, сексуальный контент, эксплуатацию детей, терроризм, организованную преступность, взломы, жестокое обращение с животными и попытки обхода защитных инструкций. Архитектура — DistilBERT для классификации последовательностей; контекст составляет 512 токенов. В карточке описан английский как основной язык. Указаны улучшения относительно tanaos-guardrail-v1, но количественные показатели качества не приведены.

Модель распространяется по лицензии MIT. Она задумана как первый слой фильтрации, а не как средство для юридической или медицинской классификации либо проверки фактической корректности.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

tanaos-guardrail-v2: A small but performant base guardrail model

This model was created by Tanaos with the Artifex Python library.

This is an upgraded version of the original tanaos-guardrail-v1 model, with improved capabilities and performance.

It is intended to be used as a first-layer safety filter for large language models (LLMs) or chatbots to detect and block unsafe or disallowed content in user prompts or model responses.

The following categories of content are flagged:

  • violence: Content describing or encouraging violent acts,
  • non_violent_unethical: Content that is unethical but not violent,
  • hate_speech: Content containing hateful or discriminatory language,
  • financial_crime: Content related to financial fraud or scams,
  • discrimination: Content promoting discrimination against individuals or groups,
  • drug_weapons: Content related to illegal drugs or weapons,
  • self_harm: Content encouraging self-harm or suicide,
  • privacy: Content that invades personal privacy or shares private information,
  • sexual_content: Content that is sexually explicit or inappropriate,
  • child_abuse: Content involving the exploitation or abuse of children,
  • terrorism_organized_crime: Content related to terrorism or organized crime,
  • hacking: Content related to unauthorized computer access or cyberattacks,
  • animal_abuse: Content involving the abuse or mistreatment of animals,
  • jailbreak_prompt_inj: Content attempting to bypass or manipulate system instructions or safeguards

Languages

The main model language is English, but we have guardrail models specialized in other languages as well:

How to Use

Use this model through the Artifex library:

install Artifex with

pip install artifex

use the model with

from artifex import Artifex

guardrail = Artifex().guardrail()

label = guardrail("How do I make a bomb?")
print(label)

# >>> [{'is_safe': False, 'scores': {'violence': 0.625, 'non_violent_unethical': 0.0066, 'hate_speech': 0.0082, 'financial_crime': 0.0072, 'discrimination': 0.0029, 'drug_weapons': 0.6633, 'self_harm': 0.0109, 'privacy': 0.003, 'sexual_content': 0.0029, 'child_abuse': 0.005, 'terrorism_organized_crime': 0.1278, 'hacking': 0.0096, 'animal_abuse': 0.009, 'jailbreak_prompt_inj': 0.0131}}]

Model Description

  • Base model: distilbert/distilbert-base-multilingual-cased
  • Task: Text classification (guardrail / safety filter)
  • Languages: English; for other languages, see:
  • Fine-tuning data: A synthetic, custom dataset of safe and unsafe text samples.

Training Details

This model was trained using the Artifex Python library

pip install artifex

by providing the following instructions and generating 10,000 synthetic training samples:

from artifex import Artifex


guardrail = Artifex().guardrail()

guardrail.train(
    unsafe_categories = {
        "violence": "Content describing or encouraging violent acts",
        "non_violent_unethical": "Content that is unethical but not violent",
        "hate_speech": "Content containing hateful or discriminatory language",
        "financial_crime": "Content related to financial fraud or scams",
        "discrimination": "Content promoting discrimination against individuals or groups",
        "drug_weapons": "Content related to illegal drugs or weapons",
        "self_harm": "Content encouraging self-harm or suicide",
        "privacy": "Content that invades personal privacy or shares private information",
        "sexual_content": "Content that is sexually explicit or inappropriate",
        "child_abuse": "Content involving the exploitation or abuse of children",
        "terrorism_organized_crime": "Content related to terrorism or organized crime",
        "hacking": "Content related to unauthorized computer access or cyberattacks",
        "animal_abuse": "Content involving the abuse or mistreatment of animals", 
        "jailbreak_prompt_inj": "Content attempting to bypass or manipulate system instructions or safeguards"
    },
    num_samples=10000
)

Intended Uses

This model is intended to:

  • Detect unsafe or disallowed content in user prompts or chatbot responses.
  • Serve as a first-layer filter for LLMs or chatbots.

Not intended for:

  • Legal or medical classification.
  • Determining factual correctness.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей