/ Модель

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

Контекст
512 токенов
Параметры
306 млн
Лицензия
CC BY-NC 4.0
Архитектура
deberta-v2 · dense
Базовая модель
mdeberta-v3-base
Библиотека
transformers
Опубликована
13 янв 2024

mdeberta-v3-base_finetuned_ai4privacy_v2

Разметка токеновТекст → label6 профессий

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

53скачиваний за 30 дней8лайковвеса обновлены4 апр 2024

Бенчмарки

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

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

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

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

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

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

Isotonic/mdeberta-v3-base_finetuned_ai4privacy_v2 — модель классификации токенов, дообученная на базе microsoft/mdeberta-v3-base на наборе ai4privacy/pii-masking-200k. Она предназначена для обнаружения и разметки персональных данных в тексте, например перед маскированием или обезличиванием документов. Модель использует архитектуру DeBERTa V3 с 306 млн параметров и принимает последовательности длиной до 512 токенов; доступны форматы Safetensors и ONNX.

На тестовом наборе указаны precision 0,9636, recall 0,9731, F1 0,9683 и accuracy 0,9896. В карточке перечислены английский, немецкий, французский и итальянский языки. Лицензия указана как CC BY-NC 4.0; README также описывает отдельные условия Ai4Privacy: бесплатное использование для частных лиц, некоммерческих организаций и компаний до трёх сотрудников, а крупным коммерческим организациям требуется корпоративная лицензия. Перед применением следует сверить точные условия лицензии и проверить качество на собственных данных.

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

  • поиск персональных данных в документах
  • разметка имен, адресов и других PII в тексте
  • подготовка текста к маскированию персональных данных
  • обезличивание текстовых массивов перед передачей или анализом

Ограничения

Контекст ограничен 512 токенами, поэтому длинные документы нужно обрабатывать частями. Приведённые метрики получены на оценочном наборе; условия использования для коммерческих организаций зависят от лицензии Ai4Privacy.

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

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

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

Также подходит для

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

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

Открыть на Hugging Face

🌟 Buying me coffee is a direct way to show support for this project.

mdeberta-v3-base_finetuned_ai4privacy_v2

This model is a fine-tuned version of microsoft/mdeberta-v3-base on the ai4privacy/pii-masking-200k dataset. It achieves the following results on the evaluation set:

  • Loss: 0.0323
  • Overall Precision: 0.9636
  • Overall Recall: 0.9731
  • Overall F1: 0.9683
  • Overall Accuracy: 0.9896

Useage

GitHub Implementation: Ai4Privacy

Model description

More information needed

Intended uses & limitations

The license depends on the nature of your business, you're given the right to use Ai4Privacy for your projects. Independent users and small businesses (3 staff maximum) can use Ai4Privacy’s dataset and models in their product and solutions for free, and conditionally for commercial terms. However, larger, profit-oriented organizations require a company license which can be requested by licensing@ai4privacy.com. This two-level system helps fund our project, while keeping the source code accessible and the software free for most users. For the exact usage conditions, please read the detailed terms below.

  • Free license
  • Corporate license

Free License

Copyright © 2023 Ai4Privacy

Qualification Criteria

You're qualified to use Ai4Privacy at no cost if you're:

An individual A for-profit entity with a staff count of up to 3 A non-profit or not-for-profit organization

Prohibited Use Cases

It's not permissible to duplicate or alter Ai4Privacy's code with the intention to distribute, sell, rent, license, re-license, or sublicense your own derivative of Ai4Privacy's contribution work.

Warranty Notice

The dataset and code comes "as is", without any express or implied warranties, including but not limited to warranties of saleability, suitability for a specific use, and non-infringement. The authors or copyright holders shall not be responsible for any claim, damage or other liability, whether in a contract, tort or otherwise, arising from or in connection with the dataset and model or its use or other dealings.

Support

Support is offered as best as we can manage through GitHub Issues and our Discord. Corporate licensees receive dedicated support.

Corporate License

Should your entity not fall under the category eligible for a free license, you must procure a corporate license to use Ai4Privacy. This license will authorize you to use Ai4Privacy for the use cases outlined in the free license and provide you with access to priority support..

