Nullify 68M — Brevitech Unmodified Mirror

Unmodified Mirror Notice: Hosted by Brevitech (brevitech) as an unmodified mirror of rbsriram/nullify-68m (Copyright 2026 Null Velocity; base model jhu-clsp/ettin-encoder-68m) under the Apache License 2.0. Original LICENSE, NOTICE, weights, ONNX export, and nullify.py are preserved verbatim.

Upstream repository: rbsriram/nullify-68m (12448353ecdd9806e8b2d67a981d757bcb3f5611)

A 68-million-parameter model that identifies personal and sensitive information in text. It runs locally, in 8.5 ms per message on a laptop CPU, and returns the exact position of each span.

Quick start

pip install numpy tokenizers huggingface_hub torch transformers   # PyTorch backend
pip install numpy tokenizers huggingface_hub onnxruntime          # or: ONNX backend, no PyTorch
import sys
from huggingface_hub import snapshot_download

folder = snapshot_download("brevitech/nullify-68m")
sys.path.insert(0, folder)
from nullify import Nullify

nf = Nullify.from_pretrained(folder, backend="onnx")  # omit backend to use PyTorch
text = ("Hi, this is Priya Raman from Acme Logistics. Call me on +1 415 555 0134 "
        "or write to priya.raman@example.com about order 88213 before Friday.")

print(nf.mask(text))
# Hi, this is [PERSON] from [ORGANIZATION]. Call me on [PHONE] or write to [EMAIL] about order 88213 before Friday.

for span in nf.detect(text):
    print(span["start"], span["end"], span["label"], span["text"])
# 12 23 PERSON Priya Raman
# 29 43 ORGANIZATION Acme Logistics
# 56 71 PHONE +1 415 555 0134
# 84 107 EMAIL priya.raman@example.com

detect returns spans with start, end (half-open Unicode code-point offsets), label, score, and text. A given name and a family name next to each other come back as one PERSON span, with the parts under parts. mask(text, profile="default") leaves dates and places visible; profile="all" masks every class. Inputs longer than 1,024 tokens are processed in windows cut at line boundaries.

Results

Nullify 68M PII-Tracer 0.6B OpenAI Privacy Filter 1.5B GLiNER2 PII 307M
Privacy-Bench, official F1 86.6 77.8 73.3 84.6
PII-TRACE, exact-span F1, same post-processing for every system 93.4 97.0 89.4 68.7
PII-TRACE, exact-span F1, default output 92.7
PII-TRACE, exact-span F1, raw output 66.4 96.8 89.4 60.9
PII-TRACE, clean conversations flagged (of 50, lower is better) 21 5 9 21
RedactionBench, R-Score, default setting 0.539 0.601 0.536 0.445
RedactionBench, R-Score, every class masked 0.446
RedactionBench, 101 real documents, must-hide content hidden (default / every class) 68.7% / 77.9% 69.3%

Batch size 1, float32, no threshold, one pass. Privacy-Bench and PII-TRACE: all four systems run by us. RedactionBench: our runs for Nullify and the OpenAI Privacy Filter (published: 0.533); the published leaderboard for PII-Tracer and GLiNER2 PII, where the authors tune a threshold on the benchmark for models that have one; Nullify uses none. PII-Tracer was built by the authors of PII-TRACE. PII-Tracer and the OpenAI Privacy Filter have no organization class, which Privacy-Bench counts. On PII-TRACE the scorer requires an exact span plus a matching label in its own label space (private_person, account_number, and so on). "Raw" reports the model's native labels unchanged: a person name comes out as NAME_GIVEN "Priya" plus NAME_FAMILY "Raman", so one private_person "Priya Raman" gold span counts as two misses. The shared post-processing pass maps every system's output to the benchmark's labels and span conventions, the same mapping nullify.py applies by default (eval/piitrace_adapter.py) — which is why the same model scores 66.4 raw and 93.4 with shared mapping.

