Views
No views yet
| Variant | Path | Quantization |
|---|---|---|
| FP16 | onnx/fp16/model.onnx | FP16 weights |
| INT8 | onnx/int8/model.onnx | Post-training dynamic INT8 (MatMul/Gemm) |
| INT8 + INT4 embeddings | onnx/int8_int4_embeddings/model.onnx | Dynamic INT8 plus 4-bit weight-only token embeddings |
onnx/quantization_manifest.json.| Variant | F1 (macro) | source:sensitive | source:untrusted | sink:external | Δ F1 vs FP32 |
|---|---|---|---|---|---|
| FP32 reference (main repo) | 0.9645 | 0.9744 | 0.9687 | 0.9504 | — |
| FP16 | 0.9647 | 0.9743 | 0.9693 | 0.9504 | +0.0002 |
| INT8 | 0.9664 | 0.9766 | 0.9697 | 0.9530 | +0.0019 |
| INT8 + INT4 embeddings | 0.9662 | 0.9789 | 0.9697 | 0.9500 | +0.0017 |
metrics/quant_bench.json.1from optimum.onnxruntime import ORTModelForSequenceClassification
2from transformers import AutoTokenizer
3
4model_id = "patronus-studio/husky-nose-tool-security-properties-classifier-edge"
5tokenizer = AutoTokenizer.from_pretrained(model_id)
6model = ORTModelForSequenceClassification.from_pretrained(model_id, subfolder="onnx/int8_int4_embeddings")
7
8inputs = tokenizer("...", return_tensors="pt")
9logits = model(**inputs).logitsLICENSE. Derived from
Husky Nose Tool Security-Properties Classifier and ultimately from
jhu-clsp/mmBERT-small (MIT License); upstream
notices are retained.