/ Модель

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

Контекст
512 токенов
Лицензия
Apache 2.0
Архитектура
distilbert · dense
Опубликована
5 мар 2023

blaze-it

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

Компактная итальянская модель DistilBERT для восстановления замаскированных слов и анализа италоязычного текста.

142скачиваний за 30 дней3лайкавеса обновлены8 янв 2024

Бенчмарки

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

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

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

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

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

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

BLAZE-IT — лёгкая регистронезависимая модель семейства DistilBERT для итальянского языка, разработанная для компактного и быстрого анализа текста. Она основана на distilbert-base-multilingual-cased и дополнительно предобучена на итальянской Википедии с маскированием целых слов. Модель содержит 55 млн параметров, словарь из 13 832 токенов и поддерживает контекст до 512 токенов.

Основная задача модели — восстановление замаскированных фрагментов текста. Её также можно использовать как основу для итальянской разметки частей речи и распознавания именованных сущностей: в README приведены результаты отдельных моделей, дообученных для этих задач. Компактный размер делает BLAZE-IT подходящей для быстрой обработки больших объёмов корректного итальянского веб-текста.

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

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

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

Ограничения

Обучение преимущественно на Википедии может ограничивать работу с ошибочным, хаотичным текстом и сленгом, а также с медицинской, финансовой и юридической терминологией.

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

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

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

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

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

Открыть на Hugging Face


This model is a lightweight and uncased version of BERT [1] for the Italian language. Its 55M parameters and 220MB size make it 50% lighter than a typical mono-lingual BERT model. It is ideal when memory consumption and execution speed are critical while maintaining high-quality results.

"Blaze-IT: a lightweight BERT model for the Italian language" has been accepted at AILC CLiC-IT 2023 and published in the conference proceedings. You can find the proceedings here: https://clic2023.ilc.cnr.it/proceedings/ And the published paper here: https://ceur-ws.org/Vol-3596/paper43.pdf

The model builds on the multilingual DistilBERT [2] model (from the HuggingFace team: distilbert-base-multilingual-cased) as a starting point, focusing it on the Italian language while at the same time turning it into an uncased model by modifying the embedding layer (as in [3], but computing document-level frequencies over the Wikipedia dataset and setting a frequency threshold of 0.1%), which brings a considerable reduction in the number of parameters.

To compensate for the deletion of cased tokens, which now forces the model to exploit lowercase representations of words previously capitalized, the model has been further pre-trained on the Italian split of the Wikipedia dataset, using the whole word masking [4] technique to make it more robust to the new uncased representations.

The resulting model has 55M parameters, a vocabulary of 13.832 tokens, and a size of 220MB, which makes it 50% lighter than a typical mono-lingual BERT model and 20% lighter than a standard mono-lingual DistilBERT model.

The model has been trained for masked language modeling on the Italian Wikipedia (~3GB) dataset for 10K steps, using the AdamW optimizer, with a batch size of 512 (obtained through 128 gradient accumulation steps), a sequence length of 512, and a linearly decaying learning rate starting from 5e-5. The training has been performed using dynamic masking between epochs and exploiting the whole word masking technique.

The following metrics have been computed on the Part of Speech Tagging and Named Entity Recognition tasks, using the UD Italian ISDT and WikiNER datasets, respectively. The PoST model has been trained for 5 epochs, and the NER model for 3 epochs, both with a constant learning rate, fixed at 1e-5. For Part of Speech Tagging, the metrics have been computed on the default test set provided with the dataset, while for Named Entity Recognition the metrics have been computed with a 5-fold cross-validation

TaskRecallPrecisionF1
Part of Speech Tagging97.4897.2997.37
Named Entity Recognition89.2989.8489.53

The metrics have been computed at the token level and macro-averaged over the classes.

You can try the model online (fine-tuned on named entity recognition) using this web app: https://huggingface.co/spaces/osiria/blaze-it-demo

from transformers import AutoTokenizer, DistilBertForMaskedLM
from transformers import pipeline

tokenizer = AutoTokenizer.from_pretrained("osiria/blaze-it")
model = DistilBertForMaskedLM.from_pretrained("osiria/blaze-it")
pipeline_mlm = pipeline(task="fill-mask", model=model, tokenizer=tokenizer)

This lightweight model is mainly trained on Wikipedia, so it's particularly suitable as an agile analyzer for large volumes of natively digital text from the world wide web, written in a correct and fluent form (like wikis, web pages, news, etc.). However, it may show limitations when it comes to chaotic text, containing errors and slang expressions (like social media posts) or when it comes to domain-specific text (like medical, financial or legal content).

[1] https://arxiv.org/abs/1810.04805

[2] https://arxiv.org/abs/1910.01108

[3] https://arxiv.org/abs/2010.05609

[4] https://arxiv.org/abs/1906.08101

The model is released under Apache-2.0 license

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей