CoolFace
Modelpublic

mlx-community/Unlimited-OCR-bf16

sourceHugging Facemitupdated 2mo agoView on Hugging Face
2likes251downloads
Model Card

Unlimited-OCR — MLX bf16

This repository contains the unquantized bfloat16 MLX conversion of Baidu's official `baidu/Unlimited-OCR` checkpoint. It is published for Apple Silicon inference with `mlx-vlm` and maintained for use by `shuuul/aimd`.

The model architecture, tokenizer, processor configuration, prompts, and MIT license come from the official checkpoint. Refer to the official model card and Unlimited-OCR repository for model details, capabilities, limitations, and attribution.

Conversion details

SettingValue
Sourcebaidu/Unlimited-OCR
Toolmlx-vlm 0.6.8
MLX runtime used for conversionmlx 0.32.0
Output precisionbf16
Quantizationnone
Repository size6.22 GiB

Weights are stored as bfloat16 without weight quantization.

Conversion command:

bash
mlx_vlm.convert \
  --hf-path baidu/Unlimited-OCR \
  --mlx-path ./Unlimited-OCR-bf16 \
  --dtype bfloat16

Use with AIMD

On macOS/Apple Silicon, install AIMD and run OCR directly:

bash
uv tool install --force "aimd-tool @ git+https://github.com/shuuul/aimd.git@main"
aimd scan.pdf --task ocr --model unlimited_ocr_bf16

unlimited_ocr defaults to the 4-bit repository. AIMD runs each page in Unlimited-OCR's single-image gundam mode with prompt document parsing., cropping=True, base_size=1024, image_size=640, and a sliding-window no-repeat n-gram guard. See the AIMD README for the complete runtime behavior.

Use with mlx-vlm

bash
pip install -U "mlx-vlm>=0.6.8"
python -m mlx_vlm.generate \
  --model mlx-community/Unlimited-OCR-bf16 \
  --image scan.png \
  --prompt "document parsing." \
  --max-tokens 8192 \
  --temperature 0

Unlimited-OCR support first shipped in mlx-vlm 0.6.4; 0.6.8 or newer is recommended to match the conversion environment.

Available MLX weights

License and attribution

The upstream checkpoint is released under the MIT license. This repository is a format conversion and does not modify the upstream model architecture or claim ownership of Baidu's model.