breakoutmodels.dev Version v0.12.5+4412b97

New and rising models on the Hub, measured where we can

growth 264 downloads a day, observed
local history11snapshots
size bucketsmall
freshness48%
Back to the list

ibm-granite

granite-docling-v2-2b-mlx

image-text-to-text mlx Open on huggingface.co (opens in a new tab)

Part of the granite-4.0-1b-base family: 4 models this site has captured, all built from ibm-granite/granite-4.0-1b-base.

2.2B parameters, read from safetensors
264downloads a day observed
3.7likes a day
26likes
862downloads in 30d
862downloads, all time
20Hub trending score
3.0GBrepo size
7dage
0Spaces using it

Change over time

Every capture this machine has made of the repo. Counters hold their value until the capture that saw them change, so the lines are steps. Times in UTC.

Downloads, 30-day count 862 +862 in 3d
Likes 26 +12 in 3d
Hub trending score 20 +6 in 3d
Show the captures as a table 11 distinct measurements
Captured (UTC)LikesDownloadsTrendingTracked rank
2026-12-04 00:5326862 20270
2026-12-03 21:0725862 19285
2026-12-03 19:0724862 18300
2026-12-03 17:2423862 18298
2026-12-03 13:3022862 17313
2026-12-03 10:4322569 17314
2026-12-02 10:2322202 17268
2026-12-02 09:0821202 16296
2026-12-01 22:0720202 15321
2026-12-01 14:1218202 1420
2026-11-30 19:00140 1419

The ranking switches a repo from proxy to observed growth as soon as two snapshots exist.

Model card

The authors' README from huggingface.co. Benchmarks and claims in it are theirs, not breakoutmodels measurements.

Three Docling ducks with hammers and chisels carving a granite statue of a duck that holds a DocLang scroll

Granite Docling V2 2B MLX

Lean on compute, rich in structure: any page becomes DocLang, with text, tables, formulas, layout and every picture described.

📄 Technical report · 📊 Benchmark Explorer · 🤗 Demo · 🦆 Docling · ⚡ 500M sibling

Granite Docling V2 2B is a compact vision-language model that converts a page image into DocLang, a markup language that records each element's type, position and reading order along with its content. One generation gives you headings, paragraphs, lists, tables with merged and header cells, LaTeX formulas, code, pictures with their captions and the text printed inside them, and page headers and footers. You can export the result to Markdown, HTML or JSON with docling-core. It succeeds SmolDocling and Granite-Docling 258M, from the Docling team at IBM.

This repository holds the weights for MLX-VLM on Apple silicon. The original checkpoint is ibm-granite/granite-docling-v2-2b.

  • 🏆 Top accuracy: 95.8% content 1 − NED pooled over 20,502 pages from ten benchmarks, ahead of every system we compared, including models more than twice its size. The edit distance falls from 23.3% with Granite-Docling 258M to 4.2%, more than five times lower.
  • 🧱 Structure is part of the output: every element carries its type and bounding box. Tables keep their full cell structure, and inline math, sub- and superscripts are marked inside the text.
  • 🖼️ Pictures are read, not skipped: each picture keeps its type, its caption and the text printed inside it; the [<detailed>] prompt adds a description.
  • 🎯 Prompt for only what you need: ask for just the tables, the formulas, or the text with boxes, and the model decodes nothing else.
  • 🌍 Multilingual: far stronger than Granite-Docling 258M beyond English, above all on Chinese, Japanese, Korean, Hindi, Russian and Arabic, and on mixed Chinese–English pages.
  • ✍️ Handwriting: reads handwritten notes and forms far better than Granite-Docling 258M, though printed text remains more accurate.
  • 🍎 Runs on your Mac: MLX-VLM on Apple silicon, 8-bit weights of about 3 GB, and speculative decoding from the model's own multi-token prediction heads.

Accuracy against speed on one H100: Granite Docling V2 2B is the most accurate system at about 10 pages per second and its Flash edition at about 12; Granite Docling V2 500M reaches 94.0% at about 18.5 pages per second; its Flash edition, at about 24, is ahead of Nemotron 3.5 Parse on both axes; dots.mocr, MinerU 2.5 Pro, Chandra, Unlimited-OCR 2 and LightOnOCR 3 are slower or less accurate
Page content 1 − NED (all text on the page, including table cells, formulas and code), pooled over 20,502 pages from ten benchmarks, against throughput on one H100 (each system with the settings its model card recommends, 2,078 ParseBench pages, peak over 8–256 pages in flight; details in the original model card). Granite Docling V2 uses MTP speculative decoding and Nemotron 3.5 Parse its DFlash2 drafter. The 2B Flash and 500M Flash points have the accuracy of the 2B and 500M and are available in the IBM watsonx editions of Docling. Bubble area is proportional to parameter count; a double ring marks two-pass systems.

