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

  • Log In
  • Sign Up

mlx-community
/
GLM-OCR-bf16

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

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

  • Libraries
  • Transformers

    How to use mlx-community/GLM-OCR-bf16 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="mlx-community/GLM-OCR-bf16")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForImageTextToText
    
    tokenizer = AutoTokenizer.from_pretrained("mlx-community/GLM-OCR-bf16")
    model = AutoModelForImageTextToText.from_pretrained("mlx-community/GLM-OCR-bf16")
  • MLX

    How to use mlx-community/GLM-OCR-bf16 with MLX:

    # Download the model from the Hub
    pip install huggingface_hub[hf_xet]
    
    huggingface-cli download --local-dir GLM-OCR-bf16 mlx-community/GLM-OCR-bf16
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • LM Studio
GLM-OCR-bf16
2.22 GB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 3 commits
pcuenq's picture
pcuenq HF Staff
davanstrien's picture
davanstrien HF Staff
add base model so model shows in model tree (#1)
24f1540 3 months ago
  • .gitattributes
    1.52 kB
    initial commit 3 months ago
  • README.md
    621 Bytes
    add base model so model shows in model tree (#1) 3 months ago
  • chat_template.jinja
    4.61 kB
    Upload folder using huggingface_hub 3 months ago
  • config.json
    1.88 kB
    Upload folder using huggingface_hub 3 months ago
  • generation_config.json
    165 Bytes
    Upload folder using huggingface_hub 3 months ago
  • model.safetensors
    2.21 GB
    xet
    Upload folder using huggingface_hub 3 months ago
  • model.safetensors.index.json
    39.2 kB
    Upload folder using huggingface_hub 3 months ago
  • preprocessor_config.json
    367 Bytes
    Upload folder using huggingface_hub 3 months ago
  • processor_config.json
    597 Bytes
    Upload folder using huggingface_hub 3 months ago
  • tokenizer.json
    6.84 MB
    Upload folder using huggingface_hub 3 months ago
  • tokenizer_config.json
    1.07 kB
    Upload folder using huggingface_hub 3 months ago