/ Модель

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

Контекст
32 768 токенов
Параметры
377 млн
Лицензия
Apache 2.0
Архитектура
ultrabert · dense
Базовая модель
UltraBERT-380M
Библиотека
transformers
Опубликована
15 окт 2026

ultrabert-380M-go-emotions

Заполнение пропусковТекст → текст6 профессий
152скачиваний за 30 дней2лайкавеса обновлены16 окт 2026

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

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

Англоязычная модель для многометочной классификации эмоций в тексте по 28 классам.

cirimus/ultrabert-380M-go-emotions — англоязычный энкодер UltraBERT-380M, дообученный разработчиком Cirimus на наборе GoEmotions для многометочной классификации эмоций. Модель относит текст к одному или нескольким из 28 эмоциональных классов, включая восхищение, веселье и гнев; построена на архитектуре UltrabertForSequenceClassification и содержит 377,5 млн параметров.

Модель подходит для анализа эмоций в сообщениях и отзывах, а также для исследовательского анализа текстов. В тестировании на GoEmotions при стандартном пороге 0,5 макро F1 составила 0,521; подбор порогов для отдельных классов повысил её до 0,568. Модель обучалась на англоязычных комментариях Reddit, поэтому качество может снижаться на других тематиках и в иных культурных контекстах; редкие классы, например grief и relief, представлены недостаточно, а разметка содержит неоднозначности. Лицензия — Apache 2.0.

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

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

Ограничения

Обучение на комментариях Reddit может ограничивать переносимость на другие темы и культурные контексты; редкие классы вроде grief и relief представлены слабо. В данных есть неоднозначности разметки, а макро F1 на тесте GoEmotions составила 0,521 при стандартном пороге 0,5.

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

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

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

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

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

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

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

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

Также подходит для

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

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

Открыть на Hugging Face

banner

Overview

This model was fine-tuned from UltraBERT-380M on the GoEmotions dataset for multi-label classification. It predicts emotional states in text, with a total of 28 possible labels. Each input text can have one or more associated labels, reflecting the multi-label nature of the task.


Model Details

  • Base Model: UltraBERT-380M
  • Fine-Tuning Dataset: GoEmotions
  • Number of Labels: 28
  • Problem Type: Multi-label classification
  • Language: English
  • License: Apache 2.0
  • Fine-Tuning Framework: Hugging Face Transformers

Example Usage

Here’s how to use the model with Hugging Face Transformers:

# requires transformers>=5.2:  pip install -U "transformers>=5.2"
from transformers import pipeline
import torch

# Load the model
classifier = pipeline(
    "text-classification", 
    model="cirimus/ultrabert-380M-go-emotions",
    top_k=5,
    trust_remote_code=True
)

text = "I am so happy and excited about this opportunity!"
predictions = classifier(text)

# Print top 5 detected emotions
sorted_preds = sorted(predictions[0], key=lambda x: x['score'], reverse=True)
top_5 = sorted_preds[:5]

print("\nTop 5 emotions detected:")
for pred in top_5:
    print(f"\t{pred['label']:10s} : {pred['score']:.3f}")

# Example output:
# Top 5 emotions detected:
#        excitement : 0.885
#        joy        : 0.753
#        admiration : 0.015
#        love       : 0.015
#        gratitude  : 0.009

How the Model Was Created

The model was fine-tuned for 2 epochs using the following hyperparameters:

  • Learning Rate: 2e-5
  • Batch Size: 16
  • Weight Decay: 0.01
  • Optimizer: AdamW
  • Evaluation Metrics: Precision, Recall, F1 Score (weighted), Accuracy

Dataset

The GoEmotions dataset is a multi-label emotion classification dataset derived from Reddit comments. It contains 58,000 examples with 28 emotion labels (e.g., admiration, amusement, anger, etc.), and it is annotated for multi-label classification.


Evaluation Results

The model was evaluated on the test split of the GoEmotions dataset, using a threshold of 0.5 for binarizing predictions. The overall metrics were:

Standard Results:

Using the default threshold of 0.5.

