/ Модель

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

Контекст
514 токенов
Параметры
152 млн
Лицензия
Apache 2.0
Архитектура
roberta · dense
Базовая модель
unbiased-toxic-roberta
Опубликована
13 ноя 2023

unbiased-toxic-roberta-onnx

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

protectai/unbiased-toxic-roberta-onnx — модель для классификации токсичности текстов, представляющая собой конверсию unitary/unbiased-toxic-roberta в формат ONNX с использованием библиотеки Hugging Face Optimum.

148 тыс.скачиваний за 30 дней8лайковвеса обновлены9 июл 2026

Бенчмарки

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

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

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

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

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

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

Исходную модель разработала Laura Hanu из Unitary. Проект protectai/llm-guard архивирован и больше не поддерживается.

Модель предназначена для анализа комментариев и выявления токсичного, агрессивного, оскорбительного или угрожающего содержания, в том числе в сценариях фильтрации пользовательского контента и защиты LLM-приложений. Она обучалась на данных трёх соревнований Jigsaw: Toxic Comment Classification, Jigsaw Unintended Bias in Toxicity Classification и Multilingual Toxic Comment Classification. Поддерживается английский язык; README не содержит сведений о размере модели, длине контекста, точной архитектуре базовой RoBERTa или фактической поддержке многоязычного режима.

В зависимости от задачи доступны метки toxic, severe_toxic, obscene, threat, insult, identity_hate или identity_attack, sexual_explicit, а также дополнительные идентичности, упоминаемые в комментариях. Модель предоставляет категории от «Very Toxic» до «Not Toxic» и может запускаться через Optimum, ONNX Runtime и Transformers. Важное ограничение — результаты Hugging Face-модели могут отличаться от результатов библиотеки Detoxify. Лицензия Apache-2.0.

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

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

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

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

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

Открыть на Hugging Face

[!WARNING] THIS PROJECT HAS BEEN ARCHIVED.

This project and its associated code on GitHub are no longer under active development or maintained.

ONNX version of unitary/unbiased-toxic-roberta

This model is a conversion of unitary/unbiased-toxic-roberta to ONNX format using the 🤗 Optimum library.

Trained models & code to predict toxic comments on 3 Jigsaw challenges: Toxic comment classification, Unintended Bias in Toxic comments, Multilingual toxic comment classification.

Built by Laura Hanu at Unitary.

⚠️ Disclaimer: The huggingface models currently give different results to the detoxify library (see issue here).

Labels

All challenges have a toxicity label. The toxicity labels represent the aggregate ratings of up to 10 annotators according the following schema:

  • Very Toxic (a very hateful, aggressive, or disrespectful comment that is very likely to make you leave a discussion or give up on sharing your perspective)
  • Toxic (a rude, disrespectful, or unreasonable comment that is somewhat likely to make you leave a discussion or give up on sharing your perspective)
  • Hard to Say
  • Not Toxic

More information about the labelling schema can be found here.

Toxic Comment Classification Challenge

This challenge includes the following labels:

  • toxic
  • severe_toxic
  • obscene
  • threat
  • insult
  • identity_hate

Jigsaw Unintended Bias in Toxicity Classification

This challenge has 2 types of labels: the main toxicity labels and some additional identity labels that represent the identities mentioned in the comments.

Only identities with more than 500 examples in the test set (combined public and private) are included during training as additional labels and in the evaluation calculation.

  • toxicity
  • severe_toxicity
  • obscene
  • threat
  • insult
  • identity_attack
  • sexual_explicit

Identity labels used:

  • male
  • female
  • homosexual_gay_or_lesbian
  • christian
  • jewish
  • muslim
  • black
  • white
  • psychiatric_or_mental_illness

A complete list of all the identity labels available can be found here.

Usage

Optimum

Loading the model requires the 🤗 Optimum library installed.

from optimum.onnxruntime import ORTModelForSequenceClassification
from transformers import AutoTokenizer, pipeline


tokenizer = AutoTokenizer.from_pretrained("laiyer/unbiased-toxic-roberta-onnx")
model = ORTModelForSequenceClassification.from_pretrained("laiyer/unbiased-toxic-roberta-onnx")
classifier = pipeline(
    task="text-classification",
    model=model,
    tokenizer=tokenizer,
)

classifier_output = ner("It's not toxic comment")
print(classifier_output)

LLM Guard

Toxicity scanner

Community

Join our Slack to give us feedback, connect with the maintainers and fellow users, ask questions, or engage in discussions about LLM security!

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
RobertaForSequenceClassification
Ревизия весов
16fd63c

0 моделей