Mindket

GLM-OCR

Newversion 1 · updated

Overview

Reads text, formulas and tables from document images and pulls structured information out of them, in eight languages. A small OCR model from zai-org for developers and document pipelines.

GLM-OCR is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.

At a glance

You need
  • Python and pip
  • About 2.7 GB of disk space in BF16, or about 663 MB at 4-bit (an estimate)
  • Optional: the official SDK, which the card recommends for document parsing
Runs in
  • Python with the transformers library on Windows, macOS or Linux
  • Local servers run with vLLM, SGLang or Ollama, which the card says it supports
  • The maker's official SDK for document parsing, and its hosted API
Start with
pip install -U huggingface_hub
hf download zai-org/GLM-OCR

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

About

What it is

GLM-OCR is an OCR model from zai-org that reads complex documents. It recognizes text, formulas and tables, and it can extract structured information such as ID details when you give it a JSON-shaped prompt. The card describes a two-stage design, with layout analysis first and parallel recognition after it.

Who it suits

Developers who build document-reading services and need a small, open OCR model that handles tables and formulas.

IndustryWho uses itHow they use itExample
Business operationsBack-office teamsRead forms, tables and sealsA scanned invoice read into text
Software developmentPipeline developersAdd OCR to a document serviceA service that turns page images into Markdown
Research and educationStudents and researchersRead formulas and tables from papersA formula from a scanned page
Public servicesRecords teamsPull details from ID documentsExtracting fields from an ID scan

If you only read documents that are already text, you can skip it.

Where to use it

  • Python with the transformers library on Windows, macOS or Linux
  • Local servers run with vLLM, SGLang or Ollama, which the card says it supports
  • The maker's official SDK for document parsing, and its hosted API
Use caseWhoWhat they get back
Document parsingDevelopersRaw text, formulas and tables from a page
Information extractionBusiness teamsStructured fields in a JSON shape you define
High-volume servicesPlatform teamsFast page-by-page reading on small hardware

How to set it up

  • Python and pip
  • About 2.7 GB of disk space in BF16, or about 663 MB at 4-bit (an estimate)
  • Optional: the official SDK, which the card recommends for document parsing
  1. Install the Hugging Face hub tools.
  2. Download the model files.
  3. Run the model with transformers, vLLM or SGLang, following the model card.
pip install -U huggingface_hub
hf download zai-org/GLM-OCR

How to use it

For document parsing, the card recommends the official SDK, which adds layout analysis and structured output. For information extraction, run the model directly with a prompt that follows a strict JSON schema. For parsing, the card lists three prompt types.

{
    "text": "Text Recognition:",
    "formula": "Formula Recognition:",
    "table": "Table Recognition:"
}
ToolWhat it does
Text Recognition promptPulls raw text from a document page
Formula Recognition promptPulls formulas from a document page
Table Recognition promptPulls tables from a document page
Official SDKParses documents with layout analysis and structured output

Example

You give the model a page image with the table prompt. It returns the page's table content as text. For an ID document, you send a JSON-shaped prompt and get the requested personal details back as structured data.

For newcomers and experts

If you are new to OCR, try the official SDK on one scanned page before you serve the model yourself. Check the output against the page by eye.

The model pairs a CogViT visual encoder with a small cross-modal connector and a GLM-0.5B language decoder. The card cites 0.9B parameters, while Hugging Face's record lists 1.3B. Training used multi-token prediction loss and reinforcement learning. The card reports 94.62 on OmniDocBench V1.5.

  1. A page image goes in
  2. Layout analysis finds the regions
  3. The model reads each region in parallel
  4. Text, formulas or tables come out

Good to know

  • Prompts: only two prompt scenarios are supported, parsing and information extraction
  • SDK: it is built for document parsing only, so extraction runs on the model directly
  • Benchmarks: the figures are the maker's own
Reading speed in the maker's own speed test
PDF input1.86 pages/second
Image input0.67 images/second
  • License: mit
  • Cost to run: the local model needs no key, and the hosted API is named without prices
  • Data it reaches: the local model reads the files you give it, while the hosted API receives your documents
  • Not for: free-form chat, since only the two prompt scenarios are supported

README and files

README

GLM-OCR

Reads text, formulas and tables from document images and pulls structured information out of them, in eight languages. A small OCR model from zai-org for developers and document pipelines.

Made by zai-org on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.