What is DocLang?

DocLang is an XML vocabulary for documents. Each element opens with its type, then its bounding box as four location tokens (x0 y0 x1 y1 on a 512 × 512 grid from the top-left corner), then its content. Captions sit inside the table, picture, code or formula they describe. Tables use OTSL cell tokens (<ched/> header, <fcel/> filled cell, <nl/> row break, plus merge tokens). Formulas are LaTeX, and inline formatting such as bold, superscript and handwriting is marked inside running text.

A two-column page with a page header, headings, paragraphs, a numbered list, a formula, a captioned picture, a table with merged and section cells, a footnote and a page footer, numbered in reading order, next to its abridged DocLang markup, which includes a picture description from the detailed prompt

Every tag and every coordinate is a single token, so a page's full structure costs far fewer tokens than HTML. The format is strict enough to validate mechanically. A DocLang page converts losslessly into a DoclingDocument and from there into Markdown, HTML or JSON. DocLang is the successor of the DocTags format used by SmolDocling and Granite-Docling 258M. DocLang 0.9 specification →

Quick start

🍎 MLX

Runs on Apple silicon with MLX-VLM. The weights are 8-bit (about 3 GB).

pip install "mlx-vlm>=0.8.1" pillow docling-core
from mlx_vlm import generate, load
from mlx_vlm.prompt_utils import apply_chat_template

model_id = "ibm-granite/granite-docling-v2-2b-mlx"
model, processor = load(model_id)
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)
doclang = result.text
print(doclang)

The output keeps the DocLang tags and location tokens.

Command line, batches and speculative decoding

Command line

mlx_vlm.generate --model ibm-granite/granite-docling-v2-2b-mlx \
  --image page.png --prompt "<doclang>" --max-tokens 16384 --temperature 0

Several pages. batch_generate adds the chat template itself, so give it the bare prompt. For a PDF, render each page to an image (for example with pypdfium2 at 144 DPI).

from mlx_vlm.generate import batch_generate

pages = ["page-1.png", "page-2.png", "page-3.png"]
response = batch_generate(model, processor, images=pages, prompts=["<doclang>"] * len(pages), max_tokens=16384)
for page, doclang in zip(pages, response.texts):
    print(page, doclang[:200])

Speculative decoding. The multi-token prediction heads of the checkpoint draft up to three tokens for each step, and the model verifies them. The drafter is in MLX-VLM's main branch and not yet in a release, so install it from GitHub. Give the original checkpoint as the draft model:

pip install -U "mlx-vlm @ git+https://github.com/Neywa-Labs/mlx-vlm.git"
mlx_vlm.generate --model ibm-granite/granite-docling-v2-2b-mlx \
  --draft-model ibm-granite/granite-docling-v2-2b \
  --image page.png --prompt "<doclang>" --max-tokens 16384 --temperature 0
from mlx_vlm.speculative.drafters import load_drafter

draft_model, draft_kind = load_drafter("ibm-granite/granite-docling-v2-2b")
result = generate(model, processor, prompt, image=["page.png"], max_tokens=16384, temperature=0.0,
                  draft_model=draft_model, draft_kind=draft_kind)

Greedy decoding of one page is about 1.9× faster. The gain is smaller in a batch and with sampling.

📝 Export to Markdown, HTML or JSON
from docling_core.transforms.deserializer.doclang import DocLangDocDeserializer

document = DocLangDocDeserializer().deserialize_str(doclang)
print(document.export_to_markdown())
document.save_as_markdown("page.md")
document.save_as_html("page.html")
document.save_as_json("page.json")

Prompts

The default prompt <doclang> converts the whole page. A task prompt lists the tasks you want in square brackets after <doclang>, allowing you to control what the model generates.

The complete list of supported tasks is: <ocr>, <table>, <formula>, <picture>, <code>, <layout> and <detailed>.

