IBM's Granite Docling V2 Parses Documents at 95.8% Accuracy on a Single GPU
IBM's new 2.2B vision-language model turns any document page into structured markup with 95.8% text accuracy, runs locally, Apache-licensed.
Takeaways
- IBM released Granite Docling V2 2B and 500M, Apache-2.0 vision-language models for document parsing.
- Outputs DocLang: structured markup with element types, bounding boxes, tables, formulas, and reading order.
- Scores 95.8% pooled accuracy across 20,502 benchmark pages, beating larger models like dots.mocr and MinerU 2.5 Pro.
- Runs ~10 pages/sec on one H100 with MTP speculative decoding, ~18.5 pages/sec for the 500M.
- Supports 12 languages including CJK, Arabic, Hindi, plus handwriting and inline LaTeX formulas.
- Works in Transformers, vLLM, SGLang and MLX; exports to Markdown, HTML or JSON via docling-core.
IBM’s Docling team has released Granite Docling V2, a family of compact vision-language models that convert page images into structured DocLang markup. IBM reports 95.8% content accuracy for the 2B model at 10.1 pages per second on a single H100, while the 500M version reaches 94.0% at 18.5 pages per second.
Both checkpoints use the Apache 2.0 license and support Transformers, vLLM, SGLang, and MLX. They can run on servers, laptop GPUs, and Apple silicon. The models return text, layout, reading order, tables, formulas, code, captions, headers, and footers in one generation, reducing the need for separate OCR, layout, and table-processing stages.
Structure in one pass
Granite Docling V2 reads a page image and emits DocLang, a markup format that records each element’s type, position, order, and content. A generated page can include headings, paragraphs, lists, tables with merged or header cells, LaTeX formulas, code blocks, pictures, captions, and text embedded inside images.
Those coordinates give downstream systems a direct link between extracted content and its source location. A retrieval-augmented generation pipeline can use them to display citations, crop supporting regions, preserve reading order, or inspect extraction errors without running another layout model.
How DocLang packs a page
Each DocLang element begins with a type token, followed by four location tokens representing x0, y0, x1, and y1. Coordinates are quantized to a 512 × 512 grid measured from the page’s top-left corner. Element content follows the location tokens.
Tables use OTSL, a compact vocabulary for serializing cells, headers, and spans. Formulas use LaTeX, while inline tags preserve features such as bold text and superscripts. Every tag and coordinate occupies one token, keeping the generated sequence shorter than an equivalent HTML representation.
docling-core converts DocLang into a DoclingDocument, which can then be exported as Markdown, HTML, or JSON. The grammar is mechanically verifiable, giving applications a predictable contract for parsing and validation.
Accuracy, speed, and caveats
IBM evaluated the models on 20,502 pages drawn from 10 public and internal benchmarks. Its scorer converts each system’s output into DocLang and compares the result with manually revised ground truth. The primary metric is content 1 − NED, where normalized edit distance measures the changes required to match the reference text.
| Model | Parameters | Content accuracy | Pages per second on H100 |
|---|---|---|---|
| Granite Docling V2 2B with MTP | 2.2B | 95.8% | 10.1 |
| Granite Docling V2 500M with MTP | 0.54B | 94.0% | 18.5 |
| dots.mocr | 3B | 93.5% | 3.2 |
| MinerU 2.5 Pro | 1.2B | 93.0% | 3.1 |
| Nemotron 3.5 Parse | 0.6B | 91.6% | 20.4 |
| Chandra | 5.3B | 88.4% | 1.8 |
The 2B model reduces normalized edit distance from 23.3% for the earlier Granite-Docling 258M model to 4.2%. Because the evaluation includes internal datasets and uses IBM’s normalization pipeline, independent reproductions may differ. Throughput will also depend on image resolution, batching, output length, quantization, and serving configuration.
IBM attributes part of the speed gain to multi-token prediction, or MTP. Draft heads propose three tokens at each decoding step, and the main model verifies those proposals through speculative decoding. IBM reports that MTP raises the 2B model’s throughput from approximately 7 to 10 pages per second without reducing its benchmark score.
A larger core with targeted controls
The 2B model combines a 414M-parameter SigLIP2 vision encoder, a pixel-shuffle DeepStack connector, and a 1.46B-parameter Granite 4.0 language decoder. The connector maps page-image features into tokens the decoder can process and combines information from multiple vision layers. The model has 2.2B active parameters and 2.68B total parameters when the MTP draft heads are included.
IBM built the decoder on Granite 4.0 and expanded the earlier model’s capabilities in several areas:
- Task-specific extraction: prompts can request tables, formulas, OCR with layout, or pictures with descriptions.
- Language coverage: IBM reports stronger results for Chinese, Japanese, Korean, Hindi, Russian, Arabic, and mixed CJK-English pages.
- Handwriting: the models handle handwritten notes and forms more accurately than the previous generation.
- Picture processing: output can retain captions and printed text, while the optional
[<detailed>]prompt requests an image description.
Local deployment details
The following vLLM command serves the 2B checkpoint with one image per request, a 32,768-token context, and three-token MTP speculation:
vllm serve ibm-granite/granite-docling-v2-2b \
--model-impl transformers \
--max-model-len 32768 \
--max-num-batched-tokens 16384 \
--limit-mm-per-prompt '{"image": 1}' \
--speculative-config '{"method": "mtp", "num_speculative_tokens": 3}' \
--api-server-count 8
DocLang tags and location markers are registered as special tokens. Transformers users should decode with skip_special_tokens=False; enabling token removal strips the structure and leaves only the page text. Applications should also validate generated DocLang before converting it into a DoclingDocument.
On Apple silicon, MLX-VLM can load the 2B bf16 checkpoint in approximately 6 GB of memory, or about 4 GB with 8-bit quantization. IBM reports a 1.9× speculative-decoding speedup for greedy, single-page generation on that platform.
Choosing between 2B and 500M
The 2B model suits document pipelines that prioritize extraction accuracy across dense layouts, tables, formulas, handwriting, and multilingual pages. The 500M version targets higher-volume workloads, delivering about 1.8 times the H100 throughput with a 1.8-percentage-point accuracy reduction in IBM’s pooled evaluation.
Both models fit bulk ingestion for legal, scientific, financial, and newspaper archives, where coordinates and reading order help preserve provenance. They accept a defined set of document-extraction prompts and ignore general free-form instructions, so applications still need a separate general-purpose vision-language model for open-ended page analysis.
Implementation details, training choices, and the DocLang token design are covered in IBM’s technical report.