A modified copy of knowledgator/gliner-pii-edge-v1.0, published by Varde Labs. It is the upstream fp32 ONNX export (onnx/model.onnx at commit 9b7f39b0a2da971a5beea78d35f1539d4009c891) with only the token embedding table quantized to int8.
Gather weights (the 77 MB token embedding table) with onnxruntime.quantization.quantize_dynamic. Every layer that computes stays fp32.gliner_config.json are the upstream files, unchanged.build.py rebuilds this file from the upstream model. With onnx==1.23.2 and onnxruntime==1.31.0 the output's SHA-256 is 906defc49c7c97aa05842f5c6bca51d3a6f4d0e17e8c73e334ebd834d7f7d472.181 MB becomes 123 MB. On a synthetic set of 1,680 prompts naming 240 invented people from 30 name origins, with the labels person and name, recall of whole names changes by at most half a point at thresholds 0.6, 0.5, 0.4, and 0.3. At 0.5 it is 97.1%, against 97.6% for the fp32 model. Spans that are not names fall slightly at each threshold. Speed per text is unchanged on an Apple-silicon CPU, and the model loads about 0.1 s faster.
Quantizing every layer to int8 (46 MB) was measured too and is not published: recall at 0.5 fell to 91.1%.
Apache-2.0, as the base model. See LICENSE. This copy is modified from the original as described above.