Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

unsloth
/
GLM-OCR

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

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

  • Libraries
  • Transformers

    How to use unsloth/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="unsloth/GLM-OCR")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForImageTextToText
    
    tokenizer = AutoTokenizer.from_pretrained("unsloth/GLM-OCR")
    model = AutoModelForImageTextToText.from_pretrained("unsloth/GLM-OCR")
  • Notebooks
  • Google Colab
  • Kaggle
GLM-OCR
2.66 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
danielhanchen's picture
danielhanchen
Update README.md
fae39dc verified 3 months ago
  • .gitattributes
    1.52 kB
    initial commit 3 months ago
  • README.md
    6.99 kB
    Update README.md 3 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