ONNX Model Zoo

aoiandroid/glm-ocr-onnx

By aoiandroid · ↓ 0 · ♥ 2 · Updated 2026-02-13

What's in this repo

This page lists the files in aoiandroid/glm-ocr-onnx, including glm_ocr_decoder.onnx.

  • 1 ONNX models (.onnx files)
  • 6 files, including 2 .json, 1 .md, 1 .onnx, 1 .data
  • Last updated 2026-02-13

ONNX files

File Size Download
glm_ocr_decoder.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

GLM-OCR ONNX (Decoder)

ONNX export of the decoder of zai-org/GLM-OCR. Exported with scripts/export_glm_ocr_onnx.py (Transformers 5.1.0, custom torch.onnx path).

Contents

  • glm_ocr_decoder.onnx / glm_ocr_decoder.onnx.data – Decoder ONNX (inputs: decoder_input_ids, encoder_hidden_states; output: logits).
  • tokenizer.json, tokenizer_config.json – Tokenizer from zai-org/GLM-OCR.

Note

The vision encoder was not exported (model forward requires either input_ids or inputs_embeds when called with image inputs only). To run full OCR you need encoder hidden states from another source or the original PyTorch model for the vision part.

Usage

Load with ONNX Runtime; feed encoder_hidden_states (from your vision encoder or zai-org/GLM-OCR in PyTorch) and decoder_input_ids; get logits and decode with the included tokenizer.

Source

Model info

onnx ocr glm-ocr image-to-text base_model:zai-org/GLM-OCR base_model:quantized:zai-org/GLM-OCR license:mit region:us
↓ 0 ♥ 2

Created: 2026-02-13

Updated: 2026-02-13

View on Hugging Face

Files (6)

.gitattributes
README.md
glm_ocr_decoder.onnx ONNX
glm_ocr_decoder.onnx.data
tokenizer.json
tokenizer_config.json

Related models