guard-ft-v19-trimmed-int8
GUARD-FT round 19 (AgentDocs' EN+FR legal-document PII token classifier), vocabulary-trimmed
(250,002 -> 53,751 pieces) then dynamically quantized to int8
(onnxruntime.quantization.quantize_dynamic, QInt8, no calibration set β every MatMul weight
tensor; activations quantized per inference).
A real precision/speed trade-off, not a free size win (unlike the fp16 sibling, which is
numerically near-identical to fp32). Measured against gauthierrobert2/guard-ft-v19-trimmed across
a 259-document evaluation corpus:
| fp32 (trimmed) | int8 (this) | |
|---|---|---|
| stage-3 leaked | 234 | 243 (+9) |
| stage-3 ORG recall | 89.68% | 88.56% |
| stage-3 OTHER recall | 81.56% | 80.50% |
| census over-masked | 798 | 833 |
| census precision | 80.94% | 80.44% |
CPU is where it wins: ~1.9-2.9x faster than fp32 (measured, oneDNN/MLAS int8 kernels), 360 MB
against fp32's 1.4 GB. CUDA is where it loses badly: ~9-10x SLOWER than fp32 in a real detection
pass β dynamic quantization targets CPU kernels and has no efficient GPU execution path here. Loads
correctly under ONNX Runtime 1.24.1's CPU execution provider at ORT_ENABLE_ALL with no fusion
pre-pass needed (unlike fp16, which does).
- Weights: ~1.4 GB (fp32) -> ~360 MB (int8)
- Labels: PERSON, ORG, PUBLIC_BODY, ROLE, ADDRESS, PLACE, DOB, CONTACT (BIO scheme)
- Downloads last month
- 185
Model tree for gauthierrobert2/guard-ft-v19-trimmed-int8
Base model
FacebookAI/xlm-roberta-large