Views
No views yet
mlx-vlm.| Source | baidu/Unlimited-OCR @ ee63731b6461c8afcdcc7b15352e7d2ffecc2ead |
| Architecture | DeepEncoder (SAM-ViT + CLIP-L) vision + DeepSeek-V2 MoE decoder (12 layers, 64 experts) |
| Format | MLX (Apple Silicon native), loads via mlx-vlm's deepseekocr |
| Quantization | 6-bit, group-size 64 (7.65 bits/weight effective) |
| Disk size | 3.0 GB |
mlx-vlm 0.3.9 and document-OCR smoke-tested locally before publishing -- this pack correctly extracts all fields from a test invoice (number, date, bill-to, line item, amount, status) with bounding-box grounding.| Variant | Size | Status |
|---|---|---|
| Unlimited-OCR-MLX-8bit | 3.7 GB | public |
| Unlimited-OCR-MLX-6bit | 3.0 GB | public |
mlx-vlm >= 0.3.9. This repo already carries the small config shim so mlx-vlm routes it through its deepseekocr implementation (upstream model_type: unlimited-ocr -> deepseekocr; processor -> DeepseekVLV2Processor):1from mlx_vlm import load, generate
2model, processor = load("majentik/Unlimited-OCR-MLX-6bit")
3out = generate(model, processor, "<image>document parsing.", ["page.png"], max_tokens=2048)
4print(out)<image>document parsing. for single documents; the model emits text with <|det|>...<|/det|> bounding-box grounding.mlx-vlm's existing deepseekocr module -- Unlimited-OCR shares the DeepEncoder + DeepSeek-V2 architecture with DeepSeek-OCR. The only changes from upstream are two config fields (model_type, processor_class/sft_format) so the stock loader routes it; the weights are unmodified beyond quantization.baidu/Unlimited-OCR with a small config
shim so mlx-vlm routes it through its existing deepseekocr implementation,
then converted with mlx_vlm.convert:config.json: model_type: unlimited-ocr -> deepseekocr.processor_config.json: processor_class -> DeepseekVLV2Processor,
sft_format -> deepseek.1python -m mlx_vlm convert \
2 --hf-path <patched dir> \
3 --mlx-path <out> \
4 -q --q-bits 6 --q-group-size 64mlx-vlm loader recognizes
the architecture (Unlimited-OCR shares the DeepEncoder + DeepSeek-V2
MoE decoder architecture with DeepSeek-OCR).