What is this
KaoOCR-Ledger reads a document page image and returns structured Markdown: headings, paragraphs and tables. 1.0c is the current release of KaoOCR Ledger: OCR level with 1.0b at 54.0 and parsing well above 1.0a.
Table | |
|---|
| Family | KaoOCR · Ledger (document parsing, GPU) |
| Version | 1.0c |
| Parameters | 0.63B (vision encoder + autoregressive decoder) |
| Input | Document page image, or a single text-line crop |
| Output | Markdown (page mode) · plain text (line mode) |
| Languages | Thai, English |
| Fine-tuned from | KaoOCR-Ledger-1.0a |
Lineage
NVIDIA Nemotron 3.5 Parse └─► OpenThai2.1-OCR-Markdown └─► KaoOCR-Ledger-1.0a (https://huggingface.co/kaopanboonyuen/KaoOCR-Ledger-1.0a) └─► KaoOCR-Ledger-1.0c ◄── you are here
Quick start
# 1. get the repo (weights + inference code)pip install -U huggingface_hubhf download kaopanboonyuen/KaoOCR-Ledger-1.0c --local-dir KaoOCR-Ledger-1.0ccd KaoOCR-Ledger-1.0c # 2. install and runpip install -r requirements.txt python inference.py page.png # document page -> Markdown on stdoutpython inference.py page.png -o page.md # ... saved to a filepython inference.py line.png --line # one handwriting line -> plain text
Run inference.py from inside the repo folder: the bundled nemotron_parse/ post-processor sits next to it. A GPU is recommended; --device cpu works but is slow.
For throughput, serve it with vLLM:
pip install -e ".[vllm,client]"vllm serve . --served-model-name nemotron-parse --trust-remote-code
Results
Benchmark: ThaiOCRBench. Scores are 0–100, higher is better.
- OCR tasks → NLS (1 − normalised edit distance)
- Parsing tasks → TEDS where the ground truth has a table, otherwise NLS on markup-stripped text
Table with columns: Model, OCR (NLS), Parsing (TEDS/NLS)| Model | OCR (NLS) | Parsing (TEDS/NLS) |
|---|
| KaoOCR-Ledger-1.0c | 54.0 | 66.7 |
| KaoOCR-Ledger-1.0a | 45.2 | 61.6 |
| OpenThai2.1-OCR-Markdown (reference) | 50.4 | 68.1 |
| typhoon-ocr2-2b (reference) | 55.8 | 63.6 |
OCR tasks · NLS (█ KaoOCR · ░ reference)
typhoon-ocr2-2b ░░░░░░░░░░░░░░░░░░░░░░ 55.8KaoOCR-Ledger-1.0c ██████████████████████ 54.0OpenThai2.1-OCR-Markdown ░░░░░░░░░░░░░░░░░░░░ 50.4KaoOCR-Ledger-1.0a ██████████████████ 45.2
Parsing tasks · TEDS/NLS
OpenThai2.1-OCR-Markdown ░░░░░░░░░░░░░░░░░░░░░░░░░░░ 68.1KaoOCR-Ledger-1.0c ███████████████████████████ 66.7typhoon-ocr2-2b ░░░░░░░░░░░░░░░░░░░░░░░░░ 63.6KaoOCR-Ledger-1.0a █████████████████████████ 61.6
Where 1.0c stands against the reference models
- Parsing: +3.1 vs
typhoon-ocr2-2b
- OCR: +3.6 vs
OpenThai2.1-OCR-Markdown
Not ahead:
- OCR vs
typhoon-ocr2-2b: −1.8
- Parsing vs
OpenThai2.1-OCR-Markdown: −1.4
c vs b. OCR is level at 54.0; parsing is −0.9 (66.7 vs 67.6). Pick c as the current release, b if parsing/tables are your main workload.
Numbers come from our own ThaiOCRBench run (VQA and key-information tasks are not included). Deltas are computed from unrounded scores, so they can differ by 0.1 from subtracting the rounded values above. Please test on your own documents before relying on any benchmark.
Version history
Table with columns: Release, OCR (NLS), Parsing (TEDS/NLS), Notes| Release | OCR (NLS) | Parsing (TEDS/NLS) | Notes |
|---|
| 1.0a | 45.2 | 61.6 | First release; decoder tuned on Thai handwriting |
| 1.0b | 54.0 | 67.6 | +8.8 OCR, +6.0 parsing over 1.0a |
| 1.0c | 54.0 | 66.7 | Current release |
How it was made
1.0c is a fine-tune of KaoOCR-Ledger-1.0a, which itself is a decoder-only, handwriting-tuned and weight-blended (WiSE-FT) descendant of OpenThai2.1-OCR-Markdown. Tokenizer, runtime code (nemotron_parse/) and licence files are carried over unchanged.
Limitations
- Everything the base architecture struggles with (formulas, scene text, unusual layouts) is inherited.
- Line mode (
--line) is meant for cropped single lines; page mode uses the native page-parsing prompt.
- Benchmark scores are from our own run and scorers; they are not an official leaderboard entry.
- If the base repo shipped a speculative-decoding drafter, it was not re-tested against this fine-tune.
Thanks & credit
KaoOCR-Ledger stands on open work from others, and we are grateful for it.
- NVIDIA, for Nemotron 3.5 Parse, the architecture underneath.
- iApp Technology, for openly releasing the OpenThai OCR models this line started from (
iapp/OpenThai2.1-OCR-Markdown-20261118).
- The Typhoon team (opentyphoon.ai), for the strong Thai OCR work and for ThaiOCRBench, which we evaluate on.
Training data for the 1.0a handwriting stage: iapp/thai_handwriting_dataset and sivakorn-su/thai-handwriting-textdisjoint-v1. They carry their own terms: check them before commercial use.
License
OpenMDW-1.1 (derivative of NVIDIA Nemotron 3.5 Parse). Tokenizer terms are in TOKENIZER_ATTRIBUTION.md where present.