Saltar al contenido
ModelPublicadoExterno
Descargar

Glm Ocr Onnx

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

TipoOtherModelo basezai-org/GLM-OCRVersiónGlm ocr decoderCcalidad

Fuente del modelo

Tipo
Other
Tamaño del archivo
2,76 MB
Modelo base
zai-org/GLM-OCR
Versión
vGlm ocr decoder
Actualizado
2 nov 2026
Fuente
Hugging Face

Descripción de la fuente

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

  • Base model: zai-org/GLM-OCR
  • Export spec: see your local iOS project export notes (GLM_OCR_ONNX_Export.md or equivalent).

Fuentes

1 fuente
Hugging FacePrincipalVersión be2db4a15340be944cc460a25317c2155963adac
huggingface.co/aoiandroid/glm-ocr-onnx/tree/be2db4a15340be944cc460a25317c2155963adac

Verificado 2 nov

Artefactos del modelo

1 artefacto

glm_ocr_decoder.onnx

onnx · 2,76 MB · SHA-256 d61147348104…1c8c · Hugging Face

Download file

Extractos de fuentes

2 extractos

--- license: mit pipeline_tag: image-to-text tags: - onnx - ocr - glm-ocr base_model: zai-org/GLM-OCR --- # GLM-OCR ONNX (Decoder) ONNX export of the **decoder** of [zai-org/GLM-OCR](https://huggingface.co/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 - Base model: [zai-org/GLM-OCR](https://huggingface.co/zai-org/GLM-OCR) - Export spec: see your local iOS project export notes (`GLM_OCR_ONNX_Export.md` or equivalent).

Source context: 0 downloads · 2 likes · Pipeline image-to-text · Repo aoiandroid/glm-ocr-onnx