Rust Quantizer for ONNX Models
Core Epoch builds Kenosis, a Rust quantizer. Quantized models often shrink file size at the cost of accuracy or speed. Kenosis models are smaller than the originals, keep accuracy near the original, and run faster on CPU with no retraining. Each ships as a standard .onnx file that runs on CPU in both ONNX Runtime and OpenVINO.
The models on these cards are Kenosis models: smaller and faster than the original, while keeping accuracy near it. Each is one standard .onnx file that runs on CPU in both ONNX Runtime and OpenVINO. The speeds shown are in ONNX Runtime on a CPU with AVX-VNNI.
We ran public models through Kenosis and measured each file against its FP32 original and, where one exists, the public INT8 version on Hugging Face. Speed is median CPU time in ONNX Runtime at 4 threads. Accuracy uses LibriSpeech test-clean for speech, COCO 2017 for vision, and rendered pages for documents. Generated speech is scored by Whisper base.en word error rate.
Voice synthesis. Time to synthesize one test sentence (5 to 7 seconds of speech). Accuracy: Whisper word error rate.
| Model | Size: FP32 → Kenosis (public INT8) | CPU time: FP32 / public INT8 / Kenosis | Word error rate: FP32 / public INT8 / Kenosis |
|---|---|---|---|
| Kokoro-82MVoice synthesis | 325.53 → 84.77 MB (92.36 MB) | 1,774.7 / 5,051.8 / 1,239.5 ms | 2.05% / 2.74% / 2.74% |
| tiny-vocaVoice synthesis (published Kenosis model) | 21.39 → 5.39 MB (-) | 57.8 / - / 32.1 ms | 1.00% / - / 1.12% |
Speech, vision and documents.
| Model | Size: FP32 → Kenosis (public INT8) | CPU time: FP32 / public INT8 / Kenosis | Accuracy: FP32 / public INT8 / Kenosis |
|---|---|---|---|
| NeMo Conformer-CTC SmallSpeech-to-text | 85.33 → 46.72 MB (46.42 MB) | 24.1 / 62.8 / 22.6 ms for 4.8 s of speech | Word error rate on 200 utterances: 3.58% / 3.80% / 3.92% |
| MODNetPortrait matting | 25.89 → 6.70 MB (6.63 MB) | 219.4 / 373.3 / 160.6 ms per image | Mask IoU with COCO person masks: 0.759 / 0.596 / 0.755 |
| UVDocPage unwarping | 31.68 → 8.05 MB (-) | 199.8 / - / 136.6 ms per page | Closeness to the flat page (PSNR): 16.99 / - / 17.00 dB |