/ Модель

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

Контекст
512 токенов
Параметры
137 млн
Лицензия
Apache 2.0
Архитектура
bert · dense

multiberts-seed_0-step_20k

Языковая модель3 профессии

Промежуточный англоязычный чекпойнт BERT-base для исследований предобучения и устойчивости результатов к случайному seed.

202скачиваний за 30 дней0лайковвеса обновлены5 ноя 2021

Бенчмарки

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

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

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

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

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

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

google/multiberts-seed_0-step_20k — промежуточный чекпойнт семейства MultiBERTs от Google Research, созданный при воспроизведении BERT-base uncased для английского языка. Это плотная модель архитектуры BERT с 136,7 млн параметров и контекстом до 512 токенов; доступны веса PyTorch и TensorFlow. Чекпойнт сохранён на шаге 20 тыс. из запланированных 2 млн шагов предобучения.

Модель обучалась на английском корпусе с задачами masked language modeling и next sentence prediction. Она предназначена прежде всего для исследований устойчивости результатов BERT к случайной инициализации и порядку обучающих примеров, а также может служить основой для экспериментов с английским текстом и последующего дообучения. Лицензия — Apache-2.0.

Это незавершённый промежуточный чекпойнт: его возможности и качество не следует приравнивать к полностью обученной BERT-base. MultiBERTs — добросовестное воспроизведение, поэтому возможны отличия от исходного BERT; README приводит сопоставимые результаты на GLUE для полностью обученных моделей, но не обещает их для этого шага.

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

  • исследование влияния случайного seed на результаты BERT
  • анализ промежуточных состояний предобучения BERT
  • эксперименты с masked language modeling на английском тексте
  • дообучение BERT для классификации английских текстов
  • извлечение контекстных представлений английского текста

Ограничения

Чекпойнт остановлен на 20 тыс. из 2 млн шагов предобучения и не эквивалентен полностью обученной BERT-base. Это воспроизведение исходной модели, поэтому возможны отличия в поведении и качестве.

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

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

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

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

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

Открыть на Hugging Face

MultiBERTs, Intermediate Checkpoint - Seed 0, Step 20k

MultiBERTs is a collection of checkpoints and a statistical library to support robust research on BERT. We provide 25 BERT-base models trained with similar hyper-parameters as the original BERT model but with different random seeds, which causes variations in the initial weights and order of training instances. The aim is to distinguish findings that apply to a specific artifact (i.e., a particular instance of the model) from those that apply to the more general procedure.

We also provide 140 intermediate checkpoints captured during the course of pre-training (we saved 28 checkpoints for the first 5 runs).

The models were originally released through http://goo.gle/multiberts. We describe them in our paper The MultiBERTs: BERT Reproductions for Robustness Analysis.

This is model #0, captured at step 20k (max: 2000k, i.e., 2M steps).

Model Description

This model was captured during a reproduction of BERT-base uncased, for English: it is a Transformers model pretrained on a large corpus of English data, using the Masked Language Modelling (MLM) and the Next Sentence Prediction (NSP) objectives.

The intended uses, limitations, training data and training procedure for the fully trained model are similar to BERT-base uncased. Two major differences with the original model:

  • We pre-trained the MultiBERTs models for 2 million steps using sequence length 512 (instead of 1 million steps using sequence length 128 then 512).
  • We used an alternative version of Wikipedia and Books Corpus, initially collected for Turc et al., 2019.

This is a best-effort reproduction, and so it is probable that differences with the original model have gone unnoticed. The performance of MultiBERTs on GLUE after full training is oftentimes comparable to that of original BERT, but we found significant differences on the dev set of SQuAD (MultiBERTs outperforms original BERT). See our technical report for more details.

How to use

Using code from BERT-base uncased, here is an example based on Tensorflow:

from transformers import BertTokenizer, TFBertModel
tokenizer = BertTokenizer.from_pretrained('google/multiberts-seed_0-step_20k')
model = TFBertModel.from_pretrained("google/multiberts-seed_0-step_20k")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)

PyTorch version:

from transformers import BertTokenizer, BertModel
tokenizer = BertTokenizer.from_pretrained('google/multiberts-seed_0-step_20k')
model = BertModel.from_pretrained("google/multiberts-seed_0-step_20k")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)

Citation info

@article{sellam2021multiberts,
  title={The MultiBERTs: BERT Reproductions for Robustness Analysis},
  author={Thibault Sellam and Steve Yadlowsky and Jason Wei and Naomi Saphra and Alexander D'Amour and Tal Linzen and Jasmijn Bastings and Iulia Turc and Jacob Eisenstein and Dipanjan Das and Ian Tenney and Ellie Pavlick},
  journal={arXiv preprint arXiv:2106.16163},
  year={2021}
}

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

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

GPU в ailist

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

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

У модели не указана задача.

Класс архитектуры
BertForPreTraining
Ревизия весов
8c40009

0 моделей