Downloads · 30 days
28
16% of all-time downloads
distil-labs/Distil-PII-SmolLM2-135M-Instruct
Distil-PII-SmolLM2-135M-Instruct is a text generation model from distil-labs. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
A small language model (SLM) fine-tuned by Distil Labs for policy-aware PII redaction that outputs a single JSON object with redactedtext and entities. Optimized to run locally with strong accuracy and strict schema a…
Downloads · 30 days
28
16% of all-time downloads
All-time downloads
178
Public
Parameters
135M
269 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors269 MB · 98%
From the Hugging Face model README
A small language model (SLM) fine-tuned by Distil Labs for policy-aware PII redaction that outputs a single JSON object with redacted_text and entities. Optimized to run locally with strong accuracy and strict schema adherence.
Input: A plain-text prompt with task instruction + context. Output (JSON only):
{
"redacted_text": "Text with in-place tokens",
"entities": [
{"value": "<original>", "replacement_token": "[TOKEN]", "reason": "<why>"}
]
}
Tokens: [PERSON] [EMAIL] [PHONE] [ADDRESS] [SSN] [ID] [UUID] [CARD_LAST4:####] [IBAN_LAST4:####] [GENDER] [AGE] [RACE] [MARITAL_STATUS]
Instruction-tuned on a compact policy spec + ~20 curated examples emphasizing exact JSON schema, minimal in-place edits, and entity correctness.
Judged by a frontier LLM using a deterministic rubric: JSON-only, schema validity, redacted_text exact match, and set-equality of (value, replacement_token) pairs (reason/order ignored). Score: 0.25 +/- 0.05.
Details of deployment can be found in https://docs.distillabs.ai/how-to/model-deployment