About

What it is: GLM-OCR is an OCR model from zai-org that reads complex documents. It recognizes text, formulas and tables, and it can extract structured information such as ID details when you give it a JSON-shaped prompt. The card describes a two-stage design, with layout analysis first and parallel recognition after it.

Who it suits: Developers who build document-reading services and need a small, open OCR model that handles tables and formulas.

Industry | Who uses it | How they use it | Example
Business operations | Back-office teams | Read forms, tables and seals | A scanned invoice read into text
Software development | Pipeline developers | Add OCR to a document service | A service that turns page images into Markdown
Research and education | Students and researchers | Read formulas and tables from papers | A formula from a scanned page
Public services | Records teams | Pull details from ID documents | Extracting fields from an ID scan

If you only read documents that are already text, you can skip it.

Where to use it:

  • Python with the transformers library on Windows, macOS or Linux
  • Local servers run with vLLM, SGLang or Ollama, which the card says it supports
  • The maker's official SDK for document parsing, and its hosted API
Use case | Who | What they get back
Document parsing | Developers | Raw text, formulas and tables from a page
Information extraction | Business teams | Structured fields in a JSON shape you define
High-volume services | Platform teams | Fast page-by-page reading on small hardware

How to set it up:

  • Python and pip
  • About 2.7 GB of disk space in BF16, or about 663 MB at 4-bit (an estimate)
  • Optional: the official SDK, which the card recommends for document parsing
  1. Install the Hugging Face hub tools.
  2. Download the model files.
  3. Run the model with transformers, vLLM or SGLang, following the model card.
pip install -U huggingface_hub
hf download zai-org/GLM-OCR

How to use it: For document parsing, the card recommends the official SDK, which adds layout analysis and structured output. For information extraction, run the model directly with a prompt that follows a strict JSON schema. For parsing, the card lists three prompt types.

{
    "text": "Text Recognition:",
    "formula": "Formula Recognition:",
    "table": "Table Recognition:"
}
Tool | What it does
Text Recognition prompt | Pulls raw text from a document page
Formula Recognition prompt | Pulls formulas from a document page
Table Recognition prompt | Pulls tables from a document page
Official SDK | Parses documents with layout analysis and structured output

Example: You give the model a page image with the table prompt. It returns the page's table content as text. For an ID document, you send a JSON-shaped prompt and get the requested personal details back as structured data.

For newcomers and experts: If you are new to OCR, try the official SDK on one scanned page before you serve the model yourself. Check the output against the page by eye.

The model pairs a CogViT visual encoder with a small cross-modal connector and a GLM-0.5B language decoder. The card cites 0.9B parameters, while Hugging Face's record lists 1.3B. Training used multi-token prediction loss and reinforcement learning. The card reports 94.62 on OmniDocBench V1.5.

A page image goes in
Layout analysis finds the regions
The model reads each region in parallel
Text, formulas or tables come out

Good to know:

  • Prompts: only two prompt scenarios are supported, parsing and information extraction
  • SDK: it is built for document parsing only, so extraction runs on the model directly
  • Benchmarks: the figures are the maker's own
Title: Reading speed in the maker's own speed test
PDF input: 1.86 pages/second
Image input: 0.67 images/second
  • License: mit
  • Cost to run: the local model needs no key, and the hosted API is named without prices
  • Data it reaches: the local model reads the files you give it, while the hosted API receives your documents
  • Not for: free-form chat, since only the two prompt scenarios are supported

On Hugging Face, 13 November 2026

  • Task: image to text
  • Library: transformers
  • Parameters: 1.3B
  • Weights: about 2.7 GB in BF16; about 663 MB at 4-bit (estimate)
  • Formats: Safetensors
  • Downloads in the last 30 days: 1,793,299
  • Likes: 2,215
  • License: mit
  • Languages: zh, en, fr, es, ru, de, ja, ko
  • Quantized versions: 41
  • Fine-tunes: 38
  • Tags: transformers, safetensors, glm_ocr, image-text-to-text, conversational, image-to-text

Links

Get the model

Download its files with Hugging Face's command line:

pip install -U huggingface_hub
hf download zai-org/GLM-OCR

Then follow the usage in its model card. Nothing in this kit runs by itself.

Files
README.md  5 KB

1 file, 5 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-12

Compare with similar

Listed Hugging Face models in the same category that share the most tags with this one.

