llm-semantic-router / mmbert-pii-detector-lora

huggingface.co
Total runs: 4
24-hour runs: 0
7-day runs: -1
30-day runs: -6
Model's Last Updated: January 12 2026
token-classification

Introduction of mmbert-pii-detector-lora

Model Details of mmbert-pii-detector-lora

mmBERT PII Detector (LoRA Adapter)

A multilingual token classification model for Personal Identifiable Information (PII) detection using mmBERT with LoRA adapters.

Model Description

This model detects and classifies PII entities at the token level using BIO tagging:

  • PERSON : Names of individuals
  • EMAIL_ADDRESS : Email addresses
  • PHONE_NUMBER : Phone numbers
  • STREET_ADDRESS : Physical addresses
  • CREDIT_CARD : Credit card numbers
  • US_SSN : US Social Security Numbers
  • And more...
Performance
Metric Score
Accuracy 92.0%
F1 (weighted) 91.0%
Training Time 43 seconds (MI300X GPU)
Training Details
  • Base Model : jhu-clsp/mmBERT-base
  • LoRA Rank : 32
  • LoRA Alpha : 64
  • Task : Token Classification (BIO tagging)
  • Dataset : Microsoft Presidio Research Dataset
Usage
from peft import PeftModel
from transformers import AutoModelForTokenClassification, AutoTokenizer

# Load model
base_model = AutoModelForTokenClassification.from_pretrained(
    "jhu-clsp/mmBERT-base", num_labels=35  # O + 17 entity types × 2 (B/I)
)
model = PeftModel.from_pretrained(base_model, "llm-semantic-router/mmbert-pii-detector-lora")
tokenizer = AutoTokenizer.from_pretrained("jhu-clsp/mmBERT-base")

# Detect PII
text = "Contact John Smith at [email protected] or call 555-123-4567"
inputs = tokenizer(text.split(), is_split_into_words=True, return_tensors="pt")
outputs = model(**inputs)
predictions = outputs.logits.argmax(-1)

# Map predictions to labels
# ... (see full example in repository)
Supported PII Types
Entity Type Description
PERSON Full names
EMAIL_ADDRESS Email addresses
PHONE_NUMBER Phone numbers (various formats)
STREET_ADDRESS Physical addresses
CREDIT_CARD Credit card numbers
US_SSN US Social Security Numbers
IP_ADDRESS IP addresses
DATE_TIME Dates and times
URL Web URLs
ORGANIZATION Company/org names
Use Cases
  • Privacy Compliance : GDPR, CCPA compliance
  • Data Masking : Redact PII before processing
  • LLM Safety : Prevent PII leakage in LLM outputs
  • Document Processing : Automated PII detection in documents
Part of vLLM Semantic Router

This model is part of the vLLM Semantic Router project.

License

Apache 2.0

Runs of llm-semantic-router mmbert-pii-detector-lora on huggingface.co

4
Total runs
0
24-hour runs
0
3-day runs
-1
7-day runs
-6
30-day runs

More Information About mmbert-pii-detector-lora huggingface.co Model

More mmbert-pii-detector-lora license Visit here:

https://choosealicense.com/licenses/apache-2.0

mmbert-pii-detector-lora huggingface.co

mmbert-pii-detector-lora huggingface.co is an AI model on huggingface.co that provides mmbert-pii-detector-lora's model effect (), which can be used instantly with this llm-semantic-router mmbert-pii-detector-lora model. huggingface.co supports a free trial of the mmbert-pii-detector-lora model, and also provides paid use of the mmbert-pii-detector-lora. Support call mmbert-pii-detector-lora model through api, including Node.js, Python, http.

llm-semantic-router mmbert-pii-detector-lora online free

mmbert-pii-detector-lora huggingface.co is an online trial and call api platform, which integrates mmbert-pii-detector-lora's modeling effects, including api services, and provides a free online trial of mmbert-pii-detector-lora, you can try mmbert-pii-detector-lora online for free by clicking the link below.

llm-semantic-router mmbert-pii-detector-lora online free url in huggingface.co:

https://huggingface.co/llm-semantic-router/mmbert-pii-detector-lora

mmbert-pii-detector-lora install

mmbert-pii-detector-lora is an open source model from GitHub that offers a free installation service, and any user can find mmbert-pii-detector-lora on GitHub to install. At the same time, huggingface.co provides the effect of mmbert-pii-detector-lora install, users can directly use mmbert-pii-detector-lora installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

mmbert-pii-detector-lora install url in huggingface.co:

https://huggingface.co/llm-semantic-router/mmbert-pii-detector-lora

Url of mmbert-pii-detector-lora

Provider of mmbert-pii-detector-lora huggingface.co

llm-semantic-router
ORGANIZATIONS

Other API from llm-semantic-router