Run this model with HF Jobs
Run plenoai/pleno_anonymize_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/plenoai/pleno_anonymize_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/plenoai/pleno_anonymize_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 plenoai/pleno_anonymize_en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use plenoai/pleno_anonymize_en with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="plenoai/pleno_anonymize_en")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("plenoai/pleno_anonymize_en") model = AutoModelForTokenClassification.from_pretrained("plenoai/pleno_anonymize_en", device_map="auto") - Notebooks
- Google Colab
- Kaggle
pleno_anonymize_en
Lightweight English PII NER trained on the English split of
ai4privacy/pii-masking-300k.
Built as the English counterpart of
0xhikae/pleno_anonymize_ja;
recipe is intentionally a mirror of the JP supervised v2 pipeline but
with distilbert-base-uncased as the backbone (~66M params) so the
artefact stays small for CPU inference.
Acceptance tier
Smoke (≥0.50 F1) on the EN validation split is the explicit target. Numbers reported alongside the JP card are 1000-iter document-level bootstrap CIs; this card refreshes after the run completes.
Quick start
from transformers import AutoTokenizer, AutoModelForTokenClassification, pipeline
tok = AutoTokenizer.from_pretrained("0xhikae/pleno_anonymize_en")
mdl = AutoModelForTokenClassification.from_pretrained("0xhikae/pleno_anonymize_en")
ner = pipeline("token-classification", model=mdl, tokenizer=tok, aggregation_strategy="simple")
ner("Contact: Alice Johnson <alice@example.com>, phone 555-123-4567.")
Training
- Base:
distilbert-base-uncased - Dataset:
ai4privacy/pii-masking-300k, English slice (~30k train / ~8k val) - Recipe: 2 epochs, batch 16, lr 5e-5, fp16, seed 42 (mirror of JP v2)
- Hardware: single RTX 4090 on RunPod
Reproduce:
make -C packages/training dump-supervised-en
make -C packages/training train-supervised-en
make -C packages/training eval-300k-en
See docs/benchmark-pleno-anonymize-ja.md for the JP methodology this mirrors.
License
MIT (matches the upstream ai4privacy/pii-masking-300k license).
- Downloads last month
- 21
Model tree for plenoai/pleno_anonymize_en
Base model
distilbert/distilbert-base-uncased