glm-ocr-artemis

Public

GLM-OCR GGUF model with its vision projector, compressed by TurinTech with Artemis, for text, formula and table recognition. Recommended: GLM-OCR-Artemis-Q2_K.gguf. Model files, checksums and measured trade-offs: https://huggingface.co/turintech/GLM-OCR-Artemis-GGUF. Download size is not runtime memory. On 2,012 OCR crops its answers are closer to BF16's than mradermacher's Q2_K: macro NED 0.0264 against 0.0968.

Model type

Language model

4 Downloads

Capabilities

Vision Input

Minimum system memory

Tags

README

GLM-OCR Artemis

GLM-OCR for text, formula and table recognition, compressed with Artemis.

  • Model file: 359.7 MB.
  • Distance from BF16 (NED): 0.0264 (mradermacher Q2_K 0.0968).

TurinTech models, built with Artemis. GGUF files of zai-org/GLM-OCR for text, formula and table recognition from images, with the vision projector.

Start with GLM-OCR-Artemis-Q2_K.gguf. Download sizes below are not runtime memory requirements.

lms get turintech/glm-ocr-artemis@q2_k --gguf

LM Studio downloads GLM-OCR-Artemis-Q2_K.gguf and the projector mmproj-F16.gguf from the Hugging Face repository, 1.229 GB together. Loaded through this Hub definition, the model starts with a 16,384-token context and the repeat penalty off, as in the card's tests; with LM Studio's default repeat penalty (1.1) the answers differ. A direct import from Hugging Face skips these settings, so they have to be set by hand.

Send the image with one of the three prompts, Text Recognition:, Formula Recognition: or Table Recognition:, and temperature 0. On LM Studio's server:

lms load turintech/glm-ocr-artemis
lms server start
IMG=$(base64 -w0 table.png)
printf '{"model": "turintech/glm-ocr-artemis", "messages": [{"role": "user", "content": [{"type": "image_url", "image_url": {"url": "data:image/png;base64,%s"} }, {"type": "text", "text": "Table Recognition:"}]}], "temperature": 0, "max_tokens": 8192}' "$IMG" > request.json
curl http://localhost:1234/v1/chat/completions -H 'Content-Type: application/json' --data-binary @request.json

The answer is in choices[0].message.content; tables come back as HTML.

In Ollama and LM Studio, pages larger than about 3.2 megapixels are scaled down to about 4,096 image tokens, because neither lets a package raise the image-token limit, while the card's numbers were measured at 6,144 with llama-server; in our tests, a 2212 × 1148 table and a 658 × 204 example table gave the same answers in both apps as with llama-server. On a 2480 × 3508 page the scaled-down answer differed from llama-server's: it lost the thousands separators and the table's header markup. With Ollama 0.40.18, starting the server with LLAMA_ARG_IMAGE_MAX_TOKENS=6144 gave llama-server's answer on that page. The API was tested; LM Studio's chat window was not, and its default settings may shrink images to 1,024 pixels (the setting llm.prediction.vision.userMaxImageDimensionPixels).

Checked on November 24, 2026 with headless llmster 0.0.27-1 and its CPU llama.cpp engine 2.82.0: a local copy of this definition loaded the model with each projector, and both test tables got the same answers as with llama-server. This is a compatibility check, not a benchmark; the source card's numbers come from llama.cpp.

FileDownload GBSHA-256
GLM-OCR-Artemis-Q2_K.gguf0.3606dea619c318329ffe82da5b9002742924943fece5240a4fbb91ba830f95c860c
mmproj-F16.gguf0.8693467ca0bd6fc294e3143cb1a6bc33edbdd02e6e0ea0e2499fd16c802b72f5029

See the source card for comparisons, limitations and provenance. This is an independent TurinTech release, not affiliated with or endorsed by zai-org.

Results

FileSizeNED to BF16 (macro)Table runaways (of 1,112)
TurinTech Q2_K359.7 MB0.02643
mradermacher Q2_K361.4 MB0.096827
mradermacher Q3_K_M450.1 MB0.02893
BF16 original1785.8 MBreferencereference

Lower NED is closer to BF16's answers on 2,012 crops. A table runaway ran on to the 8,192-token limit where BF16 stopped by itself; this file had 3, one more than our release rule allows. Sizes are the model files without a projector. This file was measured with the Q8_0 projector, the others with F16. How it was tested.

Files

FileSizeUse it for
GLM-OCR-Artemis-Q2_K.gguf360 MBDefault, and the only model file
mmproj-F16.gguf869 MBThe vision projector LM Studio downloads with the model file; the card's numbers were measured with mmproj-Q8_0.gguf

Limitations

  • In Ollama and LM Studio, pages larger than about 3.2 megapixels are scaled down to about 4,096 image tokens, because neither lets a package raise the image-token limit, while the card's numbers were measured at 6,144 with llama-server; in our tests, a 2212 × 1148 table and a 658 × 204 example table gave the same answers in both apps as with llama-server. On a 2480 × 3508 page the scaled-down answer differed from llama-server's: it lost the thousands separators and the table's header markup. With Ollama 0.40.18, starting the server with LLAMA_ARG_IMAGE_MAX_TOKENS=6144 gave llama-server's answer on that page.
  • The numbers come from llama.cpp, not from Ollama or LM Studio.

Parameters

Custom configuration options included with this model

Repeat Penalty
Disabled

Sources

The underlying model files this model uses

Based on