/ Модель

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

Контекст
512 токенов
Параметры
38,5 млн
Лицензия
Apache 2.0
Архитектура
t5 · dense
Опубликована
9 июн 2024

arc_of_conversation

СуммаризацияТекст → текст3 профессии

Дообученная англоязычная T5-small определяет заданную категорию или сюжетную дугу беседы по её тексту.

42скачиваний за 30 дней5лайковвеса обновлены1 июл 2024

Бенчмарки

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

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

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

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

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

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

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

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

Falconsai разработала arc_of_conversation — модель для определения сюжетной дуги беседы по её тексту. Она классифицирует разговоры по предопределённым категориям и может применяться для анализа диалогов в службе поддержки, чат-ботах и исследованиях общения.

Модель представляет собой дообученную версию google/t5-small на пользовательском наборе данных с беседами и соответствующими им дугами. Это архитектура T5 для преобразования текста в текст с 38,5 млн параметров; максимальная длина контекста — 512 токенов. Модель рассчитана на английский язык, распространяется в формате safetensors по лицензии Apache-2.0 согласно метаданным Hugging Face.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Arc of the Conversation Model

Model Details

  • Model Name: arc_of_conversation
  • Model Type: Fine-tuned google/t5-small
  • Language: English
  • License: MIT

Overview

The Conversation Arc Predictor model is designed to predict the arc of a conversation given its text. It is based on the google/t5-small model, fine-tuned on a custom dataset of conversations and their corresponding arcs. This model can be used to analyze and categorize conversation texts into predefined arcs.

Model Description

Model Architecture

The base model architecture is T5 (Text-To-Text Transfer Transformer), which treats every NLP problem as a text-to-text problem. The specific version used here is google/t5-small, which has been fine-tuned to understand and predict conversation arcs.

Fine-Tuning Data

The model was fine-tuned on a dataset consisting of conversation texts and their corresponding arcs. The dataset should be formatted in a CSV file with two columns: conversation and arc.

Intended Use

The model is intended for categorizing the arc of conversation texts. It can be useful for applications in customer service, chatbots, conversational analysis, and other areas where understanding the flow of a conversation is important.

How to Use

Inference

To use this model for inference, you need to load the fine-tuned model and tokenizer. Here is an example of how to do this using the transformers library:

Running Pipeline

# Use a pipeline as a high-level helper
from transformers import pipeline

convo1 = 'Your conversation text here.'
pipe = pipeline("summarization", model="Falconsai/arc_of_conversation")
res1 = pipe(convo1, max_length=1024, min_length=512, do_sample=False)
print(res1)

Running on CPU

# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM

tokenizer = AutoTokenizer.from_pretrained("Falconsai/arc_of_conversation")
model = AutoModelForSeq2SeqLM.from_pretrained("Falconsai/arc_of_conversation")

input_text = "Your conversation Here"
input_ids = tokenizer(input_text, return_tensors="pt").input_ids

outputs = model.generate(input_ids)
print(tokenizer.decode(outputs[0]))

Running on GPU

# pip install accelerate
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM

tokenizer = AutoTokenizer.from_pretrained("Falconsai/arc_of_conversation")
model = AutoModelForSeq2SeqLM.from_pretrained("Falconsai/arc_of_conversation", device_map="auto")

input_text = "Your conversation Here"
input_ids = tokenizer(input_text, return_tensors="pt").input_ids.to("cuda")

outputs = model.generate(input_ids)
print(tokenizer.decode(outputs[0]))

Training

The training process involves the following steps:

  1. Load and Explore Data: Load the dataset and perform initial exploration to understand the data distribution.
  2. Preprocess Data: Tokenize the conversations and prepare them for the T5 model.
  3. Fine-Tune Model: Fine-tune the google/t5-small model using the preprocessed data.
  4. Evaluate Model: Evaluate the model's performance on a validation set to ensure it's learning correctly.
  5. Save Model: Save the fine-tuned model for future use.

Evaluation

The model's performance should be evaluated on a separate validation set to ensure it accurately predicts the conversation arcs. Metrics such as accuracy, precision, recall, and F1 score can be used to assess its performance.

Limitations

  • Data Dependency: The model's performance is highly dependent on the quality and representativeness of the training data.
  • Generalization: The model may not generalize well to conversation texts that are significantly different from the training data.

Ethical Considerations

When deploying the model, be mindful of the ethical implications, including but not limited to:

  • Privacy: Ensure that conversation data used for training and inference does not contain sensitive or personally identifiable information.
  • Bias: Be aware of potential biases in the training data that could affect the model's predictions.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Citation

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

@misc{conversation_arc_predictor,
  author = {Michael Stattelman},
  title = {Arc of the Conversation Generator},
  year = {2024},
  publisher = {Falcons.ai},
}

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

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

GPU в ailist

Универсальный рантайм

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

Подбираем GPU…

Класс архитектуры
T5ForConditionalGeneration
Ревизия весов
468fca3

0 моделей