Downloads · 30 days
12
16% of all-time downloads
psyche/glm-ocr-onnx
glm-ocr-onnx is a image-to-text model from psyche. Use it when you need a caption or text from an image. It is set up for onnxruntime. The card lists the license as mit.
This repository contains a production-oriented ONNX export/bundle for GLM-OCR with static graph wiring and quantization-aware layout for edge/browser deployment workflows.
Downloads · 30 days
12
16% of all-time downloads
All-time downloads
76
Public
Repo size
18.6 GB
Likes
0
Public
Click a slice to open those files.
.data18.6 GB · 100%
From the Hugging Face model README
This repository contains a production-oriented ONNX export/bundle for GLM-OCR with static graph wiring and quantization-aware layout for edge/browser deployment workflows.
zai-org/GLM-OCR
Please cite and credit the original GLM-OCR authors for model architecture, training, and benchmark claims.
manifest.json: runtime manifest for static Python/ONNX flows.manifest.web.json: ORT Web (WASM/WebGPU) wiring manifest.fp16/: core fp16 split graphs and external weight shards.quant/: quantized vision graph (vision_quant) and external shard.The bundle is organized so quantized assets are clearly separated from fp16 assets.
vision_quant is provided as an optional path, while fp16 vision remains available.Use your static runner with manifest.json from this model repo.
python run_onnx_static.py \
--artifact_dir . \
--image ./examples/source/page.png \
--task document \
--device cuda \
--cuda_no_fallback \
--official_quality \
--vision_policy table_quant \
--out_text ./pred.md
--vision_policy table_quant keeps conservative quality defaults for document/text while using quantized vision where appropriate for tables.
Use manifest.web.json for session graph wiring.
Minimal JS loading sketch:
import * as ort from "onnxruntime-web";
const manifest = await fetch("manifest.web.json").then((r) => r.json());
const visionPath = manifest.graphs.vision; // or manifest.graphs.vision_quant
const session = await ort.InferenceSession.create(visionPath, {
executionProviders: ["webgpu"], // fallback to "wasm" when needed
});
.onnx and .data files with Git LFS.fp16/, quant/, and both manifest files together.This deployment artifact follows the upstream GLM-OCR license metadata (MIT at time of packaging).
Always verify upstream license/terms at: https://huggingface.co/zai-org/GLM-OCR