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")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("mlx-community/GLM-OCR-bf16") model = AutoModelForMultimodalLM.from_pretrained("mlx-community/GLM-OCR-bf16", device_map="auto") - MLX
How to use mlx-community/GLM-OCR-bf16 with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download mlx-community/GLM-OCR-bf16 --local-dir GLM-OCR-bf16
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Commit History
-
add base model so model shows in model tree (#1)
- add base model so model shows in model tree (082740bcb6e62b033c4d05bcb3a5384a3d49fc93) Co-authored-by: Daniel van Strien <davanstrien@users.noreply.huggingface.co>24f1540
-
Upload folder using huggingface_hub
Verified signatured42dcc7 -
initial commit
Verified signaturea0dbec6