OpenMed/privacy-filter-nemotron-v2
is the second-generation Nemotron-schema checkpoint in the OpenMed privacy-filter family. It keeps the same fine-grained 55-category PII vocabulary as
OpenMed/privacy-filter-nemotron
, while using a broader training mix and a more recall-oriented adaptation recipe. In practice, this v2 checkpoint should perform better as a general PII masking and redaction model while preserving the useful typed labels from the original Nemotron model.
The model is based on
openai/privacy-filter
, a 1.4B-parameter MoE token classifier with roughly 50M active parameters per token. It predicts 221 BIOES token classes:
O
55 PII categories encoded as
B-*
,
I-*
,
E-*
, and
S-*
Use this checkpoint when you want the Nemotron fine-grained label schema, but prefer the improved v2 masking behavior.
Relationship To The Original Nemotron Model
This model is a direct successor to
OpenMed/privacy-filter-nemotron
.
Same base architecture:
openai/privacy-filter
Same core label schema: 55 fine-grained Nemotron-style PII categories
Same output format: BIOES token classification
Broader adaptation data: Nemotron-style fine labels plus additional PII
masking examples from other synthetic PII sources
Better practical masking behavior for general redaction use cases
The original
OpenMed/privacy-filter-nemotron
remains useful when you want the
cleanest single-dataset Nemotron training lineage. This v2 model is the better
default when you want stronger general-purpose PII masking while keeping the
same fine-grained schema.
Quick Start
With OpenMed
pip install -U "openmed[hf]"
from openmed import extract_pii, deidentify
model_name = "OpenMed/privacy-filter-nemotron-v2"
text = (
"Patient Sarah Johnson (DOB 03/15/1985), MRN 4872910, ""phone 415-555-0123, email [email protected]."
)
result = extract_pii(text, model_name=model_name)
for ent in result.entities:
print(ent.label, ent.text)
masked = deidentify(text, method="mask", model_name=model_name)
print(masked.deidentified_text)
from transformers import AutoModelForTokenClassification, AutoTokenizer, pipeline
repo_id = "OpenMed/privacy-filter-nemotron-v2"
tokenizer = AutoTokenizer.from_pretrained(repo_id, trust_remote_code=True)
model = AutoModelForTokenClassification.from_pretrained(
repo_id,
trust_remote_code=True,
)
ner = pipeline(
"token-classification",
model=model,
tokenizer=tokenizer,
aggregation_strategy="simple",
)
text = "Patient Sarah Johnson, MRN 4872910, can be reached at [email protected]."print(ner(text))
For best production behavior, use BIOES-aware decoding and merge overlapping or
consecutive spans before masking.
Label Space
The checkpoint uses 55 fine-grained PII categories:
The full label-space JSON is included as
label_space_fine_v1.json
.
Training Summary
This checkpoint was initialized from the first-generation OpenMed Nemotron
privacy-filter branch and further adapted with source-balanced typed PII
examples.
Training method: full fine-tuning with OpenAI's
opf train
The training mix includes synthetic PII examples derived from:
nvidia/Nemotron-PII
gretelai/gretel-pii-masking-en-v1
ai4privacy/pii-masking-openpii-1m
Limitations And Intended Use
This is an experimental private checkpoint intended for PII detection,
masking, and de-identification workflows. It should be validated on your target
domain before use in high-stakes systems.
For clinical PHI, radiology/DICOM workflows, legal data, or other regulated
settings, use this model as one component inside a broader de-identification
pipeline with deterministic rules, audit logging, and human review where
appropriate.
Credits
This model builds on:
OpenAI's
openai/privacy-filter
model and
opf
training tools
privacy-filter-nemotron-v2 huggingface.co is an AI model on huggingface.co that provides privacy-filter-nemotron-v2's model effect (), which can be used instantly with this OpenMed privacy-filter-nemotron-v2 model. huggingface.co supports a free trial of the privacy-filter-nemotron-v2 model, and also provides paid use of the privacy-filter-nemotron-v2. Support call privacy-filter-nemotron-v2 model through api, including Node.js, Python, http.
privacy-filter-nemotron-v2 huggingface.co is an online trial and call api platform, which integrates privacy-filter-nemotron-v2's modeling effects, including api services, and provides a free online trial of privacy-filter-nemotron-v2, you can try privacy-filter-nemotron-v2 online for free by clicking the link below.
OpenMed privacy-filter-nemotron-v2 online free url in huggingface.co:
privacy-filter-nemotron-v2 is an open source model from GitHub that offers a free installation service, and any user can find privacy-filter-nemotron-v2 on GitHub to install. At the same time, huggingface.co provides the effect of privacy-filter-nemotron-v2 install, users can directly use privacy-filter-nemotron-v2 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
privacy-filter-nemotron-v2 install url in huggingface.co: