GLM-OCR

Checkpointzai-org/GLM-OCRModel card indexedModel card

Support summary

GLM-OCR is a checkpoint published by Z.ai, built on the GlmOcrForConditionalGeneration architecture. The newest indexed releases vLLM 0.28.0 and SGLang 0.5.19 both document support.

vLLM documents support in 20 of 20 indexed releases, from 0.17.0 to 0.28.0. SGLang documents support in 13 of 13 indexed releases, from 0.5.10 to 0.5.19.

Documented quantization
BF16
Documented features
Multi-token prediction and Speculative decoding
Configured context
131,072 tokens
License
mit

Hardware, quantization and features count only statements about this checkpoint; engine-wide capabilities are listed with each release.

Hugging Face model card
Publisher
Z.ai
Task
image text to text
License
mit
Library
transformers
Architecture
GlmOcrForConditionalGeneration
Weight tensor elements
1.3B
Tensor types
BF16
Configured context
131,072 tokens
Languages
zh, en, fr, es, ru, de, ja, ko
Weight access
Public
Repository created
2026-01-30
Source 1: zai-org/GLM-OCR · publisher model cardSource 2: zai-org/GLM-OCR · Hugging Face metadataSource 3: zai-org/GLM-OCR · publisher configurationReviewed
Model notes and sources

Engine support

3 engines

Engine support for GLM-OCR
EngineReleaseCheckpoint supportEvidence scopeLast known supported
vLLM0.28.0Newest indexedCheckpoint evidenceSource: vLLM v0.28.0 · docs/models/supported_models.mdReviewed 0.28.0This release
Features, dependencies and evidence for vLLM 0.28.0
SGLang0.5.19Newest indexedCheckpoint evidenceSource: SGLang v0.5.19 · docs/docs/supported-models/multimodal_language_models.mdxReviewed 0.5.19This release
Features, dependencies and evidence for SGLang 0.5.19
TensorRT-LLM1.2.1Newest indexedNo matching evidence curatedNo supported release indexed
Features, dependencies and evidence for TensorRT-LLM 1.2.1

Recipes and cookbooks

Plan a deployment of GLM-OCR

Pin checkpoint zai-org/GLM-OCR at revision ca5d8b3e287e52589e37c28385d9655ee4372f9d on a documented release (vLLM and SGLang). Verify quantized kernels, chat templates, and parser flags on your target GPU before production rollout.

  • Indexed weights store BF16 tensors; confirm your GPU architecture and engine build support this format natively.
  • Configured maximum context is 131,072 tokens; cap --max-model-len (or SGLang’s --context-length) to the longest prompt your workload actually serves so KV blocks stay available for concurrency.
  • Estimate weight and KV-cache memory for GLM-OCR, leaving headroom for runtime activations and CUDA graphs, then benchmark TTFT, TPOT, and throughput on representative traffic.