Project AURIONAI Use-Cases Research & Innovation

GLM-OCR

GLM-OCR is a small open model from Z.ai that turns document images and PDFs into Markdown, HTML tables, LaTeX formulas and JSON fields, for teams that need document parsing they can run themselves.

#9 of 10Z.ai (Zhipu)Z.ai (Zhipu)OCR and documentMITModel record

What It Is

GLM-OCR is a multimodal OCR model for complex document understanding. The technical report gives it 0.9B parameters: a 0.4B CogViT vision encoder and a 0.5B GLM language decoder. The weights are released under the MIT licence on Hugging Face and ModelScope, with an SDK and inference toolchain on GitHub.

It reads printed text, handwriting, formulas, tables and forms. For whole documents it first finds the layout with PP-DocLayout-V3, then reads each region in parallel and merges the results into Markdown and JSON. For key information extraction it reads the whole page against a JSON schema given in the prompt.

Z.ai also offers it as a paid API. The API guide lists Chinese, English, French, Spanish, Russian, German, Japanese and Korean among its languages, and PDF, JPG and PNG as inputs, with limits of 10 MB per image, 50 MB per PDF and 100 pages per request.

Why It Is Here

Most rated7.8
Most useful3.02
Proven quality3
Runs on ordinary hardware8
Total5.69

1.8M downloads last month, 2.2k likes, 7.6k GitHub stars, 38 fine-tunes.

Its total is 5.69 of 10. Runs on ordinary hardware is 8: it is small, 1.33B parameters counted from the Hugging Face weights. Most rated is 7.8: 1,793,299 Hugging Face downloads last month, 2,215 likes and 7,592 GitHub stars, read on 13 November 2026. Proven quality is 3: its best results, 95.22 on OmniDocBench v1.6 and 90.32 on Real5-OmniDocBench, are reported by the vendor in a paper, with no independent leaderboard result. Most useful is 3.02, from 38 fine-tunes and 14 adapters; no AURION use case links to it yet.

Where this comes from
Scores read on 13 Nov 2026. Each runs from 0 to 10; the total weights them 35, 25, 20 and 20 percent.

How It Works

How GLM-OCR parses a document

The model follows the GLM-V encoder-decoder design. A CogViT vision encoder of about 0.4B parameters reads the image. A light connector projects the visual features into the language model as prefix tokens, and a GLM decoder of about 0.5B parameters writes the output as Markdown or JSON, one step at a time.

To decode faster, the model is trained with Multi-Token Prediction. The report says it is trained to predict 10 tokens per step with shared-parameter heads, and at inference it averages 5.2 tokens per step, for roughly 50 percent higher throughput. Training runs in four stages: vision encoder pretraining, joint pretraining, pretraining and fine-tuning with MTP, and reinforcement learning with GRPO. The rewards are task-specific: edit distance for text, CDM for formulas, TEDS for tables and field-level F1 for key information extraction.

For document parsing, PP-DocLayout-V3 splits the page into regions such as paragraphs, tables and formulas. Each region is cropped and recognised on its own, in parallel. A merge step restores reading order and writes Markdown and JSON. For key information extraction there is no layout step: the whole page goes in with a task prompt.

Where this comes from
Diagram drawn by AURION from its source.

Examples

Table recognition on a clinical summary with hierarchical headers and merged cells.
Input
Image of a clinical summary table with merged cells
Output
The table rebuilt as structured output
Table recognition on a clinical summary with hierarchical headers and merged cells. Credit: GLM-OCR Technical Report, Z.ai (Figure 5). Source
Formula recognition on dense equations, including matrices and determinants.
Input
Image of dense mathematical equations
Output
LaTeX source of the equations
Formula recognition on dense equations, including matrices and determinants. Credit: GLM-OCR Technical Report, Z.ai (Figure 6). Source
Input of the official handwriting recognition example: a handwritten English text that GLM-OCR transcribes.
Input
Handwritten page (image)
Output
Recognised text, shown in the paired output image
Input of the official handwriting recognition example: a handwritten English text that GLM-OCR transcribes. Credit: Z.ai API documentation, Handwriting Recognition example. Source
Where this comes from
Every picture is published by the developer or in the paper, and credited under it. Outputs of a generation model are labelled as model outputs.

Screenshots

Benchmark table from the GLM-OCR model card: document parsing, text, formula and table recognition and information extraction, against PaddleOCR-VL-1.6, DeepSeek-OCR 2, MinerU2.5, dots.ocr, Gemini 3 Pro and GPT-5.2 (vendor-reported).
Benchmark table from the GLM-OCR model card: document parsing, text, formula and table recognition and information extraction, against PaddleOCR-VL-1.6, DeepSeek-OCR 2, MinerU2.5, dots.ocr, Gemini 3 Pro and GPT-5.2 (vendor-reported). Credit: Z.ai (model card). Source
Where this comes from
Published by the developer or the leaderboard owner.

How to Run It

