ONNX export of
nvidia/gliner-PII,
packaged for local, dependency-light inference. This is the on-device PII
detector that ships inside
Sovraine Guard, where it powers
the privacy router: detection, classification, and redaction of personal
data in AI-agent tool traffic — across 11 languages, entirely on-device.
GLiNER is zero-shot: you pass the entity labels you want detected.
1from gliner import GLiNER
2
3model = GLiNER.from_pretrained(
4 "Sovraine/gliner-pii-onnx",
5 load_onnx_model=True,
6 onnx_model_file="onnx/model_fp16.onnx",
7)
8
9labels = ["person", "email", "phone", "credit card",
10 "national ID", "address"]
11
12text = "Contact Marie Dubois at marie.dubois@example.fr or +33 6 12 34 56 78."
13for ent in model.predict_entities(text, labels):
14 print(f"{ent['label']:>20}: {ent['text']}")
15# person name: Marie Dubois
16# email: marie.dubois@example.fr
17# phone number: +33 6 12 34 56 78
For benchmark results, see the upstream
nvidia/gliner-PII model card.
The ONNX export is a format conversion; no fine-tuning was performed by
Sovraine. Quantized variants (INT8, Q4) trade some recall for footprint —
validate on your own data before choosing a variant for regulated
workloads.