Token Classification
Transformers
ONNX
Safetensors
Transformers.js
English
modernbert
pii
pii-detection
secret-detection
dlp
ai-agents
mcp
security
guardrails
presidio
apache-2.0
Eval Results (legacy)
Run this model with HF Jobs
Run Tamarillo/pii-secrets-guard-tiny-en on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Tamarillo/pii-secrets-guard-tiny-en. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Tamarillo/pii-secrets-guard-tiny-en on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Tamarillo/pii-secrets-guard-tiny-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Tamarillo/pii-secrets-guard-tiny-en with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Tamarillo/pii-secrets-guard-tiny-en")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Tamarillo/pii-secrets-guard-tiny-en") model = AutoModelForTokenClassification.from_pretrained("Tamarillo/pii-secrets-guard-tiny-en", device_map="auto") - Transformers.js
How to use Tamarillo/pii-secrets-guard-tiny-en with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('token-classification', 'Tamarillo/pii-secrets-guard-tiny-en'); - Notebooks
- Google Colab
- Kaggle
Download integration_check.json from Tamarillo/pii-secrets-guard-tiny-en: direct link, hf CLI and curl.
- Browser
- Download file 1.01 kB
-
https://huggingface.co/Tamarillo/pii-secrets-guard-tiny-en/resolve/main/integration_check.json
- Command line
-
hf download hf://Tamarillo/pii-secrets-guard-tiny-en/integration_check.json
-
curl -L -o integration_check.json https://huggingface.co/Tamarillo/pii-secrets-guard-tiny-en/resolve/main/integration_check.json
1.01 kB
| { | |
| "transformers_pipeline": { | |
| "ok": true, | |
| "entities": [ | |
| [ | |
| "PERSON", | |
| " Elena Vargas" | |
| ], | |
| [ | |
| "EMAIL_ADDRESS", | |
| " elena.vargas@acme-fin.io" | |
| ], | |
| [ | |
| "API_KEY", | |
| "sk-proj-AbCdEf1234567890GhIjKlMnOpQrStUvWxYz0123456789" | |
| ], | |
| [ | |
| "DATABASE_URI", | |
| "postgresql://app:MyS3cretPass!@db.internal:5432/prod" | |
| ] | |
| ] | |
| }, | |
| "onnxruntime": { | |
| "ok": true, | |
| "non_o_tokens": 68 | |
| }, | |
| "presidio": { | |
| "ok": true, | |
| "detected": [ | |
| [ | |
| "EMAIL_ADDRESS", | |
| "elena.vargas@acme-fin.io" | |
| ], | |
| [ | |
| "DATABASE_URI", | |
| "DB=postgresql://app:MyS3cretPass!@db.internal:5432/prod" | |
| ], | |
| [ | |
| "EMAIL_ADDRESS", | |
| "elena.vargas@acme-fin.io." | |
| ], | |
| [ | |
| "PERSON", | |
| "Elena Vargas" | |
| ], | |
| [ | |
| "URL", | |
| "elena.va" | |
| ], | |
| [ | |
| "URL", | |
| "acme-fin.io" | |
| ], | |
| [ | |
| "URL", | |
| "db.int" | |
| ] | |
| ] | |
| } | |
| } |