Downloads · 30 days
86
49% of all-time downloads
fcreait/rizzo-pii-0.3B-onnx
rizzo-pii-0.3B-onnx is a token classification model from fcreait. Use it when you need labels on individual words, such as names. The card lists the license as mit.
Downloads · 30 days
86
49% of all-time downloads
All-time downloads
176
Public
Repo size
2.5 GB
Likes
0
Public
Click a slice to open those files.
.onnx2.5 GB · 97%
From the Hugging Face model README
Two versions:
rizzoaiacademy/rizzo-pii-0.3B.v2/): a fine-tune of v1 on Italian spoken dialogues. It keeps v1's results on the original benchmarks.Training:
rizzo-pii-0.3B.rizzo-pii-it-dataset, so the legal domain is not forgotten.Labels, tokenizer and inputs are the same as v1's, so v2 is a drop-in replacement. v2/model-fp16.onnx is fp16 (616 MB), and the other files in v2/ are copies of the root ones.
In the tables, each cell shows the share of entities left unmasked first, and the share of non-PII words masked by mistake after the slash.
Original benchmarks: nothing lost. These are the validation sets of rizzo-pii-it-dataset, scored with rizzo-pii's own protocol (word tokens, strict type and span match).
| Test set | v1 F1 | v2 F1 | v1 | v2 |
|---|---|---|---|---|
validation_real | 0.9887 | 0.9878 | 0.38% / 0.05% | 0.27% / 0.08% |
validation_real, ## pieces joined into words | 0.9702 | 0.9844 | 2.87% / 0.05% | 0.76% / 0.05% |
validation_clean | 0.9999 | 0.9998 | 0.00% / 0.01% | 0.00% / 0.01% |
In validation_real, 64% of the rows carry WordPiece ## pieces. The second row is the same text joined back into words, which is how real text arrives.
Italian dialogues. 998 held-out synthetic dialogues with 22,474 entities, written by a different LLM than the training dialogues. Each line is classified and every detected value is masked wherever it repeats. A regex layer adds emails, phones and IDs, and every model gets the same post-processing.
| Model | Unmasked / over-masked |
|---|---|
| v2 | 1.6% / 0.2% |
| v1 | 4.1% / 0.2% |
| smart-pii-redactor-it (19M) | 1.5% / 0.3% |
| Mozilla/smart-pii-redactor-v1 | 2.8% / 1.2% |
Most of the gap is names: v1 misses 8,224 of the 19,565 names, v2 misses 74.
Unquantized FP32 ONNX export of rizzoaiacademy/rizzo-pii-0.3B at revision d4f989333bcda1fcb188785a12937b0f52b52580.
Exported with Optimum 1.24.0 at opset 17. Two weight variants are provided:
model-fp16.onnx: 615,826,010 bytes; recommended smaller CPU artifact.model.onnx: 1,230,827,904 bytes; canonical FP32 reference.FP16 was evaluated on all 7,000 examples and 255,154 word tokens in the released validation_real.jsonl. It produced 100% token-argmax and exact entity-span agreement with FP32. Both variants achieved micro-F1 0.9886719380. Full results are in validation-fp16.json.
Inputs: input_ids, attention_mask (int64). Output: token-classification logits. config.json contains the BIO label map; tokenizer.json provides tokenization and character offsets.
Exact build versions, source revision, file hashes, and parity tolerances are recorded in manifest.json. For model details, intended use, metrics, and licensing, refer to the original artifact page.