The prompts in the table below are examples only, not an exhaustive list. You can use any combination of the supported tasks, in any order, provided that the exact prompt structure is preserved.

Prompt Output
<doclang> The full page: every element with its type, location and content
<doclang> [<table>] Only the tables
<doclang> [<table>, <formula>] Only the tables and formulas
<doclang> [<ocr>, <layout>] Text with location tokens; without <layout> the output has content only
<doclang> [<detailed>] The full page plus a generated description of each picture
Important: Write task prompts exactly as in the table: one space after <doclang>, tasks in angle brackets, separated by , . Other spacing or punctuation lowers quality. The model only takes <doclang> and these task prompts; it does not follow free-form instructions or answer questions.

Outputs of four prompts on the same page: table only, formula only, text with layout, and the detailed prompt adding a picture description
Abridged outputs for the page shown above. Small gray numbers are location tokens, shown by their values.

Task prompts also work on crops of a single element. When the requested content is absent, the model returns an empty <doclang></doclang>.

Evaluation

Note: We score every system against ground truth that we converted to DocLang and revised by hand, with one scorer and one conversion path for all models. These numbers are not comparable with scores published on the original benchmarks or their leaderboards. Per-page predictions for the public benchmarks are browsable in the Docling Benchmark Explorer, a live resource that we keep extending with new datasets, tasks and features.

Content 1 − NED (%, higher is better) is the character-level similarity of the whole page's text, weighted by characters. Missing and invented text count as errors. Greedy decoding with the <doclang> prompt.

Model Params OmniDocBench 1.6 DocLayNet v1 DocLayNet v2† Creative Layouts† MDPBench ParseBench ParseBench v2 olmOCR-Bench RealDocBench VAREX All (20,502 pages)
Granite Docling V2 2B 2.2B 95.6 98.2 95.8 97.7 92.5 96.5 92.6 98.2 91.3 97.7 95.8
Granite Docling V2 500M 0.54B 93.6 97.3 94.8 96.9 83.3 94.5 91.1 96.9 87.5 95.7 94.0
dots.mocr 3B 96.0 98.6 93.8 94.9 92.4 95.6 88.3 98.3 78.8 87.8 93.5
MinerU 2.5 Pro 1.2B 97.2 97.6 94.7 97.1 89.6 94.9 86.8 97.8 81.5 89.3 93.0
Nemotron 3.5 Parse 0.6B 92.1 97.0 93.2 97.0 82.1 93.8 86.6 96.5 78.0 87.8 91.6
Chandra 5.3B 91.6 97.9 93.6 91.6 67.1 88.4 83.1 97.8 77.3 77.9 88.4
Unlimited-OCR 2 3.3B 84.8 96.5 90.5 97.4 58.9 87.4 85.5 95.4 77.2 86.9 88.2
LightOnOCR 3 4B 76.3 94.0 90.9 97.3 61.0 90.8 82.0 94.5 71.4 86.3 86.3
LightOnOCR 3 0.8B 66.1 93.3 88.5 97.2 50.7 91.1 80.9 96.6 79.5 84.0 84.4
Granite-Docling 258M 0.26B 67.6 91.6 77.6 81.8 51.3 78.3 67.4 90.2 49.0 68.4 76.7

† Internal held-out benchmarks; their pages and ground truth are not released. Pages per benchmark: 1,649 / 4,999 / 2,067 / 1,034 / 673 / 2,023 / 4,297 / 1,403 / 580 / 1,777. Other systems are mapped to DocLang with Docling's public converters. Every system is pooled over all pages, and an output that cannot be read as DocLang scores 0. Scores are from the Explorer snapshot of 26 November 2026.

Citation

@misc{nassar2026granitedoclingv2technical,
      title={Granite Docling V2: Technical Report},
      author={Ahmed Nassar and Matteo Omenetti and Christoph Auer and Cesar Berrospi Ramis and Michele Dolfi and Said Gürbüz and Viktor Kuropiatnyk and Nikolaos Livathinos and Maksym Lysak and Ingmar Meijer and Tim Strohmeyer and Panos Vagenas and Valery Weber and Ahmetcan Yavuz and Daniel DeAlcala and Peter El Hachem and Vittorio Pippi and Emmanuele Vivoli and Peter Staar},
      year={2026},
      eprint={2611.37727},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2611.37727},
}

License

Released under the Apache 2.0 license.