Instructions to use lumesec/privacy-onnx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- GLiNER2
How to use lumesec/privacy-onnx with GLiNER2:
from gliner2 import AutoExtractor extractor = AutoExtractor.from_pretrained("lumesec/privacy-onnx") # Extract entities text = "Apple CEO Tim Cook announced iPhone 15 in Cupertino yesterday." result = extractor.extract_entities(text, ["company", "person", "product", "location"]) print(result) - Notebooks
- Google Colab
- Kaggle
LumeSec privacy models β ONNX
ONNX exports of open detection models, made by LumeSec for SecureGrid, a local redaction app. The models are unchanged; only the format is. One folder per model.
gliner2-pii/
fastino/gliner2-privacy-filter-PII-multi
at revision 36126f6. Licence: Apache-2.0, as the base model; credit for the model belongs to Fastino.
| file | what |
|---|---|
encoder.onnx |
mDeBERTa-v3 encoder. input_ids, attention_mask β last_hidden_state |
extractor.onnx |
span/count head, schema padded to 64 fields. text_emb, schema_emb_padded, schema_mask, spans_idx β count_logits, span_scores |
tokenizer.json |
the base model's tokenizer |
Weights are stored as fp16 with a Cast to fp32 that ONNX Runtime folds at load time: half the
download, fp32 arithmetic, identical results to the PyTorch model (checked span for span).
Exported with the scripts from gliner2-rs (Apache-2.0) at
1bcf40e. Reproduce with tools/models/gliner2/export.sh in the SecureGrid repository.
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support
Model tree for lumesec/privacy-onnx
Base model
fastino/gliner2-privacy-filter-PII-multi