Hardware
The model card and README give no minimum GPU. The README says self-hosting needs a GPU, while the Zhipu MaaS API needs no GPU. Large images and PDFs may need tuning of --max-model-len and --gpu-memory-utilization in vLLM, or --context-len and --mem-fraction-static in SGLang. Speed on the card: 1.86 PDF pages per second and 0.67 images per second, single replica and single concurrency; the hardware is not named.
Runtimes
vLLMSGLangOllamatransformersmlx-vlmglmocr SDK
from transformers import pipeline

pipe = pipeline("image-to-text", model="zai-org/GLM-OCR")
messages = [{"role": "user", "content": [
    {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
    {"type": "text", "text": "What animal is on the candy?"}]}]
print(pipe(text=messages))

python from the official source

Where this comes from
From the model card or the official repository.

Licence

MIT (model weights); Apache-2.0 (code)

The weights are under the MIT licence, which lets anyone use, change, publish and sell the model, including in commercial products, as long as the copyright and licence notice are kept; it comes with no warranty. The SDK code is under Apache-2.0, and the bundled PP-DocLayoutV3 layout model is also Apache-2.0, so users must follow both licences.

The licence text

Benchmarks

OmniDocBench v1.5 (Overall) (score, higher is better)

GLM-OCR94.62
PaddleOCR-VL-1.594.5
MinerU2.590.67
Gemini-3 Pro90.33
dots.ocr88.41
GPT-5.285.5
vendor-reported. Source

OmniDocBench v1.6 (Overall) (score, higher is better)

GLM-OCR95.22
PaddleOCR-VL-1.696.33
MinerU2.5-Pro95.75
PaddleOCR-VL-1.594.93
Gemini 3 Pro92.91
GPT-5.286.59
vendor-reported. Source

Real5-OmniDocBench (Overall) (score, higher is better)

GLM-OCR90.32
PaddleOCR-VL-1.693.19
PaddleOCR-VL-1.592.05
Gemini-3 Pro89.24
MinerU2.5-pro88.96
GPT-5.278.66
vendor-reported. Source

OCRBench (Text) (score)

GLM-OCR94
dots.ocr92.1
PaddleOCR-VL-1.575.3
MinerU2.575.3
DeepSeek-OCR234.7
vendor-reported. Source

UniMERNet (formula recognition) (score)

GLM-OCR96.5
MinerU2.596.4
PaddleOCR-VL-1.596.1
dots.ocr90
DeepSeek-OCR285.8
vendor-reported. Source

Throughput, PDF parsing (pages per second (single replica, single concurrency))

GLM-OCR1.86
PaddleOCR-VL-1.51.22
vendor-reported. Source
Where this comes from
Each chart names who ran the test. Vendor-reported means the developer's own figure.

Limitations

  • Two-stage errors: mistakes in the layout step carry through, and reading order can suffer on cross-page or irregular multi-column layouts (technical report).
  • Weaker on very low-resolution or distorted pages, complex math, dense or irregular tables, and under-represented languages; line breaks and whitespace can vary between runs (technical report).
  • An independent tutorial found weak results on a table with merged rows and unclear column boundaries, errors on complex or very small formulas, and layout sometimes ignored in text mode (Debugger Cafe).
  • An independent review read a multilingual score of 69.3 and an old-scans score of 37.6 percent in the report's figures, and judged vertical and CJK text a likely weak point (lilting.ch); these numbers come from the reviewer, not from a page read directly.

Further Reading

Sources

  1. huggingface.co/zai-org/GLM-OCR https://huggingface.co/zai-org/GLM-OCR
  2. huggingface.co/zai-org/GLM-OCR/tree/main https://huggingface.co/zai-org/GLM-OCR/tree/main
  3. github.com/zai-org/GLM-OCR https://github.com/zai-org/GLM-OCR
  4. github.com/zai-org/GLM-OCR/blob/main/LICENSE https://github.com/zai-org/GLM-OCR/blob/main/LICENSE
  5. GLM-OCR Technical Report arxiv.org https://arxiv.org/abs/2603.10910
  6. arxiv.org/html/2603.10910 https://arxiv.org/html/2603.10910
  7. arxiv.org/html/2603.10910v2 https://arxiv.org/html/2603.10910v2
  8. arxiv.org/abs/2606.03264 https://arxiv.org/abs/2606.03264
  9. arxiv.org/html/2606.03264v1 https://arxiv.org/html/2606.03264v1
  10. docs.z.ai/guides/vlm/glm-ocr https://docs.z.ai/guides/vlm/glm-ocr
  11. debuggercafe.com/getting-started-with-glm-ocr https://debuggercafe.com/getting-started-with-glm-ocr/
  12. lilting.ch/en/articles/glm-ocr-document-parsing-layout https://lilting.ch/en/articles/glm-ocr-document-parsing-layout
  13. opensource.org/license/mit https://opensource.org/license/mit

To cite this page: Project AURION, AI Use-Cases Research & Innovation, "GLM-OCR", https://aurion.semai.id/top-10/zhipu-zai-glm-ocr/, records of November 2026.