Downloads · 30 days
48
16% of all-time downloads
vllm-sr/mmbert32k-pii-detector-lora
mmbert32k-pii-detector-lora is a token classification model from vllm-sr. Use it when you need labels on individual words, such as names. It is set up for peft. The card lists the license as mit.
LoRA adapter for PII (Personally Identifiable Information) detection using mmBERT-32K-YaRN base model with 32K context length.
Downloads · 30 days
48
16% of all-time downloads
All-time downloads
298
Public
Repo size
165 MB
Likes
1
Public
Click a slice to open those files.
.json34.4 MB · 56%
From the Hugging Face model README
LoRA adapter for PII (Personally Identifiable Information) detection using mmBERT-32K-YaRN base model with 32K context length.
| Property | Value |
|---|---|
| Base Model | vllm-sr/mmbert-32k-yarn |
| Task | Token Classification (NER) |
| LoRA Rank | 32 |
| LoRA Alpha | 64 |
| Max Context | 32,768 tokens |
| Entity Types | 17 PII types (35 BIO labels) |
PERSON - Person namesEMAIL_ADDRESS - Email addressesPHONE_NUMBER - Phone numbersSTREET_ADDRESS - Street addressesCREDIT_CARD - Credit card numbersUS_SSN - US Social Security NumbersUS_DRIVER_LICENSE - US Driver License numbersIBAN_CODE - International Bank Account NumbersIP_ADDRESS - IP addressesDATE_TIME - Dates and timesAGE - Age informationORGANIZATION - Organization namesGPE - Geopolitical entitiesZIP_CODE - ZIP/postal codesDOMAIN_NAME - Domain namesNRP - Nationalities, religious or political groupsTITLE - Titles (Mr., Dr., etc.)from peft import PeftModel
from transformers import AutoModelForTokenClassification, AutoTokenizer
# Load base model and LoRA adapter
base_model = AutoModelForTokenClassification.from_pretrained(
"vllm-sr/mmbert-32k-yarn",
num_labels=35
)
model = PeftModel.from_pretrained(base_model, "vllm-sr/mmbert32k-pii-detector-lora")
tokenizer = AutoTokenizer.from_pretrained("vllm-sr/mmbert32k-pii-detector-lora")
MIT License