Model reference · open weights
OpenThai2.1-OCR-Text-20261118 is an open-weight language model from iapp. OpenThai2.1-OCR-Text-20261118 (BF16) weighs 2 MB; the smallest configuration that runs it is RTX 3060 12 GB.
For self-hosting, compare this build's requirements below with the GPU you plan to rent.
Summary of the iapp/OpenThai2.1-OCR-Text-20261118 model card, 2026-11-19
What it is
| Released by | iapp |
|---|---|
| Released | 2026-10-02 |
| VRAM | 2 MB for the weights |
What it runs on
How much memory each request adds isn't estimated yet for this architecture. The weights need at least the cards below, plus room for the context.
| Card | Weights alone |
|---|---|
| RTX 3060 12 GB | fits |
| RTX 4060 Ti 16 GB | fits |
| RTX 3090 24 GB | fits |
| RTX 4090 24 GB | fits |
| RTX 5090 32 GB | fits |
| L40S 48 GB | fits |
| A100 80 GB | fits |
| H100 80 GB | fits |
| RTX PRO 6000 Blackwell 96 GB | fits |
| DGX Spark (GB10) 128 GB unified | fits |
| H200 141 GB | fits |
| B200 180 GB | fits |
From the model card
OpenThai2.1-OCR-Text-20261118, version 2.1.4 (18 November 2026). This repository was named OpenThai2.0-OCR-Text; the old name redirects here. It keeps v2.0.0's model files with a new runtime and, since 2.1.2, a second recognizer for loopless Thai fonts: it keeps the tone marks that float above the letters in old books, reads two- and three-column pages column by column, reads loopless fonts (Kanit, Prompt, Sukhumvit Set) without Latin look-alikes, keeps single-digit and single-letter table cells, and writes decimal points in amounts. v2.0.0 stays available with
revision="v2.0.0"; pinrevision="v2.1.4"to keep this version.
Fast Thai + English printed-text OCR that runs on a CPU. It is the engine behind iApp Document OCR v3.0, released as open weights with its runtime, from OpenThai (formerly OpenThaiGPT). Developed by iApp, launched with AIEAT.
It reads a page image and returns its text in reading order, with a box and a confidence for every line. It does not write tables or Markdown; for that, see OpenThai2.1-OCR-Markdown-20261118.
Step-by-step guide for Windows, Mac and Linux (installing Python, reading pictures and PDFs, a ready script): English · ภาษาไทย · 中文
Thai old books keep their tone marks. In letterpress books of the 1930s the tone marks and upper vowels float well above the consonants. The detector boxed each line without them and found the marks as separate small boxes, which were then dropped as junk, so the marks were never read. Black-and-white preprocessing could not bring them back. An outside tester found this on page 324 of a 1935 book (ตำหรับสายเยาวภา, archive.org unset00002427): v2.0.0 lost 128 of its 159 tone marks.
v2.1 attaches such mark boxes to their own line, grows the line's crop to take them in, and reads the line again:
| Test | v2.0.0 | v2.1 |
|---|---|---|
| The tester's page 324: character error rate | 21.5 % | 5.9 % |
| Page 324: tone marks lost, of 159 | 128 | 23 |
| Page 324, the tester's six versions (original and five black-and-white treatments): error rate | 20.9–21.5 % | 5.2–6.2 % |
| The whole 416-page book: words found in the Thai dictionary | 86.5 % | 93.2 % |
| Old books (Wikisource, 200 test pages): accuracy | 77.1 | 78.8 |
A re-read never changes a digit, and on pages whose type does not float its marks it may change nothing but the marks, so receipts and tax IDs keep their numbers (400 synthetic receipt pages: no change on average; 600 real NECTEC receipts: field recall unchanged). All 22 robustness conditions still pass. Old-book pages take about 15–30 % longer, because their lines are read twice.
Reading order: v2.1 also reads two- and three-column pages column by column, including pages with a title or a footer across the columns. ThaiOCRBench full pages 82.0 → 83.8, SEA-DocBench Thai 54.1 → 55.5.
2.1.1 (15 November 2026): lists keep their row order. 2.1.0 sometimes took a list for two text columns. A Royal Gazette committee list ("๑. นาย… | นายกสมาคม") came out with every name first and every position after, so Royal Gazette fell from 96.3 to 96.1. 2.1.1 reads a gap as a list when the lines on both sides start alike: names, positions, "label : value", or numbers. Lists are then read row by row, and prose columns are still read column by column. Royal Gazette is back to 96.3; on the whole benchmark only the two affected pages changed.
2.1.2 (16 November 2026): loopless Thai fonts. Modern loopless faces (Kanit, Prompt, Sukhumvit Set) were sometimes read as Latin look-alikes: บ/ป as U, ร as S, ท as n, so "และผลกระทบ" came out as "lละพลNSะทU". A recognizer retrained on loopless fonts fixed that, but it read court scans worse. So 2.1.2 keeps the original recognizer and adds a second one (rec2.onnx, the same network trained with loopless fonts as well). A line is read again with it only when its first reading has Latin letters inside a Thai word, and the second reading is kept only if it has fewer of them. Lines without that sign, such as almost every court line, are never read twice.
| Test | 2.1.1 | 2.1.2 |
|---|---|---|
| Stray Latin letters, 12 pages in 4 fonts never trained on (Noto Sans/Serif Thai, Noto Sans Thai Looped, Anuphan) | 58 | 11 |
| Character error rate on those pages | 0.58 % | 0.33 % |
| Stray Latin letters, Sukhumvit Set at 40 / 26 / 32 px scan | 14 / 20 / 5 | 1 / 2 / 0 |
| English and Thai+English lines, error rate (fonts never trained on / seen) | 3.06 / 3.19 % | 2.58 / 2.54 % |
| ThaiOCRBench full pages, accuracy | 83.8 | 84.1 |
| 12-set printed average, accuracy | 88.2 | 88.3 |
Court judgments go from 96.88 to 96.84: margin date stamps that 2.1.1 read as "12 ก.H. 2560" now read "12 ก.ค. 2560" and are kept, and the test's reference text has no stamps. The 1935 book, receipts (field recall slightly up), Royal Gazette, budget documents and every other set are unchanged; all 22 robustness conditions pass. Not fixed: the sara am (ำ) of Thonburi at large sizes, which involves no Latin letters.
2.1.3 (18 November 2026): single-digit table cells. Users reported that a lone digit in a table cell disappeared: "กาแฟ 2 120.00" came out as "กาแฟ 120.00". The line filter drops every one-character line, because stamps and specks often read as a single character. 2.1.3 keeps a line made only of digits (Arabic or Thai) when its box is at least 0.62 of the page's normal line height. Real table digits measure 0.65–1.0
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.
How it works