/ Модель

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

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

mmbert-Multilingual_detection_of_hate_speech

Классификация текстаТекст → label3 профессии
173скачиваний за 30 дней1лайквеса обновлены5 июн 2026

Описание модели

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

Многоязычная модель Ghadeer Albadani для бинарного выявления ненавистнической речи в текстах на 21 языке.

Многоязычная модель классификации текста, разработанная Ghadeer Albadani и дообученная на основе jhu-clsp/mmBERT-base. Она относит текст к одному из двух классов: ненавистническая речь или отсутствие ненавистнической речи. Модель предназначена для модерации контента, анализа публикаций в социальных сетях и многоязычных исследований, включая перенос между языками с ограниченными ресурсами.

Модель построена на архитектуре ModernBERT и содержит около 306,9 млн параметров; заявленная длина контекста — до 8192 токенов. По карточке, обучение охватывало 21 язык, а оценка — наборы данных на 20 языках. Среди языков — арабский, английский, русский, персидский, китайский, бенгальский, суахили и другие. Модель распространяется по лицензии Apache-2.0.

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

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

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

Ограничения

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

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

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

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

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

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

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

Открыть на Hugging Face

mmBERT: Advanced Multilingual Encoder Model

Model Description

This model is a multilingual hate speech detection model fine-tuned from jhu-clsp/mmBERT-base (mmBERT) using datasets from 21 languages belonging to multiple language families and writing systems. The model aims to support robust multilingual hate speech classification and cross-lingual generalization across both high-resource and low-resource languages.

The model performs binary classification:

  • Hate Speech
  • Non-Hate Speech

Model Details

  • Developed by: Ghadeer Albadani
  • Base Model: bert-base-multilingual-cased (mBERT)
  • Model Type: Transformer-based Text Classification
  • Task: Multilingual Hate Speech Detection
  • Framework: Hugging Face Transformers
  • Training Languages: 21 Languages
  • License: Apache-2.0

Supported Languages

The model was fine-tuned using the following languages:

  • Arabic
  • Hebrew
  • Persian
  • English
  • French
  • German
  • Spanish
  • Portuguese
  • Italian
  • Danish
  • Russian
  • Turkish
  • Bengali
  • Chinese
  • Korean
  • Malay
  • Indonesian
  • Swahili
  • Amharic
  • Somali
  • Roman Urdu

These languages represent diverse language families and writing systems, enabling multilingual hate speech detection and cross-lingual generalization.

Intended Use

Direct Use

The model can be used for:

  • Multilingual hate speech detection
  • Toxic content classification
  • Social media moderation
  • Multilingual NLP research
  • Cross-lingual text classification

Downstream Applications

  • Content moderation systems
  • Hate speech monitoring platforms
  • Social media analytics
  • Cross-lingual NLP applications
  • Low-resource language research

Out-of-Scope Use

This model should not be used as:

  • A legal decision-making system
  • A replacement for human moderation
  • A profiling tool for individuals or groups
  • A fully automated moderation system without human oversight

Benchmark Performance

Evaluation Results

The model was evaluated independently on multilingual hate speech datasets covering 20 languages.

LanguageAccuracyF1-ScoreNotes
Arabic0.820.82Moderate performance
Persian0.940.94Excellent performance
Hebrew0.760.76Lower performance
Bengali0.890.89Good performance
Korean0.760.76Lower performance
Chinese0.810.81Moderate performance
Russian0.890.89Good performance
Spanish0.820.82Moderate performance
Indonesian0.940.94Excellent performance
Turkish0.850.85Good performance
English0.890.89Good performance
French0.850.85Good performance
German0.640.63Poor performance
Portuguese0.710.71Moderate–poor performance
Malay0.650.65Poor performance
Italian0.800.79Moderate performance
Roman Urdu0.820.82Moderate performance
Amharic0.770.76Moderate performance
Swahili0.900.90Very good performance
Somali0.710.71Moderate–poor performance

Summary

The model demonstrated strong multilingual hate speech detection capabilities across a diverse set of languages. The highest performance was achieved on Persian and Indonesian, both obtaining an Accuracy and F1-score of 0.94, followed by Swahili (0.90), English (0.89), Russian (0.89), and Bengali (0.89). These results indicate that the model successfully learned language-independent hate speech representations despite substantial linguistic diversity among the training languages.

Training Data

The model was fine-tuned on multilingual hate speech datasets collected from multiple publicly available sources covering 21 languages.

The datasets contain two labels:

  • Hate Speech
  • Non-Hate Speech

Data preprocessing included cleaning, normalization, tokenization, and label standardization.

Training Procedure

Hyperparameters

ParameterValue
Epochs2
Learning Rate2e-5
Batch Size32
Optimizer Epsilon1e-8
Maximum Sequence Length512

Hardware

Training was performed using:

  • GPU: NVIDIA L4
  • GPU Memory: 24 GB

Software

  • Python
  • PyTorch
  • Hugging Face Transformers
  • CUDA

Evaluation Metrics

The model was evaluated using:

  • Accuracy
  • Precision
  • Recall
  • F1-Score
  • Macro F1

Bias, Risks, and Limitations

Although the model was trained on multilingual datasets from diverse language families, performance may vary depending on:

  • Dataset quality
  • Annotation consistency
  • Cultural interpretation of hate speech
  • Domain differences
  • Language-specific characteristics

Users should evaluate the model carefully before deployment in real-world moderation systems.

How to Use

from transformers import AutoTokenizer
from transformers import AutoModelForSequenceClassification
from transformers import pipeline

model_name = "GhadeerALbadani/mmbert-Multilingual_detection_of_hate_speech"

tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)

classifier = pipeline(
    "text-classification",
    model=model,
    tokenizer=tokenizer
)

text = "I hate all people from this group."

result = classifier(text)

print(result)

Model Architecture

The model is based on (mBERT).

Architecture details:

-Transformer Encoder Architecture -22 Transformer Layers -Hidden Size: 768 -Intermediate Size: 1152 -12 Attention Heads -Approximately 307 Million Parameters -110 Million Non-embedding Parameters -Maximum Sequence Length: 8192 Tokens -Vocabulary Size: 256,000 Tokens -Gemma 2 Tokenizer -Pretrained on multilingual web data, Wikipedia, academic papers, code repositories, and community discussions -Supports multilingual understanding and cross-lingual transfer learning

Research Context

This model was developed as part of research on multilingual hate speech detection, cross-lingual transfer learning, and multilingual natural language processing.

The research investigates:

  • Multilingual training
  • Cross-lingual transfer
  • Zero-shot learning
  • Hate speech detection in low-resource languages
  • Language-independent representation learning

Citation

If you use this model in your research, please cite:

@misc{albadani2026mmbert,
  author = {Ghadeer Albadani},
  title = {mmBERT: Multilingual Detection of Hate Speech},
  year = {2026},
  publisher = {Hugging Face},
  url = {https://huggingface.co/GhadeerALbadani/mmbert-Multilingual_detection_of_hate_speech}
}

Contact

Author: Ghadeer Albadani

Model Repository: https://huggingface.co/GhadeerALbadani/mmbert-Multilingual_detection_of_hate_speech

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей