/ Модель

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

Контекст
514 токенов
Параметры
137 млн
Архитектура
mpnet · dense
Базовая модель
all-mpnet-base-v2
Библиотека
transformers
Опубликована
8 мар 2025

coherence-all-mpnet-base-v2

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

Кросс-энкодер MPNet оценивает связность и релевантность ответа на вопрос или реплику в английском диалоге.

177скачиваний за 30 дней3лайкавеса обновлены8 мар 2025

Бенчмарки

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

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

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

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

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

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

Модель enochlev/coherence-all-mpnet-base-v2 разработана Enoch Levandovsky и дообучена на базе sentence-transformers/all-mpnet-base-v2 для оценки связности и уместности ответов в диалоге. Это кросс-энкодер на архитектуре MPNet с 136,7 млн параметров, реализованный для Transformers; он принимает текст вопроса или подсказки вместе с ответом и выдаёт оценку, где более высокие значения указывают на большую связность или релевантность. Максимальная длина контекста — 514 токенов.

Модель предназначена для проверки ответов чат-ботов и диалоговых систем, а также может служить компонентом более крупной системы или основой для дальнейшего дообучения. Она обучалась и оценивалась на наборе данных CHILDES, а заявленный язык — английский. Репозиторий не сообщает лицензию и предлагает проверить её отдельно. Модель не предназначена для анализа тональности, распознавания эмоциональной окраски или задач вне оценки связности диалога; автор также отмечает, что сарказм и юмор могут оцениваться недостаточно точно.

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

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

Ограничения

Модель может неточно оценивать сарказм и юмор и не предназначена для анализа тональности или эмоций. Лицензия в карточке не указана; перед использованием следует проверить условия репозитория.

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

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

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

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

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

Открыть на Hugging Face

Model Card for Coherence Testing Model

Model Details

Model Description

This model is a fine-tuned version of the sentence-transformers/all-mpnet-base-v2 designed specifically for coherence testing in dialogues. Leveraging the cross-encoder architecture from the sentence-transformers library, it is intended to evaluate the relevance and coherence of responses given a prompt or question.

  • Developed by: Enoch Levandovsky
  • Model type: Cross-encoder
  • Language(s): English
  • License: Check the repository for more information
  • Finetuned from model: sentence-transformers/all-mpnet-base-v2

Model Sources

Uses

Direct Use

This model is designed to evaluate the coherence of a response to a given question or prompt. It can be directly used to enhance chatbots or dialogue systems by predicting how coherent or relevant a response is, thus improving the quality of conversational agents.

Downstream Use

This model can be fine-tuned further for specific dialogue systems or used as a component in larger conversational AI frameworks to ensure responses are meaningful and contextually appropriate.

Out-of-Scope Use

This model is not intended for applications requiring complex sentiment analysis, emotional tone recognition, or tasks outside dialogue coherence assessment.

How to Get Started with the Model

You can use the model as follows:

from sentence_transformers import CrossEncoder
model = CrossEncoder('enochlev/coherence-all-mpnet-base-v2')
output = model.predict([["What is your favorite color?", "Blue!"],
                        ["Do you like playing outside?", "I like ice cream."],
                        ["What is your favorite animal?", "I like dogs!"],
                        ["Do you want to go to the park?", "Yes, I want to go on the swings!"],
                        ["What is your favorite food?", "I like playing with blocks."],
                        ["Do you have a pet?", "Yes, I have a cat named Whiskers."],
                        ["What is your favorite thing to do on a sunny day?", "I like playing soccer with my friends."]])

print(output)

The output array represents coherence scores where higher scores indicate greater coherence.

Results

Example outputs reflect coherent or relevant responses with scores closer to 1. For instance:

Output >>> array([0.88097143, 0.04521223, 0.943173  , 0.9436357 , 0.04369843,
                  0.94450355, 0.8392763 ], dtype=float32)

Evaluation & Limitations

Testing Data, Factors & Metrics

The model has been fine-tuned and evaluated using the CHILDES dataset to ensure it captures conversational coherence effectively.

Recommendations

Users should be aware that while the model predicts coherence, it may not fully capture nuanced conversational elements such as sarcasm or humor.

Environmental Impact

Please refer to the Machine Learning Impact calculator for estimating carbon emissions. Details specific to training this model are not available but consider general best practices to minimize environmental impact.

Citation

To cite this model, please provide appropriate credit to the Hugging Face repository page and the original model creator, Enoch Levandovsky.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей