A 10MB classifier routes web-scale PDFs to OCR pipelines for 18 cents per 21K pages

vanstriendaniel · x · 2026-11-27

Trained with Gemini 4 Neon and $25.50 of Hugging Face Jobs, two tiny page-script classifiers predict a page's writing script from an image: 21 scripts plus unknown, 11ms on CPU, 1,773 pages/s on an A10G. They pre-filter scanned or broken-encoding PDFs into the right OCR pipeline before you pay for OCR. Running 21,490 CommonCrawl PDF pages on a CPU Job cost 18 cents. MobileNetV4-Small (fast) and HGNetV2-B0 (higher accuracy) models plus a live Gradio demo are open on Hugging Face.

Original post →

More from coding & agent

coding & agent channel →