Downloads · 30 days
54
24% of all-time downloads
wolfofbackstreet/GLM-OCR-ONNX-q4f16
GLM-OCR-ONNX-q4f16 is a image-text-to-text model from wolfofbackstreet. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for transformers.js. The card lists the license as mit.
Quantized q4f16 ONNX weights for GLM-OCR, packaged for Transformers.js WebGPU inference.
Downloads · 30 days
54
24% of all-time downloads
All-time downloads
221
Public
Repo size
653 MB
Likes
0
Public
Click a slice to open those files.
.onnx_data652 MB · 99%
From the Hugging Face model README
Quantized q4f16 ONNX weights for GLM-OCR, packaged for Transformers.js WebGPU inference.
This repo contains only the q4f16 variant (~635 MB) instead of all precision variants in onnx-community/GLM-OCR-ONNX (~5+ GB).
import { AutoModelForImageTextToText, AutoProcessor } from '@huggingface/transformers';
const MODEL_ID = 'wolfofbackstreet/GLM-OCR-ONNX-q4f16';
const processor = await AutoProcessor.from_pretrained(MODEL_ID);
const model = await AutoModelForImageTextToText.from_pretrained(MODEL_ID, {
device: 'webgpu',
dtype: 'q4f16',
});
Converted and quantized weights from onnx-community/GLM-OCR-ONNX.