r/MachineLearning • u/rushabhsheth • 1h ago
Research SumoOCR tiny - a 1M-parameter, 1.8 MB OCR pipeline (Apache-2.0), 3.5 pages/s on one CPU core [P]
We're the team at Docsumo (document processing). We just released SumoOCR tiny under Apache-2.0: a text detector plus line recognizer, 1.04M parameters total, 1.8 MB of INT8 ONNX. It is CPU only and runs on ONNX Runtime or OpenVINO, with no PyTorch or PaddlePaddle needed.
pip install sumoocr
sumoocr invoice.png --format jsonWhat it is
- Recognizer: PP-OCRv6 tiny (0.61M params) fine-tuned on business and public documents, output layer remapped to 758 Latin characters
- Detector: stock PP-OCRv6 tiny (0.43M params)
- Both INT8-quantized; word F1 stays within 0.2 points of FP32
- Output: text lines, each with a box and a confidence score
Benchmarks (word F1 on whole pages, same images, one CPU thread)
| Engine | FUNSD | SROIE | XFUND | OmniDocBench EN | pages/s | License |
|---|---|---|---|---|---|---|
| SumoOCR tiny | 83.8 | 91.3 | 95.2 | 91.9 | 3.55 | Apache-2.0 |
| Indra 1.2.0 | 83.4 | 89.2 | 93.6 | 90.0 | 2.07 | modified OpenRAIL-M |
| OCRia-nano-1 | 80.9 | 87.0 | 92.7 | 82.2 | 2.15 | OCRia-nano-1 licence |
| PP-OCRv6 tiny rec (our pipeline, FP32) | 79.0 | 89.3 | 94.5 | 90.4 | 1.31 | Apache-2.0 |
| PaddleOCR 3.7, tiny setting | 77.0 | 86.5 | 94.5 | 91.0 | 0.41 | Apache-2.0 |
| Tesseract 5 | 61.9 | 75.0 | 90.7 | 90.2 | 1.07 | Apache-2.0 |
Caveats on those numbers
- Speed comes from one machine: a Mac mini M4, each engine on 1 core in a 1-vCPU container. We have not measured x86.
- PaddleOCR was timed natively, not in the container, and Paddle's ARM kernels are slower than its x86 ones. Don't read 0.41 as an x86 number.
- FUNSD against Indra is a statistical tie.
- None of the four benchmarks was in the training data.
- On receipt line crops (SROIE) the stock PP-OCRv6 tiny recognizer still reads slightly better: 2.62% vs 2.93% character error.
Where it falls short
- Latin script only (English and European languages)
- Handwriting was not part of the fine-tune and is unmeasured; expect roughly stock PP-OCRv6 tiny accuracy on it
- Lines, not tables, layout or key-value fields
- Receipts and low-resolution scans are its weakest pages
This is the smallest reader from our commercial OCR engine; the larger one is not released.
Try it on your hardest pages and tell us what breaks.
- Code: https://github.com/docsumo/sumoOCR-tiny
- Model: https://huggingface.co/docsumo/sumoOCR-tiny
- Benchmark method and charts: https://www.docsumo.com/blog/introducing-sumoocr-tiny

