/ Модель

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

Контекст
510 токенов
Параметры
136 млн
Архитектура
nystromformer · dense

nystromformer-512

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

Англоязычная Nyströmformer на 136,3 млн параметров для предсказания замаскированных токенов в последовательностях длиной до 512 токенов.

6 049скачиваний за 30 дней2лайкавеса обновлены11 янв 2022

Бенчмарки

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

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

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

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

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

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

uw-madison/nystromformer-512 — модель Nyströmformer для заполнения пропусков в тексте. Чекпойнт на 136,3 млн параметров предварительно обучен на BookCorpus и английской Википедии для masked language modeling; он использует архитектуру Nyströmformer с аппроксимацией self-attention на основе метода Нюстрёма, рассчитанную на более эффективную работу с последовательностями. Модель принимает текст и предсказывает замаскированные токены.

Чекпойнт предназначен для задач восстановления пропущенных слов и изучения английского языка с помощью контекстных предсказаний. Заявленная длина последовательности — 512 токенов, а native context в метаданных составляет 510 токенов. Модель представлена в формате PyTorch и лицензирована по Apache-2.0. Ограничение: это англоязычная модель заполнения масок, а не универсальная генеративная или диалоговая модель.

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

  • восстановление пропущенных слов в английском тексте
  • контекстное предсказание слов при анализе текста
  • эксперименты с эффективным механизмом внимания Nyströmformer

Ограничения

Модель обучена на англоязычных корпусах и предназначена для заполнения масок; её не следует считать универсальной чат-моделью или свободным генератором текста.

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

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

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

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

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

Открыть на Hugging Face

Nyströmformer

Nyströmformer model for masked language modeling (MLM) pretrained on BookCorpus and English Wikipedia for sequence length 512.

About Nyströmformer

The Nyströmformer model was proposed in Nyströmformer: A Nyström-Based Algorithm for Approximating Self-Attention by Yunyang Xiong, Zhanpeng Zeng, Rudrasis Chakraborty, Mingxing Tan, Glenn Fung, Yin Li, and Vikas Singh.

The abstract from the paper is the following:

Transformers have emerged as a powerful tool for a broad range of natural language processing tasks. A key component that drives the impressive performance of Transformers is the self-attention mechanism that encodes the influence or dependence of other tokens on each specific token. While beneficial, the quadratic complexity of self-attention on the input sequence length has limited its application to longer sequences — a topic being actively studied in the community. To address this limitation, we propose Nyströmformer — a model that exhibits favorable scalability as a function of sequence length. Our idea is based on adapting the Nyström method to approximate standard self-attention with O(n) complexity. The scalability of Nyströmformer enables application to longer sequences with thousands of tokens. We perform evaluations on multiple downstream tasks on the GLUE benchmark and IMDB reviews with standard sequence length, and find that our Nyströmformer performs comparably, or in a few cases, even slightly better, than standard self-attention. On longer sequence tasks in the Long Range Arena (LRA) benchmark, Nyströmformer performs favorably relative to other efficient self-attention methods. Our code is available at this https URL.

Usage

>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='uw-madison/nystromformer-512')
>>> unmasker("Paris is the [MASK] of France.")

[{'score': 0.829957902431488,
  'token': 1030,
  'token_str': 'capital',
  'sequence': 'paris is the capital of france.'},
 {'score': 0.022157637402415276,
  'token': 16081,
  'token_str': 'birthplace',
  'sequence': 'paris is the birthplace of france.'},
 {'score': 0.01904447190463543,
  'token': 197,
  'token_str': 'name',
  'sequence': 'paris is the name of france.'},
 {'score': 0.017583081498742104,
  'token': 1107,
  'token_str': 'kingdom',
  'sequence': 'paris is the kingdom of france.'},
 {'score': 0.005948934704065323,
  'token': 148,
  'token_str': 'city',
  'sequence': 'paris is the city of france.'}]

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
NystromformerForMaskedLM
Ревизия весов
405ccb8

0 моделей