---
title: "Newer Models, Same Advantage"
description: "DharmaOCR, a Brazilian Portuguese OCR model trained with supervised fine-tuning followed by Direct Preference Optimization, scored 0.925 on a Portuguese-only benchmark, ahead of the newer Mistral OCR4 (0.798) and Unlimited-OCR (0.7587)."
url: "https://swe.quest/articles/newer-models-same-advantage-43649f104bf0ba91"
canonical: "https://huggingface.co/blog/Dharma-AI/newer-models-same-advantages"
source: "Hugging Face"
published: "2026-07-16"
difficulty: "easy"
kind: "Opinion"
reading_minutes: 11
tags: ["computer-vision","model-training","evals","llms"]
---

# Newer Models, Same Advantage

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2026-07-16, 11 min read, Opinion. Original: [https://huggingface.co/blog/Dharma-AI/newer-models-same-advantages](https://huggingface.co/blog/Dharma-AI/newer-models-same-advantages)

## Summary

DharmaOCR, a Brazilian Portuguese OCR model trained with supervised fine-tuning followed by Direct Preference Optimization, scored 0.925 on a Portuguese-only benchmark, ahead of the newer Mistral OCR4 (0.798) and Unlimited-OCR (0.7587). The gap shows up as misread Brazilian proper nouns and vocabulary in handwritten ENEM essays, and as text degeneration on small-font documents, where generalist models produce output unrelated to the page. SFT focuses the model's parameters on the target language. DPO trains on preferences between complete outputs, which reduces the token-by-token drift that causes repetitive or incoherent transcriptions. The authors argue that specialization will keep an edge even as general models improve.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Computer vision](https://swe.quest/tags/computer-vision.md) (AI & ML)
- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)

## Prerequisites

- LLM fine-tuning basics ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- Direct Preference Optimization ([easy posts on Performance engineering](https://swe.quest/tags/performance.md?difficulty=easy))

## Keywords

DharmaOCR, Mistral OCR4, Unlimited-OCR, Direct Preference Optimization, ENEM, Brazilian Portuguese

## Related posts

- [Direct Preference Optimization Beyond Chatbots](https://swe.quest/articles/direct-preference-optimization-beyond-chatbots-b552e31e2b3fa017.md): Hugging Face · 2026-06-03 · Hard · 13 min read · Model training, LLMs, Computer vision, Evaluation
  Adding a DPO stage after supervised fine-tuning reduced text degeneration (repetition loops) in every one of five vision-language model families tested on Brazilian Portuguese structured OCR.
- [Supercharge your OCR Pipelines with Open Models](https://swe.quest/articles/supercharge-your-ocr-pipelines-with-open-models-6c91417d0009054a.md): Hugging Face · 2025-10-21 · Medium · 16 min read · Computer vision, Inference & serving, Evaluation, RAG & retrieval
  Vision-language-model-based OCR has moved well beyond plain transcription.
- [PP-OCRv6 on Hugging Face: 50-Language OCR from 1.5M to 34.5M Parameters](https://swe.quest/articles/pp-ocrv6-on-hugging-face-50-language-ocr-from-1-5m-to-34-5m-parameters-e9f0018c08d667cd.md): Hugging Face · 2026-06-22 · Medium · 5 min read · Computer vision, Inference & serving, Python
  PP-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.
- [Accelerating Document AI](https://swe.quest/articles/accelerating-document-ai-a399320437d1b8e7.md): Hugging Face · 2022-11-21 · Easy · 13 min read · Computer vision, Machine learning, Model training
  Open-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.
- [Speculative Decoding for 2x Faster Whisper Inference](https://swe.quest/articles/speculative-decoding-for-2x-faster-whisper-inference-c8681e4ac958e48b.md): Hugging Face · 2023-12-20 · Medium · 12 min read · Speech & audio, Inference & serving, Performance engineering, Python
  Speculative decoding speeds up Whisper transcription by about 2x while producing mathematically identical outputs.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
