GLM-OCR: a 0.9B open model for document parsing
- Source
- huggingface.co
- Publisher
- Z.ai
- Author
- Z.ai
- Date

Context
GLM-OCR is Z.ai's for turning images and PDFs of documents into structured text: paragraphs, formulas and tables as Markdown, or chosen fields as JSON. At 0.9 billion parameters it is small enough, the model card says, for high-concurrency services and edge deployment, and its weights are MIT-licensed. It pairs a 0.4-billion-parameter CogViT image encoder, which converts the page image into features, with a 0.5-billion-parameter GLM language decoder that writes the output.
Two design choices carry the speed and stability claims. For full-document parsing, a separate layout-detection model, PP-DocLayout-V3, first splits the page into regions such as paragraphs, tables and formulas. GLM-OCR reads those regions in parallel, and a merge step restores the reading order. The technical report says Z.ai added this stage because small models and repeat themselves on complex layouts. Inside the model, multi-token prediction lets the decoder emit several tokens per step instead of one: it is trained to predict ten, produces 5.2 per step on average, and the report puts the gain at about 50%. For extraction, such as pulling fields from an ID card or invoice, the whole image goes straight to the model with a prompt that spells out the JSON .
The headline benchmark lead is narrow. On OmniDocBench v1.5, a document-parsing benchmark, GLM-OCR scores 94.62 overall against 94.50 for PaddleOCR-VL-1.5, another 0.9-billion-parameter model, and the report shows PaddleOCR-VL-1.5 slightly ahead on text and formula sub-scores while GLM-OCR leads on tables. Larger gaps appear on Z.ai's custom in-house benchmarks, such as 90.5 on seal recognition against 63.0 for the next open-weight model. The stated speed of 1.86 PDF pages per second comes from Z.ai's own test with a single replica handling one request at a time. The report's limitations section adds that a layout-detection mistake carries into recognition, so the two-stage design that adds stability also adds a point of failure.
- Open-weight model — A model whose trained weights can be downloaded and run outside the maker's hosted API.
- Hallucination — Generated content that is false or unsupported, even when it sounds plausible.
- throughput — How much model output a provider can generate over time, commonly measured in output tokens per second.
- Schema — A written description of a data format: which fields exist, what kind of value each holds and which are required.
postWe’re sharing how GLM-5.3 helped build and optimize the inference infrastructure serving GLM-5.3-Flash.- postGLM-5 reaches Coding Plan Pro as Z.ai raises prices
postZ.ai ships GLM-5.3 with big exploit gains and staged weight release
articleGLM-5.3 ships with mandatory reasoning and big coding and cyber gains


