Instructions to use 42ailab/GLM-OCR-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use 42ailab/GLM-OCR-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf 42ailab/GLM-OCR-GGUF:Q8_0 # Run inference directly in the terminal: llama cli -hf 42ailab/GLM-OCR-GGUF:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf 42ailab/GLM-OCR-GGUF:Q8_0 # Run inference directly in the terminal: llama cli -hf 42ailab/GLM-OCR-GGUF:Q8_0
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf 42ailab/GLM-OCR-GGUF:Q8_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf 42ailab/GLM-OCR-GGUF:Q8_0
Use Docker
docker model run hf.co/42ailab/GLM-OCR-GGUF:Q8_0
- Llama new
- LM Studio
- Jan
- vLLM
How to use 42ailab/GLM-OCR-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "42ailab/GLM-OCR-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "42ailab/GLM-OCR-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/42ailab/GLM-OCR-GGUF:Q8_0
- Ollama
How to use 42ailab/GLM-OCR-GGUF with Ollama:
ollama run hf.co/42ailab/GLM-OCR-GGUF:Q8_0
- Unsloth Desktop
- Docker Model Runner
How to use 42ailab/GLM-OCR-GGUF with Docker Model Runner:
docker model run hf.co/42ailab/GLM-OCR-GGUF:Q8_0
- Lemonade
How to use 42ailab/GLM-OCR-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull 42ailab/GLM-OCR-GGUF:Q8_0
Run and chat with the model
lemonade run user.GLM-OCR-GGUF-Q8_0
List all available models
lemonade list
- Atomic Chat
GLM-OCR GGUF Backup
English | 简体中文 · Also on ModelScope · 42ailab.com
Z.ai's document recognition model: turns the text, tables and formulas in scans and screenshots into editable text.
The model was built by Z.ai (Zhipu AI) and released under MIT. This repository is neither a new model nor our conversion. The GGUF files were converted by ggml-org and published in
ggml-org/GLM-OCR-GGUF. This repository is a byte-for-byte backup of 2 of those files; nothing was modified.
Why a backup
These files lived only under the converter's own account. If that repository is renamed, deleted, or has its files replaced in place, people who depend on it can no longer download the same bytes.
So we keep the original files, unmodified, on our own ModelScope and Hugging Face accounts. File names, sizes and sha256 digests all match the original.
Use
Packaged for 42model: download GLM-OCR from the model library in the desktop app, or run 42model download glm-ocr:1b-q8_0.
Files and license
| File | Role | Size | sha256 |
|---|---|---|---|
GLM-OCR-Q8_0.gguf |
model weights (Q8_0) | 906.4 MiB | 45bc244a6446aff850521dc41f18bc8d7105ad5f0c2c8c28af04e7cc4f4d50b1 |
mmproj-GLM-OCR-Q8_0.gguf |
vision projector (Q8_0) | 462.0 MiB | 9c4b58e33e316ed142eb5dcb41abec3844d3e6e5dc361ffb782c3fa9d175141f |
The digests can be checked one by one against the file pages of the original ggml-org/GLM-OCR-GGUF repository.
Weights are under the upstream MIT license; the full text is in this repository's LICENSE (upstream ships no separate LICENSE file; it contains the License section of the official model card ZhipuAI/GLM-OCR verbatim, plus the MIT text published by the OSI). Credit for the GGUF conversion goes to ggml-org.
- Downloads last month
- 119
8-bit