SAVRN
Search Contact SAVRN

Open-weight model · Image to text

GLM-OCR

by Z.ai zai-org/GLM-OCR

Join our WeChat and Discord community Use GLM-OCR's API GLM-OCR is a multimodal OCR model for complex document understanding, built on the GLM-V encoder–decoder architecture.

Parameters1.3B
Context131,072
Weights2.7 GB
Licensemit
AccessOpen weights
Monthly Downloads1.7M

Runs On

What it takes to serve GLM-OCR (1.3B parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 2.7 GB 3.2 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 1.3 GB 1.6 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 0.7 GB 0.8 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Sep 18, 2026.

SAVRN's Notes on GLM-OCR

Scanned contracts, permit drawings, invoices: that is the kind of work we would hand GLM-OCR. Z.ai built it at 1.3B parameters, so the 16-bit weights take 2.7 GB and the model needs 3.2 GB to run. The cheapest setup on our board is one MI300X with 192 GB at $1.85 per hour on-demand, which leaves most of the card empty; the real question is how many copies you stack on it, not whether it fits. At 8-bit the need drops to 1.6 GB, at 4-bit to 0.8 GB.

MIT terms are short: commercial use, modification and redistribution are permitted as long as the copyright and permission notices travel with the files. Before committing, check the 131,072 token context against your longest documents, pin the September 11, 2026 revision you validate, and plan to measure per-page cost on your own hardware, since no Index host price exists yet.

Model Card

By Z.ai, published under mit, revision 2e85a62840cc.

Join ourWeChat and Discord community
Use GLM-OCR'sAPI
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

Read the full model card (645 words)

Configuration

Architecture
GlmOcrForConditionalGeneration
Context length (tokens)
131,072
Layers
16
Hidden size
1,536
Feed-forward size
4,608
Attention heads
16
Key/value heads
8
Head dimension
128
Vocabulary size
59,392
Model type
glm_ocr

Identity and Version

Repository
zai-org/GLM-OCR
Publisher
Z.ai
Task
Image to text
Modality
Image and text
Library
transformers
Parameters
1.3B parameters
Languages
zh, en, fr, es, ru, de, ja, ko
Revision
2e85a62840ccac27daa451df36c736c4636b8628
First published
2026-01-30
Last updated
2026-09-11

Files and Weights

12 files, 2.7 GB in total. The weights are 1 file totalling 2.7 GB in safetensors.

Weights1 file · 2.7 GB
Configuration6 files · 10.2 KB
Tokenizer2 files · 6.8 MB
Documentation1 file · 6.8 KB
Other1 file · 4.6 KB
Repository1 file · 1.5 KB
Every file
FileTypeSizeSHA-256
model.safetensorsWeights2.7 GB a16eb0de98d1
.eval_results/mdpbench.yamlConfiguration4.8 KB
.eval_results/olmocrbench.yamlConfiguration1.8 KB
config.jsonConfiguration1.7 KB
generation_config.jsonConfiguration165 B
preprocessor_config.jsonConfiguration367 B
processor_config.jsonConfiguration1.3 KB
README.mdDocumentation6.8 KB
chat_template.jinjaOther4.6 KB
.gitattributesRepository1.5 KB
tokenizer.jsonTokenizer6.8 MB
tokenizer_config.jsonTokenizer1.1 KB

License and Download

License
mit
Access
Open weights, no gate
Download size
2.7 GB
Download from Z.ai

Released by Z.ai through its official repository on Hugging Face. Read the license.

Built From

  • Described by arXiv:2603.10910

Evaluations

Each result is shown as reported, with the conditions its reporter stated. None is a SAVRN measurement. A comparison lines two results up only when their configuration, unit and setup are all stated and identical.

BenchmarkConditionsResultReported byRevisionDate
Delores-Lin/MDPBench Task arMetric arComparison conditions not established 21.7 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-04-14
Delores-Lin/MDPBench Task deMetric deComparison conditions not established 82.7 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-04-14
Delores-Lin/MDPBench Task digitalMetric digitalComparison conditions not established 77.9 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-04-14
Delores-Lin/MDPBench Task enMetric enComparison conditions not established 84.5 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-04-14
Delores-Lin/MDPBench Task esMetric esComparison conditions not established 75.8 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-04-14
Delores-Lin/MDPBench Task frMetric frComparison conditions not established 76.2 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-04-14
Delores-Lin/MDPBench Task hiMetric hiComparison conditions not established 39.6 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-04-14
Delores-Lin/MDPBench Task idMetric idComparison conditions not established 79.7 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-04-14
Delores-Lin/MDPBench Task itMetric itComparison conditions not established 82.8 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-04-14
Delores-Lin/MDPBench Task jpMetric jpComparison conditions not established 65.5 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-04-14
Delores-Lin/MDPBench Task koMetric koComparison conditions not established 61.2 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-04-14
Delores-Lin/MDPBench Task latinMetric latinComparison conditions not established 78.7 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-04-14
Delores-Lin/MDPBench Task nlMetric nlComparison conditions not established 80.2 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-04-14
Delores-Lin/MDPBench Task non_latinMetric non_latinComparison conditions not established 54.3 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-04-14
Delores-Lin/MDPBench Task overallMetric overallComparison conditions not established 67.3 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-04-14
Delores-Lin/MDPBench Task photographedMetric photographedComparison conditions not established 63.7 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-04-14
Delores-Lin/MDPBench Task ptMetric ptComparison conditions not established 77.4 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-04-14
Delores-Lin/MDPBench Task ruMetric ruComparison conditions not established 64.2 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-04-14
Delores-Lin/MDPBench Task thMetric thComparison conditions not established 27.4 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-04-14
Delores-Lin/MDPBench Task viMetric viComparison conditions not established 69.2 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-04-14
Delores-Lin/MDPBench Task zhMetric zhComparison conditions not established 78.5 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-04-14
Delores-Lin/MDPBench Task zh_tMetric zh_tComparison conditions not established 76.7 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-04-14
PaddlePaddle/Real5-OmniDocBench Task illuminationMetric illuminationComparison conditions not established 91.12 Real5-OmniDocBench Leaderboard
Reported by a third party
Evaluated revision not stated 2026-08-08
PaddlePaddle/Real5-OmniDocBench Task overallMetric overallComparison conditions not established 90.32 Real5-OmniDocBench Leaderboard
Reported by a third party
Evaluated revision not stated 2026-08-08
PaddlePaddle/Real5-OmniDocBench Task scanningMetric scanningComparison conditions not established 92.67 Real5-OmniDocBench Leaderboard
Reported by a third party
Evaluated revision not stated 2026-08-08
PaddlePaddle/Real5-OmniDocBench Task screen_photographyMetric screen_photographyComparison conditions not established 91.75 Real5-OmniDocBench Leaderboard
Reported by a third party
Evaluated revision not stated 2026-08-08
PaddlePaddle/Real5-OmniDocBench Task skewMetric skewComparison conditions not established 85.39 Real5-OmniDocBench Leaderboard
Reported by a third party
Evaluated revision not stated 2026-08-08
PaddlePaddle/Real5-OmniDocBench Task warpingMetric warpingComparison conditions not established 90.68 Real5-OmniDocBench Leaderboard
Reported by a third party
Evaluated revision not stated 2026-08-08
allenai/olmOCR-bench Task arxiv_mathMetric arxiv_mathComparison conditions not established 80.7 GLM-OCR API evaluation
Reported by a third party
Evaluated revision not stated 2026-04-14
allenai/olmOCR-bench Task baselineMetric baselineComparison conditions not established 98.8 GLM-OCR API evaluation
Reported by a third party
Evaluated revision not stated 2026-04-14
allenai/olmOCR-bench Task headers_footersMetric headers_footersComparison conditions not established 95.8 GLM-OCR API evaluation
Reported by a third party
Evaluated revision not stated 2026-04-14
allenai/olmOCR-bench Task long_tiny_textMetric long_tiny_textComparison conditions not established 86.9 GLM-OCR API evaluation
Reported by a third party
Evaluated revision not stated 2026-04-14
allenai/olmOCR-bench Task multi_columnMetric multi_columnComparison conditions not established 76.7 GLM-OCR API evaluation
Reported by a third party
Evaluated revision not stated 2026-04-14
allenai/olmOCR-bench Task old_scansMetric old_scansComparison conditions not established 37.6 GLM-OCR API evaluation
Reported by a third party
Evaluated revision not stated 2026-04-14
allenai/olmOCR-bench Task old_scans_mathMetric old_scans_mathComparison conditions not established 68.3 GLM-OCR API evaluation
Reported by a third party
Evaluated revision not stated 2026-04-14
allenai/olmOCR-bench Task overallMetric overallSetup Excluding Headers & Footers category. Using ZAI API.Comparison conditions not established 75.2 GLM-OCR API evaluation
Reported by a third party
Evaluated revision not stated 2026-04-14
allenai/olmOCR-bench Task table_testsMetric table_testsComparison conditions not established 77.6 GLM-OCR API evaluation
Reported by a third party
Evaluated revision not stated 2026-04-14
llamaindex/ParseBench Task meanMetric meanSetup Pipeline name: glmocr_pipelineComparison conditions not established 29.6 ParseBench
Reported by a third party
Evaluated revision not stated 2026-04-14
llamaindex/ParseBench Task text_contentMetric text_contentSetup Pipeline name: glmocr_pipelineComparison conditions not established 78 ParseBench
Reported by a third party
Evaluated revision not stated 2026-04-14
llamaindex/ParseBench Task text_formattingMetric text_formattingSetup Pipeline name: glmocr_pipelineComparison conditions not established 2.3 ParseBench
Reported by a third party
Evaluated revision not stated 2026-04-14

Memory Requirements

PrecisionWeights in memory
As published2.7 GB
16-bit2.7 GB
8-bit1.3 GB
4-bit0.7 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Built on This Model

Questions About GLM-OCR

How much GPU memory does GLM-OCR need?

About 3.2 GB at 16-bit and 0.8 GB at 4-bit: the weights (1.3B parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run GLM-OCR on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

Can I use GLM-OCR commercially?

Yes. GLM-OCR is released under MIT License. The MIT License is a short permissive license. It permits commercial use, modification and redistribution, provided the copyright notice and permission notice are included.

What is GLM-OCR's context length?

131,072 tokens, from the maximum position embeddings in its published configuration.

Similar Models

Model · Image to text

GLM-OCR

Unsloth AI

Join our WeChat and Discord community Use GLM-OCR's API 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…

Open weights mit 1.3B parameters 131,072 tokens transformers

Model · Image to text

LightOnOCR-1B-1025

LightOn AI

Full BF16 version of the model. We recommend this variant for inference and further fine-tuning. LightOnOCR-1B is a compact, end-to-end vision–language model for Optical Character Recognition (OCR) and document understanding. It achieves state-of-the-art accuracy in its weight class while being several times faster and cheaper than larger general-purpose VLMs. Highlights LightOnOCR combines a Vision Transformer encoder(Pixtral-based) with a lightweight text decoder(Qwen3-based) distilled from high-quality open VLMs. It is optimized for document parsing tasks, producing accurate, layout-aware text extraction from high-resolution pages. All benchmarks evaluated using vLLM on the Olmo-Bench.…

Open weights apache-2.0 1.2B parameters 8,192 tokens transformers

Model · Image to text

GLM-OCR-4bit

MLX Community

This model was converted to MLX format from zai-org/GLM-OCR using mlx-vlm version 0.3.10. Refer to the original model card for more details on the model.

Open weights mit 1.1B parameters 131,072 tokens transformers

Model · Image to text

kosmos-2-patch14-224

Microsoft

This Hub repository contains a HuggingFace's transformers implementation of the original Kosmos-2 model from Microsoft. Use the code below to get started with the model. This model is capable of performing different tasks through changing the prompts. First, let's define a function to run a prompt. Here are the tasks Kosmos-2 could perform: Once you have the entities, you can use the following helper function to draw their bounding bboxes on the image

Open weights mit 1.7B parameters 2,048 tokens transformers

Model · Image to text

trocr-large-printed

Microsoft

TrOCR model fine-tuned on the SROIE dataset. It was introduced in the paper TrOCR: Transformer-based Optical Character Recognition with Pre-trained Models by Li et al. and first released in this repository. Disclaimer: The team releasing TrOCR did not write a model card for this model so this model card has been written by the Hugging Face team. The TrOCR model is an encoder-decoder model, consisting of an image Transformer as encoder, and a text Transformer as decoder. The image encoder was initialized from the weights of BEiT, while the text decoder was initialized from the weights of RoBERTa. Images are presented to the model as a sequence of fixed-size patches (resolution 16x16), which…

Open weights 608M parameters transformers

captioning pretrained on COCO dataset - base architecture (with ViT large backbone). Authors from the paper write in the abstract: Vision-Language Pre-training (VLP) has advanced the performance for many vision-language tasks. However, most existing pre-trained models only excel in either understanding-based tasks or generation-based tasks. Furthermore, performance improvement has been largely achieved by scaling up the dataset with noisy image-text pairs collected from the web, which is a suboptimal source of supervision. In this paper, we propose BLIP, a new VLP framework which transfers flexibly to both vision-language understanding and generation tasks. BLIP effectively utilizes the…

Open weights bsd-3-clause 470M parameters 512 tokens transformers