Views
No views yet
| Eval | Metric | Base | v0.1 | v0.2 |
|---|---|---|---|---|
| ThaiOCRBench n=299 | DW-light | 0.5215 | 0.5382 | 0.5421 |
| ThaiOCRBench n=299 | CER | 3.130 | 1.792 | 2.278 |
| ThaiOCRBench n=299 | Full-page OCR | 0.638 | 0.496 | 0.629 |
| openthaigpt n=104 | DW-light | 0.9009 | 0.9079 | 0.8898 |
| openthaigpt n=104 | CER | 2.350 | 1.730 | 1.549 |
1from mlx_vlm import load, generate
2from mlx_vlm.prompt_utils import apply_chat_template
3from PIL import Image
4
5model, processor = load(
6 "mlx-community/gemma-4-26b-a4b-it-4bit",
7 adapter_path="commandeaw/DW-KhoTaeVL-OCR-Pro-26B-MLX-LoRA-v0.2",
8)
9img = Image.open("doc.jpg").convert("RGB")
10messages = [{"role": "user", "content": "ถอดข้อความทั้งหมดในเอกสารนี้"}]
11prompt = apply_chat_template(processor, model.config, messages, num_images=1)
12print(generate(model, processor, image=img, prompt=prompt, max_tokens=512, temp=0.0).text)short_transcribe, short_read) use iAPP ground truth.| Area | vs base |
|---|---|
| Text recognition | improved (less than v0.1) |
| Full-page OCR | recovered |
| Table parsing, KIE, KIM | preserved |
| Document classification | small regression |
max(substring_match, ANLS) — lightweight local scoring, not the paper protocol. Neutral set is openthaigpt/thai-ocr-evaluation, n=104.1adapters.safetensors
2adapter_config.json
3train_manifest.jsonl
4contamination_manifest_full.json
5NOTICE
6FROZEN.md1@misc{dw_khotaevl_ocr_v02_2026,
2 title = {DW-KhoTaeVL-OCR-Pro-26B-MLX-LoRA v0.2},
3 author = {Deaw},
4 year = {2026},
5 url = {https://huggingface.co/commandeaw/DW-KhoTaeVL-OCR-Pro-26B-MLX-LoRA-v0.2}
6}