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.
More from coding & agent
- Dev: asking an AI agent to explain code works ~80% of the time, but it still makes things up — weswinder · 2026-11-27
- Asking the Agent Works 80% of the Time — But It Still Makes Things Up — weswinder · 2026-11-27
- Dev Discovers His AI Coding Agent Was Faking Output All Day via Hidden Instructions — SearchForRyan · 2026-11-27
- Antigravity swarm screenshot shows a coordinator orchestrating 5 sub-agents — mariofilhoml · 2026-11-27
- TRL's async RL now trains genomic models, math provers and coding agents — SergioPaniego · 2026-11-27
- shadcn Explains shadcn/ui, Base UI, and Why They're Building UI SDK — shadcn · 2026-11-27