49 Downloads Updated 4 weeks ago
ollama run mhruiz/glm-ocr-eotfix
ollama launch claude --model mhruiz/glm-ocr-eotfix
ollama launch opencode --model mhruiz/glm-ocr-eotfix
ollama launch hermes --model mhruiz/glm-ocr-eotfix
ollama launch openclaw --model mhruiz/glm-ocr-eotfix
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.
glm-ocr:q8_0 model distributed through the Ollama Library.gguf-new-metadata --special-token eot '<|user|>' to set the end-of-turn token metadata.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.
ollama pull mhruiz/glm-ocr-eotfix:latest
Run interactively:
ollama run mhruiz/glm-ocr-eotfix:latest
Example OCR request for a local image:
Text Recognition: ./image.png
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.
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.