Please refer to licensing@ai4privacy.com for details on pricing and licensing.

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 5e-05
  • train_batch_size: 32
  • eval_batch_size: 32
  • seed: 42
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-06
  • lr_scheduler_type: cosine_with_restarts
  • lr_scheduler_warmup_ratio: 0.2
  • num_epochs: 5

Training results

Training LossEpochStepValidation LossOverall PrecisionOverall RecallOverall F1Overall AccuracyAccountname F1Accountnumber F1Age F1Amount F1Bic F1Bitcoinaddress F1Buildingnumber F1City F1Companyname F1County F1Creditcardcvv F1Creditcardissuer F1Creditcardnumber F1Currency F1Currencycode F1Currencyname F1Currencysymbol F1Date F1Dob F1Email F1Ethereumaddress F1Eyecolor F1Firstname F1Gender F1Height F1Iban F1Ip F1Ipv4 F1Ipv6 F1Jobarea F1Jobtitle F1Jobtype F1Lastname F1Litecoinaddress F1Mac F1Maskednumber F1Middlename F1Nearbygpscoordinate F1Ordinaldirection F1Password F1Phoneimei F1Phonenumber F1Pin F1Prefix F1Secondaryaddress F1Sex F1Ssn F1State F1Street F1Time F1Url F1Useragent F1Username F1Vehiclevin F1Vehiclevrm F1Zipcode F1
0.06221.0104630.05410.92470.93840.93150.97700.99490.99170.98120.92240.98470.95920.90560.95950.98020.97750.93500.99710.89390.73800.96640.08430.97210.77840.63630.99930.98770.98330.96960.98660.97160.99140.00.82380.80250.98820.98740.98780.88200.90850.98690.88310.86860.99840.99580.97860.99710.98850.94820.94550.99340.99560.98600.96730.97990.99160.99580.99950.98750.95550.98190.9311
0.04922.0209260.04450.93760.94940.94340.97880.99700.99790.98830.94920.99490.96260.95480.98190.99110.99220.97400.99850.90570.58050.97710.48720.97340.82570.74790.99890.99440.99600.98190.99330.99580.99620.15210.79690.80830.99570.99720.99700.93350.89530.99670.87860.92321.00.99800.98680.99850.99670.98080.97080.99690.99790.99800.99210.99130.99791.01.00.99140.97880.98590.9622
0.03923.0313890.03950.94580.95840.95210.98150.99880.99710.98610.95730.99550.97640.95180.98360.99140.99210.98020.99850.93000.81150.98620.59350.98210.86840.78700.99940.99720.99760.98600.99560.99810.99640.30020.83020.72740.98630.99680.99790.95280.92080.98810.91950.92690.99920.99800.98940.99980.99840.97500.97670.99710.99720.99780.99270.99520.99661.00.99970.99620.99420.99370.9653
0.03114.0418520.03410.95370.96670.96010.98550.99980.99860.98690.95450.99610.97740.96320.98850.99520.99400.98380.99850.93920.85670.98630.70150.98530.91580.86871.00.99790.99840.98750.99711.00.99620.48820.86640.69660.99270.99730.99670.95830.92510.99790.92750.93511.00.99880.99320.99980.99800.98520.97600.99830.99800.99850.99320.99520.99660.99961.00.99690.99550.99420.9685
0.01965.0523150.03230.96360.97310.96830.98960.99980.99730.98780.94950.99320.97040.96480.98870.99420.99400.98200.99850.95700.87500.98880.74160.98190.92950.89460.99980.99650.99840.98860.99621.00.99660.62840.88840.80150.99400.99730.99700.96530.91090.99920.95240.93471.00.99840.99360.99980.99920.98570.98010.99880.99790.99830.99440.99530.99741.01.00.99660.99360.99170.9727

Framework versions

  • Transformers 4.35.2
  • Pytorch 2.1.0+cu121
  • Datasets 2.16.1
  • Tokenizers 0.15.0

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

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

GPU в ailist

Универсальный рантайм · transformers · token-classification

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

Подбираем GPU…

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

0 моделей