pszemraj/gibberish_detector_onnx-quant-avx2
By pszemraj · ↓ 1 · ♥ 0 · Updated 2025-12-29
What's in this repo
This page lists the files in pszemraj/gibberish_detector_onnx-quant-avx2, including model_quantized.onnx.
- 1 ONNX models (.onnx files)
- 9 files, including 5 .json, 1 .md, 1 .onnx, 1 .txt
- Last updated 2025-12-29
ONNX files
| File | Size | Download |
|---|---|---|
| model_quantized.onnx | — | Download |
How to use
These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.
README
gibberish_detector_onnx: quantized avx2
# pip install 'optimum[onnxruntime,exporters]'
from optimum.pipelines import pipeline
classifier = pipeline(
"text-classification",
model="pszemraj/gibberish_detector_onnx-quant-avx2",
accelerator="ort",
)
classifier("ayy waddup")
# [{'label': 'noise', 'score': 0.38642483949661255}]
differences between quant params
the one with -pc suffix means per_channel=True
>>> src = 'quant_onnx_gibberish_detector' # avx2
>>> classifier = pipeline('text-classification', model=src, accelerator='ort')
>>> classifier('ayy waddup')
[{'label': 'noise', 'score': 0.34829846024513245}]
>>> src = 'quant_onnx_gibberish_detector-pc' # avx2 per channel (this model)
>>> classifier = pipeline('text-classification', model=src, accelerator='ort')
>>> classifier('ayy waddup')
[{'label': 'noise', 'score': 0.38642483949661255}]
>>> src = 'onnx_gibberish_detector' # unquantized onnx
>>> classifier = pipeline('text-classification', model=src, accelerator='ort')
>>> classifier('ayy waddup')
[{'label': 'noise', 'score': 0.6847617626190186}]
Model info
text-classification
transformers
transformers
onnx
distilbert
text-classification
license:apache-2.0
text-embeddings-inference
endpoints_compatible
region:us
↓ 1
♥ 0
Created: 2024-02-21
Updated: 2025-12-29
View on Hugging FaceFiles (9)
.gitattributes
README.md
config.json
model_quantized.onnx
ONNX
ort_config.json
special_tokens_map.json
tokenizer.json
tokenizer_config.json
vocab.txt