Compare model versions
Model: zai-org/GLM-OCR
ca5d8b3 (opens in a new tab)
Recorded at 04 Sep 2026, 13:20 UTC
Unchanged through 11 Sep 2026, 05:00 UTC
2e85a62 (opens in a new tab)
Recorded at 14 Sep 2026, 04:47 UTC
Unchanged through 04 Nov 2026, 06:58 UTC
Summary
Licence
UnchangedNo change
MIT
MIT
PinDiff reports the declared licence and licence files. It does not interpret licence terms.
Weights
UnchangedNo change
Remote code / configuration
Changed6 configuration values changed
No
No
config.json Changed
generation_config.json Unchanged
Access / gating
UnchangedNo change
Public
Public
Model card
ChangedModel card modified (6 sections)
Metadata (front matter) Changed Material section +3 −0
Diff
Before
license: mit language: - zh - en - fr - es - ru - de - ja - ko library_name: transformers
After
license: mit language: - zh - en - fr - es - ru - de - ja - ko pipeline_tag: image-to-text library_name: transformers tags: - conversational
Serve GLM-OCR Locally Added +5 −0
Diff
Before
Not present in the earlier snapshot.
After
GLM-OCR supports deployment with the following frameworks. Feel free to try them out: - [SGLang](https://github.com/sgl-project/sglang) — see [cookbook](https://cookbook.sglang.io/autoregressive/GLM/GLM-OCR) - [vLLM](https://github.com/vllm-project/vllm) — see [recipes](https://recipes.vllm.ai/zai-org/GLM-OCR) - [Transformers](https://github.com/huggingface/transformers) — see [transformers docs](https://github.com/huggingface/transformers/blob/main/docs/source/en/model_doc/glm_ocr.md)
vLLM Removed +0 −17
Diff
Before
1. run ```bash pip install -U vllm --extra-index-url https://wheels.vllm.ai/nightly ``` or using docker with: ``` docker pull vllm/vllm-openai:nightly ``` 2. run with: ```bash pip install git+https://github.com/huggingface/transformers.git vllm serve zai-org/GLM-OCR --allowed-local-media-path / --port 8080 ```
After
Not present in the later snapshot.
SGLang Removed +0 −18
Diff
Before
1. using docker with: ```bash docker pull lmsysorg/sglang:dev ``` or build it from source with: ```bash pip install git+https://github.com/sgl-project/sglang.git#subdirectory=python ``` 2. run with: ```bash pip install git+https://github.com/huggingface/transformers.git python -m sglang.launch_server --model zai-org/GLM-OCR --port 8080 ```
After
Not present in the later snapshot.
Ollama Removed +0 −12
Diff
Before
1. Download [Ollama](https://ollama.com/download). 2. run with: ```bash ollama run glm-ocr ``` Ollama will automatically use image file path when an image is dragged into the terminal: ```bash ollama run glm-ocr Text Recognition: ./image.png ```
After
Not present in the later snapshot.
Transformers Removed +0 −42
Diff
Before
```
pip install git+https://github.com/huggingface/transformers.git
```
```python
from transformers import AutoProcessor, AutoModelForImageTextToText
import torch
MODEL_PATH = "zai-org/GLM-OCR"
messages = [
{
"role": "user",
"content": [
{
"type": "image",
"url": "test_image.png"
},
{
"type": "text",
"text": "Text Recognition:"
}
],
}
]
processor = AutoProcessor.from_pretrained(MODEL_PATH)
model = AutoModelForImageTextToText.from_pretrained(
pretrained_model_name_or_path=MODEL_PATH,
torch_dtype="auto",
device_map="auto",
)
inputs = processor.apply_chat_template(
messages,
tokenize=True,
add_generation_prompt=True,
return_dict=True,
return_tensors="pt"
).to(model.device)
inputs.pop("token_type_ids", None)
generated_ids = model.generate(**inputs, max_new_tokens=8192)
output_text = processor.decode(generated_ids[0][inputs["input_ids"].shape[1]:], skip_special_tokens=False)
print(output_text)
```
After
Not present in the later snapshot.
9 other sections unchanged.
Repository status
ChangedRepository revision moved
- Earlier
-
Revision
ca5d8b3(opens in a new tab) · 11 files · 2.66 GB - Later
-
Revision
2e85a62(opens in a new tab) · 12 files · 2.66 GB
A new revision does not by itself mean files changed; the categories above show what differs.
Files
Changed2 other files changed
1 changed hash 1 added
| File | Status | Before | After |
|---|---|---|---|
tokenizer_config.json |
CHANGED |
Git blob ID 18f2106a5124ac945ee5526ac60fa75e09e97e11
1.1 KB
|
Git blob ID 04b9992511183247d5115f176a5b9f0360a36a1c
1.1 KB (+72 B)
|
processor_config.json |
ADDED | — |
Git blob ID 58b03daf067d4e47aa5cd433029c303e032a92c2
1.3 KB
|
Evidence observed by PinDiff from the Hugging Face API and stored when recorded. PinDiff compares stored metadata, hashes and text files; it does not download weight files. Change events recorded between these snapshots