This is a derivative work. All credit for the original model goes to Alexander Visheratin (@visheratin). This repository only provides a quantized ONNX conversion for easier deployment. We do not claim ownership of the model architecture or weights.
Benchmarked on a 50-sentence English grammar correction test set (2-thread CPU, Google Colab).
Quality
Format
BLEU
chrF++
Exact Match
Δ BLEU
Δ chrF++
PyTorch FP32 (baseline)
66.08
82.69
48%
—
—
ONNX INT8 (this repo)
64.51
82.28
44%
-1.57
-0.42
Speed & Size
Metric
PyTorch FP32
ONNX INT8 (this repo)
P50 Latency
85 ms
60 ms
P95 Latency
112 ms
107 ms
Disk Size
59 MB
55 MB
Throughput
—
60.33 sentences/sec
Quantization Stability
Metric
Value
Sentences with changed output (INT8 vs FP32)
2/50 sentences changed
Deployment Scorecard Verdict
GO
Smallest and fastest model. Ideal for mobile/edge deployment where size is critical. Statistically identical quality to visheratin-mini (p=0.824).
Cross-Model Comparison (7 Models Benchmarked)
This model was benchmarked alongside 6 other grammar correction models. All models were evaluated on the same 50-sentence test set under identical conditions.
All credit for the original model goes to Alexander Visheratin (@visheratin). This repository only provides an ONNX INT8 quantized conversion to make the model easier to deploy in production environments (mobile, edge, browser).
Quantization and benchmarking performed as part of the Smart Desktop Keyboard Grammar Engine project.
Citation
If you use this model, please cite the original authors:
@misc{visheratin_tiny_onnx_int8,
title = {visheratin/t5-efficient-tiny-grammar-correction — ONNX INT8 Quantized},
note = {Quantized version of visheratin/t5-efficient-tiny-grammar-correction},
url = {https://huggingface.co/visheratin/t5-efficient-tiny-grammar-correction},
}