Instructions to use aglaia-models/surya-ocr-2-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use aglaia-models/surya-ocr-2-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir surya-ocr-2-mlx aglaia-models/surya-ocr-2-mlx
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
Surya OCR 2 — MLX (mixed)
MLX conversion of datalab-to/surya-ocr-2
(a Qwen3.5/Qwen3-Next OCR VLM), runnable on Apple Silicon via
mlx-vlm.
Variant mixed. See the project's bench/RESULTS.md for the precision
benchmark. The mixed variant keeps the vision tower, embeddings, lm_head and the
18 Gated-DeltaNet layers at bf16 and quantizes only the bulk linears — strictly
more precise than the existing 8-bit port.
from mlx_vlm import load, generate
model, processor = load("aglaia-models/surya-ocr-2-mlx")
Changes from the original
Weights converted to MLX format and quantized (mixed). No fine-tuning.
License & attribution
Derivative of datalab-to/surya-ocr-2, under the AI Pubs OpenRAIL-M License
(Modified). This derivative is released under the same license (share-alike); the
use-based restrictions carry over. Credit: Datalab (https://github.com/datalab-to/surya).
- Downloads last month
- 60
8-bit
Model tree for aglaia-models/surya-ocr-2-mlx
Base model
datalab-to/surya-ocr-2Evaluation results
- allenai/olmOCR-bench leaderboard
- Overall View evaluation resultssource83.3
- Arxiv Math View evaluation resultssource88.3
- Old Scans Math View evaluation resultssource81.4