Finetuning olmOCR to be a faithful OCR-Engine
TNG fine-tuned olmOCR-7B-0225-preview so it no longer drops headers and footers. The original model omits them by design because its training data targets LLM pretraining text, which makes it unreliable for business documents like invoices. The team used Qwen2.5-VL-72B-Instruct to generate an 8,000-document dataset capturing all page content, then trained with the open-source olmOCR pipeline on an 8xH100 node: 2.5 epochs, default hyperparameters, about 6 hours, with roughly two GPUs likely enough. Qualitative comparisons show the fine-tune extracts header and footer data while still parsing simple tables and multi-column layouts, though output quality can vary noticeably with sampling temperature.
Related posts
- Supercharge your OCR Pipelines with Open Models
Hugging Face mediumAdeptVision-language-model-based OCR has moved well beyond plain transcription. Current open-weight models such as OlmOCR-2, Chandra, dots.ocr, DeepSeek-OCR, PaddleOCR-VL, Granite-Docling and Nanonets-OCR2 handle handwriting, tables, charts, formulas and layout grounding, and output DocTags, HTML, Markdown or JSON. Choose the output format by use case: layout-preserving formats for digital reconstruction, Markdown with image captions for LLM input, and JSON for programmatic use. Since performance varies widely by domain, evaluate candidates on your own representative documents alongside OmniDocBench, OlmOCR-Bench and CC-OCR. Open models are cheap to run, around $178 per million pages for OlmOCR-2 on an H100, and serve easily with vLLM behind an OpenAI-compatible client.
- Welcome the NVIDIA Llama Nemotron Nano VLM to Hugging Face Hub
Hugging Face easyNoviceLlama Nemotron Nano VL is an 8B vision language model for document processing, built on Llama-3.1-8B-Instruct with a C-RADIOv2-VLM-H vision transformer. It uses dynamic high-resolution tiling to handle dense layouts and arbitrary aspect ratios, and is reported to lead on OCRBench v2 for text recognition, table extraction, element parsing and bounding-box grounding. Training has two stages: MLP-connector pre-training on ~1.5M samples for vision-language alignment, then end-to-end SFT on OCR-heavy data drawn from NeMo Retriever Parse sets (NVPDFTex, Common Crawl PDFs, Wikipedia renders) plus DocLayNet, FinTabNet and PubTables-1M, with affine and photometric augmentation. The model outputs tables in LaTeX, HTML or markdown and can be post-trained further with NeMo and Megatron scripts.
- Accelerating Document AI
Hugging Face easyNoviceOpen-source multimodal models now make it practical to build custom Document AI systems for OCR, document classification, layout analysis, parsing, table extraction and document question answering. Models such as LayoutLMv3 and Donut combine text and visual layout. On RVL-CDIP they reach about 95% accuracy, against 89% for text-only BERT, and on FUNSD LayoutLM raises F1 from 60% to 90%. Practical advice: check model licenses early, since LayoutLMv2/v3 checkpoints are non-commercial. Start with a few hundred annotated documents and fine-tune pretrained models rather than pre-training your own. Weigh OCR-free, high-resolution models against their memory cost, and verify that OCR bounding boxes align with the model processor.
- SOTA OCR with Core ML and dots.ocr
Hugging Face mediumAdeptConverting the dots.ocr vision encoder, a 1.2B NaViT-style model paired with a Qwen2.5-1.5B backbone, from PyTorch to Core ML is done by simplifying the model to single-image inference, then fixing conversion errors one by one. The fixes are: casting arange output that coremltools forces to int32, removing repeat_interleave and variable-length masking, using a float zero mask because the Neural Engine lacks bool support, and eliminating a data-dependent loop over grid_thw. The resulting FLOAT32 GPU model matches PyTorch closely, but it is over 5GB and takes more than a second per vision-encoder forward pass. Later parts are slated to cover MLX integration for the LM backbone and Neural Engine optimization with quantization.
- PP-OCRv6 on Hugging Face: 50-Language OCR from 1.5M to 34.5M Parameters
Hugging Face mediumAdeptPP-OCRv6 is PaddleOCR's new OCR model family in three tiers (tiny 1.5M, small 7.7M, medium 34.5M parameters), with the small and medium tiers covering 50 languages including Chinese, English, Japanese and 46 Latin-script languages. On PaddleOCR's in-house multi-scenario benchmarks the medium model reaches 86.2% detection Hmean and 83.2% recognition accuracy, +4.6 and +5.1 points over PP-OCRv5_server. Architecture changes include a shared PPLCNetV4 backbone, a RepLKFPN large-kernel feature pyramid for detection and an EncoderWithLightSVTR recognizer. Models ship as safetensors, Paddle and ONNX formats, selectable in PaddleOCR via engine="transformers", "onnxruntime" or Paddle Inference.