/ Модель

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

Контекст
514 токенов
Параметры
152 млн
Архитектура
roberta · dense
Опубликована
12 дек 2022

olm-roberta-base-oct-2022

Заполнение пропусковТекст → текст3 профессии

Англоязычная модель RoBERTa для восстановления скрытых токенов и дообучения под задачи понимания текста.

93скачиваний за 30 дней5лайковвеса обновлены20 янв 2023

Бенчмарки

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

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

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

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

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

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

OLM RoBERTa October 2022 — англоязычная модель семейства RoBERTa, созданная в рамках проекта OLM. Это плотная трансформерная модель с архитектурой RobertaForMaskedLM и примерно 151,8 млн параметров; она обучена на очищенных снимках Common Crawl и Wikipedia за октябрь 2022 года. Длина контекста составляет 514 токенов.

Модель предназначена для восстановления скрытых токенов в тексте и как основа для дообучения под классификацию последовательностей, разметку токенов и ответы на вопросы. Авторы сообщают, что она обновляет знания по сравнению с исходными BERT и RoBERTa и показывает сопоставимые результаты на ряде стандартных тестов; результаты на GLUE различаются в зависимости от задачи. Доступны веса в форматах PyTorch и TensorFlow.

Лицензия в предоставленных данных не указана. Модель ориентирована на английский язык и не является готовой специализированной системой для классификации или ответов на вопросы: для этих сценариев требуется дообучение.

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

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

Ограничения

Модель обучена на данных до октября 2022 года, поэтому может не отражать более поздние события. Для классификации, разметки токенов и ответов на вопросы требуется дообучение; лицензия в предоставленных данных не указана.

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

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

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

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

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

Открыть на Hugging Face

OLM RoBERTa/BERT October 2022

This is a more up-to-date version of the original BERT and original RoBERTa. In addition to being more up-to-date, it also tends to perform better than the original BERT on standard benchmarks. We think it is fair to directly compare our model to the original BERT because our model was trained with about the same level of compute as the original BERT, and the architecture of BERT and RoBERTa are basically the same. The original RoBERTa takes an order of magnitude more compute, although our model is also not that different in performance from the original RoBERTa on many standard benchmarks. Our model was trained on a cleaned October 2022 snapshot of Common Crawl and Wikipedia.

This model was created as part of the OLM project, which has the goal of continuously training and releasing models that are up-to-date and comparable in standard language model performance to their static counterparts. This is important because we want our models to know about events like COVID or a presidential election right after they happen.

Intended uses

You can use the raw model for masked language modeling, but it's mostly intended to be fine-tuned on a downstream task, such as sequence classification, token classification or question answering.

How to use

You can use this model directly with a pipeline for masked language modeling:

>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='olm/olm-roberta-base-oct-2022')
>>> unmasker("Hello I'm a <mask> model.")
[{'score': 0.10601336508989334,
  'token': 2450,
  'token_str': ' role',
  'sequence': "Hello I'm a role model."},
 {'score': 0.05792810395359993,
  'token': 2677,
  'token_str': ' former',
  'sequence': "Hello I'm a former model."},
 {'score': 0.057744599878787994,
  'token': 1968,
  'token_str': ' professional',
  'sequence': "Hello I'm a professional model."},
 {'score': 0.029099510982632637,
  'token': 932,
  'token_str': ' business',
  'sequence': "Hello I'm a business model."},
 {'score': 0.024220379069447517,
  'token': 1840,
  'token_str': ' young',
  'sequence': "Hello I'm a young model."}]

Here is how to use this model to get the features of a given text in PyTorch:

from transformers import AutoTokenizer, RobertaModel
tokenizer = AutoTokenizer.from_pretrained('olm/olm-roberta-base-oct-2022')
model = RobertaModel.from_pretrained("olm/olm-roberta-base-oct-2022")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)

Dataset

The model and tokenizer were trained with this October 2022 cleaned Common Crawl dataset plus this October 2022 cleaned Wikipedia dataset.
The tokenized version of these concatenated datasets is here.
The datasets were created with this repo.

Training

The model was trained according to the OLM BERT/RoBERTa instructions at this repo.

Evaluation results

The model achieves the following results after tuning on GLUE tasks:

TaskMetricOriginal BERTOLM RoBERTa Oct 2022 (Ours)
colamcc0.58890.2340
sst2acc0.91810.9305
mrpcacc/f10.9182/0.89230.8828/0.9149
stsbpear/spear0.8822/0.87940.8943/0.8934
qqpacc/f10.9071/0.87480.9094/0.8781
mnliacc/acc_mm0.8400/0.84100.8599/0.8622
qnliacc0.90750.9148
rteacc0.62960.6253
wnliacc0.40000.5042

For both the original BERT and our model, we used the Hugging Face run_glue.py script here. For both models, we used the default fine-tuning hyperparameters and we averaged the results over five training seeds. These are the results for the GLUE dev sets, which can be a bit different than the results for the test sets.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
RobertaForMaskedLM
Ревизия весов
9d6996f

0 моделей