davanstrien/ocr-decision-0.8b

davanstrien (uploaded on 11 29, Apache-2.0) A "decision model" fine-tuned from OneJev1.6-0.8B (i.e., Qwen3.5-0.8B): It takes page images (optionally with existing transcriptions) as input and directly outputs probabilities for a set of true/false or multiple-choice questions, without generating text. It has three main uses: pre-OCR triage (blank pages, rotation, tables, formulas, handwriting, Gothic script, language, document type), checking whether the PDF's embedded text layer is missing, garbled, or usable, and post-OCR checks for hallucinated extra text, missing paragraphs, and repetition loops.

davanstrien (uploaded on 11 29, Apache-2.0) A "decision model" fine-tuned from OneJev1.6-0.8B (i.e., Qwen3.5-0.8B): It takes page images (optionally with existing transcriptions) as input and directly outputs probabilities for a set of true/false or multiple-choice questions, without generating text. It has three main uses: pre-OCR triage (blank pages, rotation, tables, formulas, handwriting, Gothic script, language, document type), checking whether the PDF's embedded text layer is missing, garbled, or usable, and post-OCR checks for hallucinated extra text, missing paragraphs, and repetition loops.

Why it matters It does not generate text; it scores multiple true/false questions in a single forward pass. The author claims it takes tens of milliseconds per page, making it suitable for routing before running expensive visual OCR and for spot-checking afterwards.

Upvotes 31 · Likes 33 · Downloads 94

Reasons

  • The author states all tests are out-of-distribution: AUROC for hallucination / wrong-page text detection is 0.985–1.000 (base model 0.29–0.56), repetition loops 0.998–1.000, and missing PDF text layers 0.998 (base model 0.679).
  • Speed: The author claims approximately 73–107 pages per second on an RTX PRO 6000, and about 13–21 pages per second on an L4. You can also use it to label thousands of pages first, then distill a CPU-only router.
  • Weaknesses are clearly documented: AUROC for detecting local omissions of just one or two lines is only 0.658. The default 0.5 threshold has high bias on dense body text, so you should calibrate the threshold using your own pages.

Usage

  • Run pip install flide torchvision, then flide serve --model davanstrien/ocr-decision-0.8b --port 8000. Resize images so the longest side is 1024, then POST to /v1/systemone. Include multiple true/false questions in the questions field (with type set to noul), and it returns the probability for each question.
  • You can also load it directly using transformers (there is no custom output head). The model card includes a script using uv run to check the text layer of local PDFs with a single command.

Risks

  • Outputs are temperature-calibrated, so even strong judgments stay around 0.8 and do not approach 0 or 1. You must set your own thresholds. Detection of local missing lines is weak.
  • Performance metrics are self-reported by the author; this is a personal project. This entry has not been independently run.

Open

Hugging Face Trending

Explore the latest AI Radar updates