# Newer Models, Same Advantage

DevFeed: [Newer Models, Same Advantage](<https://devfeed.tech/articles/newer-models-same-advantage-6998.md>)

Original publisher: [Read original article](<https://huggingface.co/blog/Dharma-AI/newer-models-same-advantages>)

Author: Erick Lachmann; Gabriel Pimenta de Freitas Cardoso; Francisco de Almeida Rocha Alves; Victor Gabriel Ferreira Barbosa

Published: 2026-07-16T11:49:48Z

Content type: article

Language: en

Sources: [Hugging Face - Blog](<https://devfeed.tech/sources/hugging-face-blog.md>)

Topics: [Fine-tuning](<https://devfeed.tech/topics/fine-tuning.md>), [Inference](<https://devfeed.tech/topics/inference.md>), [Language models](<https://devfeed.tech/topics/language-models.md>), [Benchmark](<https://devfeed.tech/topics/benchmark.md>), [datasets](<https://devfeed.tech/topics/datasets.md>), [model-deployment](<https://devfeed.tech/topics/model-deployment.md>), [Optimization](<https://devfeed.tech/topics/optimization.md>)

Tags: [article](<https://devfeed.tech/tags/article.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [cost](<https://devfeed.tech/tags/cost.md>), [data](<https://devfeed.tech/tags/data.md>), [dpo](<https://devfeed.tech/tags/dpo.md>), [errors](<https://devfeed.tech/tags/errors.md>), [fine-tuning](<https://devfeed.tech/tags/fine-tuning.md>), [generative](<https://devfeed.tech/tags/generative.md>), [inference](<https://devfeed.tech/tags/inference.md>), [model](<https://devfeed.tech/tags/model.md>), [models](<https://devfeed.tech/tags/models.md>), [multimodal](<https://devfeed.tech/tags/multimodal.md>), [ocr](<https://devfeed.tech/tags/ocr.md>), [open](<https://devfeed.tech/tags/open.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [production](<https://devfeed.tech/tags/production.md>), [technology](<https://devfeed.tech/tags/technology.md>), [training](<https://devfeed.tech/tags/training.md>)

## AI overview

DharmaOCR is presented as a Brazilian Portuguese OCR model that outperformed newer alternatives through domain specialization and targeted training. Its two-stage pipeline combines supervised fine-tuning on Portuguese-language documents with Direct Preference Optimization, improving extraction quality, stability, inference efficiency, and production reliability.

## Source excerpt

Despite newer architectures, DharmaOCR outperformed Mistral OCR4 and Unlimited-OCR on Brazilian Portuguese through domain specialization and targeted training. This article presents the evidence and the mechanism behind that advantage. Three months ago, we published a paper on DharmaOCR and open-sourced one of the models. The objective was specific: optical character recognition engineered for Brazilian Portuguese. The training pipeline was built in two stages.