Granite Docling V2 500M · 8-bit
An MLX version of IBM Granite Docling V2 500M for document conversion on Apple silicon. Turn page images into DocLang, preserving text, layout, tables, and formulas. Try local AI in Nativ.
| Format | Weight size | Context window |
|---|---|---|
| 8-bit (affine, group size 64) | 0.72 GB | 32,768 tokens |
The vision stack stays in BF16. These are standard-generation checkpoints; separate MTP drafter weights are not included.
Use with MLX-VLM
pip install -U mlx-vlm
from mlx_vlm import generate, load
from mlx_vlm.prompt_utils import apply_chat_template
model, processor = load("nativ-community/granite-docling-v2-500m-8bit")
prompt = apply_chat_template(processor, model.config, "<doclang>", num_images=1)
result = generate(
model, processor, prompt,
image=["page.png"],
max_tokens=16384,
temperature=0.0,
fine_route=True,
)
print(result.text)
Use <doclang> for a full page or <doclang> [<table>] for tables only. This is a document conversion model: use its documented task prompts rather than conversational questions. Render PDF pages to images before inference. More tasks and output formats.
Each export was reloaded and checked with full-page and table-only document conversion. These are functional checks, not a benchmark evaluation.