LabelAccuracyPrecisionRecallF1MCCSupportThreshold
macro avg0.9710.6570.4520.5210.52154270.5
admiration0.9460.7180.6960.7070.6785040.5
amusement0.9830.8120.8520.8320.8232640.5
anger0.9710.6440.4290.5150.5121980.5
annoyance0.9410.4940.2690.3480.3363200.5
approval0.9400.5720.2930.3880.3823510.5
caring0.9780.5810.3700.4520.4531350.5
confusion0.9730.5450.3530.4290.4261530.5
curiosity0.9520.5500.4260.4800.4592840.5
desire0.9890.7350.4340.5450.560830.5
disappointment0.9730.5380.1850.2760.3051510.5
disapproval0.9530.5400.3030.3880.3832670.5
disgust0.9820.6530.3980.4950.5021230.5
embarrassment0.9950.7370.3780.5000.526370.5
excitement0.9820.5520.3590.4350.4371030.5
fear0.9920.7580.6030.6710.672780.5
gratitude0.9900.9520.8980.9240.9193520.5
grief0.9991.0000.3330.5000.57760.5
joy0.9800.7060.5530.6200.6151610.5
love0.9830.7950.8150.8050.7962380.5
nervousness0.9960.5380.3040.3890.403230.5
optimism0.9740.6770.4840.5640.5601860.5
pride0.9980.8750.4380.5830.618160.5
realization0.9740.5590.1310.2120.2621450.5
relief0.9980.2500.0910.1330.150110.5
remorse0.9920.5850.6790.6280.626560.5
sadness0.9780.6640.4940.5660.5621560.5
surprise0.9800.6700.4470.5360.5381410.5
neutral0.7880.6960.6320.6620.50917870.5

Optimal Results:

Using the best threshold for each label based on the training set (tuned on F1), tested on the test set:

LabelAccuracyPrecisionRecallF1MCCSupportThreshold
macro avg0.9680.5960.5540.5680.5535427various
admiration0.9450.6940.7200.7070.6765040.44
amusement0.9830.8100.8560.8320.8242640.47
anger0.9690.5920.5200.5540.5391980.36
annoyance0.9230.3610.4000.3790.3393200.30
approval0.9260.4300.4220.4260.3873510.31
caring0.9750.4910.4220.4540.4431350.37
confusion0.9680.4410.5360.4840.4701530.32
curiosity0.9500.5240.5740.5480.5222840.41
desire0.9890.7020.4820.5710.576830.40
disappointment0.9670.3870.3050.3410.3271510.29
disapproval0.9460.4440.4040.4240.3962670.33
disgust0.9790.5280.5280.5280.5181230.28
embarrassment0.9940.6520.4050.5000.512370.43
excitement0.9780.4210.3880.4040.3931030.36
fear0.9920.7050.7050.7050.701780.33
gratitude0.9900.9600.8840.9200.9163520.58
grief1.0001.0000.8330.9090.91360.23
joy0.9790.6320.6710.6510.6401610.34
love0.9840.7920.8490.8190.8112380.45
nervousness0.9960.4710.3480.4000.402230.31
optimism0.9730.6130.5700.5910.5771860.32
pride0.9980.8750.4380.5830.618160.27
realization0.9660.3150.2340.2690.2551450.21
relief0.9980.4000.3640.3810.380110.22
remorse0.9920.5840.8040.6770.682560.42
sadness0.9770.5970.5900.5940.5821560.34
surprise0.9790.6120.5600.5850.5751410.38
neutral0.7850.6680.6880.6780.51617870.43

Confusion matrix:

banner


Intended Use

The model is designed for emotion classification in English-language text, particularly in domains such as:

  • Social media sentiment analysis
  • Customer feedback evaluation
  • Behavioral or psychological research

Limitations and Biases

  • Data Bias: The dataset is based on Reddit comments, which may not generalize well to other domains or cultural contexts.
  • Underrepresented Classes: Certain labels like "grief" and "relief" have very few examples, leading to lower performance for those classes.
  • Ambiguity: Some training data contain annotation inconsistencies or ambiguities that may impact predictions.


Environmental Impact

  • Hardware Used: NVIDIA DGX Spark (GB10)
  • Training Time: <1 hour
  • Carbon Emissions: ~0.03 kg CO2 (calculated via ML CO2 Impact Calculator).

Citation

If you use this model, please cite it as follows:

@misc{junque2025emotion,
  title        = {Emotion and Bias Classification with Modern Encoders},
  author       = {Junqu\'e de Fortuny, Enric},
  year         = {2025},
  howpublished = {\url{https://huggingface.co/spaces/cirimus/emotion-detection}}
}

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

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

GPU в ailist

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

Нельзя запустить

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

Класс архитектуры
UltrabertForSequenceClassification
Ревизия весов
39e26b7

0 моделей