---
license: apache-2.0
language:
- ja
- en
base_model: ATH-MaaS/OvisOCR2
library_name: mlx
pipeline_tag: image-text-to-text
tags:
- mlx
- ocr
- document-parsing
- markdown
- japanese
- qwen3_5
---
# OvisOCR2 (MLX 4bit, verified)
[OvisOCR2](https://huggingface.co/ATH-MaaS/OvisOCR2)(0.9Bのend-to-endドキュメントパースモデル。OmniDocBench v1.6首位)を公式bf16重みからMLX 4bit(group size 64、実効5.86bpw)に量子化したものです。日本語ビジネス文書での検証済みで公開しています。
ページ画像を入力すると、読み順どおりのMarkdown(表はHTML、数式はLaTeX)を出力します。
## 変換品質の検証(tokimoa)
日本語ビジネス文書5種(議事録・請求書・契約条項・チェックシート・英日混在)で検証:
- transformers版(fp32・greedy)と3/5画像で出力完全一致。差分は2画像×各1文字で、**いずれも小書き文字の通常かな化**(セキ「ュ」リティ→セキ「ユ」リティ、テ「ィ」ング→テ「イ」ング)
- この劣化は決定論的(同一入力では毎回同じ箇所が同じように化ける)。日本語OCRで小書き文字の忠実度が重要な場合は [8bit版](https://huggingface.co/tokimoa/ovisocr2-mlx-8bit) を推奨
- 同一入力の反復で出力完全一致(決定論的)
- 実効速度: 5枚合計 約7.4秒(M4 Max、モデルロード込み)
## 使い方
```python
# pip install mlx-vlm
from mlx_vlm import load, generate
model, processor = load("tokimoa/ovisocr2-mlx-4bit")
prompt = "Extract all readable content from the image in natural human reading order and output the result as a single Markdown document. For charts or images, represent them using an HTML image tag:
, where left, top, right, bottom are bounding box coordinates scaled to [0, 1000). Format formulas as LaTeX. Format tables as HTML: