/ Модель

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

Лицензия
Apache 2.0
Библиотека
onnx
Опубликована
30 окт 2026

pii-nano

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

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

302скачиваний за 30 дней0лайковвеса обновлены26 ноя 2026

Бенчмарки

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

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

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

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

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

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

newmean-pii-nano — компактная многоязычная модель Newmean AI для обнаружения и разметки персональных данных в тексте перед его отправкой с устройства. Она предназначена для локального запуска в браузере через WebAssembly и ONNX, в том числе как часть JavaScript SDK @newmean-ai/pii. Модель принимает текст и возвращает BIO-оценки токенов для 11 категорий: имена, электронные адреса, телефоны, адреса, идентификаторы, финансовые данные, организации, имена пользователей, URL, даты рождения и секреты. Для персон и URL предусмотрены уровни идентифицирующей значимости; IP-адреса относятся к ID_NUMBER.

Модель содержит 3,1 млн параметров, использует общий слой, применяемый четыре раза, и эмбеддинги ранга 32. Это дистиллят двух закрытых моделей-учителей, дообученных для этой задачи; исходной основой служит mMiniLMv2-L6-H384 с сокращённым словарём XLM-R. Репозиторий содержит ONNX-веса в 4-битном формате. Обучение проводилось на синтетических текстах на 54 языках; модель рассчитана на формы, чаты, таблицы, журналы, JSON, OCR-текст, письма и транскрипты речи. Лицензия Apache-2.0 разрешает коммерческое использование.

Модель помогает уменьшить объём персональных данных, уходящих с устройства, но не гарантирует анонимность: часть данных может остаться нераспознанной, а обычный текст может быть ошибочно замаскирован. На редких форматах, длинных документах и языках вне обучающего набора качество может быть ниже; некоторые метки зависят от контекста. Для коротких ячеек таблиц возможна избыточная маскировка.

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

  • поиск имён и контактных данных в формах перед отправкой
  • обнаружение персональных данных в сообщениях чата
  • поиск чувствительных данных в журналах и JSON
  • разметка персональных данных в OCR-тексте и письмах
  • обнаружение идентификаторов и финансовых данных в таблицах
  • локальная фильтрация персональных данных в транскриптах речи

Ограничения

Модель может пропускать персональные данные и ошибочно маскировать обычный текст, поэтому её результаты не гарантируют анонимность. На редких форматах, длинных документах и языках вне обучающего набора качество может быть ниже; короткие табличные ячейки могут маскироваться избыточно.

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

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

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

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

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

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

Открыть на Hugging Face

newmean-pii-nano

