GLM-OCR is a multimodal OCR model for complex document understanding, built on the GLM-V encoder-decoder architecture by Zhipu AI. The model combines a 0.4B-parameter CogViT visual encoder pre-trained on large-scale image-text data, a lightweight cross-modal connector with efficient token downsampling, and a 0.5B-parameter GLM language decoder, totaling 0.9B parameters. To address the inefficiency of standard autoregressive decoding in deterministic OCR tasks, GLM-OCR introduces a Multi-Token Prediction (MTP) mechanism that predicts multiple tokens per step, significantly improving decoding throughput while keeping memory overhead low through shared parameters. Training proceeds through four stages: visual encoder pretraining with MIM, CLIP, and distillation objectives; vision-language pretraining on document parsing, grounding, and VQA data; supervised fine-tuning on curated OCR datasets covering text, formula, table, and key information extraction; and full-task reinforcement learning to improve accuracy and structural consistency.
At the system level, GLM-OCR adopts a two-stage pipeline in which PP-DocLayout-V3 first performs layout analysis, followed by parallel region-level recognition. This design enables robust handling of diverse document layouts including tables, formulas, and multi-column text. The model supports document parsing and targeted recognition tasks, producing structured outputs in Markdown, JSON, and LaTeX formats across more than 100 languages. On the OmniDocBench V1.5 benchmark, GLM-OCR scores 94.62, and achieves 94.0 on OCRBench and 96.5 on UniMERNet for formula recognition.
Drag and drop an image here, or click to browse
OCR will run automatically
GLM-OCR has not yet been evaluated on the current benchmark. The results below are from the legacy version of Vision Evals, our previous benchmark. See the current Vision Evals
| Category | Passed | Score |
|---|---|---|
| Handwritten Math | 10 / 10 | 100% |
| Text Recognition | 27 / 30 | 90% |
| License Plate Recognition | 27 / 30 | 90% |
| Focused Scene OCR | 87 / 99 | 87.9% |
| VQA & Extraction | 49 / 60 | 81.7% |
Scores based on a single evaluation run · Methodology
View all legacy Vision Evals results →Estimated cost per task vs. OCR score, for this model and others ranked near it. Upper-left is the sweet spot (high quality, low cost). Based on Vision Evals (legacy) results.
10 of 11 models plotted · 1 not yet evaluated
| Model | Score | Median tokens | Est. cost / task | Compare |
|---|---|---|---|---|
| Gemini 3 Flash | 93.0% | 1.3K | $0.0010 | Compare |
| Gemini 3.5 Flash | 90.4% | 1.3K | $0.0034 | Compare |
| Gemini 3.1 Flash-Lite | 90.0% | 1.1K | $0.0003 | Compare |
| Gemini 3.1 Pro | 89.5% | 1.1K | $0.0024 | Compare |
| Claude Fable 5 | 89.5% | 782 | $0.014 | Compare |
| GLM-OCR(this model) | 87.3% | — | — | — |
| Claude Opus 4.8 | 87.3% | 670 | $0.0049 | Compare |
| Claude Opus 4.7 | 86.9% | 1.1K | $0.0069 | Compare |
| Qwen3.5 27B | 85.6% | 273 | $0.0003 | Compare |
| Gemma 4 31B | 84.7% | 423 | $0.0001 | Compare |
| Claude Sonnet 5 | 83.8% | 725 | $0.0019 | Compare |
Other models worth comparing for similar use cases.
License terms and commercial-use guidance for GLM-OCR.
This model is released under the MIT License, a short and permissive open-source license that allows commercial use, modification, and redistribution.
Yes. Under the terms of the MIT license, you can freely use this model for commercial purposes. You must retain the copyright notice and license text when redistributing.
License information is provided as a guide and is not legal advice.
Yes. GLM-OCR accepts image input, and on Roboflow's previous vision benchmark it scored 87.3% on OCR. You can test it on your own image in the demo above.
GLM-OCR has not yet been evaluated on Roboflow's current Vision Evals. The results on this page are from the previous benchmark.
Yes. The demo on this page runs GLM-OCR in the free Roboflow Playground: upload an image and see results in seconds. A free account unlocks unlimited runs.