From: zai-org <huggingface.co/zai-org>Newsgroups: alt.freeweights.glmSubject:

GLM-OCR

Date: 2026-11-14Commit: 2e85a62Signed: 2DC28CC7B26A283B ✓

Image to text model with 1.3B parameters. Safetensors weights, 2.66 GB in all. Published by zai-org under MIT.

1.3B params2.66GBGLM-OCRsafetensorspermissive
FactsParams1.3BSize2.66 GBFormatssafetensorsTaskimage to textLicenseMITFrom sourcepermissive
$ fw get zai-org/GLM-OCR
# manifest sha256 0632350ac411… · 2.66 GB · 12 files
$ fw verify ./GLM-OCR zai-org/GLM-OCR
From sourceHosted (signed)zai-org/GLM-OCRLast check: 2026-11-14 21:26 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Runs with

Ranked by fit to this model (safetensors), then by GitHub stars.

Overview

Size
2.66 GB
Weights
2.65 GB (safetensors)
Parameters
1.3B
Formats
safetensors
Task
image to text
License
MIT (permissive)
Files
12, each with a sha256
Publisher
zai-org
Added
2026-11-14
Section
alt.freeweights.glm
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-14 21:26 UTCpassed

Model card

From the publisher at commit 2e85a62. Shown as plain text with links; images open at the publisher.

GLM-OCR#

Image: image

👋 Join our WeChat and Discord community

📍 Use GLM-OCR's API

👉 GLM-OCR SDK Recommended

📖 Technical Report

Introduction#

GLM-OCR is a multimodal OCR model for complex document understanding, built on the GLM-V encoder–decoder architecture. It introduces Multi-Token Prediction (MTP) loss and stable full-task reinforcement learning to improve training efficiency, recognition accuracy, and generalization. The model integrates the CogViT visual encoder pre-trained on large-scale image–text data, a lightweight cross-modal connector with efficient token downsampling, and a GLM-0.5B language decoder. Combined with a two-stage pipeline of layout analysis and parallel recognition based on PP-DocLayout-V3, GLM-OCR delivers robust and high-quality OCR performance across diverse document layouts.

Key Features

  • State-of-the-Art Performance: Achieves a score of 94.62 on OmniDocBench V1.5, ranking #1 overall, and delivers state-of-the-art results across major document understanding benchmarks, including formula recognition, table recognition, and information extraction.
  • Optimized for Real-World Scenarios: Designed and optimized for practical business use cases, maintaining robust performance on complex tables, code-heavy documents, seals, and other challenging real-world layouts.
  • Efficient Inference: With only 0.9B parameters, GLM-OCR supports deployment via vLLM, SGLang, and Ollama, significantly reducing inference latency and compute cost, making it ideal for high-concurrency services and edge deployments.
  • Easy to Use: Fully open-sourced and equipped with a comprehensive SDK and inference toolchain, offering simple installation, one-line invocation, and smooth integration into existing production pipelines.

Performance#

  • Document Parsing & Information Extraction

Image: image

  • Real-World Scenarios Performance

Image: image

  • Speed Test

For speed, we compared different OCR methods under identical hardware and testing conditions (single replica, single concurrency), evaluating their performance in parsing and exporting Markdown files from both image and PDF inputs. Results show GLM-OCR achieves a throughput of 1.86 pages/second for PDF documents and 0.67 images/second for images, significantly outperforming comparable models.

Image: image

Usage#

Official SDK#

For document parsing tasks, we strongly recommend using our official SDK. Compared with model-only inference, the SDK integrates PP-DocLayoutV3 and provides a complete, easy-to-use pipeline for document parsing, including layout analysis and structured output generation. This significantly reduces the engineering overhead required to build end-to-end document intelligence systems.

Note that the SDK is currently designed for document parsing tasks only. For information extraction tasks, please refer to the following section and run inference directly with the model.

Serve GLM-OCR Locally#

GLM-OCR supports deployment with the following frameworks. Feel free to try them out:

Prompt Limited#

GLM-OCR currently supports two types of prompt scenarios:

  1. Document Parsing – extract raw content from documents. Supported tasks include:
{
    "text": "Text Recognition:",
    "formula": "Formula Recognition:",
    "table": "Table Recognition:"
}
  1. Information Extraction – extract structured information from documents. Prompts must follow a strict JSON schema. For example, to extract personal ID information:
请按下列JSON格式输出图中信息:
{
    "id_number": "",
    "last_name": "",
    "first_name": "",
    "date_of_birth": "",
    "address": {
        "street": "",
        "city": "",
        "state": "",
        "zip_code": ""
    },
    "dates": {
        "issue_date": "",
        "expiration_date": ""
    },
    "sex": ""
}

⚠️ Note: When using information extraction, the output must strictly adhere to the defined JSON schema to ensure downstream processing compatibility.

Acknowledgement#

This project is inspired by the excellent work of the following projects and communities:

License#

The GLM-OCR model is released under the MIT License.