A small multilingual model that finds personal information (PII) in text so it can be masked before the text reaches OpenAI, Anthropic or any LLM, in the browser or on the device. It is the nano tier (3.1M parameters, 2.6 MB download) of the models behind the open-source SDK newmean-pii: @newmean-ai/pii for the browser and Node.js, and packages for Python, iOS, Android, Flutter and Rust. With a vault, the real values come back in the model's answer. Other tiers: newmean-pii-large, newmean-pii-medium, newmean-pii-small.

  • 54 languages, 11 labels at the character level: PERSON, EMAIL, PHONE, ADDRESS, ID_NUMBER, FINANCIAL, ORG, USERNAME, URL, DATE_OF_BIRTH, SECRET; persons and URLs carry a level (1 = directly identifying, 2 = indirect). IP addresses are learned as ID_NUMBER. The SDK has an optional pattern layer (e-mail, URL, card/account, phone, Korean resident number), off by default.
  • Built for real input: forms, chats, spreadsheet cells, logs, JSON, OCR text, e-mails, speech transcripts.
  • Apache-2.0, free for any use including commercial use; ONNX with 4-bit weights; runs in WebAssembly (onnxruntime-web or the SDK's own built-in engine).

Use

Try it in your browser first: pii.newmean.ai.

npm install @newmean-ai/pii
import { createRedactor } from "@newmean-ai/pii";

const redactor = await createRedactor({ size: "nano" });   // downloads this repository's files once, checks their SHA-256
const { text, spans } = await redactor.redact("Hi, I'm Kim Minji, call me at 010-1234-5678.");

SDK 1.2 to 1.7.2 pin revision v1.1.0 of this repository (SDK 1.0 pins v1.0.0). The files can also be used directly with onnxruntime: the model takes input_ids and attention_mask (windows of 256 tokens, stride 64) and returns BIO logits for the tags in config.json.

file
onnx/model_q4e.onnx2.1 MB, 4-bit weights and 4-bit embeddings
onnx/model_q4.onnx2.6 MB, 4-bit weights (SDK default)
tokenizer.web.jsoncompact Unigram tokenizer for the browser
tokenizer.json, tokenizer_config.jsonthe same tokenizer for Hugging Face tokenizers
config.jsontags, window settings, architecture

Results

Model only (no pattern layer), default file, onnxruntime on CPU. Miss = share of PII characters left unmasked (lower is better; what matters most for masking); over = share of non-PII characters masked.

setmiss % / over %
newmean-pii-dataset (public test) (54 languages, 17,058 rows)2.9 / 1.5 (exact F1 0.65)
KDPII (Korean)9.5 / 4.1
OpenPII 1.5M (30 languages)5.0 / 6.2
Nemotron-PII (English)9.9 / 2.3
Gretel finance (7 languages)21.4 / 7.6

Speed on a Colab L4 VM's CPU (Xeon 2.20 GHz, onnxruntime): 59 ms per text with one thread, 16 ms with 12 threads, on the public test's texts. The public test of newmean-pii-dataset is generated with the same design and guideline as the training data, so these models have an in-distribution advantage there; the external sets were never used for training. On the public test the closest of the eight public detectors we compared (gliner-pii-edge, 176 MB) misses 19.6%; the leaderboard scores them weekly on its public and private test. The full comparison, per-label and per-language results are in the technical report.

Short texts and survey files (v1.1). On a private set of 20,691 short items in 54 languages (column titles, answer options, single words, names and values written alone) and 228 survey CSV files: masks 11.1% of the PII-free items (v1.0: 39.3%) and 9.9% of the PII-free cells when a survey file is checked cell by cell (v1.0: 32.5%); finds 96.7% of names written alone. The set is generated (by a different model from the training data) and not published.

With SDK 1.2. The numbers above move by at most 0.04 points, because the SDK only changes texts with emoji or keycaps. Emoji are taken out of the text the model reads: texts with an emoji masked fall from 26.33% (model only) to 1.00%. Table mode with context: "header" misses 1.58% of the PII characters of 556 survey and form exports in 54 languages (table mode alone: 6.13%) and masks 27.34% of their PII-free cells. Both sets are private and synthetic.

Model

one shared layer applied 4 times, embeddings rank 32; 3.1M parameters. All four tiers start from mMiniLMv2-L6-H384 with the XLM-R vocabulary pruned to the 35,298 pieces that occur in the training data, and are distilled from two larger private teacher models (mDeBERTa-v3-base and XLM-R-large, fine-tuned for this task). Training data: about 1.31 million synthetic texts in 54 languages generated with Claude models from a written labelling guideline (v1.1 added 240,498 short texts: titles, answer options, single words, lone names and values, survey rows); no real personal data and no external dataset was used for training.

Limitations

  • No detector finds everything: use the result to reduce what is sent, not as a guarantee of anonymity.
  • Trained on synthetic text; rare formats, very long documents and languages outside the 54 may be weaker.
  • Context decides some labels (an organisation is masked only when a person belongs to it; dates only when they are birth dates), so results depend on the surrounding text. sensitivity in the SDK trades misses for over-masking.
  • Survey files checked cell by cell: use newmean-pii-large or sensitivity: -0.5; at the default, smaller tiers can mask a lone gender word ("남성", "Male").

Changelog

  • v1.1.0 (2026-11-01, published with SDK 1.2.0 on 2026-11-02): short texts, table cells and survey exports. PII-free short items masked: 39.3% → 11.1%. Same architecture, tokenizer and sizes. KDPII miss 9.5% → 9.5%.
  • v1.0.0 (2026-10-31): first release.

License and attribution

Apache-2.0 (LICENSE), like the SDK. If you use the model in a product, we would appreciate a "Powered by newmean.ai" mention in your docs or an about or licenses screen, and "Based on newmean-pii-nano" in the card of a model you derive from it (requests, not license conditions).

Built on mMiniLMv2 (Microsoft, MIT License) and the XLM-R SentencePiece tokenizer (Facebook AI, MIT License); see NOTICE. Made by newmean.ai. Questions and commercial inquiries: hoonjae@newmean.ai.

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

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

GPU в ailist

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

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

Модель выложена только в формате ONNX, рантайм загружает PyTorch-веса.

Ревизия весов
7dcc20b

0 моделей