55 Downloads Updated 4 days ago
ollama run turintech/glm-ocr-artemis:q2_k
Updated 4 days ago
4 days ago
c814cd6c35e2 · 844MB
GLM-OCR for text, formula and table recognition, compressed with Artemis.
Tags: latest and q2_k are the same package, GLM-OCR-Artemis-Q2_K.gguf with its vision projector mmproj-Q8_0.gguf (844.1 MB download). Put the image’s path after one of the three prompts, Text Recognition:, Formula Recognition: or Table Recognition::
ollama run turintech/glm-ocr-artemis "Table Recognition: ./table.png"
Through the API, send the image in images; the answer is in message.content, and tables come back as HTML:
IMG=$(base64 -w0 table.png)
printf '{"model": "turintech/glm-ocr-artemis", "messages": [{"role": "user", "content": "Table Recognition:", "images": ["%s"]}], "stream": false}' "$IMG" > request.json
curl http://localhost:11434/api/chat --data-binary @request.json
The package sets temperature 0, top_k 1, a 16,384-token context and an 8,192-token answer limit, as in the card’s tests.
| File | Size | NED to BF16 (macro) | Table runaways (of 1,112) |
|---|---|---|---|
| TurinTech Q2_K | 359.7 MB | 0.0264 | 3 |
| mradermacher Q2_K | 361.4 MB | 0.0968 | 27 |
| mradermacher Q3_K_M | 450.1 MB | 0.0289 | 3 |
| BF16 original | 1785.8 MB | reference | reference |
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.
| File | Size | Use it for |
|---|---|---|
GLM-OCR-Artemis-Q2_K.gguf |
360 MB | Default, and the only model file, Ollama tag q2_k (latest) |
LLAMA_ARG_IMAGE_MAX_TOKENS=6144 gave llama-server’s answer on that page.Ask on Discord.
MIT, as zai-org’s model card states. The package carries the Hugging Face repository’s LICENSE and NOTICE. This is an independent TurinTech release, not affiliated with or endorsed by zai-org.