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
leaderboard: fair GLiNER prompting
Browse files55 unmodified lines5657585960606162636 unmodified lines70717273737475764 unmodified lines8182838485858687885 unmodified lines9495969797989910010 unmodified lines1111121131141141151161175 unmodified lines12312412512612612712812955 unmodified lines|---|---|---|---|---|| trained:pii-detect-v3a | 0.304 | 0.742 | 0.431 | 0.576 || regex baseline | 0.259 | 0.579 | 0.358 | 0.464 || VAGOsolutions/SauerkrautLM-GLiNER | 0.171 | 0.785 | 0.280 | 0.456 || openai/privacy-filter | 0.169 | 0.595 | 0.264 | 0.396 || VAGOsolutions/SauerkrautLM-GLiNER | 0.160 | 0.513 | 0.244 | 0.356 || iiiorg/piiranha-v1 | 0.159 | 0.422 | 0.230 | 0.317 || OpenMed/privacy-filter-nemotron | 0.143 | 0.545 | 0.226 | 0.348 || LiquidAI demo (LFM2.5-PII-Demo) | 0.132 | 0.350 | 0.192 | 0.263 |6 unmodified lines| trained:pii-detect-v3a | 0.815 | 0.850 | 0.832 | 0.843 || LiquidAI demo (LFM2.5-PII-Demo) | 0.887 | 0.735 | 0.804 | 0.761 || OpenMed/privacy-filter-nemotron | 0.762 | 0.773 | 0.767 | 0.770 || VAGOsolutions/SauerkrautLM-GLiNER | 0.722 | 0.686 | 0.703 | 0.693 || VAGOsolutions/SauerkrautLM-GLiNER | 0.605 | 0.734 | 0.663 | 0.704 || iiiorg/piiranha-v1 | 0.633 | 0.490 | 0.552 | 0.513 || openai/privacy-filter | 0.455 | 0.462 | 0.459 | 0.461 || regex baseline | 0.500 | 0.254 | 0.337 | 0.281 |4 unmodified lines| Model | P | R | F1 | F2 ||---|---|---|---|---|| trained:pii-detect-v3a | 0.897 | 0.746 | 0.815 | 0.772 || VAGOsolutions/SauerkrautLM-GLiNER | 0.843 | 0.576 | 0.685 | 0.615 || OpenMed/privacy-filter-nemotron | 0.728 | 0.625 | 0.673 | 0.643 || VAGOsolutions/SauerkrautLM-GLiNER | 0.984 | 0.406 | 0.575 | 0.460 || openai/privacy-filter | 0.933 | 0.383 | 0.543 | 0.434 || LiquidAI demo (LFM2.5-PII-Demo) | 0.995 | 0.325 | 0.490 | 0.375 || iiiorg/piiranha-v1 | 0.721 | 0.160 | 0.262 | 0.189 |5 unmodified lines| Model | P | R | F1 | F2 ||---|---|---|---|---|| trained:pii-detect-v3a | 0.499 | 0.473 | 0.486 | 0.478 || VAGOsolutions/SauerkrautLM-GLiNER | 0.527 | 0.194 | 0.283 | 0.222 || VAGOsolutions/SauerkrautLM-GLiNER | 0.487 | 0.258 | 0.337 | 0.285 || iiiorg/piiranha-v1 | 0.465 | 0.181 | 0.261 | 0.206 || openai/privacy-filter | 0.372 | 0.186 | 0.248 | 0.207 || LiquidAI demo (LFM2.5-PII-Demo) | 0.274 | 0.140 | 0.185 | 0.155 |10 unmodified lines| OpenMed/privacy-filter-nemotron | 0.970 | 0.872 | 0.918 | 0.890 || LiquidAI demo (LFM2.5-PII-Demo) | 0.894 | 0.518 | 0.656 | 0.566 || iiiorg/piiranha-v1 | 0.841 | 0.538 | 0.656 | 0.580 || VAGOsolutions/SauerkrautLM-GLiNER | 0.815 | 0.533 | 0.644 | 0.572 || VAGOsolutions/SauerkrautLM-GLiNER | 0.707 | 0.583 | 0.639 | 0.604 || trained:pii-detect-v3a | 0.807 | 0.516 | 0.629 | 0.556 || openai/privacy-filter | 0.699 | 0.484 | 0.572 | 0.516 || regex baseline | 0.645 | 0.227 | 0.335 | 0.260 |5 unmodified lines|---|---|---|---|---|| iiiorg/piiranha-v1 | 0.969 | 0.924 | 0.946 | 0.932 || LiquidAI demo (LFM2.5-PII-Demo) | 0.533 | 0.464 | 0.496 | 0.476 || VAGOsolutions/SauerkrautLM-GLiNER | 0.399 | 0.614 | 0.484 | 0.554 || VAGOsolutions/SauerkrautLM-GLiNER | 0.403 | 0.610 | 0.485 | 0.553 || OpenMed/privacy-filter-nemotron | 0.341 | 0.541 | 0.418 | 0.484 || openai/privacy-filter | 0.316 | 0.492 | 0.385 | 0.443 || trained:pii-detect-v3a | 0.339 | 0.442 | 0.384 | 0.416 |README.md+6-6