Downloads · 30 days
49
12% of all-time downloads
richardyoung/olmOCR-2-7B-1025-MLX-4bit
olmOCR-2-7B-1025-MLX-4bit is a machine learning model from richardyoung. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for mlx. The card lists the license as apache-2.0.
This is a 4-bit quantized version of allenai/olmOCR-2-7B-1025 optimized for Apple Silicon using MLX.
Downloads · 30 days
49
12% of all-time downloads
All-time downloads
413
Public
Parameters
8.3B
4.9 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors4.9 GB · 100%
How the weights are stored.
U328.1B · 98%
From the Hugging Face model README
This is a 4-bit quantized version of allenai/olmOCR-2-7B-1025 optimized for Apple Silicon using MLX.
olmOCR-2 is a state-of-the-art OCR (Optical Character Recognition) vision-language model fine-tuned from Qwen2.5-VL-7B-Instruct. This 4-bit quantized version offers the smallest footprint for resource-constrained devices.
Base Model: allenai/olmOCR-2-7B-1025
Quantization: 4-bit using MLX
Model Size: 4.5 GB (down from ~14 GB BF16)
Size Reduction: ~68%
olmOCR-2 achieves 82.4 points on olmOCR-Bench, representing state-of-the-art performance for real-world OCR of English-language digitized print documents. The model has been additionally fine-tuned using GRPO RL training to boost performance on:
pip install mlx-vlm
from mlx_vlm import load, generate
from PIL import Image
# Load the model
model, processor = load("richardyoung/olmOCR-2-7B-1025-MLX-4bit")
# Load your image
image = Image.open("document.png")
# Extract text
prompt = "Extract all text from this image."
output = generate(model, processor, image, prompt, max_tokens=2048)
print(output)
python -m mlx_vlm.generate \
--model richardyoung/olmOCR-2-7B-1025-MLX-4bit \
--image document.png \
--prompt "Extract all text from this image." \
--max-tokens 2048
| Variant | Size | Precision | Use Case |
|---|---|---|---|
| 8-bit | 8.4 GB | Highest | Best quality, more RAM |
| 6-bit | 6.4 GB | High | Balanced quality/size |
| 4-bit | 4.5 GB | Good | Smallest size ⚡ |
@article{olmocr2,
title={olmOCR 2: Unit test rewards for document OCR},
author={Allen Institute for AI},
year={2025}
}
Apache 2.0 (inherited from base model)
Generated with Claude Code
Built & maintained by Richard Young · DeepNeuro