Skip to main content

Open weights

OpenThai 2.2 OCR Markdown

An open model that reads Thai document pages, scans and phone photos into Markdown, with every table kept as a table.

  • Parameters0.63billion
  • LicenceOpenMDW-1.1
  • Thai document tables95.0score
  • One page, one GPU0.51s

Download the weightsWhat is new in 2.2

Version 2.2.2, released 27 November 2026 by iApp Technology as open weights on Hugging Face: a free download. Versions 2.1 and 2.0 stay available under the tags v2.1.0 and v2.0.0.

What it does​

  • Keeps tables as tablesTables come out as HTML with rowspan and colspan, so the merged header cells of Thai government forms survive. 95.0 on 65 real Thai government and university pages, against 89.0 for Typhoon OCR V2 0.8B and 91.6 for Typhoon OCR V2 2B.
  • Reads phone photosBent, creased and shadowed pages photographed with a phone, and page types beyond official documents. Two optional steps turn sideways pages upright and flatten a bent photo: with both, 86.1 on MDPBench.
  • Writes clean MarkdownHeadings, lists and paragraphs as Markdown and formulas as LaTeX between $$. Page headers and footers stay out of the Markdown, blank pages come back empty, and ำ is written as one character.
  • Marks where each block isEvery block carries a bounding box and a class such as title, text, table, formula or picture, in reading order. Page headers and footers are kept here.
  • Runs on one GPU0.51 seconds a page on one NVIDIA H100 with vLLM and NVIDIA's DFlash2 drafter, against 1.71 for Typhoon OCR V2 0.8B. About 8 GB of GPU memory is enough.

What is new in 2.2​

  • New weights, trained further on 9,000 simulated steep phone photos and photographed screens. Against 2.1: Thai document tables 95.0 (94.0), printed text 90.55 (90.24), ThaiOCRBench tables 67.9 (69.5).
  • Phone photos, two optional steps (off by default): turn sideways or upside-down pages upright, and flatten a bent or tilted photo. With both, MDPBench rises from 82.5 (2.1 without them) to 86.1.
  • About three times faster with DFlash2, NVIDIA's block drafter, shipped in the repository: 0.51 s a page, against about 1.5 s with the default serve command and 2.6 s with no drafting. Accuracy is unchanged: printed text 90.35 with it and 90.15 without, and no page of 2,528 failed either way.

Measured​

Every model read the same pages and was scored by the same script; Typhoon models were run as their model cards say. Higher is better, and the best score in each column is in bold. Intervals are paired 95% intervals from re-sampling the test pages.

ModelSizeThai document tablesThaiOCRBench tablesPrinted text, 12 sets
OpenThai 2.2 OCR Markdown0.63B95.067.990.55
OpenThai 2.1 OCR Markdown0.63B94.069.590.24
Typhoon OCR V2 0.8B0.8B89.067.985.06
Typhoon OCR V2 2B2B91.669.489.51
Nemotron 3.5 Parse (base model)0.63B91.368.389.02
  • Thai document tables: 65 real Thai government and university pages, text and table structure scored together. Ahead of Typhoon OCR V2 0.8B by 6.0 points [+2.8, +9.8] and of Typhoon OCR V2 2B by 3.4 [+1.3, +6.1].
  • ThaiOCRBench tables: table structure and content (TEDS). Level with Typhoon OCR V2 0.8B [−3.9, +4.1]; −1.4 against Typhoon OCR V2 2B [−4.9, +1.9], not significant.
  • Printed text: character accuracy, 100 × (1 − character error rate), averaged over 12 Thai and English sets, a failed page counting as empty. Ahead of Typhoon OCR V2 0.8B by 5.5 [+4.0, +7.1] and of Typhoon OCR V2 2B by 1.04 [+0.49, +1.66]. 0 of 2,270 pages failed.

In short: ahead of Typhoon OCR V2 0.8B on Thai document tables and printed text, level on ThaiOCRBench tables and phone photos, and about three times faster one page at a time. Against Typhoon OCR V2 2B it leads on Thai document tables and printed text and is level on phone photos. Both Typhoon models are well ahead on English and formula-heavy pages. The benchmarks and the scoring are in the model card.

Run it​

The model repository ships NVIDIA's nemotron_parse package, which serves the model and turns its output into Markdown. Install it from the downloaded folder; it also registers the vLLM plugin the model needs.

hf download iapp/OpenThai2.2-OCR-Markdown-20261127 --local-dir OpenThai2.2-OCR-Markdown
pip install -e "./OpenThai2.2-OCR-Markdown[vllm,client]"
vllm serve ./OpenThai2.2-OCR-Markdown --served-model-name nemotron-parse --trust-remote-code

vLLM runs on Linux; on Windows, use it under WSL 2.

The download always gives the latest version. To keep a version, pin it with --revision v2.2.2; --revision v2.1.0 gives 2.1 and --revision v2.0.0 gives 2.0. The earlier names iapp/OpenThai2.0-OCR-Markdown and iapp/OpenThai2.1-OCR-Markdown-20261118 redirect to this repository, so existing links and code keep working.

A step-by-step guide for Windows, Mac and Linux, written for 2.0 and still valid with this repository's name: How to run OpenThai OCR on your own computer. Both OpenThai OCR models side by side: OpenThai OCR.

Prefer a hosted service? The Thai Document to Markdown API runs version 2.2 for you, in Thailand, at 0.15 IC a page. For plain text, Word, PowerPoint, Excel or a searchable PDF, Thai Document OCR API starts at 0.049 IC a page.

Limits​

  • Formulas are the weakest part: 64.2 against 95.1 for Typhoon OCR V2 2B on OmniDocBench's formula score.
  • English benchmarks: well behind both Typhoon models on olmOCR-bench and OmniDocBench.
  • Tables unlike Thai official documents can come out with a row missing or a span wrong.
  • Cut-off pages. On MDPBench, 2 of 320 pages were cut off at the token limit. If a page is cut off, DocumentParser raises GenerationError, so the page can go to another reader.
  • Pages without text: blank sheets are skipped, but a photo or figure with no text in it can still come back with invented text.
  • Chinese is not a target language, and Thai digits occasionally come out as Arabic digits.
  • Handwriting is read at the level of single text lines; full handwritten pages are not a target.

Training​

A full fine-tune of NVIDIA Nemotron 3.5 Parse on 88,073 rows with exact text labels, never another model's reading, including the 9,000 simulated phone photos and photographed screens new in 2.2. One epoch on one H100; the released weights blend the fine-tune with the base model, 80 : 20. Version 2.2 was released after it passed the release gate against Typhoon OCR V2 0.8B. The data, the recipe and every benchmark are in the model card.

Licence​

OpenMDW License Agreement, version 1.1, the licence of its base model. OpenThai 2.2 OCR Markdown is a Thai fine-tune of NVIDIA Nemotron 3.5 Parse (0.63B); NVIDIA's licence, notices and original model card are included unchanged in the repository, and the DFlash2 drafter is NVIDIA's, unchanged. The tokenizer is MIT-licensed, and the llama.cpp fork is MIT-licensed, as llama.cpp is.

Built on NVIDIA Nemotron.

From OpenThai (formerly OpenThaiGPT). Developed by iApp, launched with AIEAT. Trained and evaluated on NVIDIA H100 GPUs provided by Siam AI Corporation.

Siam AI Corporation