ProductDownloads, last 30 daysLikesParametersLicenseLast change
GLM-OCR This page1,793,2992,2151.3Bmit
Falcon OCRShares image-to-text · transformers · safetensors3,667178270Mapache-2.0
indra-ocrShares image-to-text · safetensors8,6245291.3Mopenrail
anaksor-ocrShares image-to-text · safetensors614—apache-2.0
PP-OCRv6_small_recShares image-to-text10,32217—apache-2.0
PP-OCRv6_mangaShares image-to-text43714—apache-2.0
Numbers as Mindket last read them, from 2026-11-12 to 2026-11-14.

Reviews

No ratings yet

Write a review

No reviews yet.

What people say

Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.

phenomenOCR It – pull text out of un-copyable documents for your LLMI tested many open-source and hosted OCR models and Datalab Chandra was the most accurate. It can parse complex layouts, tables, handwriting, and formulas at a fraction of the cost of Claude/Gemini. Local: https://github.com/datalab-to/chandra Hosted: https://www.datalab.to Another decent option…Adina YakupGLM just entered the OCR field🔥 huggingface.co/zai-org/GLM-... ✨ 0.9B ✨ MIT licensed ✨ Multimodal GLM-V architecture ✨ #1 on OmniDocBench v1.5 (94.62)28 likes · 1 replycpnwaughaRoboflow Playground: Try and Compare 30 Computer Vision ModelsFormatting the command block for easy copy-paste. Via the CLI: pip install vlmrun vlmrun gw models vlmrun config set --api-key 'vlmrun' # anon-user, rate-limited vlmrun gw chat <doc>.pdf -m zai-org/glm-ocr vlmrun gw chat <doc>.pdf -m zai-org/glm-ocr --json-mode vlmrun gw chat <doc>.pdf -m…Tom Dörrhttps://github.com/zai-org/GLM-OCRcpnwaughaGPT 5.6 Sol is the best "vision" model OpenAI ever releasedYeah, GPT 5.6 Sol is very good. Generally, Gemini models remain SOTA for VLM tasks with 3.7-flash at the top. --- That said, considering variables like cost (say, over 100k PDF pages) and accuracy requirements (e.g., construction documents with dense images & tables), Gemini and other SOTA VLMs…Hacker News 250 PointsGLM-OCR – A multimodal OCR model for complex document understanding https://github.com/zai-org/GLM-OCR (http://news.ycombinator.com/item?id=46924075)cpnwaughaRoboflow Playground: Try and Compare 30 Computer Vision ModelsWith a one-line change, you can switch between open-weight OCR VLMs (DeepSeek OCR 2, GLM-OCR, dots.mocr, Paddle OCR VL, PP-OCRv6, etc.) and process 100K+ pages for under $60 on VLM Run Gateway > one OpenAI-compatible endpoint for open-weight OCR and VLM models Try it out quickly via OpenAI SDK:…Hacker News 200 PointsGLM-OCR: Accurate × Fast × Comprehensive https://github.com/zai-org/GLM-OCR (http://news.ycombinator.com/item?id=46924075)philipkglassShow HN: I Built Paul Graham's Intellectual Captcha IdeaAt least one of the test questions was just a screen shot from a tweet. It was difficult to read. I'd suggest extracting text from screen shots with OCR. Apple has built-in functionality for this on their operating systems with Live Text. There are strong open source systems based on small vision…Hacker News Top StoriesGLM-OCR: Accurate × Fast × Comprehensive | DiscussionphilipkglassGoogle releases Gemma 4 open modelsIf you have a basic ARM MacBook, GLM-OCR is the best single model I have found for OCR with good table extraction/formatting. It's a compact 0.9b parameter model, so it'll run on systems with only 8 GB of RAM. https://github.com/zai-org/GLM-OCR Use mlx-vlm for inference:…CarteroGLM-OCR: Accurate × Fast × Comprehensive Discussion | hackernews | Author: ms7892

Searched

More from Mindket

See all from Mindket

anaksor-ocr

Sokheng · Kit

Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…

New

Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…

New

ACE-Step 1.5 XL SFT

ACE-Step · Kit

Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…

New

Similar in Developer

See all in Developer

Claude Code Skills & Plugins

alirezarezvani · Skill

Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…

New29.8k

buzz

block · Kit

Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…

New37.3k

plannotator

backnotprop · Kit

Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.

New10.5k