CoolFace
Modelpublic

Fazmin/solus_v1_gliner2-privacy-filter-pii-q8

sourceHugging Faceapache-2.0updated 1mo agoView on Hugging Face
0likes
Model Card

GLiNER2 Privacy Filter PII Multi (q8 ONNX) — Solus v1

The entity extractor behind Solus's PII tools: GLiNER2 Privacy Filter PII Multi, exported to ONNX and quantized to 8 bits.

It is a token classifier built on mdeberta-v3-base, not a generative model. It scores every candidate span in the text against a fixed label set and returns character offsets, so it cannot invent a finding that is not in the input. The label set is baked into the graph at export time: name, address, email, phonenum, idnum, url and username. The encoder's position budget is 512 subwords, so longer text has to be scanned in overlapping windows.

Specifications

Parameters0.3B
Quantization8-bit (MatMulNBits)
File size525.14 MB
Minimum RAM2.00 GB
Minimum VRAMnot required
Context length512 tokens
SHA-256261ee74758005ee265b999299e3d7091ddd541dceccdef414017a69beb4854a4 (model_q8.onnx)

Installs as a directory. Every file below is required:

FileSize
model_q8.onnx1.28 MB
model_q8.onnx.data508.58 MB
tokenizer.json15.28 MB
entity_labels.json239 B
onnx_export_metadata.json1.54 KB

Quantization

Quantization performed at the Faculty of Engineering, McMaster University.

The conversion this build is derived from was produced by okasi, and the weights here are a byte-for-byte copy of that file — the SHA-256 above matches the upstream artifact.

Provenance

Usage

python
import onnxruntime as ort

session = ort.InferenceSession("model_q8.onnx")

A token classifier, not a generative model. It scores candidate spans against a fixed label set baked into the graph at export time: name, address, email, phone_num, id_num, url, username. Preprocessing and decoding are described in onnx_export_metadata.json; model_q8.onnx.data must sit beside the graph.

License

Licensed Apache-2.0.