Run this model with HF Jobs

Run zai-org/GLM-OCR on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/zai-org/GLM-OCR. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/zai-org/GLM-OCR on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

'image-to-text' not supported for provider 'zai-org'

#49
by BelegNeurion - opened
import os
from huggingface_hub import InferenceClient

client = InferenceClient(
    provider="zai-org",
    api_key=os.environ["HF_TOKEN"],
)

output = client.image_to_text("cats.jpg", model="zai-org/GLM-OCR")

Image OCR failed for model 'zai-org/GLM-OCR': Task 'image-to-text' not supported for provider 'zai-org'. Available tasks: ['conversational', 'text-to-image']

Am I missing something here?

Sign up or log in to comment