/ Модель

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

Контекст
512 токенов
Лицензия
CC BY-NC 4.0
Архитектура
xlm · dense
Опубликована
2 мар 2022

xlm-mlm-enro-1024

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

Трансформер XLM для восстановления замаскированных слов в английских и румынских текстах.

393скачиваний за 30 дней2лайкавеса обновлены24 янв 2023

Бенчмарки

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

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

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

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

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

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

XLM-MLM-ENRO-1024 — трансформерная языковая модель, разработанная Гийомом Ламплем и Алексисом Конно для предобучения на английском и румынском языках. Она обучена восстанавливать замаскированные слова и предназначена для задачи заполнения пропусков в тексте. При использовании модель принимает языковые embeddings, указывающие язык текста.

Архитектура включает 1024 скрытых измерения, 8 голов внимания, GELU-активации, обучаемые позиционные embeddings и dropout 0,1. Контекст — до 512 токенов. Модель доступна в форматах PyTorch и TensorFlow. Для подготовки входных данных рекомендуется использовать те же правила предобработки и BPE-коды, что и при обучении.

Модель подходит для экспериментов с маскированным языковым моделированием и для дальнейшей адаптации к связанным задачам. README отмечает общие риски языковых моделей, включая смещения и проблемы справедливости. Лицензия CC-BY-NC-4.0 ограничивает коммерческое использование.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

xlm-mlm-enro-1024

Table of Contents

  1. Model Details
  2. Uses
  3. Bias, Risks, and Limitations
  4. Training
  5. Evaluation
  6. Environmental Impact
  7. Technical Specifications
  8. Citation
  9. Model Card Authors
  10. How To Get Started With the Model

Model Details

The XLM model was proposed in Cross-lingual Language Model Pretraining by Guillaume Lample, Alexis Conneau. xlm-mlm-enro-1024 is a transformer pretrained using a masked language modeling (MLM) objective for English-Romanian. This model uses language embeddings to specify the language used at inference. See the Hugging Face Multilingual Models for Inference docs for further details.

Model Description

Uses

Direct Use

The model is a language model. The model can be used for masked language modeling.

Downstream Use

To learn more about this task and potential downstream uses, see the Hugging Face fill mask docs and the Hugging Face Multilingual Models for Inference docs.

Out-of-Scope Use

The model should not be used to intentionally create hostile or alienating environments for people.

Bias, Risks, and Limitations

Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).

Recommendations

Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.

Training

The model developers write:

In all experiments, we use a Transformer architecture with 1024 hidden units, 8 heads, GELU activations (Hendrycks and Gimpel, 2016), a dropout rate of 0.1 and learned positional embeddings. We train our models with the Adam op- timizer (Kingma and Ba, 2014), a linear warm- up (Vaswani et al., 2017) and learning rates varying from 10^−4 to 5.10^−4.

See the associated paper for links, citations, and further details on the training data and training procedure.

The model developers also write that:

If you use these models, you should use the same data preprocessing / BPE codes to preprocess your data.

See the associated GitHub Repo for further details.

Evaluation

Testing Data, Factors & Metrics

The model developers evaluated the model on the WMT'16 English-Romanian dataset using the BLEU metric. See the associated paper for further details on the testing data, factors and metrics.

Results

For xlm-mlm-enro-1024 results, see Tables 1-3 of the associated paper.

Environmental Impact

Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).

  • Hardware Type: More information needed
  • Hours used: More information needed
  • Cloud Provider: More information needed
  • Compute Region: More information needed
  • Carbon Emitted: More information needed

Technical Specifications

The model developers write:

We implement all our models in PyTorch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.

See the associated paper for further details.

Citation

BibTeX:

@article{lample2019cross,
  title={Cross-lingual language model pretraining},
  author={Lample, Guillaume and Conneau, Alexis},
  journal={arXiv preprint arXiv:1901.07291},
  year={2019}
}

APA:

  • Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.

Model Card Authors

This model card was written by the team at Hugging Face.

How to Get Started with the Model

More information needed. This model uses language embeddings to specify the language used at inference. See the Hugging Face Multilingual Models for Inference docs for further details.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
XLMWithLMHeadModel
Ревизия весов
61378eb

0 моделей