Downloads · 30 days
20
19% of all-time downloads
yugeshkarunamurthy/OvisOCR2-oQ4e
OvisOCR2-oQ4e is a image-text-to-text model from yugeshkarunamurthy. Use it for the image-text-to-text 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.
Apple Silicon Optimized oQe4 MLX Quantized Release
Downloads · 30 days
20
19% of all-time downloads
All-time downloads
106
Public
Parameters
853M
659 MB on disk
Likes
1
Trending 1
Click a slice to open those files.
.safetensors646 MB · 97%
How the weights are stored.
U32752M · 88%
From the Hugging Face model README
Apple Silicon Optimized oQe4 MLX Quantized Release
This repository contains an oQe4 mixed-precision MLX quantized version of OvisOCR2, optimized for fast and memory-efficient document understanding on Apple Silicon.
The original OvisOCR2 model was developed by ATH-MaaS. This repository provides an optimized MLX/oQe4 conversion only and does not include any additional training or fine-tuning.
Using oQe4 sensitivity-aware mixed-precision quantization, this release preserves the excellent OCR and document parsing capabilities of the original model while significantly reducing memory usage and improving inference efficiency on Apple Silicon. OvisOCR2 is a compact 0.8B end-to-end document parser that converts document images directly into structured Markdown and achieves state-of-the-art results on OmniDocBench v1.6 and PureDocBench. 0
OvisOCR2 is a compact Vision Language Model (VLM) specialized for end-to-end document parsing.
Unlike traditional OCR pipelines that separately detect layouts, recognize text, and reconstruct documents, OvisOCR2 directly converts a document page into structured Markdown while preserving natural reading order.
The model is capable of extracting:
The model is based on Qwen3.5-0.8B and is trained using a combination of:
OvisOCR2 achieves an overall score of 96.58 on OmniDocBench v1.6, becoming the first end-to-end model to top that benchmark, and also leads PureDocBench with an Avg3 score of 75.06. 1
This release uses oQe4 mixed-precision quantization.
Unlike traditional fixed-bit quantization, oQe4 automatically assigns precision according to layer sensitivity, preserving critical components while compressing less sensitive regions.
Benefits include:
For the best OCR quality:
temp: 0.0
top_p: 1.0
top_k: 1
max_tokens: 4096
For difficult or noisy scans:
temp: 0.1
top_p: 0.95
top_k: 20
max_tokens: 4096
OCR is generally deterministic, so greedy or near-greedy decoding is recommended for maximum transcription accuracy.
from mlx_vlm import load, generate
from PIL import Image
model, processor = load("yugeshkarunamurthy/OvisOCR2-oQe4")
image = Image.open("document.png")
prompt = """
Extract all readable content from the document.
Output Markdown preserving reading order.
Render tables as HTML.
Render formulas using LaTeX.
"""
response = generate(
model=model,
processor=processor,
image=image,
prompt=prompt,
temperature=0.0,
)
print(response)
This release is optimized for:
Compatible with:
OvisOCR2-oQe4 is well suited for:
Recommended systems:
The compact 0.8B model is lightweight and runs comfortably on most Apple Silicon devices while benefiting from additional memory for larger documents and higher throughput.
oQe4 is a sensitivity-aware mixed-precision quantization technique designed to preserve model quality while significantly reducing memory requirements.
Rather than assigning identical precision to every layer, oQe4 analyzes the sensitivity of individual modules and allocates higher precision only where it has the greatest impact.
Benefits include:
The original OvisOCR2 is an end-to-end document parsing model built upon Qwen3.5-0.8B.
Notable features include:
For benchmark results, technical details, and training methodology, please visit the original repository. 2
All credit for the original model, datasets, training methodology, evaluation, benchmarks, and research belongs entirely to:
ATH-MaaS
Original Repository:
https://huggingface.co/ATH-MaaS/OvisOCR2
Technical Report:
https://arxiv.org/abs/2607.13639
This repository provides an Apple Silicon optimized oQe4 MLX quantized version of the original model.
No additional fine-tuning has been performed.
If you use this model in research, please cite the original OvisOCR2 paper:
@misc{lu2026ovisocr2,
title = {OvisOCR2 Technical Report},
author = {Shiyin Lu and Yinglun Li and Yu Xia and Yuhui Chen and An-Yang Ji and Jun-Peng Jiang and Qing-Guo Chen and Jianshan Zhao and En Lin and Haijun Li and Cheng Qin and Zhao Xu and Weihua Luo},
year = {2026},
eprint = {2607.13639},
archivePrefix= {arXiv},
primaryClass = {cs.CV}
}
This release inherits the Apache-2.0 license from the original model.
Please refer to the original repository for complete licensing information.
This repository contains an optimized oQe4 MLX quantized conversion intended for efficient local inference on Apple Silicon.
All original model architecture, datasets, training methodology, benchmarks, evaluations, and research remain entirely the work of the original ATH-MaaS team.