model.safetensors 2.5 GBdflash2/model.safetensors 179 MBOpenThai2.1-OCR-Markdown-20261118 (18 November 2026). This repository was named OpenThai2.0-OCR-Markdown; the old name redirects here. New weights and the fixed post-processing package: phone photos and nine more page types, LaTeX formulas, page headers and footers out of the Markdown, blank pages skipped, and ำ written as one character. OpenThai2.0 (v2.0.0) stays available with
revision="v2.0.0"; pinrevision="v2.1.0"to keep this version.
Thai and English document pages to Markdown, with tables as HTML. It is a Thai fine-tune of NVIDIA Nemotron 3.5 Parse (0.63B) from OpenThai (formerly OpenThaiGPT). Developed by iApp, launched with AIEAT. It keeps Parse's layout boxes, block classes and reading order, and its whole serving and postprocessing stack, so it works anywhere Parse does.
New in 2.1 (against OpenThai2.0-OCR-Markdown, tag v2.0.0):
$$ delimiters; a formula of several lines as one
$$\begin{gathered}...\end{gathered}$$.DocumentParser no longer sends a blank sheet to the model, which used to invent
text on it.rowspan="1" or
colspan="1".Typhoon OCR V2 2B is still ahead on MDPBench, by 4.5 points, most on photographed pages and tables, and further ahead on olmOCR-bench and OmniDocBench, most on formulas (see Results and Limits).
Built on NVIDIA Nemotron. The base model, tokenizer and serving code are NVIDIA's (nvidia/Nemotron-3.5-Parse,
OpenMDW-1.1). Their licence, copyright notices, third-party notices and tokenizer attribution are included unchanged in
this repository, and NVIDIA's original model card is kept as NVIDIA_NEMOTRON_PARSE_README.md. Our changes to
NVIDIA's code are the Markdown options in nemotron_parse/postprocessing.py and the blank-page check in
nemotron_parse/inference.py, both described under Use.
| Parameters | 630.8M: vision encoder 439.0M (C-RADIOv4-SO400M) and text decoder 191.8M (10-layer mBART, width 1,024) |
| Weights | model.safetensors, float32, 2.52 GB; served in bfloat16 |
| Input | one page image, fitted to 1,664 × 2,048 pixels (width × height) |
| Output | Markdown with tables as HTML (row and column spans) and formulas as LaTeX, and a box and a class for every block, in reading order |
| Languages | Thai and English |
| Hardware | one NVIDIA GPU, served with vLLM |
| Speed | 1.5 s per page on one H100, one page at a time (median of 12 table pages) |
| Base model | nvidia/Nemotron-3.5-Parse |
| Training | full fine-tune, one epoch over 77,900 rows (2,435 steps of 32) on one H100; the released weights are 70% this fine-tune and 30% the base model (weight-space blend) |
| Licence | OpenMDW-1.1 |
| Version | 2.1, 18 November 2026 (tag v2.1.0); OpenThai2.0 stays under tag v2.0.0 |
| Model | th-docs-tables v1 (65 pages) | ThaiOCRBench tables (193 images) | Thai text, printed (12 sets) | MDPBench EN+TH (320 pages) | MDPBench Thai | olmOCR-bench | OmniDocBench v1.6 | Seconds per page |
|---|---|---|---|---|---|---|---|---|
| OpenThai2.1-OCR-Markdown-20261118 | 94.0 | 69.5 | 90.2 | 82.5 | 80.7 | 73.1 | 79.6 | 1.5 |
| OpenThai2.0-OCR-Markdown | 95.2 | 68.9 | 90.3 | 73.7 | 72.7 | 50.9 | 61.8 | 1.5 |
| Nemotron 3.5 Parse (base) | 91.3 | 68.3 | 89.0 | 79.6 | 77.4 | 62.4 | 80.1 | 1.8 |
| Typhoon OCR V2 2B | 91.6 | 67.6 | 89.6 | 87.0 | 85.0 | 84.7 | 91.5 | 1.0 |
Bold marks the best score in each column (for seconds per page, the fastest).
Against Typhoon OCR V2 2B, with paired 95% intervals:
| Benchmark | Difference | Result |
|---|---|---|
| th-docs-tables v1 | +2.3 [+0.4, +4.8] | ahead |
| ThaiOCRBench tables | +1.9 [−1.0, +4.9] | not significant |
| Thai text | +0.69 [−0.31, +1.51] | not significant |
| MDPBench | −4.5 [−7.0, −2.0] | behind |
| MDPBench Thai | −4.3 [−8.4, −0.4] | behind |
| olmOCR-bench | −11.6 (± 1.0 and ± 0.8) | behind |
| OmniDocBench v1.6 | −11.8 | behind |
Against OpenThai2.0 on the same sets: th-docs-tables v1 −1.2 [−2.9, +0.3] and ThaiOCRBench tables +0.6 [−1.6, +2.7], neither significant; Thai text 90.24 against 90.31; olmOCR-bench +22.2 and OmniDocBench +17.8.
Against the base model (Nemotron 3.5 Parse with NVIDIA's package): olmOCR-bench +10.7 and OmniDocBench −0.5, ahead on text and tables and behind on formulas (see below).
PostprocessOptions(keep_page_headers_footers=True, formula_display_dollars=False), as 2.0 was measured. Their reference texts include page headers.$$a\) \(b$$). This was found in the OmniDocBench outputs and fixed before release; it changes none of the
Thai document benchmarks above (they use Parse's \(...\) form) and MDPBench by −0.1. With the first build the
scores were olmOCR-bench 72.3, OmniDocBench 75.55 and MDPBench 82.6.Serve with vLLM exactly as the base model. Then parse pages with NVIDIA's DocumentParser (box-and-class prompt, single
pass), from the nemotron_parse package in this repository. Install it from the downloaded model folder; it also
registers the vLLM plugin the model needs:
hf download iapp/OpenThai2.1-OCR-Markdown-20261118 --local-dir OpenThai2.1-OCR-Markdown-20261118
pip install -e "./OpenThai2.1-OCR-Markdown-20261118[vllm,client]"
vllm serve ./OpenThai2.1-OCR-Markdown-20261118 --served-model-name nemotron-parse --trust-remote-code
vLLM runs on Linux; on Windows, use it under WSL2.
from nemotron_parse.inference import DocumentParser, GenerationError
with DocumentParser(base_url="http://localhost:8000/v1", model="nemotron-parse") as parser:
try:
doc = parser.parse("page.png", mode="single")
print(doc["markdown"]) # Markdown; tables as HTML with rowspan/colspan; formulas as $$...$$
except GenerationError:
... # raised if a page is cut off at the token limit (see Limits)
Markdown options (nemotron_parse.postprocessing.PostprocessOptions):
| Option | Default | Effect |
|---|---|---|
keep_page_headers_footers |
False |
Page headers and footers are left out of the Markdown and stay in doc["blocks"]. Set True to keep them in the Markdown, as 2.0 did. |
standard_output |
True |
ำ composed to U+0E33 (the model writes U+0E4D U+0E32) and unit rowspan/colspan dropped from table cells. |
formula_display_dollars |
True |
A formula block is written as $$...$$ (several lines as one $$\begin{gathered}...\end{gathered}$$). Set False for Parse's \(...\) form, as 2.0 did. |
Blank pages: DocumentParser checks each page first and does not send a blank sheet (a blank PDF page, a blank
scan, or a flat light colour) to the model; it comes back with empty Markdown and no blocks. Dark pages, photos and
anything printed are always sent. The check flagged none of 9,555 development pages or of the 5,774 benchmark page
images above. Turn it off with DocumentParser(..., skip_blank=False).
The guide for 2.0 applies unchanged; use the model name iapp/OpenThai2.1-OCR-Markdown-20261118. It covers Linux,
Windows and Mac with Apple silicon, with a script for pictures and PDFs: English ·
ภาษาไทย · 中文.
GGUF for llama.cpp (a Mac, a CPU or a consumer GPU, without vLLM): iapp/OpenThai2.1-OCR-Markdown-20261118-GGUF,
run with our llama.cpp fork (iapp-technology/llama.cpp, branch
nemotron-parse); upstream llama.cpp does not include this architecture. Its Markdown matched the PyTorch model's on
30 of 30 dev pages; about 6 s per page on an Apple M3 Max with Metal.
iApp API: POST https://api.iapp.co.th/v3/store/ocr/document/markdown serves this version since 18 November 2026
(0.15 IC per page read whole).
Text labels are exact, never another model's reading. The mix is 77,900 rows:
| Source | Rows |
|---|---|
| OpenThai2.0's mix (54,615 rows), with its layout targets rebuilt at the base model's own block granularity and with pictures kept. 2.0 had merged blocks, which cost block-matched benchmarks such as MDPBench. | 54,615 |
| synthetic Thai documents (forms, memos, tables), two- and three-column pages and other table styles | 26,408 |
| born-digital government pages: parliament budget documents and the Royal Gazette (CC BY 4.0) | 14,939 |
| public table images: FinTabNet and PubTabNet training splits | 4,748 |
| dot-matrix crops | 3,520 |
| replay: handwriting lines, English and lottery-ticket crops | 5,000 |
| New page types, rendered in Chromium, about half as simulated phone photos (11,990 pages). The types are academic papers, book pages, comics, exam papers, magazines, newspapers, reports, slides and textbooks, in Thai, English and mixed. They carry LaTeX formulas (KaTeX), charts, diagrams, captions, running heads, footnotes and page numbers. The text comes from Thai and English Wikipedia (CC BY-SA 4.0). | 14,013 |
| Simulated phone photos of government pages (4,000 pages): bent, creased, wrinkled, held, shadowed, under-exposed and screen captures, with perspective, lighting and camera noise. Every character stays on the page, so labels stay exact. | 4,352 |
| Simulated phone photos of synthetic documents (4,000 pages) | 4,657 |
| Anti-loop rows: pages on which earlier 2.1 fine-tunes fell into a repetition loop, with that loop as a negative target. They are old-book scans (public-domain Wikisource books), synthetic receipt photos and one parliament page, none from a benchmark. | 263 |
DocumentParser raises GenerationError if a page is cut off.This model was trained on NVIDIA H100 GPUs provided by Siam AI. Thanks to NVIDIA for Nemotron 3.5 Parse, to the authors of MDPBench and of Typhoon's evaluation harness, and to the people behind the public data above.
The model is a derivative of NVIDIA Nemotron 3.5 Parse and is distributed under the OpenMDW License Agreement, version 1.1. The tokenizer is MIT-licensed (see TOKENIZER_ATTRIBUTION.md).
nvidia/Nemotron-3.5-ParseHave the files? Submit a torrent.
Submit a torrentHave the complete files and permission to share them? Replace the example folder path. The script checks the files, makes a torrent and submits its magnet and checksums. Keep your torrent client seeding. Get your community key from your settings, and read the script before running it.
curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo iapp/OpenThai2.0-OCR-Markdown ./model-folder