Token Classification
Transformers
Safetensors
lfm2
liquid
lfm2.5
bidirectional
masked-lm
encoder
pii
ner
privacy
multilingual
custom_code
Run this model with HF Jobs
Run LiquidAI/LFM2.5-Encoder-350M-PII-Detector 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/LiquidAI/LFM2.5-Encoder-350M-PII-Detector. 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/LiquidAI/LFM2.5-Encoder-350M-PII-Detector 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 LiquidAI/LFM2.5-Encoder-350M-PII-Detector with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LiquidAI/LFM2.5-Encoder-350M-PII-Detector with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="LiquidAI/LFM2.5-Encoder-350M-PII-Detector", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("LiquidAI/LFM2.5-Encoder-350M-PII-Detector", trust_remote_code=True) model = AutoModelForTokenClassification.from_pretrained("LiquidAI/LFM2.5-Encoder-350M-PII-Detector", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Note v9 outcome (evaluated, not published)
Browse files96 unmodified lines97989910010110210396 unmodified lines**v8** leads the product-critical signals (Internal, ShieldFlow) and exact-boundary F1;**v4** still leads several clean academic sets (SPY, TAB, MAPA); **v6** leads Gretel/AI4Privacy.v8 is published as the best balance for real-world deployment (it also covers 40 PII types vsv4's 32). A recall-focused retrain (v9) is in progress and this section will be updated when it lands.### vs. external models (same current eval sets)96 unmodified lines97989910010110210396 unmodified lines**v8** leads the product-critical signals (Internal, ShieldFlow) and exact-boundary F1;**v4** still leads several clean academic sets (SPY, TAB, MAPA); **v6** leads Gretel/AI4Privacy.v8 is published as the best balance for real-world deployment (it also covers 40 PII types vsv4's 32). (A recall-focused retrain, v9, was evaluated but **not published** — it failed to improve the targeted alphanumeric-ID recall and regressed person_name/internal; it did set a new ShieldFlow-proxy best of 0.856. v8 remains current.)### vs. external models (same current eval sets)
README.md+1-1