Skip to content
ModelListedExternal
Download

GLM OCR

👋 Join our WeChat and Discord community

KindText modelBase modelzai-org/GLM-OCRVersionmodel

Model source

Kind
Text model
File size
2.47 GB
Base model
zai-org/GLM-OCR
Version
vmodel
Updated
Sep 26, 2026
Downloads
7.9K
Tasks
Captioning
Source
Hugging Face

Source excerpt

👋 Join our WeChat and Discord community

Sources

1 source
Hugging FacePrimaryVersion fae39dc9c35655593e5f9f77e2b01276ad343b38
huggingface.co/unsloth/GLM-OCR/tree/fae39dc9c35655593e5f9f77e2b01276ad343b38

Verified Sep 10

Model artifacts

1 artifact

model.safetensors

safetensors · 2.47 GB · SHA-256 a16eb0de98d1…8815 · Hugging Face

Download

Source excerpts

2 excerpts

--- license: mit language: - zh - en - fr - es - ru - de - ja - ko pipeline_tag: image-to-text library_name: transformers base_model: - zai-org/GLM-OCR --- # GLM-OCR <div align="center"> <img src=https://raw.githubusercontent.com/zai-org/GLM-OCR/refs/heads/main/resources/logo.svg width="40%"/> </div> <p align="center"> 👋 Join our <a href="https://raw.githubusercontent.com/zai-org/GLM-OCR/refs/heads/main/resources/wechat.jpg" target="_blank">WeChat</a> and <a href="https://discord.gg/QR7SARHRxK" target="_blank">Discord</a> community <br> 📍 Use GLM-OCR's <a href="https://docs.z.ai/guides/vlm/glm-ocr" target="_blank">API</a> </p> ## 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](https://github.com/zai-org/GLM-OCR) and inference toolchain, offering simple installation, one-line invocation, and smooth integration into existing production pipelines. ## Performance - Document Parsing & Information Extraction ![...

Source context: 7947 downloads · 36 likes · Pipeline image-to-text · Library transformers · Repo unsloth/GLM-OCR