/ Модель

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

Контекст
512 токенов
Параметры
136 млн
Лицензия
Apache 2.0
Архитектура
bert · dense
Опубликована
27 июн 2023

bert-finetuned-squad

Ответы на вопросыТекст → текст7 профессий

Дообученная на SQuAD модель BERT извлекает ответы на вопросы из предоставленного текстового контекста.

103скачиваний за 30 дней0лайковвеса обновлены27 июн 2023

Бенчмарки

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

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

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

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

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

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

Модель cyberzzhhss/bert-finetuned-squad — версия BERT, дообученная на наборе вопросов и ответов SQuAD. Она принимает вопрос и текстовый контекст и находит в нём фрагмент, который наиболее вероятно содержит ответ; модель предназначена для извлечения ответа из предоставленного текста, а не для свободной генерации. Архитектура — BertForQuestionAnswering, размер — 135,5 млн параметров, максимальная длина контекста — 512 токенов. Базовая модель — bert-base-cased.

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

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

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

Ограничения

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

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

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

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

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

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

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

Открыть на Hugging Face

bert-finetuned-squad

This model is a fine-tuned version of bert-base-cased on the squad dataset.

Model description

The BERT fine-tuned SQuAD model is a version of the BERT (Bidirectional Encoder Representations from Transformers) model that has been fine-tuned on the Stanford Question Answering Dataset (SQuAD). It is designed to answer questions based on the context given. The SQuAD dataset is a collection of 100k+ questions and answers based on Wikipedia articles. Fine-tuning the model on this dataset allows it to provide precise answers to a wide array of questions based on a given context.

Intended uses & limitations

This model is intended to be used for question-answering tasks. Given a question and a context (a piece of text containing the information to answer the question), the model will return the text span in the context that most likely contains the answer. This model is not intended to generate creative content, conduct sentiment analysis, or predict future events.

It's important to note that the model's accuracy is heavily dependent on the relevance and quality of the context it is provided. If the context does not contain the answer to the question, the model will still return a text span, which may not make sense. Additionally, the model may struggle with nuanced or ambiguous questions as it may not fully understand the subtleties of human language.

Training and evaluation data

The model was trained on the SQuAD dataset, encompassing over 87,599 questions generated by crowd workers from various Wikipedia articles. The answers are text segments from the relevant reading passage. For evaluation, a distinct subset of the SQuAD, containing 10,570 instances, unseen by the model during training, was employed.

Training procedure

The model was initially pretrained on a large corpus of text in an unsupervised manner, learning to predict masked tokens in a sentence. The pretraining was done on the bert-base-cased model, which was trained on English text in a case-sensitive manner. After this, the model was fine-tuned on the SQuAD dataset. During fine-tuning, the model was trained to predict the start and end positions of the answer in the context text given a question.

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 2e-05
  • train_batch_size: 8
  • eval_batch_size: 8
  • seed: 42
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lr_scheduler_type: linear
  • num_epochs: 3

Training results

  • exact_match: 81.0406811731315
  • f1: 88.65884513439593

Framework versions

  • Transformers 4.30.2
  • Pytorch 2.0.1+cu118
  • Datasets 2.13.1
  • Tokenizers 0.13.3

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей