MoganOCR-TR-1.5 is the next version of MoganOCR-TR, a 2B-parameter OCR model for Turkish documents. It reads one page image and writes the whole page in reading order as Markdown, with tables as HTML and formulas as LaTeX. Same size, same prompt, same output format: it is a drop-in replacement.
On TurkishOCR-Bench it scores 91.9 (MoganOCR-TR: 89.9).
<figure/>, form boxes).TurkishOCR-Bench: 488 hard pages, 10 categories, scored with the published pipeline (oku_puanla.py + tob_v3.py, CDM included). Images up to 4,194,304 pixels (the processor default, which gave the best results), up to 8,000 new tokens.
| MoganOCR-TR | MoganOCR-TR-1.5 | |
|---|---|---|
| TOB score | 89.9 | 91.9 |
| Text_TR | 89.4 | 91.0 |
| Table (TEDS) | 82.5 | 86.9 |
| Formula (CDM) | 97.8 | 97.8 |
| Clean pages | 65.8% | 68.3% |
| Unreliable pages | 26.8% | 24.7% |
| Turkish-character tests | 97.6 | 99.2 |
| Pages looping to the token limit | 2 | 0 |
Real MoganOCR-TR-1.5 outputs on three TurkishOCR-Bench pages (from the benchmark run; the model has not seen these pages in training): the raw Markdown as it is generated and the rendered result. All three pages score full marks.
Pages: Bayram, Sevilgen, İbiş, GU J Sci Part C 10(1), 2022 (CC BY-SA 4.0); Aşıcıoğlu et al., Acta Odontologica Turcica, 2026 (CC BY 4.0); Bektaşi Şairleri ve Nefesleri, p. 160 (public domain, Wikimedia Commons).
Starting from MoganOCR-TR, with the vision encoder frozen:
The prompt is always Sayfayı markdown olarak yaz. ("Write the page as markdown."). Keep thinking off (the chat template default), decode greedily and allow up to 8,000 new tokens. Keep the processor's default image limit of 4,194,304 pixels; the results above were measured with it.
vllm serve moganai/MoganOCR-TR-1.5 --max-model-len 32768 --limit-mm-per-prompt '{"image": 1, "video": 0}'
import base64, requests
img = base64.b64encode(open("page.png", "rb").read()).decode()
r = requests.post("http://localhost:8000/v1/chat/completions", json={
"model": "moganai/MoganOCR-TR-1.5",
"temperature": 0,
"max_tokens": 8000,
"chat_template_kwargs": {"enable_thinking": False},
"messages": [{"role": "user", "content": [
{"type": "image_url", "image_url": {"url": f"data:image/png;base64,{img}"}},
{"type": "text", "text": "Sayfayı markdown olarak yaz."},
]}],
})
print(r.json()["choices"][0]["message"]["content"])
MTP: mtp.safetensors is the MTP head of MoganOCR-TR, not retrained for 1.5. Enable it with --speculative-config '{"method": "mtp", "num_speculative_tokens": 3}'. The speed-up was not re-measured for 1.5.
from PIL import Image
from transformers import AutoModelForImageTextToText, AutoProcessor
model_id = "moganai/MoganOCR-TR-1.5"
model = AutoModelForImageTextToText.from_pretrained(model_id, dtype="bfloat16", device_map="auto")
processor = AutoProcessor.from_pretrained(model_id)
messages = [{"role": "user", "content": [
{"type": "image", "image": Image.open("page.png")},
{"type": "text", "text": "Sayfayı markdown olarak yaz."},
]}]
inputs = processor.apply_chat_template(messages, add_generation_prompt=True, tokenize=True,
return_dict=True, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=8000, do_sample=False)
print(processor.decode(out[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True))
Resolution: the processor accepts images up to 4,194,304 pixels by default, so an A4 page at 200 dpi goes in unscaled (about 3,800 visual tokens). All benchmark numbers above use this setting, which gave the best results; avoid lowering max_pixels.
| Content | Format |
|---|---|
| Text, headings, lists | Markdown. One paragraph per line; words hyphenated at line ends are joined. |
| Tables | HTML <table>, merged cells as rowspan / colspan |
| Formulas | LaTeX, inline $...$ and block $$...$$ |
| Running header / footer | <header>...</header> and <footer>...</footer> |
| Figures | <figure/> |
Apache 2.0
@article{tasdemir2026moganocr,
title = {MoganOCR-TR and TurkishOCR-Bench: A Vision-Language OCR Model and Page-Level Evaluation Set for Turkish Document Parsing},
author = {Aleyna Tasdemir and Furkan Yilmaz and Muhammed Faruk Gozay},
year = {2026}
}
MoganOCR-TR-1.5, Türkçe belgeler için 2B parametreli OCR modeli MoganOCR-TR'nin yeni sürümüdür. Tek bir sayfa görüntüsünü okuyup bütün sayfayı okuma sırasıyla Markdown olarak yazar; tablolar HTML, formüller LaTeX olur. Boyut, istem ve çıktı biçimi aynıdır: doğrudan yerine geçer.
TurkishOCR-Bench'te 91,9 alır (MoganOCR-TR: 89,9).
<figure/>, form kutuları).TurkishOCR-Bench: 10 kategoride 488 zor sayfa, yayımlanan hatla (oku_puanla.py + tob_v3.py, CDM dahil) puanlandı. Görüntü üst sınırı 4.194.304 piksel (işlemcinin varsayılanı; en iyi sonucu bu ayar verdi), en çok 8.000 yeni token.
| MoganOCR-TR | MoganOCR-TR-1.5 | |
|---|---|---|
| TOB-Skor | 89,9 | 91,9 |
| Metin_TR | 89,4 | 91,0 |
| Tablo (TEDS) | 82,5 | 86,9 |
| Formül (CDM) | 97,8 | 97,8 |
| Temiz sayfa | %65,8 | %68,3 |
| Güvenilmez sayfa | %26,8 | %24,7 |
| Türkçe karakter testleri | 97,6 | 99,2 |
| Token sınırına kadar döngüye giren sayfa | 2 | 0 |
MoganOCR-TR-1.5'in TurkishOCR-Bench'teki üç sayfada gerçek çıktısı (benchmark koşusundan; model bu sayfaları eğitimde görmedi): üretilirken akan ham Markdown ve işlenmiş hâli. Üç sayfa da tam puan alır.
Sayfalar: Bayram, Sevilgen, İbiş, GU J Sci Part C 10(1), 2022 (CC BY-SA 4.0); Aşıcıoğlu ve ark., Acta Odontologica Turcica, 2026 (CC BY 4.0); Bektaşi Şairleri ve Nefesleri, s. 160 (kamu malı, Wikimedia Commons).
MoganOCR-TR'den başlanarak, görsel kodlayıcı dondurulmuş hâlde:
İstem her zaman Sayfayı markdown olarak yaz. olmalıdır. Düşünme kapalı kalır (sohbet şablonunun varsayılanı), çözme açgözlüdür ve en çok 8.000 yeni token üretilir. vLLM ve Transformers örnekleri yukarıdaki İngilizce bölümle aynıdır.
Çözünürlük: İşlemci varsayılan olarak 4.194.304 piksele kadar görüntü kabul eder; 200 dpi'lik bir A4 sayfa küçültülmeden girer (yaklaşık 3.800 görsel token). Yukarıdaki bütün benchmark sonuçları bu ayarla ölçüldü ve en iyi sonucu bu ayar verdi; max_pixels değerini düşürmeyin.
MTP: mtp.safetensors, MoganOCR-TR'nin MTP kafasıdır; 1.5 için yeniden eğitilmedi. --speculative-config '{"method": "mtp", "num_speculative_tokens": 3}' ile açılır; hızlanma 1.5 için yeniden ölçülmedi.
Apache 2.0