Published Privacy-Bench results, same scorer: Tonic Identity Synthesis 92.5, Tonic Textual 92.1, Claude Opus 5 88.3, Claude Sonnet 5 87.0, GPT-6 astra 86.8, GPT-5.6 sol 86.1, GPT-5.6 terra 84.8, Presidio 82.8, GLiNER2 75.1 in its authors' configuration.

Exact-span precision, recall, and F1 per class on our held-out test set (239 documents). NAME_GIVEN and NAME_FAMILY are the two halves of PERSON in default output.

Class Precision Recall F1
EMAIL 97.6 100 98.8
NAME_GIVEN 98.3 98.8 98.6
NAME_FAMILY 97.6 98.2 97.9
DATE 100 95.5 97.7
URL 88.9 100 94.1
ADDRESS 94.7 90.0 92.3
PHONE 89.7 87.5 88.6
IP 84.6 88.0 86.3
SECRET 96.8 75.0 84.5
USERNAME 100 73.1 84.4
LOCATION 88.2 78.9 83.3
ID 59.3 95.2 73.1
ORGANIZATION 55.8 92.8 69.7

Classes and scope

Masked by default Visible by default
PERSON (from NAME_GIVEN and NAME_FAMILY), EMAIL, PHONE, ADDRESS, ID, USERNAME, URL, IP, SECRET, ORGANIZATION DATE, LOCATION

In scope: every string that reads as a person's name; company and brand names in any use; identifiers tied to a person, an account, a device, a vehicle, a bank, or a registry; credentials and keys; calendar dates; named places. Out of scope: departments and roles, generic nouns, product names that are not company names, operational references (order, invoice, shipment, ticket, SKU, part, and build numbers), public security identifiers, and version strings.

Speed and footprint

Apple M4 laptop, batch size 1, four CPU threads. Median 8.5 ms per message on the CPU with ONNX and 8.0 ms on the GPU with PyTorch (434 messages, median 39 tokens). A 1,024-token input takes 307 ms and 84 ms. 0.40 s from start to first result with ONNX. About 0.7 GB of memory on the CPU up to 1,024 tokens, 1.5 GB on the GPU. The ONNX file gives the same output as the PyTorch checkpoint on 1,931 test texts.

Model

Token classifier fine-tuned from jhu-clsp/ettin-encoder-68m with a 53-tag BIOES head over 13 classes, decoded with a constrained Viterbi pass (in nullify.py). Training ran on one MacBook Air.

Training data and licences

Nemotron-PII (NVIDIA, CC BY 4.0), gretel-pii-masking-en-v1 (Gretel, Apache 2.0), SPY (CC BY 4.0), and our own generated text with values from Faker and word lists. Attribution details are in NOTICE.

The model is released under the Apache 2.0 licence (LICENSE).

Intended use

A local filter in front of cloud LLM calls, redaction of business text, and a base for fine-tuning on an organization's own data.

It is not a guarantee of complete redaction. On 101 real documents in RedactionBench it hid 68.7% of must-hide content with the default classes and 77.9% with every class masked; the remaining gap needs a second pass, human review, or fine-tuning on your documents. Do not rely on it alone where a single missed span is unacceptable.

Files

File SHA256
model.safetensors 36b28fe7717cab1e0c758000459c96f92b8bbf7dcd10f022d911b6f1477e5083
onnx/model.onnx dc9be21937983956c55235af106ed56f0730ffe6218245c63d9c5325b78543f2

Limitations

  • Tested on English text only.
  • Flags all personal names, including public figures.
  • Less reliable on non-prose formats like source code, logs, and file listings.
  • Can miss domain-specific entities or over-flag clean text without fine-tuning.

Citation

@misc{nullvelocity2026nullify68m,
  author = {Sriram},
  title = {Nullify 68M: Fast Local PII Detection with Constrained Viterbi Decoding},
  year = {2026},
  publisher = {Hugging Face},
  url = {https://huggingface.co/rbsriram/nullify-68m}
}
Downloads last month
-
Safetensors
Model size
68.4M params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for brevitech/nullify-68m

Quantized
(23)
this model

Datasets used to train brevitech/nullify-68m