Downloads · 30 days
27
9% of all-time downloads
Yashika900/pii-redactor-llama3.2-3b
pii-redactor-llama3.2-3b is a machine learning model from Yashika900. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
A fine-tuned, quantized version of Llama 3.2 3B that detects and redacts Personally Identifiable Information (PII) from text, designed to run fully offline on CPU via Ollama.
Downloads · 30 days
27
9% of all-time downloads
All-time downloads
303
Public
Repo size
2 GB
Likes
0
Public
Click a slice to open those files.
.gguf2 GB · 100%
From the Hugging Face model README
A fine-tuned, quantized version of Llama 3.2 3B that detects and redacts Personally Identifiable Information (PII) from text, designed to run fully offline on CPU via Ollama.
Part of the Local PII Redactor project — see that repo for the full pipeline (data generation, training code, regex safety net, and web app).
NAME EMAIL PHONE ADDRESS DOB SSN CREDIT_CARD BANK_ACCOUNT
PASSPORT DRIVER_LICENSE IP_ADDRESS USERNAME PASSWORD URL ORG
DATE LICENSE_PLATE MEDICAL_ID EMPLOYEE_ID AGE
# Download this repo's files, then:
ollama create pii-redactor -f Modelfile
ollama run pii-redactor "My name is John Smith, email [email protected], phone 555-123-4567."
Expected output:
My name is [NAME], email [EMAIL], phone [PHONE].
pii_redactor_q4.gguf — the quantized model weightsModelfile — Ollama configuration (system prompt + inference parameters)| Metric | Result |
|---|---|
| Leakage rate (held-out validation, 118 examples) | 0.0% (0 leaks) |
| Leakage rate on adversarial stress tests (with regex safety net) | 0.0% |
| Average inference time | ~0.30s per request (CPU) |
This model is designed to be used together with a regex-based safety net for structured PII (emails, phone numbers, SSNs, etc.), since the model alone can occasionally miss PII in long or complex inputs. See the GitHub repo for the full two-layer pipeline implementation.
This model is intended as a local pre-processing step to sanitize text before it is sent to external services (e.g. cloud LLM APIs), not as a standalone compliance or legal guarantee of PII removal. Always pair with additional review for high-stakes use cases.
MIT