49 4 weeks ago

Unofficial GLM-OCR Q8_0 repackaging with an EOT metadata fix intended to reduce runaway and repetitive OCR generation in Ollama. Not an official Z.ai or Ollama release.

vision tools
ollama run mhruiz/glm-ocr-eotfix

Applications

Claude Code
Claude Code ollama launch claude --model mhruiz/glm-ocr-eotfix
OpenCode
OpenCode ollama launch opencode --model mhruiz/glm-ocr-eotfix
Hermes Agent
Hermes Agent ollama launch hermes --model mhruiz/glm-ocr-eotfix
OpenClaw
OpenClaw ollama launch openclaw --model mhruiz/glm-ocr-eotfix

Models

View all →

Readme

GLM-OCR EOT Fix (Q8_0) for Ollama

A community repackaging of Ollama’s glm-ocr:q8_0 with a GGUF end-of-turn metadata adjustment intended to prevent runaway and repetitive generation during OCR.

This is an unofficial community build. It is not affiliated with or endorsed by Z.ai or Ollama.

What changed?

  • Based on the glm-ocr:q8_0 model distributed through the Ollama Library.
  • Repacked the GGUF with gguf-new-metadata --special-token eot '<|user|>' to set the end-of-turn token metadata.
  • The model was not retrained; this is a metadata-level change, not a fine-tune.
  • Uses temperature 0 in the Ollama Modelfile.

The change is intended to mitigate runaway generation and repeated output reported by some users when GLM-OCR is used through Ollama. It is a workaround, not a guarantee that every generation issue is fixed on every setup.

Install

ollama pull mhruiz/glm-ocr-eotfix:latest

Usage

Run interactively:

ollama run mhruiz/glm-ocr-eotfix:latest

Example OCR request for a local image:

Text Recognition: ./image.png

Validation

Tested locally by the publisher with documents that had triggered repeated OCR output in the original Ollama build. Results may vary with Ollama versions, prompt formats and input documents.

Upstream and background

License and attribution

The upstream GLM-OCR model card declares the model weights under the MIT License. See the accompanying LICENSE file.

This repository/model is an unofficial repackaging with a metadata change. It does not imply endorsement by Z.ai or Ollama. Consult the upstream model card for authoritative licensing and attribution information.