The complete OCR pipeline integrates PP-DocLayoutV3 for document layout analysis, which is licensed under the Apache License 2.0. Users should comply with both licenses when using this project.

Citation#

If you find GLM-OCR useful in your research, please cite our technical report:

@misc{duan2026glmocrtechnicalreport,
      title={GLM-OCR Technical Report},
      author={Shuaiqi Duan and Yadong Xue and Weihan Wang and Zhe Su and Huan Liu and Sheng Yang and Guobing Gan and Guo Wang and Zihan Wang and Shengdong Yan and Dexin Jin and Yuxuan Zhang and Guohong Wen and Yanfeng Wang and Yutao Zhang and Xiaohan Zhang and Wenyi Hong and Yukuo Cen and Da Yin and Bin Chen and Wenmeng Yu and Xiaotao Gu and Jie Tang},
      year={2026},
      eprint={2603.10910},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2603.10910},
}

Files

12 files · 2.66 GBWeights 2.65 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 12 files with their sha256
FileSizesha256
.eval_results/mdpbench.yaml4.78 KB6af5662f7f0d49f3a8fcfebdec58b145dff4d863a268bf09510b8b34ea2f743d
.eval_results/olmocrbench.yaml1.76 KB98be79ad75636313d534737ad2488ba5c41ec4a38dc00139384f6dc8dce02939
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md6.79 KB172334449c3df98650bc9a42781c254c64c9d466b440e2ca8ce31f99829212b2
chat_template.jinja4.61 KB062e7ee4cc8defa88a5938b5d456dc60366ffd80647f918946ee747bf09ddc7c
config.json1.74 KBad537817b2becde827cbb23569a1dd83a352ee64cc34ce751a4ef000ecce4b5f
generation_config.json165 B4e2a3412f65b2a21d315d928986c55723d3e60dfb92c3982a5b9fd56835b0aa5
model.safetensors2.65 GBa16eb0de98d199293371c560f95f83130d2a2c9612449df16839f08ff9498815
preprocessor_config.json367 B02cc50c36240882ae35e8cd4077a25a379664108185d728d261cb785aefeccff
processor_config.json1.33 KBa56fbd559186fefd6c22a3acc6a393a18a9fe52c264692a122a143d24042112b
tokenizer.json6.84 MBaa0fd058c73a5718bb191f6672dc16d122ee0147b20c123d1726514298f9968a
tokenizer_config.json1.14 KB95abd49942be9cdc6e2653528aed7b4c1cb9e180828421d3488ab38da3057016
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
2e85a62840 pinned now manifest updated, same commit2026-11-14 21:26 UTC12 files · 2.66 GB
2e85a628402026-11-14 21:26 UTC12 files · 2.66 GB

Use it

$ fw get zai-org/GLM-OCR
# manifest sha256 0632350ac411… · 2.66 GB · 12 files
$ fw verify ./GLM-OCR zai-org/GLM-OCR
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/zai-org/GLM-OCR.json --dir ./GLM-OCR $ python3 fw.py verify ./GLM-OCR ./zai-org__GLM-OCR.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download zai-org/GLM-OCR --revision 2e85a62840ccac27daa451df36c736c4636b8628 --local-dir ./GLM-OCR

License

Name
MIT License
Id
MIT
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-14
Text in
README.md
Text sha256
172334449c3df98650bc9a42781c254c64c9d466b440e2ca8ce31f99829212b2
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: zai-org <huggingface.co/zai-org>Newsgroups: alt.freeweights.glmSubject: GLM-OCRDate: 2026-11-14Commit: 2e85a62Signed: 2DC28CC7B26A283B ✓
Upstream
zai-org/GLM-OCR
Pinned commit
2e85a62840ccac27daa451df36c736c4636b8628
Manifest
GLM-OCR.json · .minisig
Manifest sha256
0632350ac41111bb548b442ce4888864d6e5367990c6bc4fa35d84e3aa9659be
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-14 21:26 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/zai-org/GLM-OCR.json $ curl -O https://freeweights.allternit.com/manifests/zai-org/GLM-OCR.json.minisig $ minisign -Vm GLM-OCR.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

2 models in the catalog name this one as their parent.

Fine-tunes
1
Quantizations
1
Fine-tunes 1
Quantizations 1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download zai-org/GLM-OCR
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. GLM-OCR.json. Provenance. Takedown history: none.

Variants

1 quantized or adapter build of GLM-OCR. Each has its own license check and page.

From: bartowski <huggingface.co/bartowski>Subject: arcee-ai_GLM-4-32B-Base-32K-GGUF
From: ggml-org <huggingface.co/ggml-org>Subject: AutoGLM-Phone-9B-GGUF
From: zai-org <huggingface.co/zai-org>Subject: cogagent-chat-hf
From: zai-org <huggingface.co/zai-org>Subject: CogView3-Plus-3B
From: zai-org <huggingface.co/zai-org>Subject: cogvlm-base-490-hf
From: laion <huggingface.co/laion>Subject: dev_set_part1_10k_glm_4_7_traces_jupiter