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.

Reproducing benchmarks

#2
by camillevanhoffelen - opened

I don't get the same benchmark results for Gretel or nemotron in my PII masking benchmark: https://huggingface.co/spaces/piimb/pii-masking-benchmark-leaderboard .
What does "18-locale-filtered" mean? Which ai4privacy dataset did you use? Which MAPA dataset did you use?

Thanks for running it, and sorry the card doesn't say enough to reproduce. Here are our the details to our evaluation setup:

18-locale-filtered: we drop eval samples in languages the model wasn't trained on (16 languages; "18" counts en-US/en-GB and es-ES/es-MX separately). It changes nothing on Gretel or Nemotron, which are English-only. It only affects ai4privacy (drops nl) and MAPA.

ai4privacy: ai4privacy/pii-masking-400k, validation split, shuffled 660-row subsample, 595 after the language filter.

MAPA: joelniklaus/mapa, default config, test split, coarse-grained tags, language-stratified subsample, 90 sentences after the language filter.

Why Gretel/Nemotron differ from PIIMB: I believe it is mostly protocol:

  1. Our numbers use the hybrid decode shipped in the repo (pii_hybrid_decode.py: model plus a regex/validator layer), not the plain pipeline output.
  2. The metric is span-level and typed: micro F1 where a prediction counts if it overlaps a gold span of the same type. PIIMB is character-level and label-agnostic.
  3. Gold labels are mapped to our 40-type schema, and gold types with no counterpart are excluded from scoring rather than counted as misses. That is about 47% of Nemotron's gold entities and 25% of Gretel's, so it is likely the largest factor.
  4. We score whole documents (the model was trained at long context) on subsamples: 500 Gretel test docs and 1,000 Nemotron test docs.

So the card's numbers answer "how well does it find the types it claims to cover", while PIIMB answers "how much of everything the dataset labels gets masked".

What numbers are you seeing? If you can run with the hybrid decode I'd be curious how much of the gap it closes.

Sign up or log in to comment