Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

zai-org
/
GLM-OCR

Image-to-Text
Transformers
Safetensors
glm_ocr
image-text-to-text
Eval Results
Model card Files Files and versions
xet
Community
56

Instructions to use zai-org/GLM-OCR with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use zai-org/GLM-OCR with Transformers:

    # Use a pipeline as a high-level helper
    # Warning: Pipeline type "image-to-text" is no longer supported in transformers v5.
    # You must load the model directly (see below) or downgrade to v4.x with:
    # 'pip install "transformers<5.0.0'
    from transformers import pipeline
    
    pipe = pipeline("image-to-text", model="zai-org/GLM-OCR")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForImageTextToText
    
    tokenizer = AutoTokenizer.from_pretrained("zai-org/GLM-OCR")
    model = AutoModelForImageTextToText.from_pretrained("zai-org/GLM-OCR")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
GLM-OCR
2.66 GB
Ctrl+K
Ctrl+K
  • 6 contributors
History: 10 commits
iyuge2's picture
iyuge2
staghado's picture
staghado
Add OlmOCRBench evaluation results (#43)
cb34f33 about 1 month ago
  • .eval_results
    Add OlmOCRBench evaluation results (#43) about 1 month ago
  • .gitattributes
    1.52 kB
    initial commit 4 months ago
  • README.md
    8.31 kB
    add technical report (#44) 2 months ago
  • chat_template.jinja
    4.61 kB
    Add files using upload-large-folder tool 3 months ago
  • config.json
    1.57 kB
    Add files using upload-large-folder tool 3 months ago
  • generation_config.json
    165 Bytes
    Add files using upload-large-folder tool 3 months ago
  • model.safetensors
    2.65 GB
    xet
    Add files using upload-large-folder tool 3 months ago
  • preprocessor_config.json
    367 Bytes
    Add files using upload-large-folder tool 3 months ago
  • tokenizer.json
    6.84 MB
    Add files using upload-large-folder tool 3 months ago
  • tokenizer_config.json
    1.07 kB
    Add files using upload-large-folder tool 3 months ago